gina 0.1.1-alpha.166 → 0.1.1-alpha.167
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/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/AUTHORS +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/LICENSE +0 -0
- package/framework/v0.1.1-alpha.167/VERSION +1 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/html/nolayout.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/html/static.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/img/android-chrome-192x192.png +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/img/android-chrome-512x512.png +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/img/apple-touch-icon.png +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/img/favicon-16x16.png +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/img/favicon-32x32.png +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/img/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.js +367 -321
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.min.css +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.min.css.map +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.min.js +23 -23
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.min.js.map +3 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.onload.min.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.onload.min.js.map +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/css/toolbar-min.css +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/css/toolbar.css +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/css/toolbar.css.map +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/js/jquery-3.1.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/main.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/toolbar.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/readme.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/asset/plugin/uuid.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/config.js +7 -7
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/connectors/couchbase/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/connector.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/connector.v2.js +4 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/connector.v3.js +51 -51
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/connector.v4.js +4 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/n1ql.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/session-store.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/session-store.v3.js +12 -12
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/session-store.v4.js +3 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/controller/controller.framework.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/controller/controller.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/controller/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/busboy/.travis.yml +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/busboy/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/busboy/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/busboy/deps/encoding/encoding.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/busboy/lib/main.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/busboy/lib/types/multipart.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/busboy/lib/types/urlencoded.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/busboy/lib/utils.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/busboy/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/dev/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/dev/lib/class.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/dev/lib/factory.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/dev/lib/tools.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/gna.js +4 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/currency.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/dist/language/en.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/dist/language/fr.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/dist/region/en.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/dist/region/fr.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/src/make.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/src/resources/currency.csv +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/src/resources/region.csv +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/src/resources/region.mapping.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/mime.types +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/model/entity.js +6 -6
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/model/index.js +8 -9
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/model/template/entityFactory.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/model/template/index.js +14 -13
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/file/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/file/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/file/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/intl/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/intl/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/intl/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/intl/src/main.js +5 -5
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/storage/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/storage/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/storage/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/storage/src/main.js +4 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/validator/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/validator/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/validator/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/validator/src/form-validator.js +8 -8
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/validator/src/main.js +8 -8
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/router.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/server.express.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/server.isaac.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/server.js +85 -19
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/status.codes +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/config/app.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/config/routing.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/config/settings.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/config/templates.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/controllers/controller.content.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/controllers/setup.js +15 -15
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/index.js +13 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_public/readme.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/command/gina.bat.tpl +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/command/gina.tpl +3 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/conf/env.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/conf/manifest.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/conf/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/conf/settings.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/conf/statics.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/conf/templates.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/error/client/json/401.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/error/client/json/403.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/error/client/json/404.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/error/server/html/50x.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/error/server/json/500.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/error/server/json/503.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/template/extensions/logger/config.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/console.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/context.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/dateFormat.js +5 -5
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/index.js +3 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/json/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/json/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/json/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/json/src/main.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/path.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/plugins/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/plugins/src/api-error.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/plugins/src/main.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/prototypes.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/task.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/helpers/text.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/archiver/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/archiver/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/archiver/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/archiver/src/dep/jszip.min.js +3 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/archiver/src/main.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/aliases.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/add.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/copy.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/cp.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/remove.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/rename.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/restart.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/rm.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/start.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/status.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/bundle/stop.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/add.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/get.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/link-dev.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/remove.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/rm.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/set.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/unset.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/env/use.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/build.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/dot.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/get.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/init.js +8 -8
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/link-node-modules.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/link.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/msg.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/open.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/restart.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/set.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/start.js +9 -9
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/status.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/stop.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/tail.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/update.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/framework/version.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/gina-dev.1.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/gina-framework.1.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/gina.1.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/helper.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/index.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/msg.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/port/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/port/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/port/inc/scan.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/port/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/port/reset.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/port/set.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/add.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/build.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/import.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/move.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/remove.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/rename.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/restart.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/rm.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/start.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/status.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/project/stop.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/protocol/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/protocol/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/protocol/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/protocol/set.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/scope/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/scope/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/scope/link-local.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/scope/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/scope/remove.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/scope/rm.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/scope/set.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/scope/unset.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/scope/use.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cmd/view/add.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/collection/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/collection/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/collection/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/collection/src/main.js +241 -241
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/config.js +29 -29
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cron/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cron/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/cron/src/main.js +3 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/domain/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/domain/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/domain/dist/public_suffix_list.dat +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/domain/exemples/backend.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/domain/exemples/frontend.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/domain/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/domain/src/main.js +5 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/generator/index.js +3 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/index.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/inherits/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/inherits/README.md +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/inherits/example/protected_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/inherits/example/simple_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/inherits/package.json +2 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/inherits/src/main.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/src/containers/default/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/src/containers/file/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/src/containers/mq/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/src/containers/mq/listener.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/src/containers/mq/speaker.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/src/helper.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/logger/src/main.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/math/index.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/merge/README.md +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/merge/example/merge.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/merge/example/merge_and_preserve_first.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/merge/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/merge/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/model.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/proc.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/routing/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/routing/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/routing/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/routing/src/main.js +12 -6
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/shell.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/swig-filters/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/swig-filters/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/swig-filters/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/url/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/url/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/url/mocks.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/url/routing.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/url/test.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/lib/validator.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/package.json +1 -1
- package/package.json +2 -2
- package/services/src/proxy/controllers/setup.js +14 -14
- package/framework/v0.1.1-alpha.166/VERSION +0 -1
|
@@ -41,7 +41,7 @@ var modelUtil = new lib.Model();
|
|
|
41
41
|
gna.initialized = process.initialized = false;
|
|
42
42
|
gna.routed = process.routed = false;
|
|
43
43
|
|
|
44
|
-
gna.
|
|
44
|
+
gna.lib = lib;
|
|
45
45
|
gna.locales = locales;
|
|
46
46
|
gna.plugins = plugins;
|
|
47
47
|
|
|
@@ -51,7 +51,7 @@ gna.plugins = plugins;
|
|
|
51
51
|
var isLoadedThroughCLI = false; // with gina
|
|
52
52
|
var isLoadedThroughWorker = false;
|
|
53
53
|
|
|
54
|
-
//copy & backup for
|
|
54
|
+
//copy & backup for lib/cmd/app.js.
|
|
55
55
|
var tmp = JSON.clone(process.argv); // by default
|
|
56
56
|
var projectName = null;
|
|
57
57
|
|
|
@@ -186,7 +186,7 @@ setPath('project', root);
|
|
|
186
186
|
|
|
187
187
|
|
|
188
188
|
|
|
189
|
-
setContext('gina.
|
|
189
|
+
setContext('gina.lib', lib);
|
|
190
190
|
setContext('gina.Config', Config);
|
|
191
191
|
setContext('gina.locales', locales);
|
|
192
192
|
setContext('gina.plugins', plugins);
|
|
@@ -461,7 +461,7 @@ gna.mount = process.mount = function(bundlesPath, source, target, type, callback
|
|
|
461
461
|
|
|
462
462
|
if ( isSourceFound ) {
|
|
463
463
|
//will override existing each time you restart.
|
|
464
|
-
gna.
|
|
464
|
+
gna.lib.generator.createPathSync(bundlesPath, function onPathCreated(err){
|
|
465
465
|
if (!err) {
|
|
466
466
|
try {
|
|
467
467
|
var targetObj = new _(target);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/src/resources/currency.csv
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/locales/src/resources/region.csv
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
*/
|
|
8
8
|
var fs = require('fs');
|
|
9
9
|
var EventEmitter = require('events').EventEmitter;
|
|
10
|
-
var
|
|
11
|
-
var console =
|
|
12
|
-
var helpers =
|
|
13
|
-
var inherits =
|
|
14
|
-
var merge =
|
|
15
|
-
var modelUtil = new
|
|
10
|
+
var lib = require('gina').lib;
|
|
11
|
+
var console = lib.logger;
|
|
12
|
+
var helpers = lib.helpers;
|
|
13
|
+
var inherits = lib.inherits;
|
|
14
|
+
var merge = lib.merge;
|
|
15
|
+
var modelUtil = new lib.Model();
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* @class Model.EntitySuper class
|
|
@@ -12,16 +12,15 @@ var EventEmitter = require('events').EventEmitter;
|
|
|
12
12
|
var corePath = getPath('gina').core;
|
|
13
13
|
var Config = require( corePath + '/config' );
|
|
14
14
|
var config = new Config();
|
|
15
|
-
var
|
|
16
|
-
var console =
|
|
17
|
-
var math =
|
|
18
|
-
var inherits =
|
|
19
|
-
//var merge =
|
|
20
|
-
var
|
|
21
|
-
var modelUtil = new
|
|
15
|
+
var lib = require('gina').lib;
|
|
16
|
+
var console = lib.logger;
|
|
17
|
+
var math = lib.math;
|
|
18
|
+
var inherits = lib.inherits;
|
|
19
|
+
//var merge = lib.merge;
|
|
20
|
+
var configLib = new lib.Config();
|
|
21
|
+
var modelUtil = new lib.Model();
|
|
22
22
|
var Module = require('module');
|
|
23
23
|
|
|
24
|
-
//UtilsConfig = Utils.Config(),
|
|
25
24
|
//dev = require(_(corePath + '/dev') ),
|
|
26
25
|
|
|
27
26
|
|
|
@@ -222,7 +221,7 @@ function Model(namespace, _config) {
|
|
|
222
221
|
|
|
223
222
|
// try {
|
|
224
223
|
|
|
225
|
-
// var locals = _locals =
|
|
224
|
+
// var locals = _locals = configLib.getSync('gina', 'locals.json')
|
|
226
225
|
// } catch (err) {
|
|
227
226
|
// console.emerg('[ MODEL ][ ' + _connector +' ] Error while calling `Model::getConfigSync()` '+ err.stack||err.message);
|
|
228
227
|
// if ( i < 10) {
|
package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/model/template/entityFactory.js
RENAMED
|
File without changes
|
|
@@ -21,9 +21,8 @@ var Model;
|
|
|
21
21
|
//Imports.
|
|
22
22
|
var fs = require('fs');
|
|
23
23
|
var Module = require('module');
|
|
24
|
-
var
|
|
25
|
-
var merge =
|
|
26
|
-
//var Dev = Utils.Dev;
|
|
24
|
+
var lib = require('gina').lib;
|
|
25
|
+
var merge = lib.merge;
|
|
27
26
|
var EventEmitter = require('events').EventEmitter;
|
|
28
27
|
var Config = require('./../config');
|
|
29
28
|
|
|
@@ -42,25 +41,27 @@ Model = function(namespace){
|
|
|
42
41
|
//TODO - if intance...
|
|
43
42
|
|
|
44
43
|
|
|
45
|
-
if ( typeof(namespace) == "undefined" ||
|
|
44
|
+
if ( typeof(namespace) == "undefined" || namespace == "") {
|
|
46
45
|
//logger.error('gina', 'MODEL:ERR:1', 'EEMPTY: Model namespace', __stack);
|
|
47
46
|
console.error(new Error('EEMPTY: Model namespace'));
|
|
48
47
|
}
|
|
49
48
|
var suffix = 'Entity';
|
|
50
|
-
|
|
49
|
+
namespace = namespace.split(/\//g);
|
|
51
50
|
var bundle = namespace[0];
|
|
52
51
|
namespace.shift();
|
|
52
|
+
|
|
53
|
+
var model = null;
|
|
53
54
|
//Capitalize - Normalize
|
|
54
55
|
if (namespace.length > 1) {
|
|
55
56
|
for (var i; i<namespace.length; ++i)
|
|
56
57
|
namespace[i] = namespace[i].substring(0, 1).toUpperCase() + namespace[i].substring(1);
|
|
57
58
|
|
|
58
|
-
|
|
59
|
+
model = namespace.join(".");
|
|
59
60
|
} else {
|
|
60
61
|
//Dir name.
|
|
61
62
|
var modelDirName = namespace[0];
|
|
62
63
|
namespace[0] = namespace[0].substring(0, 1).toUpperCase() + namespace[0].substring(1);
|
|
63
|
-
|
|
64
|
+
model = namespace[0];
|
|
64
65
|
}
|
|
65
66
|
|
|
66
67
|
//console.log("\nBundle", bundle);
|
|
@@ -84,11 +85,11 @@ Model = function(namespace){
|
|
|
84
85
|
|
|
85
86
|
var entityName, exluded = ['index.js'];
|
|
86
87
|
|
|
87
|
-
//Will be in
|
|
88
|
+
//Will be in Dev.Lib.Factory soon.
|
|
88
89
|
var produce = function(entityName, i){
|
|
89
90
|
console.debug("producing ", files[i]);
|
|
90
91
|
|
|
91
|
-
|
|
92
|
+
lib.config.get('gina', 'project.json', function(err, config){
|
|
92
93
|
//if (err) logger.error('gina', 'MODEL:ERR:2', 'EEMPTY: EntitySuper' + err, __stack);
|
|
93
94
|
if (err) console.error(err.stack||err.message);
|
|
94
95
|
|
|
@@ -104,7 +105,7 @@ Model = function(namespace){
|
|
|
104
105
|
try {
|
|
105
106
|
if (entityName != "undefiend") {
|
|
106
107
|
console.log("preparing entity ", entityName);
|
|
107
|
-
//TODO - Would be great to implement in
|
|
108
|
+
//TODO - Would be great to implement in Dev.Lib
|
|
108
109
|
var EntityFactorySource = source
|
|
109
110
|
.replace(/\{Entity\}/g, entityName)
|
|
110
111
|
.replace(/\{Model\}/g, model);
|
|
@@ -125,7 +126,7 @@ Model = function(namespace){
|
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
//Entity = new entitiesManager[model]();
|
|
128
|
-
//
|
|
129
|
+
//lib.merge(_this, Entity, true);
|
|
129
130
|
//console.debug("EntityManager \n", entitiesManager,"\n VS \n", EntityFactory);
|
|
130
131
|
if (i == files.length-1) {
|
|
131
132
|
//console.debug("All done !");
|
|
@@ -135,7 +136,7 @@ Model = function(namespace){
|
|
|
135
136
|
|
|
136
137
|
})//EO loadFile
|
|
137
138
|
|
|
138
|
-
})//EO
|
|
139
|
+
})//EO lib.config.get()
|
|
139
140
|
|
|
140
141
|
};//EO produce
|
|
141
142
|
|
|
@@ -158,7 +159,7 @@ Model = function(namespace){
|
|
|
158
159
|
|
|
159
160
|
});//EO fs.readdir.
|
|
160
161
|
|
|
161
|
-
}
|
|
162
|
+
} else {
|
|
162
163
|
_this.emit('ready', 'no configuration found for your model: ' + model);
|
|
163
164
|
console.log("no configuration found...");
|
|
164
165
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
|
|
2
2
|
function IntlPlugin() {
|
|
3
3
|
|
|
4
|
-
var merge = merge || require('
|
|
5
|
-
var Collection = Collection || require('
|
|
4
|
+
var merge = merge || require('lib/merge');
|
|
5
|
+
var Collection = Collection || require('lib/collection');
|
|
6
6
|
|
|
7
7
|
var self = {
|
|
8
8
|
options : {
|
|
@@ -10,7 +10,7 @@ function IntlPlugin() {
|
|
|
10
10
|
locale: 'en' // by default
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
|
|
14
14
|
// load phrases
|
|
15
15
|
var phrases = {
|
|
16
16
|
'amendment' : {
|
|
@@ -24,8 +24,8 @@ function IntlPlugin() {
|
|
|
24
24
|
|
|
25
25
|
if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
|
|
26
26
|
// Publish as node.js module
|
|
27
|
-
var merge = require('
|
|
28
|
-
var Collection = require('
|
|
27
|
+
var merge = require('lib/merge');
|
|
28
|
+
var Collection = require('lib/collection');
|
|
29
29
|
|
|
30
30
|
module.exports = IntlPlugin
|
|
31
31
|
|
|
File without changes
|
|
File without changes
|
package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/storage/package.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/storage/src/main.js
RENAMED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
* */
|
|
8
8
|
function StoragePlugin(options) {
|
|
9
9
|
|
|
10
|
-
var merge = merge || require('
|
|
11
|
-
var Collection = Collection || require('
|
|
10
|
+
var merge = merge || require('lib/merge');;
|
|
11
|
+
var Collection = Collection || require('lib/collection');
|
|
12
12
|
var uuid = uuid || require('vendor/uuid');
|
|
13
13
|
var dateFormat = dateFormat || require('helpers/dateFormat');
|
|
14
14
|
|
|
@@ -415,8 +415,8 @@ function StoragePlugin(options) {
|
|
|
415
415
|
|
|
416
416
|
if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
|
|
417
417
|
// Publish as node.js module
|
|
418
|
-
var merge = require('
|
|
419
|
-
var Collection = require('
|
|
418
|
+
var merge = require('lib/merge'); //require('../../../../../lib/merge');
|
|
419
|
+
var Collection = require('lib/collection'); //require('../../../../../lib/collection');
|
|
420
420
|
var uuid = require('uuid');
|
|
421
421
|
|
|
422
422
|
module.exports = StoragePlugin
|
package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/validator/README.md
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/validator/build.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/validator/package.json
RENAMED
|
File without changes
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* FormValidatorUtil
|
|
3
3
|
*
|
|
4
4
|
* Dependencies:
|
|
5
|
-
* -
|
|
6
|
-
* -
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
5
|
+
* - lib/helpers
|
|
6
|
+
* - lib/helpers/dateFormat
|
|
7
|
+
* - lib/merge
|
|
8
|
+
* - lib/routing (for API calls)
|
|
9
9
|
*
|
|
10
10
|
* @param {object} data
|
|
11
11
|
* @param {object} [ $fields ] - isGFFCtx only
|
|
@@ -19,10 +19,10 @@ function FormValidatorUtil(data, $fields, xhrOptions, fieldsSet) {
|
|
|
19
19
|
// if (isGFFCtx && !$fields )
|
|
20
20
|
// throw new Error('No `Validator` instance found.\nTry:\nvar FormValidator = require("gina/validator"):\nvar formValidator = new FormValidator(...);')
|
|
21
21
|
|
|
22
|
-
var merge = (isGFFCtx) ? require('
|
|
22
|
+
var merge = (isGFFCtx) ? require('lib/merge') : require('../../../../../lib/merge');
|
|
23
23
|
var helpers = (isGFFCtx) ? {} : require('../../../../../helpers');
|
|
24
24
|
var dateFormat = (isGFFCtx) ? require('helpers/dateFormat') : helpers.dateFormat;
|
|
25
|
-
var routing = (isGFFCtx) ? require('
|
|
25
|
+
var routing = (isGFFCtx) ? require('lib/routing') : require('../../../../../lib/routing');
|
|
26
26
|
|
|
27
27
|
var hasUserValidators = function() {
|
|
28
28
|
|
|
@@ -1492,7 +1492,7 @@ function FormValidatorUtil(data, $fields, xhrOptions, fieldsSet) {
|
|
|
1492
1492
|
*
|
|
1493
1493
|
* @param {string|boolean} [mask] - by default "yyyy-mm-dd"
|
|
1494
1494
|
*
|
|
1495
|
-
* @returns {date} date - extended by gina::
|
|
1495
|
+
* @returns {date} date - extended by gina::lib::helpers::dateFormat; an adaptation of Steven Levithan's code
|
|
1496
1496
|
* */
|
|
1497
1497
|
self[el]['isDate'] = function(mask) {
|
|
1498
1498
|
var val = this.value
|
|
@@ -1573,7 +1573,7 @@ function FormValidatorUtil(data, $fields, xhrOptions, fieldsSet) {
|
|
|
1573
1573
|
|
|
1574
1574
|
/**
|
|
1575
1575
|
* Formating date using DateFormatHelper
|
|
1576
|
-
* Check out documentation in the helper source: `
|
|
1576
|
+
* Check out documentation in the helper source: `lib/helpers/dateFormat.js`
|
|
1577
1577
|
* e.g.:
|
|
1578
1578
|
* d.start
|
|
1579
1579
|
* .isDate('dd/mm/yyyy')
|
package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.167}/core/plugins/lib/validator/src/main.js
RENAMED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* ValidatorPlugin
|
|
3
3
|
*
|
|
4
4
|
* Dependencies:
|
|
5
|
-
* -
|
|
6
|
-
* -
|
|
5
|
+
* - lib/form-validator
|
|
6
|
+
* - lib/merge
|
|
7
7
|
* - utils/events
|
|
8
8
|
* - vendor/uuid
|
|
9
9
|
*
|
|
@@ -88,11 +88,11 @@
|
|
|
88
88
|
}
|
|
89
89
|
|
|
90
90
|
var uuid = (isGFFCtx) ? require('vendor/uuid') : require('uuid');
|
|
91
|
-
var merge = (isGFFCtx) ? require('
|
|
92
|
-
var inherits = (isGFFCtx) ? require('
|
|
93
|
-
var FormValidator = (isGFFCtx) ? require('
|
|
94
|
-
//var Collection = (isGFFCtx) ? require('
|
|
95
|
-
var routing = (isGFFCtx) ? require('
|
|
91
|
+
var merge = (isGFFCtx) ? require('lib/merge') : require('../../../../../lib/merge');
|
|
92
|
+
var inherits = (isGFFCtx) ? require('lib/inherits') : require('../../../../../lib/inherits');
|
|
93
|
+
var FormValidator = (isGFFCtx) ? require('lib/form-validator') : require('./form-validator');
|
|
94
|
+
//var Collection = (isGFFCtx) ? require('lib/collection') : require('../../../../../lib/collection');
|
|
95
|
+
var routing = (isGFFCtx) ? require('lib/routing') : require('../../../../../lib/routing');
|
|
96
96
|
|
|
97
97
|
/** definitions */
|
|
98
98
|
var instance = {
|
|
@@ -6934,5 +6934,5 @@ if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
|
|
|
6934
6934
|
module.exports = ValidatorPlugin
|
|
6935
6935
|
} else if ( typeof(define) === 'function' && define.amd) {
|
|
6936
6936
|
// Publish as AMD module
|
|
6937
|
-
define('gina/validator', ['utils/events', 'utils/dom', '
|
|
6937
|
+
define('gina/validator', ['utils/events', 'utils/dom', 'lib/form-validator'], function(){ return ValidatorPlugin })
|
|
6938
6938
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -34,7 +34,7 @@ var refreshCore = function() {
|
|
|
34
34
|
//update lib & helpers
|
|
35
35
|
delete require.cache[require.resolve(_(libPath +'/index.js', true))];
|
|
36
36
|
require.cache[_(libPath +'/index.js', true)] = require( _(libPath +'/index.js', true) );
|
|
37
|
-
require.cache[_(corePath + '/gna.js', true)].exports.
|
|
37
|
+
require.cache[_(corePath + '/gna.js', true)].exports.lib = require.cache[_(libPath +'/index.js', true)];
|
|
38
38
|
|
|
39
39
|
//update plugins
|
|
40
40
|
delete require.cache[require.resolve(_(corePath +'/plugins/index.js', true))];
|
|
@@ -15,7 +15,7 @@ const swig = require( _(GINA_FRAMEWORK_DIR +'/node_modules/swig', true)
|
|
|
15
15
|
var Config = require('./config');
|
|
16
16
|
var Router = require('./router');
|
|
17
17
|
var lib = require('./../lib');
|
|
18
|
-
var
|
|
18
|
+
var routingLib = lib.routing;
|
|
19
19
|
var inherits = lib.inherits;
|
|
20
20
|
var merge = lib.merge;
|
|
21
21
|
var Proc = lib.Proc;
|
|
@@ -1171,7 +1171,12 @@ function Server(options) {
|
|
|
1171
1171
|
|
|
1172
1172
|
var headerValue = null;
|
|
1173
1173
|
for (var h in resHeaders) {
|
|
1174
|
-
if (
|
|
1174
|
+
if (
|
|
1175
|
+
// typeof(response.finished) != 'undefined' && !response.finished
|
|
1176
|
+
// || typeof(response.writableEnded) != 'undefined' && !response.writableEnded
|
|
1177
|
+
// ||
|
|
1178
|
+
!response.headersSent
|
|
1179
|
+
) {
|
|
1175
1180
|
// handles multiple origins
|
|
1176
1181
|
if ( /access\-control\-allow\-origin/i.test(h) ) { // re.test(resHeaders[h]
|
|
1177
1182
|
if (sameOrigin) {
|
|
@@ -1194,13 +1199,26 @@ function Server(options) {
|
|
|
1194
1199
|
origin = sameOrigin;
|
|
1195
1200
|
|
|
1196
1201
|
|
|
1197
|
-
|
|
1202
|
+
// if (
|
|
1203
|
+
// typeof(response.finished) != 'undefined' && !response.finished
|
|
1204
|
+
// || typeof(response.writableEnded) != 'undefined' && !response.writableEnded
|
|
1205
|
+
// || !response.headersSent
|
|
1206
|
+
// ) {
|
|
1207
|
+
response.setHeader(h, origin);
|
|
1208
|
+
// }
|
|
1209
|
+
|
|
1198
1210
|
}
|
|
1199
1211
|
sameOrigin = false;
|
|
1200
1212
|
} else {
|
|
1201
1213
|
headerValue = resHeaders[h];
|
|
1202
1214
|
try {
|
|
1203
|
-
|
|
1215
|
+
// if (
|
|
1216
|
+
// typeof(response.finished) != 'undefined' && !response.finished
|
|
1217
|
+
// || typeof(response.writableEnded) != 'undefined' && !response.writableEnded
|
|
1218
|
+
// || !response.headersSent
|
|
1219
|
+
// ) {
|
|
1220
|
+
response.setHeader(h, headerValue)
|
|
1221
|
+
// }
|
|
1204
1222
|
} catch (headerError) {
|
|
1205
1223
|
console.error(headerError)
|
|
1206
1224
|
}
|
|
@@ -1230,6 +1248,7 @@ function Server(options) {
|
|
|
1230
1248
|
, cacheless = conf.cacheless
|
|
1231
1249
|
;
|
|
1232
1250
|
|
|
1251
|
+
|
|
1233
1252
|
if (
|
|
1234
1253
|
headers[':path'] == '/'
|
|
1235
1254
|
|| headers[':path'] == this._options.conf.server.webroot
|
|
@@ -1247,6 +1266,10 @@ function Server(options) {
|
|
|
1247
1266
|
|
|
1248
1267
|
var url = (isWebroot) ? this._referrer : headers[':path'];
|
|
1249
1268
|
|
|
1269
|
+
var hanlersPath = conf.handlersPath
|
|
1270
|
+
, isHandler = ( new RegExp('^'+ hanlersPath).test(assets[ url ].filename) ) ? true: false
|
|
1271
|
+
;
|
|
1272
|
+
|
|
1250
1273
|
if (!stream.pushAllowed) {
|
|
1251
1274
|
asset = {
|
|
1252
1275
|
url : url,
|
|
@@ -1255,13 +1278,39 @@ function Server(options) {
|
|
|
1255
1278
|
isAvailable : assets[ url ].isAvailable,
|
|
1256
1279
|
mime : assets[ url ].mime,
|
|
1257
1280
|
encoding : conf.encoding,
|
|
1258
|
-
|
|
1281
|
+
isBinary : assets[ url ].isBinary,
|
|
1282
|
+
isHandler : assets[ url ].isHandler
|
|
1259
1283
|
};
|
|
1260
1284
|
header = merge({ ':status': 200 }, response.getHeaders());
|
|
1261
1285
|
header['content-type'] = ( !/charset/.test(asset.mime ) ) ? asset.mime + '; charset='+ asset.encoding : asset.mime;
|
|
1262
1286
|
header = completeHeaders(header, local.request, response);
|
|
1263
|
-
if (
|
|
1264
|
-
|
|
1287
|
+
if (asset.isBinary || asset.isHandler ) {
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
if (asset.isHandler) {
|
|
1291
|
+
// adding handler `gina.ready(...)` wrapper
|
|
1292
|
+
var file = null;
|
|
1293
|
+
if ( !fs.existsSync(asset.filename) ) {
|
|
1294
|
+
throwError({stream: stream}, 404, 'Page not found: \n' + headers[':path']);
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
if (!assets[ url ].file) {
|
|
1299
|
+
file = fs.readFileSync(asset.filename, asset.encoding).toString();
|
|
1300
|
+
file = '(gina.ready(function onGinaReady($){\n'+ file + '\n},window["originalContext"]));';
|
|
1301
|
+
this._options.template.assets[ headers[':path'] ].file = file;
|
|
1302
|
+
} else {
|
|
1303
|
+
file = assets[ url ].file;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
// header['content-length'] = fs.statSync(file).size;
|
|
1307
|
+
stream.respond(header);
|
|
1308
|
+
stream.end(file);
|
|
1309
|
+
|
|
1310
|
+
return;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
header['content-length'] = fs.statSync(asset.filename).size;
|
|
1265
1314
|
stream.respondWithFile(
|
|
1266
1315
|
asset.filename
|
|
1267
1316
|
, header
|
|
@@ -1336,7 +1385,7 @@ function Server(options) {
|
|
|
1336
1385
|
isAvailable : assets[ url ].isAvailable,
|
|
1337
1386
|
mime : assets[ url ].mime,
|
|
1338
1387
|
encoding : conf.encoding,
|
|
1339
|
-
isHandler :
|
|
1388
|
+
isHandler : isHandler
|
|
1340
1389
|
};
|
|
1341
1390
|
|
|
1342
1391
|
console.debug('h2 pushing: '+ headers[':path'] + ' -> '+ asset.filename);
|
|
@@ -1349,7 +1398,7 @@ function Server(options) {
|
|
|
1349
1398
|
return;
|
|
1350
1399
|
}
|
|
1351
1400
|
|
|
1352
|
-
asset.isHandler = true;
|
|
1401
|
+
asset.isHandler = this._options.template.assets[ headers[':path'] ].isHandler = true;
|
|
1353
1402
|
asset.file = fs.readFileSync(asset.filename, asset.encoding).toString();
|
|
1354
1403
|
asset.file = '(gina.ready(function onGinaReady($){\n'+ asset.file + '\n},window["originalContext"]));';
|
|
1355
1404
|
|
|
@@ -1473,6 +1522,7 @@ function Server(options) {
|
|
|
1473
1522
|
var isFilenameDir = null
|
|
1474
1523
|
, dirname = null
|
|
1475
1524
|
, isBinary = null
|
|
1525
|
+
, isHandler = null
|
|
1476
1526
|
, hanlersPath = null
|
|
1477
1527
|
;
|
|
1478
1528
|
|
|
@@ -1565,7 +1615,8 @@ function Server(options) {
|
|
|
1565
1615
|
|
|
1566
1616
|
if (!response.headersSent) {
|
|
1567
1617
|
|
|
1568
|
-
isBinary
|
|
1618
|
+
isBinary = true;
|
|
1619
|
+
isHandler = false;
|
|
1569
1620
|
|
|
1570
1621
|
try {
|
|
1571
1622
|
contentType = getHead(response, filename);
|
|
@@ -1585,7 +1636,8 @@ function Server(options) {
|
|
|
1585
1636
|
hanlersPath = bundleConf.handlersPath;
|
|
1586
1637
|
|
|
1587
1638
|
if ( new RegExp('^'+ hanlersPath).test(filename) ) {
|
|
1588
|
-
isBinary
|
|
1639
|
+
isBinary = false;
|
|
1640
|
+
isHandler = true;
|
|
1589
1641
|
file = '(gina.ready(function onGinaReady($){\n'+ file + '\n},window["originalContext"]));'
|
|
1590
1642
|
}
|
|
1591
1643
|
}
|
|
@@ -1611,7 +1663,8 @@ function Server(options) {
|
|
|
1611
1663
|
mime: contentType,
|
|
1612
1664
|
url: request.url,
|
|
1613
1665
|
filename: filename,
|
|
1614
|
-
isBinary: isBinary
|
|
1666
|
+
isBinary: isBinary,
|
|
1667
|
+
isHandler: isHandler
|
|
1615
1668
|
}
|
|
1616
1669
|
}
|
|
1617
1670
|
|
|
@@ -1691,12 +1744,14 @@ function Server(options) {
|
|
|
1691
1744
|
mime: contentType,
|
|
1692
1745
|
url: request.url,
|
|
1693
1746
|
filename: filename,
|
|
1694
|
-
isBinary: isBinary
|
|
1747
|
+
isBinary: isBinary,
|
|
1748
|
+
isHandler: isHandler
|
|
1695
1749
|
}
|
|
1696
1750
|
}
|
|
1697
1751
|
|
|
1698
1752
|
if (!fs.existsSync(filename)) return;
|
|
1699
|
-
isBinary
|
|
1753
|
+
isBinary = ( /text\/html/i.test(contentType) ) ? false : true;
|
|
1754
|
+
isHandler = ( new RegExp('^'+ bundleConf.handlersPath).test(filename) ) ? true : false;
|
|
1700
1755
|
if ( isBinary ) {
|
|
1701
1756
|
// override
|
|
1702
1757
|
self._options.template.assets[request.url] = {
|
|
@@ -1705,7 +1760,18 @@ function Server(options) {
|
|
|
1705
1760
|
mime: contentType,
|
|
1706
1761
|
url: request.url,
|
|
1707
1762
|
filename: filename,
|
|
1708
|
-
isBinary: isBinary
|
|
1763
|
+
isBinary: isBinary,
|
|
1764
|
+
isHandler: isHandler
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
if ( isHandler ) {
|
|
1769
|
+
// adding handler `gina.ready(...)` wrapper
|
|
1770
|
+
var file = null;
|
|
1771
|
+
if (!self._options.template.assets[request.url].file) {
|
|
1772
|
+
file = fs.readFileSync(filename, bundleConf.encoding).toString();
|
|
1773
|
+
file = '(gina.ready(function onGinaReady($){\n'+ file + '\n},window["originalContext"]));';
|
|
1774
|
+
self._options.template.assets[request.url].file = file;
|
|
1709
1775
|
}
|
|
1710
1776
|
}
|
|
1711
1777
|
self.onHttp2Stream(stream, headers, response);
|
|
@@ -2732,7 +2798,7 @@ function Server(options) {
|
|
|
2732
2798
|
, wroot = null
|
|
2733
2799
|
;
|
|
2734
2800
|
|
|
2735
|
-
//matched =
|
|
2801
|
+
//matched = routingLib.getRouteByUrl(req.url, bundle, (req.method||req[':method']), req);
|
|
2736
2802
|
|
|
2737
2803
|
req = checkPreflightRequest(req);
|
|
2738
2804
|
var params = {}
|
|
@@ -2798,7 +2864,7 @@ function Server(options) {
|
|
|
2798
2864
|
|
|
2799
2865
|
//Parsing for the right url.
|
|
2800
2866
|
try {
|
|
2801
|
-
isRoute = await
|
|
2867
|
+
isRoute = await routingLib.compareUrls(params, routing[name].url, req, res, next);
|
|
2802
2868
|
} catch (err) {
|
|
2803
2869
|
var msg = 'Internal server error.\nRule [ '+name+' ] needs your attention.\n';
|
|
2804
2870
|
// TODO - Refactor `ApiError`to handle the following param
|
|
@@ -2918,7 +2984,7 @@ function Server(options) {
|
|
|
2918
2984
|
}
|
|
2919
2985
|
|
|
2920
2986
|
if (!res.headersSent) {
|
|
2921
|
-
res.headersSent = true;
|
|
2987
|
+
// res.headersSent = true;
|
|
2922
2988
|
local.request = checkPreflightRequest(local.request);
|
|
2923
2989
|
// updated filter on controller.js : 2020/09/25
|
|
2924
2990
|
//if (isXMLRequest || !withViews || !isUsingTemplate ) {
|
|
@@ -3037,7 +3103,7 @@ function Server(options) {
|
|
|
3037
3103
|
}
|
|
3038
3104
|
|
|
3039
3105
|
var eRule = 'custom-error-page@'+ self.appName;
|
|
3040
|
-
var routeObj =
|
|
3106
|
+
var routeObj = routingLib.getRoute(eRule);
|
|
3041
3107
|
routeObj.rule = eRule;
|
|
3042
3108
|
routeObj.url = url;
|
|
3043
3109
|
routeObj.param.title = ( typeof(eData.title) != 'undefined' ) ? eData.title : 'Error ' + eData.status;
|
|
File without changes
|
|
File without changes
|