gina 0.0.9-p91b → 0.1.1-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALL.md +46 -0
- package/{core/asset/html/static.html → Icon/r} +0 -0
- package/LICENSE +1 -1
- package/README-4Contributors.md +96 -0
- package/README.md +296 -104
- package/bin/cli +287 -0
- package/bin/cli-debug +60 -0
- package/bin/cmd +184 -0
- package/bin/gina +180 -0
- package/config/logger.json +17 -0
- package/doc/framework/cli/doc.json +9 -0
- package/doc/framework/index.md +60 -0
- package/framework/v0.1.1-alpha.2/AUTHORS +7 -0
- package/{core/utils/lib/inherits → framework/v0.1.1-alpha.2}/LICENSE +1 -1
- package/framework/v0.1.1-alpha.2/VERSION +1 -0
- package/{core/locales/dist/language/en.json → framework/v0.1.1-alpha.2/core/asset/html/nolayout.html} +0 -0
- package/{core/locales/dist/language/fr.json → framework/v0.1.1-alpha.2/core/asset/html/static.html} +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/android-chrome-192x192.png +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/android-chrome-512x512.png +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/apple-touch-icon.png +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/favicon-16x16.png +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/favicon-32x32.png +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/asset/img/favicon.ico +0 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.js +20904 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.js.map +56 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.min.css +1 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.min.css.map +1 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.min.js +736 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.min.js.map +56 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.onload.min.js +5 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/dist/gina.onload.min.js.map +8 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/readme.md +192 -0
- package/framework/v0.1.1-alpha.2/core/asset/js/plugin/uuid.json +23 -0
- package/framework/v0.1.1-alpha.2/core/config.js +2308 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/index.js +757 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/connector.js +20 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/connector.v2.js +429 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/connector.v3.js +432 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/n1ql.js +14 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/session-store.js +21 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/session-store.v2.js +258 -0
- package/framework/v0.1.1-alpha.2/core/connectors/couchbase/lib/session-store.v3.js +341 -0
- package/{core → framework/v0.1.1-alpha.2/core}/controller/controller.framework.js +3 -2
- package/framework/v0.1.1-alpha.2/core/controller/controller.js +3990 -0
- package/{core → framework/v0.1.1-alpha.2/core}/controller/index.js +5 -5
- package/framework/v0.1.1-alpha.2/core/deps/busboy/.travis.yml +17 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/LICENSE +19 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/README.md +225 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/deps/encoding/encoding-indexes.js +73 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/deps/encoding/encoding.js +2391 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/lib/main.js +89 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/lib/types/multipart.js +328 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/lib/types/urlencoded.js +214 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/lib/utils.js +191 -0
- package/framework/v0.1.1-alpha.2/core/deps/busboy/package.json +69 -0
- package/framework/v0.1.1-alpha.2/core/deps/swig-client/swig-2.0.0.min.js +5 -0
- package/{core → framework/v0.1.1-alpha.2/core}/dev/index.js +5 -5
- package/{core → framework/v0.1.1-alpha.2/core}/dev/lib/class.js +1 -1
- package/{core → framework/v0.1.1-alpha.2/core}/dev/lib/factory.js +1 -1
- package/{core → framework/v0.1.1-alpha.2/core}/dev/lib/tools.js +0 -0
- package/framework/v0.1.1-alpha.2/core/gna.js +1070 -0
- package/{core → framework/v0.1.1-alpha.2/core}/locales/README.md +41 -2
- package/{core → framework/v0.1.1-alpha.2/core}/locales/currency.json +0 -0
- package/{core/plugins/README.md → framework/v0.1.1-alpha.2/core/locales/dist/language/en.json} +0 -0
- package/{core/plugins/lib/intl/README.md → framework/v0.1.1-alpha.2/core/locales/dist/language/fr.json} +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/locales/dist/region/en.json +0 -0
- package/framework/v0.1.1-alpha.2/core/locales/dist/region/fr.json +9492 -0
- package/{core → framework/v0.1.1-alpha.2/core}/locales/index.js +5 -4
- package/{core → framework/v0.1.1-alpha.2/core}/locales/src/make.js +15 -12
- package/{core → framework/v0.1.1-alpha.2/core}/locales/src/resources/currency.csv +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/locales/src/resources/region.csv +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/locales/src/resources/region.mapping.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/mime.types +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/model/entity.js +156 -196
- package/{core → framework/v0.1.1-alpha.2/core}/model/index.js +67 -48
- package/{core → framework/v0.1.1-alpha.2/core}/model/template/entityFactory.js +2 -2
- package/{core → framework/v0.1.1-alpha.2/core}/model/template/index.js +8 -10
- package/{core/plugins/lib/storage → framework/v0.1.1-alpha.2/core/plugins}/README.md +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/index.js +3 -3
- package/{core/plugins/lib/validator → framework/v0.1.1-alpha.2/core/plugins/lib/file}/README.md +0 -0
- package/{core/plugins/lib/intl → framework/v0.1.1-alpha.2/core/plugins/lib/file}/build.json +0 -0
- package/framework/v0.1.1-alpha.2/core/plugins/lib/file/package.json +25 -0
- package/{core/utils/lib/collection → framework/v0.1.1-alpha.2/core/plugins/lib/intl}/README.md +0 -0
- package/{core/plugins/lib/storage → framework/v0.1.1-alpha.2/core/plugins/lib/intl}/build.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/lib/intl/package.json +3 -3
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/lib/intl/src/main.js +17 -1
- package/{core/utils/lib/routing → framework/v0.1.1-alpha.2/core/plugins/lib/storage}/README.md +0 -0
- package/{core/plugins/lib/validator → framework/v0.1.1-alpha.2/core/plugins/lib/storage}/build.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/lib/storage/package.json +2 -2
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/lib/storage/src/main.js +91 -85
- package/{core/utils/lib/url → framework/v0.1.1-alpha.2/core/plugins/lib/validator}/README.md +0 -0
- package/{core/utils/lib/collection → framework/v0.1.1-alpha.2/core/plugins/lib/validator}/build.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/plugins/lib/validator/package.json +3 -3
- package/framework/v0.1.1-alpha.2/core/plugins/lib/validator/src/form-validator.js +1762 -0
- package/framework/v0.1.1-alpha.2/core/plugins/lib/validator/src/main.js +6917 -0
- package/framework/v0.1.1-alpha.2/core/router.js +664 -0
- package/framework/v0.1.1-alpha.2/core/server.express.js +213 -0
- package/framework/v0.1.1-alpha.2/core/server.isaac.js +386 -0
- package/framework/v0.1.1-alpha.2/core/server.js +3010 -0
- package/{core → framework/v0.1.1-alpha.2/core}/status.codes +8 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/config/app.json +6 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/config/routing.json +11 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/config/settings.json +9 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/config/settings.server.json +30 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/config/templates.json +42 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/controllers/controller.content.js +39 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/controllers/controller.js +30 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/controllers/setup.js +111 -0
- package/{core/template/samples → framework/v0.1.1-alpha.2/core/template/boilerplate}/bundle/index.js +0 -0
- package/{core/template/samples/bundle → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_namespace}/controllers/controller.js +9 -7
- package/{core/template/views → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_public}/css/default.css +0 -0
- package/{core/template/views → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_public}/css/vendor/readme.md +0 -0
- package/{core/template/views → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_public}/favicon.ico +0 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_public/js/vendor/readme.md +1 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_public/readme.md +1 -0
- package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_templates/handlers/main.js +24 -0
- package/{core/template/views/html/default.html → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_templates/html/homepage.html} +0 -0
- package/{core/template/views/html/layout.html → framework/v0.1.1-alpha.2/core/template/boilerplate/bundle_templates/html/layout/main.html} +2 -2
- package/{core → framework/v0.1.1-alpha.2/core}/template/command/gina.bat.tpl +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/command/gina.tpl +1 -1
- package/framework/v0.1.1-alpha.2/core/template/conf/env.json +76 -0
- package/{core/template/conf/project.json → framework/v0.1.1-alpha.2/core/template/conf/manifest.json} +1 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/conf/package.json +2 -2
- package/framework/v0.1.1-alpha.2/core/template/conf/settings.json +92 -0
- package/framework/v0.1.1-alpha.2/core/template/conf/statics.json +10 -0
- package/framework/v0.1.1-alpha.2/core/template/conf/templates.json +37 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/client/json/401.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/client/json/403.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/client/json/404.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/server/html/50x.html +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/server/json/500.json +0 -0
- package/{core → framework/v0.1.1-alpha.2/core}/template/error/server/json/503.json +0 -0
- package/{core/utils/lib/routing/build.json → framework/v0.1.1-alpha.2/core/template/extensions/logger/config.json} +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/helpers/console.js +3 -3
- package/{core/utils → framework/v0.1.1-alpha.2}/helpers/context.js +240 -49
- package/framework/v0.1.1-alpha.2/helpers/dateFormat.js +528 -0
- package/framework/v0.1.1-alpha.2/helpers/index.js +79 -0
- package/framework/v0.1.1-alpha.2/helpers/json/README.md +0 -0
- package/framework/v0.1.1-alpha.2/helpers/json/package.json +20 -0
- package/framework/v0.1.1-alpha.2/helpers/json/src/main.js +97 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/helpers/path.js +342 -140
- package/framework/v0.1.1-alpha.2/helpers/plugins/README.md +4 -0
- package/framework/v0.1.1-alpha.2/helpers/plugins/package.json +20 -0
- package/framework/v0.1.1-alpha.2/helpers/plugins/src/api-error.js +160 -0
- package/framework/v0.1.1-alpha.2/helpers/plugins/src/main.js +32 -0
- package/framework/v0.1.1-alpha.2/helpers/prototypes.js +218 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/helpers/task.js +49 -29
- package/{core/utils → framework/v0.1.1-alpha.2}/helpers/text.js +7 -7
- package/framework/v0.1.1-alpha.2/lib/archiver/README.md +0 -0
- package/framework/v0.1.1-alpha.2/lib/archiver/build.json +0 -0
- package/framework/v0.1.1-alpha.2/lib/archiver/package.json +20 -0
- package/framework/v0.1.1-alpha.2/lib/archiver/src/dep/jszip.min.js +15 -0
- package/framework/v0.1.1-alpha.2/lib/archiver/src/main.js +499 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/aliases.json +13 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/add.js +507 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/arguments.json +4 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/copy.js +15 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/cp.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/help.js +28 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/help.txt +67 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/list.js +129 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/remove.js +229 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/rename.js +4 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/restart.js +235 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/rm.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/start.js +394 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/status.js +3 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/bundle/stop.js +232 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/add.js +436 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/get.js +62 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/help.js +28 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/help.txt +33 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/link-dev.js +80 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/list.js +111 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/remove.js +150 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/rm.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/set.js +57 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/unset.js +44 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/env/use.js +79 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/dot.js +70 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/get.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/help.js +39 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/help.txt +31 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/init.js +514 -0
- package/{core/utils/lib/cmd → framework/v0.1.1-alpha.2/lib/cmd/framework}/msg.json +3 -3
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/open.js +50 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/restart.js +124 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/set.js +161 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/start.js +96 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/status.js +72 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/stop.js +159 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/tail.js +183 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/update.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/framework/version.js +44 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/gina-dev.1.md +66 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/gina-framework.1.md +100 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/gina.1.md +79 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/helper.js +1147 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/index.js +170 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/msg.json +20 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/port/help.js +28 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/port/help.txt +31 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/port/inc/scan.js +108 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/port/list.js +176 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/port/set.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/add.js +528 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/arguments.json +9 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/build.js +115 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/help.js +28 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/help.txt +76 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/import.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/list.js +55 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/move.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/remove.js +144 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/rename.js +162 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/restart.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/rm.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/start.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/status.js +3 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/project/stop.js +0 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/protocol/help.js +27 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/protocol/help.txt +57 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/protocol/list.js +239 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/protocol/set.js +631 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/help.js +28 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/help.txt +33 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/link-local.js +80 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/list.js +116 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/remove.js +150 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/rm.js +2 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/set.js +57 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/unset.js +44 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/scope/use.js +79 -0
- package/framework/v0.1.1-alpha.2/lib/cmd/view/add.js +311 -0
- package/framework/v0.1.1-alpha.2/lib/collection/README.md +5 -0
- package/framework/v0.1.1-alpha.2/lib/collection/build.json +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/collection/package.json +2 -2
- package/framework/v0.1.1-alpha.2/lib/collection/src/main.js +1459 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/config.js +49 -34
- package/framework/v0.1.1-alpha.2/lib/cron/README.md +7 -0
- package/framework/v0.1.1-alpha.2/lib/cron/package.json +20 -0
- package/framework/v0.1.1-alpha.2/lib/cron/src/main.js +176 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/generator/index.js +8 -4
- package/framework/v0.1.1-alpha.2/lib/index.js +116 -0
- package/framework/v0.1.1-alpha.2/lib/inherits/LICENSE +19 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/README.md +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/example/protected_inheritance.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/example/simple_inheritance.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/package.json +2 -2
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/inherits/src/main.js +18 -19
- package/framework/v0.1.1-alpha.2/lib/logger/README.md +7 -0
- package/framework/v0.1.1-alpha.2/lib/logger/package.json +20 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/default/index.js +55 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/file/index.js +251 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/file/lib/logrotator/README.md +100 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/file/lib/logrotator/index.js +274 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/mq/index.js +52 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/mq/listener.js +302 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/containers/mq/speaker.js +118 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/helper.js +131 -0
- package/framework/v0.1.1-alpha.2/lib/logger/src/main.js +734 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/math/index.js +58 -35
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/merge/README.md +5 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/merge/example/merge.js +1 -1
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/merge/example/merge_and_preserve_first.js +2 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/merge/package.json +2 -2
- package/framework/v0.1.1-alpha.2/lib/merge/src/main.js +531 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/model.js +42 -19
- package/framework/v0.1.1-alpha.2/lib/proc.js +518 -0
- package/framework/v0.1.1-alpha.2/lib/routing/README.md +0 -0
- package/framework/v0.1.1-alpha.2/lib/routing/build.json +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/routing/package.json +2 -2
- package/framework/v0.1.1-alpha.2/lib/routing/src/main.js +1492 -0
- package/framework/v0.1.1-alpha.2/lib/session-store.js +33 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/shell.js +43 -30
- package/framework/v0.1.1-alpha.2/lib/swig-filters/README.md +0 -0
- package/framework/v0.1.1-alpha.2/lib/swig-filters/package.json +20 -0
- package/framework/v0.1.1-alpha.2/lib/swig-filters/src/main.js +322 -0
- package/framework/v0.1.1-alpha.2/lib/url/README.md +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/url/index.js +2 -1
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/url/mocks.json +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/url/routing.json +9 -9
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/url/test.js +0 -0
- package/{core/utils → framework/v0.1.1-alpha.2}/lib/validator.js +7 -7
- package/framework/v0.1.1-alpha.2/package.json +14 -0
- package/package.json +35 -33
- package/resources/etc/init.d/debian/gina +117 -0
- package/resources/home/framework/env.json +34 -0
- package/resources/home/framework/locals.json +14 -0
- package/resources/home/framework/project.json +48 -0
- package/resources/home/framework/projects.json +6 -0
- package/resources/home/main.json +47 -0
- package/resources/home/settings.json +22 -0
- package/resources/home/user/extensions/logger/default/config.json +77 -0
- package/resources/home/user/extensions/logger/file/config.json +11 -0
- package/resources/img/android-chrome-192x192.png +0 -0
- package/resources/img/android-chrome-512x512.png +0 -0
- package/resources/img/apple-touch-icon.png +0 -0
- package/resources/img/favicon-16x16.png +0 -0
- package/resources/img/favicon-32x32.png +0 -0
- package/resources/img/favicon.ico +0 -0
- package/resources/package.json.template +50 -0
- package/script/lib.js +24 -0
- package/script/post_install.js +449 -157
- package/script/pre_install.js +277 -36
- package/script/prepare_version.js +425 -0
- package/utils/helper.js +438 -0
- package/utils/prototypes.js +239 -0
- package/utils/prototypes.json_clone.js +175 -0
- package/.npmignore +0 -6
- package/MIDDLEWARE +0 -1
- package/SUCCESS +0 -1
- package/VERSION +0 -1
- package/core/asset/html/nolayout.html +0 -1
- package/core/asset/js/plugin/build.dev.json +0 -28
- package/core/asset/js/plugin/build.json +0 -31
- package/core/asset/js/plugin/dist/gina.min.css +0 -1
- package/core/asset/js/plugin/dist/gina.min.css.map +0 -1
- package/core/asset/js/plugin/dist/gina.min.js +0 -13731
- package/core/asset/js/plugin/dist/gina.min.js.map +0 -42
- package/core/asset/js/plugin/dist/gina.onload.min.js +0 -3
- package/core/asset/js/plugin/dist/gina.onload.min.js.map +0 -8
- package/core/asset/js/plugin/readme.md +0 -152
- package/core/asset/js/plugin/src/gina/main.js +0 -132
- package/core/asset/js/plugin/src/gina/popin/css/design.css +0 -23
- package/core/asset/js/plugin/src/gina/popin/css/main.css +0 -1112
- package/core/asset/js/plugin/src/gina/popin/css/popin.css +0 -3
- package/core/asset/js/plugin/src/gina/popin/css/popin.css.map +0 -1
- package/core/asset/js/plugin/src/gina/popin/doc/TOC.md +0 -29
- package/core/asset/js/plugin/src/gina/popin/doc/css.md +0 -162
- package/core/asset/js/plugin/src/gina/popin/doc/extend.md +0 -663
- package/core/asset/js/plugin/src/gina/popin/doc/faq.md +0 -46
- package/core/asset/js/plugin/src/gina/popin/doc/html.md +0 -227
- package/core/asset/js/plugin/src/gina/popin/doc/js.md +0 -37
- package/core/asset/js/plugin/src/gina/popin/doc/misc.md +0 -178
- package/core/asset/js/plugin/src/gina/popin/doc/usage.md +0 -130
- package/core/asset/js/plugin/src/gina/popin/main.js +0 -783
- package/core/asset/js/plugin/src/gina/popin/sass/config.sass +0 -37
- package/core/asset/js/plugin/src/gina/popin/sass/gina-design.sass +0 -622
- package/core/asset/js/plugin/src/gina/popin/sass/gina-popin.sass +0 -54
- package/core/asset/js/plugin/src/gina/popin/sass/helper.scss +0 -73
- package/core/asset/js/plugin/src/gina/toolbar/.npmignore +0 -19
- package/core/asset/js/plugin/src/gina/toolbar/css/toolbar.css +0 -433
- package/core/asset/js/plugin/src/gina/toolbar/css/toolbar.css.map +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/index.html +0 -285
- package/core/asset/js/plugin/src/gina/toolbar/index.kit +0 -120
- package/core/asset/js/plugin/src/gina/toolbar/jquery-3.1.0.min.js +0 -4
- package/core/asset/js/plugin/src/gina/toolbar/main.js +0 -693
- package/core/asset/js/plugin/src/gina/toolbar/mock.gina.json +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/mock.user.json +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/readme.md +0 -7
- package/core/asset/js/plugin/src/gina/toolbar/sass/toolbar.sass +0 -563
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/Info-color.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/Info-grey.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/error-color.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/error-grey.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/info-optim.svg +0 -13
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/logo-gina.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/settings-big.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/settings.afdesign +0 -0
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/settings.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-calendar-optim.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-calendar.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-card-optim.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-card.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-lock-optim.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/stripe-lock.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/warning-color.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/svg-src/warning-grey.svg +0 -1
- package/core/asset/js/plugin/src/gina/toolbar/test.jpg +0 -0
- package/core/asset/js/plugin/src/gina/toolbar/toolbar.html +0 -104
- package/core/asset/js/plugin/src/gina/utils/dom.js +0 -24
- package/core/asset/js/plugin/src/gina/utils/events.js +0 -201
- package/core/asset/js/plugin/src/gina/utils/loader.js +0 -57
- package/core/asset/js/plugin/src/main.js +0 -235
- package/core/asset/js/plugin/src/vendor/jquery/1.11.1-css-event_alias.min.js +0 -5
- package/core/asset/js/plugin/src/vendor/jquery/1.12.4.min.js +0 -5
- package/core/asset/js/plugin/src/vendor/jquery/2.1.1-css-event_alias-sizzle.min.js +0 -4
- package/core/asset/js/plugin/src/vendor/jquery/README.md +0 -14
- package/core/asset/js/plugin/src/vendor/jquery/slim-3.1.1.min.js +0 -4
- package/core/config.js +0 -1225
- package/core/controller/controller.js +0 -1860
- package/core/gna.js +0 -908
- package/core/plugins/lib/validator/src/form-validator.js +0 -788
- package/core/plugins/lib/validator/src/main.js +0 -2056
- package/core/router.js +0 -717
- package/core/server.js +0 -1363
- package/core/template/conf/env.json +0 -70
- package/core/template/conf/settings.json +0 -48
- package/core/template/conf/statics.json +0 -6
- package/core/template/conf/views.json +0 -16
- package/core/template/samples/bundle/config/app.json +0 -4
- package/core/template/samples/bundle/config/routing.json +0 -9
- package/core/template/samples/bundle/controllers/setup.js +0 -33
- package/core/template/views/js/vendor/readme.md +0 -1
- package/core/template/views/readme.md +0 -1
- package/core/utils/helpers/dateFormat.js +0 -264
- package/core/utils/helpers/index.js +0 -202
- package/core/utils/index.js +0 -75
- package/core/utils/lib/cmd/app.js +0 -686
- package/core/utils/lib/cmd/basic.help.txt +0 -40
- package/core/utils/lib/cmd/basic.js +0 -141
- package/core/utils/lib/cmd/gina-add-bundle.js +0 -328
- package/core/utils/lib/cmd/gina-add-views.js +0 -99
- package/core/utils/lib/cmd/gina-build.js +0 -218
- package/core/utils/lib/cmd/gina-clean.js +0 -26
- package/core/utils/lib/cmd/gina-connect.js +0 -176
- package/core/utils/lib/cmd/gina-delete-bundle.js +0 -176
- package/core/utils/lib/cmd/gina-deploy.js +0 -452
- package/core/utils/lib/cmd/gina-init-project.js +0 -83
- package/core/utils/lib/cmd/gina-start-bundle.js +0 -3
- package/core/utils/lib/cmd/gina-start.js +0 -3
- package/core/utils/lib/cmd/index.js +0 -157
- package/core/utils/lib/cmd/project.js +0 -14
- package/core/utils/lib/collection/src/main.js +0 -650
- package/core/utils/lib/logger/containers/file.js +0 -11
- package/core/utils/lib/logger/index.js +0 -260
- package/core/utils/lib/merge/src/main.js +0 -344
- package/core/utils/lib/proc.js +0 -416
- package/core/utils/lib/routing/src/main.js +0 -165
- package/documentation/css/default.css +0 -3
- package/documentation/html/home.html +0 -6
- package/documentation/html/inc/_footer.html +0 -5
- package/documentation/html/layout.html +0 -21
- package/documentation/img/debug-conf1.png +0 -0
- package/documentation/img/debug-conf2.png +0 -0
- package/documentation/img/debug-conf3.png +0 -0
- package/documentation/img/debug-conf4.png +0 -0
- package/documentation/img/debug-conf5.png +0 -0
- package/documentation/img/debug-conf6.png +0 -0
- package/documentation/img/debug-conf7.png +0 -0
- package/documentation/img/debug-new1.png +0 -0
- package/documentation/img/debug-new2.png +0 -0
- package/documentation/img/debug-start.png +0 -0
- package/documentation/md/api/controller/main.md +0 -74
- package/migration_note.md +0 -7
- package/package-lock.json +0 -611
- package/script/pre_publish.js +0 -207
- package/tutorial/Commands/README.md +0 -56
- package/tutorial/Commands/add-bundle-result.png +0 -0
- package/tutorial/Commands/add-bundle.png +0 -0
- package/tutorial/Commands/delete-bundle.png +0 -0
- package/tutorial/Commands/help.png +0 -0
- package/tutorial/Commands/init-project.png +0 -0
- package/tutorial/Commands/start-bundle-result.png +0 -0
- package/tutorial/Commands/start-bundle-stop.png +0 -0
- package/tutorial/Commands/start-bundle.png +0 -0
- package/tutorial/Commands/version.png +0 -0
- package/tutorial/ETC/README.md +0 -74
- package/tutorial/ETC/add-bundle-result.png +0 -0
- package/tutorial/ETC/add-bundle.png +0 -0
- package/tutorial/ETC/init-project.png +0 -0
- package/tutorial/Install/README.md +0 -54
- package/tutorial/Install/git-get.png +0 -0
- package/tutorial/Install/git-install-end.png +0 -0
- package/tutorial/Install/git-install-result.png +0 -0
- package/tutorial/Install/git-install-start.png +0 -0
- package/tutorial/Install/install-end.png +0 -0
- package/tutorial/Install/install-result.png +0 -0
- package/tutorial/Install/install-start.png +0 -0
- package/tutorial/WebStorm/README.md +0 -30
- package/tutorial/WebStorm/closure-compiler.png +0 -0
- package/tutorial/WebStorm/sass.png +0 -0
|
@@ -50,6 +50,14 @@
|
|
|
50
50
|
"429": "Too Many Requests",
|
|
51
51
|
"431": "Request Header Fields Too Large",
|
|
52
52
|
"451": "Unavailable For Legal Reasons",
|
|
53
|
+
|
|
54
|
+
// Extended Ngnix 4xx codes
|
|
55
|
+
"444": "No Response",
|
|
56
|
+
"495": "SSL Certificate Error",
|
|
57
|
+
"496": "SSL Certificate Required",
|
|
58
|
+
"497": "HTTP Request Sent to HTTPS Port",
|
|
59
|
+
"498": "Token expired/invalid",
|
|
60
|
+
"499": "Client Closed Request",
|
|
53
61
|
|
|
54
62
|
"500": "Internal Server Error",
|
|
55
63
|
"501": "Not Implemented",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// bundle needs to be restarted on changes !!
|
|
2
|
+
{
|
|
3
|
+
"webroot": "/{bundle}" // do not forget to add a coma here if you add other options ;)
|
|
4
|
+
/**
|
|
5
|
+
* `webrootAutoredirect` settings
|
|
6
|
+
* Default is `true`: set to false if you have describe a redirection rule from your `routing.json`
|
|
7
|
+
*/
|
|
8
|
+
// "webrootAutoredirect": false,
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* `template` settings
|
|
12
|
+
* Default is `false`: will automatically be set to `true` when you add a view/template (`false` is right for APIs only)
|
|
13
|
+
*/
|
|
14
|
+
// "template": false
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* `response` settings
|
|
18
|
+
* This section is mostly used to setup CORS
|
|
19
|
+
*/
|
|
20
|
+
// "response": {
|
|
21
|
+
// CORS settings sample
|
|
22
|
+
// "header": {
|
|
23
|
+
// "access-control-allow-origin": "{bundle}@{project}, https://checkout.stripe.com",
|
|
24
|
+
// "access-control-allow-headers": "X-Requested-With", // To allow AJAX request
|
|
25
|
+
// "access-control-allow-methods": "POST, GET, OPTIONS",
|
|
26
|
+
// "access-control-allow-credentials": true,
|
|
27
|
+
// "vary": "Origin"
|
|
28
|
+
// }
|
|
29
|
+
// }
|
|
30
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// bundle needs to be restarted on changes !!
|
|
2
|
+
{
|
|
3
|
+
// common definitions : will apply for all templates
|
|
4
|
+
"_common": {
|
|
5
|
+
// by default, or it will load `layout.html` if exists or `nolayout.html`(from the framework assets)
|
|
6
|
+
"layout": "{templatesPath}/html/layout/main.html",
|
|
7
|
+
// means that the file name of the template is the same as the route name
|
|
8
|
+
// You can override it through the routing.json
|
|
9
|
+
"routeNameAsFilenameEnabled": true,
|
|
10
|
+
"http-metas": {
|
|
11
|
+
"content-type": "text/html"
|
|
12
|
+
},
|
|
13
|
+
// global css - Will fetch from {bundle}/public
|
|
14
|
+
"stylesheets": [
|
|
15
|
+
{
|
|
16
|
+
"url": "/css/default.css"
|
|
17
|
+
}
|
|
18
|
+
],
|
|
19
|
+
"javascriptsDeferEnabled": true,
|
|
20
|
+
"javascripts": [
|
|
21
|
+
// "/js/vendor/jquery/jquery-3.1.0.min.js",
|
|
22
|
+
// "/js/vendor/modernizr-2.8.3.min.js",
|
|
23
|
+
"/handlers/main.js"
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
"home": {
|
|
28
|
+
// If you want to exclude all global css
|
|
29
|
+
//"stylesheetsExcluded": "*",
|
|
30
|
+
// If you also want to get rid of `gina` definitions, use "**" while excluding
|
|
31
|
+
|
|
32
|
+
// local css - Will fetch from {bundle}/public
|
|
33
|
+
"stylesheets": [
|
|
34
|
+
{
|
|
35
|
+
"url": "/css/home.css"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
// If you want to exclude all global js
|
|
40
|
+
//"javascriptsExcluded": "*"
|
|
41
|
+
}
|
|
42
|
+
}
|
package/framework/v0.1.1-alpha.2/core/template/boilerplate/bundle/controllers/controller.content.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//Imports goes here.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* {Bundle}ContentController
|
|
5
|
+
* Here are handled all contents
|
|
6
|
+
* */
|
|
7
|
+
function {Bundle}ContentController() {
|
|
8
|
+
var self = this;
|
|
9
|
+
// get config/app.json content
|
|
10
|
+
var appConf = this.getConfig('app');
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Home action
|
|
14
|
+
*
|
|
15
|
+
* @param {object} req
|
|
16
|
+
* @param {object} res
|
|
17
|
+
* @callback [next]
|
|
18
|
+
* */
|
|
19
|
+
this.home = function(req, res) {
|
|
20
|
+
var data = {
|
|
21
|
+
msg: appConf.greeting
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
self.renderJSON(data);
|
|
25
|
+
|
|
26
|
+
// use this to render errors
|
|
27
|
+
// self.throwError( new Error('Error sample') );
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
// The onReady Event is called when the controller is loaded
|
|
31
|
+
// You can use this to define, overwrite and customise default controller methods & even swig filters
|
|
32
|
+
//this.onReady = function(req, res, next){
|
|
33
|
+
// // e.g: Define a setup function that you call when the controller is ready
|
|
34
|
+
// //setup(req, res, next)
|
|
35
|
+
// // Or better, you can just complete and reuse the `setup.js` and call self.setup(req, res, next)
|
|
36
|
+
//}
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
module.exports = {Bundle}ContentController
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//Imports goes here.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* {Bundle}Controller
|
|
5
|
+
* This controller is inherited by all the namespace controllers.
|
|
6
|
+
* This means that all public methods written here are reusable by the other controllers
|
|
7
|
+
* without calling `require` in case you decide to add a namespace.
|
|
8
|
+
* It is strongly advised to use namespaces to organize you code :
|
|
9
|
+
* E.g.:
|
|
10
|
+
* gina namespace:add {bundle}/blogpost @{project}
|
|
11
|
+
* gina namespace:add {bundle}/account @{project}
|
|
12
|
+
* ...
|
|
13
|
+
* */
|
|
14
|
+
function {Bundle}Controller() {
|
|
15
|
+
var self = this;
|
|
16
|
+
// get config/app.json content
|
|
17
|
+
// var appConf = this.getConfig('app');
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
// The onReady Event is called when the controller is loaded
|
|
22
|
+
// You can use this to define, overwrite and customise default controller methods & swig filters
|
|
23
|
+
this.onReady = function(req, res, next){
|
|
24
|
+
// e.g: Define a `setup` function (inside this coontroller) that you can call when the controller is ready
|
|
25
|
+
// Or better, you can just complete and reuse the `setup.js` and call self.setup(req, res, next)
|
|
26
|
+
self.setup(req, res, next)
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
module.exports = {Bundle}Controller
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
//Imports goes here.
|
|
2
|
+
// var md = require('marked'); // visit: https://github.com/jmcmanus/pagedown-extra
|
|
3
|
+
// var utils = require('gina').utils;
|
|
4
|
+
// var merge = utils.merge;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Setup Class
|
|
8
|
+
* Allows you to extend setup to all your controllers
|
|
9
|
+
* Most of the things you can do inside a controller, you can do it here
|
|
10
|
+
*
|
|
11
|
+
* E.g.: use it inside the controller `onReady` by calling `self.setup(req, res, next)`
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* @param {object} req
|
|
15
|
+
* @param {object} res
|
|
16
|
+
* @callback [next]
|
|
17
|
+
* */
|
|
18
|
+
function SetupClass(req, res, next){
|
|
19
|
+
// get `app` config
|
|
20
|
+
// var conf = this.getConfig('app')
|
|
21
|
+
|
|
22
|
+
// defining filters
|
|
23
|
+
var swig = this.engine;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Inherited filters from Gina are:
|
|
27
|
+
* [ getWebroot ]
|
|
28
|
+
* Will get the current webroot
|
|
29
|
+
* e.g.:
|
|
30
|
+
* {{ '' | getWebroot() }}
|
|
31
|
+
*
|
|
32
|
+
* [ getUrl ]
|
|
33
|
+
* Will tranlate a route name to an url
|
|
34
|
+
* e.g.:
|
|
35
|
+
* <a href="{{ '/homepage' | getUrl() }}">Homepage</a>
|
|
36
|
+
* <a href="{{ 'users-add' | getUrl({ id: user.id }) }}">Add User</a>
|
|
37
|
+
* <a href="{{ 'users-edit' | getUrl({ id: user.id }) }}">Edit user</a>
|
|
38
|
+
* <a href="{{ 'users-get-empty' | getUrl({ id: '' }) }}">Get empty</a>
|
|
39
|
+
* <a href="{{ 'users-list' | getUrl(null, 'http://domain.com') }}">Display all users</a>
|
|
40
|
+
* <a href="{{ '/dashboard' | getUrl(null, 'admin') }}">Go to admin bundle's dashboard page</a>
|
|
41
|
+
* <a href="{{ 'home@admin' | getUrl() }}">Go to admin bundle's dashboard page</a>
|
|
42
|
+
*
|
|
43
|
+
* [ length ]
|
|
44
|
+
* Extends default Swig `length` filter
|
|
45
|
+
*
|
|
46
|
+
* [ nl2br ]
|
|
47
|
+
* Will replace all `\n` by `<br/>`
|
|
48
|
+
* e.g.:
|
|
49
|
+
* {{ contact.address | nl2br }}
|
|
50
|
+
*/
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Sample of a swig filter to render markdown content
|
|
55
|
+
* To activate this code, you will need :
|
|
56
|
+
* 1) to install `marked` dependency : npm install marked --save
|
|
57
|
+
* 2) uncomment imports on the top of this script
|
|
58
|
+
* 3) uncomment the following filter definition
|
|
59
|
+
*/
|
|
60
|
+
// // default markdown options
|
|
61
|
+
// var markdownOpt = { // visit: https://github.com/jmcmanus/pagedown-extra
|
|
62
|
+
// //renderer : mdRenderer,
|
|
63
|
+
// gfm : true, // Enable GitHub flavored markdown.
|
|
64
|
+
// tables : false,
|
|
65
|
+
// breaks : true, // Enable GFM line breaks. This option requires the gfm option to be true.
|
|
66
|
+
// pedantic : false, // Conform to obscure parts of markdown.pl as much as possible. Don't fix any of the original markdown bugs or poor behavior.
|
|
67
|
+
// // deprecated since version 0.7.0
|
|
68
|
+
// // sanitize : false, // Sanitize the output. Ignore any HTML that has been input.
|
|
69
|
+
// smartLists : true, // Use smarter list behavior than the original markdown. May eventually be default with the old behavior moved into pedantic.
|
|
70
|
+
// smartypants : false // Use "smart" typograhic punctuation for things like quotes and dashes.
|
|
71
|
+
// };
|
|
72
|
+
|
|
73
|
+
// md.setOptions(markdownOpt);
|
|
74
|
+
|
|
75
|
+
// var setupSwigFilters = function(swig) {
|
|
76
|
+
|
|
77
|
+
// if ( typeof(swig) == 'undefined' ) return;
|
|
78
|
+
|
|
79
|
+
// /*
|
|
80
|
+
// * markdown filter
|
|
81
|
+
// * Usage:
|
|
82
|
+
// * <p>{{ 'once **apuon** a time\nthere was a princess' | markdown('strong','em') }}"</p>
|
|
83
|
+
// *
|
|
84
|
+
// * @param {string} text - markdown text string
|
|
85
|
+
// *
|
|
86
|
+
// * @returns {string} html
|
|
87
|
+
// */
|
|
88
|
+
// swig.setFilter('markdownToHtml', function (text, options) {
|
|
89
|
+
|
|
90
|
+
// if ( typeof(text) != 'undefined' ) { // found
|
|
91
|
+
|
|
92
|
+
// if ( typeof(options) != 'undefined' ) {
|
|
93
|
+
// options = merge(options, markdownOpt);
|
|
94
|
+
|
|
95
|
+
// md.setOptions(options);
|
|
96
|
+
// }
|
|
97
|
+
|
|
98
|
+
// return md(text)
|
|
99
|
+
// }
|
|
100
|
+
|
|
101
|
+
// return text
|
|
102
|
+
// });
|
|
103
|
+
// }
|
|
104
|
+
|
|
105
|
+
if (swig && typeof(setupSwigFilters) != 'undefined') { // not always available: redirect, xhr requests
|
|
106
|
+
setupSwigFilters(swig)
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
module.exports = SetupClass
|
package/{core/template/samples → framework/v0.1.1-alpha.2/core/template/boilerplate}/bundle/index.js
RENAMED
|
File without changes
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
//Imports goes here.
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* {Bundle}Controller
|
|
4
|
+
* {Bundle}{Namespace}Controller
|
|
5
5
|
* */
|
|
6
|
-
function {Bundle}Controller() {
|
|
6
|
+
function {Bundle}{Namespace}Controller() {
|
|
7
7
|
var self = this;
|
|
8
8
|
// get config/app.json content
|
|
9
9
|
// var appConf = this.getConfig('app');
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Default action
|
|
13
13
|
*
|
|
14
14
|
* @param {object} req
|
|
15
15
|
* @param {object} res
|
|
16
16
|
* @callback [next]
|
|
17
17
|
* */
|
|
18
|
-
this.
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
this.default = function(req, res) {
|
|
19
|
+
self.renderJSON({ status: '200', msg: 'hello world !' });
|
|
20
|
+
|
|
21
|
+
// use this to render errors
|
|
22
|
+
// self.throwError( new Error('Error sample') );
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
// The onReady Event is called when the controller is loaded
|
|
@@ -29,4 +31,4 @@ function {Bundle}Controller() {
|
|
|
29
31
|
//}
|
|
30
32
|
};
|
|
31
33
|
|
|
32
|
-
module.exports = {Bundle}Controller
|
|
34
|
+
module.exports = {Bundle}{Namespace}Controller
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Vendor is used for dependecies like `jquery.min.js`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
`public` is the public directory.
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* {Bundle} Main handler
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
// requires are put here
|
|
6
|
+
|
|
7
|
+
var {Bundle}Handler = ( function on{Bundle}MainHandled() {
|
|
8
|
+
var self = {}
|
|
9
|
+
;
|
|
10
|
+
|
|
11
|
+
var init = function() {
|
|
12
|
+
|
|
13
|
+
// Define global handlers/bindings here
|
|
14
|
+
|
|
15
|
+
handle();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
var handle = function () {
|
|
20
|
+
console.debug('Main {Bundle} handler loaded !');
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
init();
|
|
24
|
+
})();
|
|
File without changes
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
<meta name="robots" content="index, follow, noarchive">
|
|
10
10
|
<meta name="distribution" content="global">
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
12
|
-
{{ page.stylesheets }}
|
|
13
|
-
{{ page.scripts }}
|
|
12
|
+
{{ page.view.stylesheets }}
|
|
13
|
+
{{ page.view.scripts }}
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
{{ page.content }}
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
* This file is part of the gina package.
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2009-2022 Rhinostone <contact@gina.io>
|
|
5
5
|
*
|
|
6
6
|
* For the full copyright and license information, please view the LICENSE
|
|
7
7
|
* file that was distributed with this source code.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_comment": "Please, don't touch this.",
|
|
3
|
+
"defEnv": "dev",
|
|
4
|
+
"logLevels": [
|
|
5
|
+
"silly",
|
|
6
|
+
"trace",
|
|
7
|
+
"info",
|
|
8
|
+
"debug",
|
|
9
|
+
"warn",
|
|
10
|
+
"error"
|
|
11
|
+
],
|
|
12
|
+
"defExt": "",
|
|
13
|
+
"mountPath": "{executionPath}/bundles",
|
|
14
|
+
"globalTmpPath": "{executionPath}/tmp",
|
|
15
|
+
"logsPath": "{executionPath}/logs",
|
|
16
|
+
"{bundle}": {
|
|
17
|
+
"{env}": {
|
|
18
|
+
"projectPath": "{executionPath}",
|
|
19
|
+
"bundlesPath": "{executionPath}/bundles",
|
|
20
|
+
"bundlePath": "{bundlesPath}/{bundle}",
|
|
21
|
+
"sharedPath": "{executionPath}/shared",
|
|
22
|
+
"cachePath": "{executionPath}/cache",
|
|
23
|
+
"connectorsPath": "{frameworkDir}/core/connectors",
|
|
24
|
+
"cronsPath": "{bundlesPath}/{bundle}/crons",
|
|
25
|
+
"modelsPath": "{bundlesPath}/{bundle}/models",
|
|
26
|
+
"libPath": "{bundlesPath}/{bundle}/lib",
|
|
27
|
+
"releases": "{executionPath}/releases",
|
|
28
|
+
"sources": "{executionPath}/src",
|
|
29
|
+
"tmpPath": "{executionPath}/tmp",
|
|
30
|
+
"publicPath": "{bundlesPath}/{bundle}/public",
|
|
31
|
+
"templatesPath": "{bundlesPath}/{bundle}/templates",
|
|
32
|
+
"handlersPath": "{bundlesPath}/{bundle}/templates/handlers",
|
|
33
|
+
"watchers": "{bundlesPath}/{bundle}/watchers",
|
|
34
|
+
"workersPath": "{bundlesPath}/{bundle}/workers",
|
|
35
|
+
"template": false,
|
|
36
|
+
"server": {
|
|
37
|
+
"engine": "isaac",
|
|
38
|
+
"webroot": "/",
|
|
39
|
+
"webrootAutoredirect": true,
|
|
40
|
+
// "credentials": {
|
|
41
|
+
// "_comment": "SSL Credentials: private key & certificate samples to use for HTTPS scheme & HTTP/2.0 protocol",
|
|
42
|
+
// "privateKey": "{projectPath}/ssl/server.key",
|
|
43
|
+
// "certificate": "{projectPath}/ssl/server.crt",
|
|
44
|
+
// "allowHTTP1": true
|
|
45
|
+
// },
|
|
46
|
+
"response": {
|
|
47
|
+
"header": {
|
|
48
|
+
"accept-language": "en-US,en;q=0.8,fr;q=0.6",
|
|
49
|
+
"X-Powered-By": "Gina I/O - v{version}"
|
|
50
|
+
// See https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS
|
|
51
|
+
// See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Vary
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"encoding": "utf8",
|
|
56
|
+
"files": [
|
|
57
|
+
"app",
|
|
58
|
+
"connectors",
|
|
59
|
+
"routing",
|
|
60
|
+
"settings",
|
|
61
|
+
"statics",
|
|
62
|
+
"templates",
|
|
63
|
+
"watchers"
|
|
64
|
+
],
|
|
65
|
+
"contexts": {
|
|
66
|
+
"paths": {}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"system": {},
|
|
71
|
+
"log": [
|
|
72
|
+
{
|
|
73
|
+
"path": "/logs/gina"
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"server": {
|
|
3
|
+
"engine": "isaac",
|
|
4
|
+
"credentials": {
|
|
5
|
+
"_comment": "Project ENV override: SSL Credentials: private key & certificate",
|
|
6
|
+
"privateKey": "{GINA_HOMEDIR}/certificates/scopes/{scope}/{host}/private.key",
|
|
7
|
+
"certificate": "{GINA_HOMEDIR}/certificates/scopes/{scope}/{host}/certificate.crt",
|
|
8
|
+
"ca": "{GINA_HOMEDIR}/certificates/scopes/{scope}/{host}/ca_bundle.crt",
|
|
9
|
+
"allowHTTP1": true
|
|
10
|
+
},
|
|
11
|
+
// refers to server.js, lib.routing & controller.js
|
|
12
|
+
"supportedRequestMethods": {
|
|
13
|
+
"body": {},
|
|
14
|
+
"get": {},
|
|
15
|
+
"post": {},
|
|
16
|
+
"put": {},
|
|
17
|
+
"delete": {},
|
|
18
|
+
"files": []
|
|
19
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods
|
|
20
|
+
// ? connect, head, options, trace, patch, cookies, copy
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"upload": {
|
|
24
|
+
"_comment": "for more details, check out https://github.com/mscdex/busboy",
|
|
25
|
+
"encoding": "utf8",
|
|
26
|
+
"tmpPath": "{tmpPath}",
|
|
27
|
+
"maxFieldsSize": "2MB", // for all uploads by default - can be redefined under the group
|
|
28
|
+
"maxFields": 1000, // number of assets when isMultipleAllowed - can be redifined under the group
|
|
29
|
+
// timeout for tmp files removal - can be redifined under the group
|
|
30
|
+
// will be ignored by server if set to 0 or false
|
|
31
|
+
// but you will have to setup a cron to remove files from tmp dir
|
|
32
|
+
// eg.: (int) 5000 for 5 sec
|
|
33
|
+
// eg.: (string) 10m for 10 minutes
|
|
34
|
+
// eg.: (int) 0 to disable autoTmpCleanupTimeout
|
|
35
|
+
// eg.: (boolean) false to disable autoTmpCleanupTimeout
|
|
36
|
+
"autoTmpCleanupTimeout": false,
|
|
37
|
+
// You need to set groups in order to enable uploads
|
|
38
|
+
"groups": {
|
|
39
|
+
"untagged": {
|
|
40
|
+
"path": "{tmpPath}",
|
|
41
|
+
"allowedExtensions": "*", // or [ "jpg", "jpeg", "png", "svg" ]
|
|
42
|
+
"isMultipleAllowed": false
|
|
43
|
+
// optional sample
|
|
44
|
+
// ,
|
|
45
|
+
// "filePrefix": "$designId_",
|
|
46
|
+
// "subFolder": "/$ownerId_$companyId",
|
|
47
|
+
// "maxFieldsSize": "512K"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"cache": {},
|
|
52
|
+
"engine.io": {
|
|
53
|
+
"port": 8888
|
|
54
|
+
},
|
|
55
|
+
"livereload": {},
|
|
56
|
+
"locale": {
|
|
57
|
+
"preferedLanguages": [ "en-US" ],
|
|
58
|
+
"region": "EN",
|
|
59
|
+
"firstDayOfWeek": 1,
|
|
60
|
+
"calendar": "gregorian",
|
|
61
|
+
"temperature": "celsius",
|
|
62
|
+
"number": {
|
|
63
|
+
"grouping": null,
|
|
64
|
+
"decimal": "."
|
|
65
|
+
},
|
|
66
|
+
"currency": {
|
|
67
|
+
"code": "usd",
|
|
68
|
+
"grouping": null,
|
|
69
|
+
"decimal": "."
|
|
70
|
+
},
|
|
71
|
+
"measurementUnits": "metric",
|
|
72
|
+
"dateFormat": {
|
|
73
|
+
"short": "mm/dd/yyyy",
|
|
74
|
+
"medium": "mmm d, yyyy",
|
|
75
|
+
"long": "mmmm d, yyyy",
|
|
76
|
+
"full": "dddd, mmmm d, yyyy"
|
|
77
|
+
},
|
|
78
|
+
"24HourTimeFormat": true,
|
|
79
|
+
"timeFormat": {
|
|
80
|
+
"default": {
|
|
81
|
+
"short": "h:MM:ss",
|
|
82
|
+
"medium": "h:MM:ss",
|
|
83
|
+
"long": "h:MM:ss TT"
|
|
84
|
+
},
|
|
85
|
+
"24H": {
|
|
86
|
+
"short": "HH:MM",
|
|
87
|
+
"medium": "HH:MM:ss",
|
|
88
|
+
"long": "HH:MM:ss TT"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
//"favicon.ico": "{templatesPath}/favicon.ico",
|
|
3
|
+
//"favicons": "{templatesPath}/favicons",
|
|
4
|
+
"html": "{templatesPath}/html", // used for templating
|
|
5
|
+
"sass": "{templatesPath}/sass", // used for templating
|
|
6
|
+
"handlers": "{handlersPath}", // used for templating
|
|
7
|
+
//"common": "{sharedPath}",
|
|
8
|
+
"css/vendor/gina": "{gina}/framework/v{version}/core/asset/js/plugin/dist",
|
|
9
|
+
"js/vendor/gina": "{gina}/framework/v{version}/core/asset/js/plugin/dist"
|
|
10
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_common": {
|
|
3
|
+
// if layout == "" or layout == false => isWithoutLayout will be set to `true`
|
|
4
|
+
"layout": "{templatesPath}/html/layout.html",
|
|
5
|
+
"noLayout": "{gina}/framework/v{version}/core/asset/html/nolayout.html",
|
|
6
|
+
"templates": "{templatesPath}", // only if hasView() - deprecated
|
|
7
|
+
"html": "{templatesPath}/html", // only if hasView()
|
|
8
|
+
"theme": "default_theme", // only if hasView()
|
|
9
|
+
"forms": "{bundlePath}/forms",
|
|
10
|
+
"handlers": "{templatesPath}/handlers",
|
|
11
|
+
"routeNameAsFilenameEnabled": true,
|
|
12
|
+
"ginaEnabled": true, // set to false, this will exclude gina assets from being loaded
|
|
13
|
+
"pluginLoader": "{src:{gina}/framework/v{version}/core/asset/js/plugin/dist/gina.onload.min.js}",
|
|
14
|
+
"http-metas": {
|
|
15
|
+
"content-type": "text/html"
|
|
16
|
+
},
|
|
17
|
+
"stylesheets": [
|
|
18
|
+
{
|
|
19
|
+
"name" : "gina",
|
|
20
|
+
"media" : "all",
|
|
21
|
+
"rel" : "stylesheet",
|
|
22
|
+
"type" : "text/css",
|
|
23
|
+
"url" : "/css/vendor/gina/gina.min.css",
|
|
24
|
+
"isCommon" : true
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
"javascriptsDeferEnabled": true, // will place scripts in defer mode in the head by default. If false, will place in the footer
|
|
28
|
+
"javascripts": [
|
|
29
|
+
{
|
|
30
|
+
"name" : "gina",
|
|
31
|
+
"type" : "text/javascript",
|
|
32
|
+
"url" : "/js/vendor/gina/gina.min.js",
|
|
33
|
+
"isCommon" : true
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|