diff --git a/.gitignore b/.gitignore index d44e18f..f018edd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ start +start_notcc \ No newline at end of file diff --git a/start.vsh b/start.vsh index 59cf581..e83817d 100755 --- a/start.vsh +++ b/start.vsh @@ -6,4 +6,4 @@ import web mut app := web.new() -app.run() +app.run()! diff --git a/start_notcc.vsh b/start_notcc.vsh index bfd4208..4bc5851 100755 --- a/start_notcc.vsh +++ b/start_notcc.vsh @@ -6,4 +6,4 @@ import web mut app := web.new() -app.run() +app.run()! diff --git a/web/factory.v b/web/factory.v index 9bb1a4e..5949d31 100644 --- a/web/factory.v +++ b/web/factory.v @@ -1,11 +1,11 @@ module web -import freeflowuniverse.crystallib.osal +//import freeflowuniverse.crystallib.osal import veb -import rand import os -import json -import time +// import json +// import time +// import rand pub struct Context { veb.Context @@ -34,6 +34,6 @@ pub struct RunParams { port int = 8080 } -pub fn (mut app App) run(params RunParams) { - veb.run[App, Context](mut app, params.port) +pub fn (mut app App) run(params RunParams)! { + veb.run_at[App, Context](mut app, veb.RunParams{ host: '0.0.0.0' port: params.port family: .ip })! } diff --git a/web/static/dark-style.css b/web/static/css/dark-style.css similarity index 100% rename from web/static/dark-style.css rename to web/static/css/dark-style.css diff --git a/web/static/helper.css b/web/static/css/helper.css similarity index 100% rename from web/static/helper.css rename to web/static/css/helper.css diff --git a/web/static/round-style.css b/web/static/css/round-style.css similarity index 100% rename from web/static/round-style.css rename to web/static/css/round-style.css diff --git a/web/static/theme.css b/web/static/css/theme.css similarity index 100% rename from web/static/theme.css rename to web/static/css/theme.css diff --git a/web/view.v b/web/view.v index 3e652b5..d50124b 100644 --- a/web/view.v +++ b/web/view.v @@ -1,12 +1,12 @@ module web -import freeflowuniverse.crystallib.osal +//import freeflowuniverse.crystallib.osal import veb -import rand -import os -import json -import freeflowuniverse.crystallib.webserver.auth.jwt -import time +// import rand +// import os +// import json +// import freeflowuniverse.crystallib.webserver.auth.jwt +// import time pub fn (app &App) index(mut ctx Context) veb.Result { return ctx.html($tmpl('./templates/index.html'))