Create Component Library (#43)

* Move src under playlet-lib

* Update configuration

* Update script

* Update script

* Working version

* Vs code config WIP

* Package lock sync

* Lint fix

* Fix images

* Reuse config files

* Kind of a working setup

* Lock node version

* Rename scripts to tools

* Fix build scripts, lib url system

* Lint fix

* rale

* Fix args and web server

* Load fallbacks and build script cleanups

* Remove unused method

* no message

* no message

* Remove generic message field

* Lint fix

* no message

* Use loading indicator on main app

* Add playlet lib version to settings

---------

Co-authored-by: github-action linter <githubaction@githubaction.com>
This commit is contained in:
Brahim Hadricheandgithub-action linter authored and GitHub committed 2023-01-29 16:50:28 -05:00
1 parent 90df81df4b
commit 9d8a3d1cea
156 files changed
+3341 -213

No files matched your search

@@ -0,0 +1,27 @@
namespace Http
class HttpDefaultRouter extends HttpRouter
function new()
super()
m.All("*", function(context as object) as boolean
request = context.request
response = context.response
method = request.method
uri = request.uri
if method = ""
response.Default(400, "You sent a request that the server couldn't understand.")
else
response.Default(404, `Cannot ${method} ${uri}`)
end if
return true
end function)
end function
end class
end namespace