gina 0.1.1-alpha.166 → 0.1.1-alpha.168
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.168}/AUTHORS +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/LICENSE +0 -0
- package/framework/v0.1.1-alpha.168/VERSION +1 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/html/nolayout.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/html/static.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/img/android-chrome-192x192.png +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/img/android-chrome-512x512.png +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/img/apple-touch-icon.png +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/img/favicon-16x16.png +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/img/favicon-32x32.png +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/img/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/gina.js +367 -321
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/gina.min.css +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/gina.min.css.map +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/gina.min.js +23 -23
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/gina.min.js.map +3 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/gina.onload.min.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/gina.onload.min.js.map +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/toolbar/css/toolbar-min.css +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/toolbar/css/toolbar.css +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/toolbar/css/toolbar.css.map +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/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.168}/core/asset/plugin/dist/toolbar/main.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/toolbar/toolbar.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/readme.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/uuid.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/config.js +7 -7
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/connectors/couchbase/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/connectors/couchbase/lib/connector.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/connectors/couchbase/lib/connector.v2.js +4 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/connectors/couchbase/lib/connector.v3.js +51 -51
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/connectors/couchbase/lib/connector.v4.js +4 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/connectors/couchbase/lib/n1ql.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/connectors/couchbase/lib/session-store.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/connectors/couchbase/lib/session-store.v3.js +12 -12
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/connectors/couchbase/lib/session-store.v4.js +3 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/controller/controller.framework.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/controller/controller.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/controller/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/busboy/.travis.yml +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/busboy/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/busboy/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/busboy/deps/encoding/encoding.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/busboy/lib/main.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/busboy/lib/types/multipart.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/busboy/lib/types/urlencoded.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/busboy/lib/utils.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/busboy/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/dev/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/dev/lib/class.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/dev/lib/factory.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/dev/lib/tools.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/gna.js +4 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/currency.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/dist/language/en.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/dist/language/fr.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/dist/region/en.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/dist/region/fr.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/src/make.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/src/resources/currency.csv +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/src/resources/region.csv +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/locales/src/resources/region.mapping.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/mime.types +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/model/entity.js +6 -6
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/model/index.js +8 -9
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/model/template/entityFactory.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/model/template/index.js +14 -13
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/file/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/file/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/file/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/intl/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/intl/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/intl/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/intl/src/main.js +5 -5
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/storage/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/storage/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/storage/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/storage/src/main.js +4 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/validator/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/validator/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/validator/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/validator/src/form-validator.js +8 -8
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/plugins/lib/validator/src/main.js +8 -8
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/router.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/server.express.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/server.isaac.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/server.js +85 -19
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/status.codes +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle/config/app.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle/config/routing.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle/config/settings.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle/config/templates.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle/controllers/controller.content.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle/controllers/setup.js +15 -15
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle/index.js +13 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle_public/readme.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/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.168}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/command/gina.bat.tpl +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/command/gina.tpl +3 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/conf/env.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/conf/manifest.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/conf/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/conf/settings.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/conf/statics.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/conf/templates.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/error/client/json/401.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/error/client/json/403.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/error/client/json/404.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/error/server/html/50x.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/error/server/json/500.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/error/server/json/503.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/template/extensions/logger/config.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/console.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/context.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/dateFormat.js +5 -5
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/index.js +3 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/json/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/json/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/json/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/json/src/main.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/path.js +21 -8
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/plugins/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/plugins/src/api-error.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/plugins/src/main.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/prototypes.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/task.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/helpers/text.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/archiver/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/archiver/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/archiver/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/archiver/src/dep/jszip.min.js +3 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/archiver/src/main.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/aliases.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/add.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/copy.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/cp.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/remove.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/rename.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/restart.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/rm.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/start.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/status.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/bundle/stop.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/add.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/get.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/link-dev.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/remove.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/rm.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/set.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/unset.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/env/use.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/build.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/dot.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/get.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/init.js +8 -8
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/link-node-modules.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/link.js +20 -4
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/msg.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/open.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/restart.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/set.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/start.js +9 -9
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/status.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/stop.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/tail.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/update.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/framework/version.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/gina-dev.1.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/gina-framework.1.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/gina.1.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/helper.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/index.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/msg.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/port/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/port/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/port/inc/scan.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/port/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/port/reset.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/port/set.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/add.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/build.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/import.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/move.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/remove.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/rename.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/restart.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/rm.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/start.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/status.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/project/stop.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/protocol/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/protocol/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/protocol/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/protocol/set.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/scope/help.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/scope/help.txt +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/scope/link-local.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/scope/list.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/scope/remove.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/scope/rm.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/scope/set.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/scope/unset.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/scope/use.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cmd/view/add.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/collection/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/collection/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/collection/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/collection/src/main.js +241 -241
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/config.js +29 -29
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cron/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cron/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/cron/src/main.js +3 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/domain/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/domain/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/domain/dist/public_suffix_list.dat +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/domain/exemples/backend.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/domain/exemples/frontend.html +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/domain/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/domain/src/main.js +5 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/generator/index.js +3 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/index.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/inherits/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/inherits/README.md +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/inherits/example/protected_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/inherits/example/simple_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/inherits/package.json +2 -3
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/inherits/src/main.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/src/containers/default/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/src/containers/file/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/src/containers/mq/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/src/containers/mq/listener.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/src/containers/mq/speaker.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/src/helper.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/logger/src/main.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/math/index.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/merge/README.md +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/merge/example/merge.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/merge/example/merge_and_preserve_first.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/merge/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/merge/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/model.js +1 -1
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/proc.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/routing/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/routing/build.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/routing/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/routing/src/main.js +12 -6
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/shell.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/swig-filters/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/swig-filters/package.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/swig-filters/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/url/README.md +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/url/index.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/url/mocks.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/url/routing.json +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/url/test.js +0 -0
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/lib/validator.js +2 -2
- package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/package.json +1 -1
- package/package.json +2 -2
- package/services/src/proxy/controllers/setup.js +14 -14
- package/utils/helper.js +6 -0
- package/framework/v0.1.1-alpha.166/VERSION +0 -1
|
File without changes
|
package/framework/{v0.1.1-alpha.166 → v0.1.1-alpha.168}/core/asset/plugin/dist/gina.min.css.map
RENAMED
|
File without changes
|
|
@@ -63,7 +63,7 @@ typeof K[0][V]&&'object'==typeof U[0]&&'undefined'!=typeof U[0][V]){E=Array.isAr
|
|
|
63
63
|
for(m=0;m<K;++m)a:for(p=ya||0,da=oa.length;p<da;++p)if(null!=oa[p]&&'undefined'!=typeof oa[p][V]&&oa[p][V]!==E[m][V]){if(-1==Y.indexOf(oa[p][V])){E.push(oa[p]);Y.push(oa[p][V]);ya=p+1;K<da&&++K;break a}}else if(null!=oa[p]&&'undefined'!=typeof oa[p][V]&&oa[p][V]===E[m][V])ya=p+1;else break a;return E}for(m=0;m<K.length;++m)if(-1<U.indexOf(K[m])&&oa)U.splice(U.indexOf(K[m]),1,K[m]);else if('undefined'==typeof E[m]&&'object'==typeof K[m])for(S in E=U,'undefined'==typeof E[m]&&(E[m]={}),K[m])E[m].hasOwnProperty(S)||
|
|
64
64
|
(E[m][S]=K[m][S]);else!oa&&-1<E.indexOf(K[m])&&'number'==typeof K[m]&&K[m]!==E[m]?E.push(K[m]):'undefined'==typeof U[m]||/null/i.test(U[m])||'undefined'==typeof U[m][V]||'undefined'==typeof K[m]||'undefined'==typeof K[m][V]||U[m][V]!=K[m][V]?-1==E.indexOf(K[m])&&E.push(K[m]):E[m]=oa?K[m]:U[m]}if(0<E.length&&0<U.length||0==E.length&&0==U.length)return E};ha.prototype.setKeyComparison=function(K){this.keyComparison=K};var Ca=function(K){if(!K||'[object Object]'!=={}.toString.call(K)||K.nodeType||K.setInterval)return!1;
|
|
65
65
|
var U={}.hasOwnProperty,oa=U.call(K,'constructor');U='undefined'!=typeof K.constructor?U.call(K.constructor.prototype,'isPrototypeOf'):!1;return!K.constructor||oa||U?!0:!1};O.setKeyComparison=function(K){ha.keyComparison=K;return O};O.getKeyComparison=function(){var K=ha.keyComparison||'id';ha.keyComparison='id';return K};return O}
|
|
66
|
-
'undefined'!==typeof module&&module.exports?('undefined'==typeof JSON.clone&&require('../../../helpers'),module.exports=Merge()):'function'===typeof define&&define.amd&&define('
|
|
66
|
+
'undefined'!==typeof module&&module.exports?('undefined'==typeof JSON.clone&&require('../../../helpers'),module.exports=Merge()):'function'===typeof define&&define.amd&&define('lib/merge',[],function(){return Merge()});function registerEvents(E,O){'undefined'==typeof gina&&'undefined'!=typeof window.gina&&(gina=window.gina);gina.registeredEvents[E]=O}function mergeEventProps(E,O){for(let ha in O)'undefined'==typeof E[ha]&&(E[ha]=O[ha]);return E}
|
|
67
67
|
function addListener(E,O,ha,Ca){var K=function(Y,V,m,S){'undefined'!=typeof Y.event&&Y.event.isTouchSupported&&/^(click|mouseout|mouseover)/.test(m)&&-1==Y.event[m].indexOf(V)&&(Y.event[m][Y.event[m].length]=V);'undefined'!=typeof V&&null!=V?V.addEventListener?V.addEventListener(m,S,!1):V.attachEvent&&V.attachEvent('on'+m,S):Y.customEvent.addListener(m,S);gina.events[m]='undefined'!=typeof V.id&&'object'!=typeof V.id?V.id:V.getAttribute('id')},U=0,oa=null;if(Array.isArray(ha))for(oa=ha.length;U<oa;U++)K(E,
|
|
68
68
|
O,ha[U],Ca);else if(Array.isArray(O))for(U=0,oa=O.length;U<oa;U++){let Y=/\.$/.test(ha)?ha+O[U].id:ha;K(E,O[U],Y,Ca)}else ha=/\.$/.test(ha)?ha+O.id:ha,K(E,O,ha,Ca)}
|
|
69
69
|
function triggerEvent(E,O,ha,Ca,K){if('undefined'!=typeof O&&null!=O){E=!1;if(jQuery){var U=jQuery.fn.jquery.split(/\./);U=2<U.length?U.splice(0,2).join('.'):U.join('.');U='1.7'>=U?jQuery(O).data('events'):jQuery._data(jQuery(O)[0],'events');if(U='undefined'!=typeof U&&'undefined'!=typeof U[ha]?!0:!1)U=jQuery.Event(ha),jQuery(O).trigger(U,Ca),E=U.isDefaultPrevented()}window.CustomEvent||document.createEvent?(window.CustomEvent?U=new CustomEvent(ha,{detail:Ca,bubbles:!0,cancelable:!0,target:O}):(U=
|
|
@@ -96,11 +96,11 @@ typeof Date[K]&&Object.defineProperty(Date.prototype,K,{writable:!1,enumerable:!
|
|
|
96
96
|
'inArray',{writable:!1,enumerable:!1,configurable:!0,value:function(K){return-1!=this.indexOf(K)}});'undefined'==typeof Array.from&&Object.defineProperty(Array.prototype,'from',{writable:!1,enumerable:!1,configurable:!0,value:function(K){for(var U={},oa=[],Y=K.length,V=0,m=0;m<Y;m++){var S=K[m];1!==U[S]&&(U[S]=1,oa[V++]=S)}return oa}});'undefined'==typeof Object.count&&Object.defineProperty(Object.prototype,'count',{writable:!0,enumerable:!1,configurable:!0,value:function(){var K=0;try{this instanceof
|
|
97
97
|
String&&JSON.parse(this);for(var U in this)this.hasOwnProperty(U)&&++K;return K}catch(oa){return K}}});'undefined'!=typeof global&&'undefined'==typeof global.__stack&&Object.defineProperty(global,'__stack',{configurable:!0,get:function(){var K=Error.prepareStackTrace;Error.prepareStackTrace=function(oa,Y){return Y};var U=Error();Error.captureStackTrace(U,arguments.callee);U=U.stack;Error.prepareStackTrace=K;return U}})}
|
|
98
98
|
'undefined'!==typeof module&&module.exports?module.exports=PrototypesHelper:'function'===typeof define&&define.amd&&define('helpers/prototypes',[],function(){return PrototypesHelper});
|
|
99
|
-
function DateFormatHelper(){var E='undefined'!==typeof module&&module.exports?!1:!0,O=E?require('
|
|
99
|
+
function DateFormatHelper(){var E='undefined'!==typeof module&&module.exports?!1:!0,O=E?require('lib/merge'):require('./../lib/merge');var ha='en-US';var Ca='en';var K={'default':'ddd mmm dd yyyy HH:MM:ss',shortDate:'m/d/yy',shortDate2:'mm/dd/yyyy',mediumDate:'mmm d, yyyy',longDate:'mmmm d, yyyy',fullDate:'dddd, mmmm d, yyyy',cookieDate:'GMT:ddd, dd mmm yyyy HH:MM:ss',logger:'yyyy mmm dd HH:MM:ss',shortTime:'h:MM TT',shortTime2:'h:MM',mediumTime:'h:MM:ss TT',mediumTime2:'h:MM:ss',longTime:'h:MM:ss TT Z',
|
|
100
100
|
longTime2:'h:MM:ss TT',concatenatedDate:'yyyymmdd',isoDate:'yyyy-mm-dd',isoTime:'HH:MM:ss',shortIsoTime:'HH:MM',longIsoTime:'HH:MM:ss TT',isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",longIsoDateTime:"yyyy-mm-dd'T'HH:MM:ss.L",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};var U={en:{dayNames:'Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday'.split(' '),monthNames:'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December'.split(' '),
|
|
101
101
|
masks:{'default':'ddd mmm dd yyyy HH:MM:ss',shortDate:'m/d/yy',shortDate2:'mm/dd/yyyy',mediumDate:'mmm d, yyyy',longDate:'mmmm d, yyyy',fullDate:'dddd, mmmm d, yyyy'}},fr:{dayNames:'dim lun mar mer jeu ven sam dimanche lundi mardi mercredi jeudi vendredi samedi'.split(' '),monthNames:'Jan F\u00e9v Mar Avr Mai Jui Juil Ao\u00fb Sep Oct Nov D\u00e9c Janvier F\u00e9vrier Mars Avril Mai Juin Juillet Ao\u00fbt Septembre Octobre Novembre D\u00e9cembre'.split(' '),masks:{'default':'ddd mmm dd yyyy HH:MM:ss',
|
|
102
102
|
shortDate:'d/m/yy',shortDate2:'dd/mm/yyyy',mediumDate:'d mmm, yyyy',longDate:'d mmmm, yyyy',fullDate:'dddd, d mmmm, yyyy'}}};var oa=function(m,S){if(S instanceof Date)return m=m.getTime(),S=S.getTime(),Math.round(Math.abs(m-S)/864E5);throw Error('dateTo is not instance of Date() !');},Y=['us','eu','corporate'],V=function(m){d=new Date(m.getFullYear(),m.getMonth(),m.getDate());m=d.getDay()||7;d.setDate(d.getDate()+4-m);m=new Date(Date.parse(d.getFullYear(),0,1));return Math.ceil(((d-m)/864E5+1)/7)};
|
|
103
|
-
return{setCulture:function(m,S){/\-/.test(S)?(ha=S,Ca=S.split(/\-/)[0]):Ca=S;return this},format:function(m,S,p){var da=U[Ca]||U.en,ya=null;try{ya=O(da.masks,K)}catch(R){O=(E='undefined'!==typeof module&&module.exports?!1:!0)?require('
|
|
103
|
+
return{setCulture:function(m,S){/\-/.test(S)?(ha=S,Ca=S.split(/\-/)[0]):Ca=S;return this},format:function(m,S,p){var da=U[Ca]||U.en,ya=null;try{ya=O(da.masks,K)}catch(R){O=(E='undefined'!==typeof module&&module.exports?!1:!0)?require('lib/merge'):require('./../lib/merge'),ya=O(da.masks,K)}'undefined'!=typeof U[ha]&&(da=U[ha],'undefined'!=typeof U[ha].mask&&(ya=O(da.masks,K)));var N=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
|
|
104
104
|
L=/[^-+\dA-Z]/g,C=function(R,sa){R=String(R);for(sa=sa||2;R.length<sa;)R='0'+R;return R};1!=arguments.length||'[object String]'!=Object.prototype.toString.call(m)||/\d/.test(m)||(S=m,m=void 0);m=m?new Date(m):new Date;if(isNaN(m))throw SyntaxError('invalid date');S=String(ya[S]||S||ya['default']);'UTC:'==S.slice(0,4)&&(S=S.slice(4),p=!0);var B=p?'getUTC':'get';ya=m[B+'Date']();var u=m[B+'Day'](),z=m[B+'Month'](),y=m[B+'FullYear'](),J=m[B+'Hours'](),q=m[B+'Minutes'](),v=m[B+'Seconds']();B=m[B+'Milliseconds']();
|
|
105
105
|
var F=p?0:m.getTimezoneOffset(),H={d:ya,dd:C(ya),ddd:da.dayNames[u],dddd:da.dayNames[u+7],m:z+1,mm:C(z+1),mmm:da.monthNames[z],mmmm:da.monthNames[z+12],yy:String(y).slice(2),yyyy:y,h:J%12||12,hh:C(J%12||12),H:J,HH:C(J),M:q,MM:C(q),s:v,ss:C(v),l:C(B,3),L:C(B),t:12>J?'a':'p',tt:12>J?'am':'pm',T:12>J?'A':'P',TT:12>J?'AM':'PM',Z:p?'UTC':(String(m).match(N)||['']).pop().replace(L,''),o:(0<F?'-':'+')+C(100*Math.floor(Math.abs(F)/60)+Math.abs(F)%60,4),S:['th','st','nd','rd'][3<ya%10?0:(10!=ya%100-ya%10)*
|
|
106
106
|
ya%10]};return S.replace(/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,function(R){return R in H?H[R]:R.slice(1,R.length-1)})},countDaysTo:oa,getDaysTo:function(m,S,p){if(S instanceof Date){S=oa(m,S);var da=m.getMonth(),ya=m.getFullYear();m=m.getDate()+1;m=new Date(ya,da,m);da=[];for(ya=0;ya<S;++ya)'undefined'!=typeof p?da.push((new Date(m)).format(p)):da.push(new Date(m)),m.setDate(m.getDate()+1);return da||[]}throw Error('dateTo is not instance of Date() !');},getDaysInMonth:function(m){var S=
|
|
@@ -305,7 +305,7 @@ a?this:this.each(function(G){b.offset.setOffset(this,a,G)});var c,g,k={top:0,lef
|
|
|
305
305
|
b.fn[a]=function(k){return Ya(this,function(l,D,G){var Z=Ob(l);return void 0===G?Z?c in Z?Z[c]:Z.document.documentElement[D]:l[D]:void(Z?Z.scrollTo(g?b(Z).scrollLeft():G,g?G:b(Z).scrollTop()):l[D]=G)},a,k,arguments.length,null)}});b.each(['top','left'],function(a,c){b.cssHooks[c]=ea(e.pixelPosition,function(g,k){return k?(k=sc(g,c),Lb.test(k)?b(g).position()[c]+'px':k):void 0})});b.each({Height:'height',Width:'width'},function(a,c){b.each({padding:'inner'+a,content:c,'':'outer'+a},function(g,k){b.fn[k]=
|
|
306
306
|
function(l,D){var G=arguments.length&&(g||'boolean'!=typeof l),Z=g||(!0===l||!0===D?'margin':'border');return Ya(this,function(qa,Aa,ta){var Sa;return b.isWindow(qa)?qa.document.documentElement['client'+a]:9===qa.nodeType?(Sa=qa.documentElement,Math.max(qa.body['scroll'+a],Sa['scroll'+a],qa.body['offset'+a],Sa['offset'+a],Sa['client'+a])):void 0===ta?b.css(qa,Aa,Z):b.style(qa,Aa,ta,Z)},c,G?l:void 0,G,null)}})});b.fn.extend({bind:function(a,c,g){return this.on(a,null,c,g)},unbind:function(a,c){return this.off(a,
|
|
307
307
|
null,c)},delegate:function(a,c,g,k){return this.on(c,a,g,k)},undelegate:function(a,c,g){return 1===arguments.length?this.off(a,'**'):this.off(c,a||'**',g)}});b.fn.size=function(){return this.length};b.fn.andSelf=b.fn.addBack;'function'==typeof define&&define.amd&&define('jquery',[],function(){return b});var be=E.jQuery,ce=E.$;return b.noConflict=function(a){return E.$===b&&(E.$=ce),a&&E.jQuery===b&&(E.jQuery=be),b},O||(E.jQuery=E.$=b),b});if('undefined'!==typeof module&&module.exports)var lib=require('../../index');
|
|
308
|
-
function Collection(E,O){var ha='undefined'!==typeof module&&module.exports?!1:!0,Ca=ha?require('vendor/uuid'):require('uuid'),K=ha?require('
|
|
308
|
+
function Collection(E,O){var ha='undefined'!==typeof module&&module.exports?!1:!0,Ca=ha?require('vendor/uuid'):require('uuid'),K=ha?require('lib/merge'):require('../../../lib/merge'),U={isCaseSensitive:{false:{re:'^%s$',modifiers:'i'},true:{re:'^%s$'}}},oa=!1,Y=!1,V=null;ha={useLocalStorage:!1,locale:'en',searchOptionRules:U};O='object'==typeof O?K(O,ha):ha;var m=['not null'],S=function(C){try{return eval(C)}catch(B){throw Error('Could not evaluate condition `'+C+'`.\n'+B.stack);}};if('undefined'==
|
|
309
309
|
typeof E||''==E||null==E)E=[];if(!Array.isArray(E))throw Error('`new Collection([content] [, options] )`: `content` argument must be an Array !');E=E?JSON.clone(E):[];for(var p=[],da=ha=0,ya=E.length;da<ya;++da)E[da]||(E[da]={}),E[da]._uuid=Ca.v4(),p[ha]=E[da]._uuid,++ha;var N=E;N.setSearchOption=function(){if(!arguments.length)throw Error('searchOption cannot be left blank');if(3<arguments.length||3>arguments.length&&1<arguments.length)throw Error('argument length mismatch');var C=0,B=arguments.length;
|
|
310
310
|
if(1==arguments.length){if('object'!=typeof arguments[0])throw Error('searchOption must be an object');for(var u in arguments[0])if('undefined'==typeof U[u])throw Error(arguments[1]+' is not an allowed searchOption !');V=arguments[0]}else for(V||={};C<B;++C){if('undefined'==typeof U[arguments[1]])throw Error(arguments[1]+' is not an allowed searchOption !');'undefined'==typeof V[arguments[0]]&&(V[arguments[0]]={});/true|false/i.test(arguments[2])?V[arguments[0]][arguments[1]]=/true/i.test(arguments[2])?
|
|
311
311
|
!0:!1:V[arguments[0]][arguments[1]]=arguments[2]}return N};N.find=function(){oa=!1;'boolean'==typeof arguments[arguments.length-1]&&(oa=arguments[arguments.length-1],delete arguments[arguments.length-1],--arguments.length);var C=null,B=null,u=null;try{C=JSON.stringify(arguments),B=JSON.parse(C),u=B.count()}catch(pa){throw Error('filter must be an object\n'+pa.stack);}if('undefined'!=typeof B&&0<u){1<u&&(oa=!0);u=C=null;var z=0,y=Array.isArray(this)?this:JSON.clone(E),J=[],q='',v=null,F=V,H=O.searchOptionRules,
|
|
@@ -333,8 +333,8 @@ try{var B=Object.keys(C)[0],u={};u[B]='desc';return N.find(C).orderBy(u).limit(1
|
|
|
333
333
|
sa,H[R]=v[sa],++R;y=function(T,ca,ea,Ja,fa){var pa='desc'==Ja[fa]?1:0,Ea,Ka=Ea=null;return'string'==typeof T[ea[fa]]&&''!=T[ea[fa]]?(Ea=T[ea[fa]].localeCompare(ca[ea[fa]]),0==pa&&0!=Ea?0>Ea?-1:1:0!=Ea?0>Ea?1:-1:ea.length-1>fa?y(T,ca,ea,Ja,fa+1):0):'number'==typeof T[ea[fa]]||'number'==typeof ca[ea[fa]]?(Ea=(''+T[ea[fa]]).localeCompare(''+ca[ea[fa]],void 0,{numeric:!0}),0==pa&&0!=Ea?0>Ea?-1:1:0!=Ea?0>Ea?1:-1:ea.length-1>fa?y(T,ca,ea,Ja,fa+1):0):'boolean'==typeof T[ea[fa]]||'boolean'==typeof ca[ea[fa]]?
|
|
334
334
|
('boolean'==typeof T[ea[fa]]&&(Ea=T[ea[fa]]?1:0),'boolean'==typeof ca[ea[fa]]&&(Ka=ca[ea[fa]]?1:0),Ea>Ka?0==pa?1:-1:Ea<Ka?0==pa?-1:1:ea.length-1>fa?y(T,ca,ea,Ja,fa+1):0):T[ea[fa]]>ca[ea[fa]]?0==pa?1:-1:T[ea[fa]]<ca[ea[fa]]?0==pa?-1:1:ea.length-1>fa?y(T,ca,ea,Ja,fa+1):0};return q.sort(function(T,ca){return y(T,ca,F,H,0)})};Array.isArray(C)||1<C.count()?z=z(B,C):(J=Object.keys(C)[0],z=C[J],z=u[z](J,B));z.find=N.find;z.findOne=N.findOne;z.limit=N.limit;z.notIn=N.notIn;z.insert=N.insert;z.update=N.update;
|
|
335
335
|
z.replace=N.replace;z.delete=N.delete;z.orderBy=N.orderBy;z.max=N.max;z.toRaw=N.toRaw;z.filter=N.filter;return z};N.toRaw=function(){for(var C=Array.isArray(this)?this:E,B=0,u=C.length;B<u;++B)C[B]._uuid&&delete C[B]._uuid;return JSON.clone(C)};N.filter=function(C){if('undefined'==typeof C)throw Error('`filter` parametter must be a string or an array.');var B=Array.isArray(this)?this:E;if(!B.length)return[];var u=0,z=B.length,y=[],J=0;if(Array.isArray(C))for(var q,v=C.length,F;u<z;++u){F=!1;for(q=
|
|
336
|
-
0;q<v;++q)'undefined'!=typeof B[u][C[q]]&&('undefined'==typeof y[J]&&(y[J]={}),y[J][C[q]]=B[u][C[q]],F=!0);F&&++J}else for(;u<z;++u)'undefined'!=typeof B[u][C]&&('undefined'==typeof y[J]&&(y[J]={}),y[J][C]=B[u][C],++J);return JSON.clone(y)};return N}'undefined'!==typeof module&&module.exports?module.exports=Collection:'function'===typeof define&&define.amd&&define('
|
|
337
|
-
function FormValidatorUtil(E,O,ha,Ca){var K='undefined'!==typeof module&&module.exports?!1:!0,U=K?require('
|
|
336
|
+
0;q<v;++q)'undefined'!=typeof B[u][C[q]]&&('undefined'==typeof y[J]&&(y[J]={}),y[J][C[q]]=B[u][C[q]],F=!0);F&&++J}else for(;u<z;++u)'undefined'!=typeof B[u][C]&&('undefined'==typeof y[J]&&(y[J]={}),y[J][C]=B[u][C],++J);return JSON.clone(y)};return N}'undefined'!==typeof module&&module.exports?module.exports=Collection:'function'===typeof define&&define.amd&&define('lib/collection',[],function(){return Collection});
|
|
337
|
+
function FormValidatorUtil(E,O,ha,Ca){var K='undefined'!==typeof module&&module.exports?!1:!0,U=K?require('lib/merge'):require('../../../../../lib/merge');K||require('../../../../../helpers');K&&require('helpers/dateFormat');var oa=K?require('lib/routing'):require('../../../../../lib/routing'),Y=function(){var u=!1,z=null;K?K&&'undefined'!=typeof gina.forms&&(z=gina.forms):z=getContext('gina').forms||null;z&&'undefined'!=typeof z.validators&&(u=!0);return u},V={errors:{},keys:{'%l':'label','%n':'name',
|
|
338
338
|
'%s':'size'},data:{},excluded:[],errorLabels:{is:'Condition not satisfied',isEmail:'A valid email is required',isRequired:'Cannot be left empty',isBoolean:'Must be a valid boolean',isNumber:'Must be a number: allowed values are integers or floats',isNumberLength:'Must contain %s characters',isNumberMinLength:'Should be at least %s characters',isNumberMaxLength:'Should not be more than %s characters',isInteger:'Must be an integer',isIntegerLength:'Must have %s characters',isIntegerMinLength:'Should be at least %s characters',
|
|
339
339
|
isIntegerMaxLength:'Should not be more than %s characters',toInteger:'Could not be converted to integer',isFloat:'Must be a proper float',isFloatException:'Float exception found: %n',toFloat:'Could not be converted to float',toFloatNAN:'Value must be a valid number',isDate:'Must be a valid Date',isString:'Must be a string',isStringLength:'Must have %s characters',isStringMinLength:'Should be at least %s characters',isStringMaxLength:'Should not be more than %s characters',isJsonWebToken:'Must be a valid JSON Web Token',
|
|
340
340
|
query:'Must be a valid response',isApiError:'Condition not satisfied'}},m=null;if(E)m=U(JSON.clone(E),m),V.data=U(JSON.clone(E),V.data);else throw Error('missing data param');var S=function(u,z){var y=null;for(let J in Ca)if(Ca[J].name===z){y=(new DOMParser).parseFromString(u.innerHTML,'text/html').getElementById(Ca[J].id);break}if(y)return y;throw Error('Field `'+z+'` not found in fieldsSet');},p=function(u){var z;var y='';var J=u.length;for(z=0;z<J;){var q=u[z++];switch(q>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:y+=
|
|
@@ -378,8 +378,8 @@ if(v instanceof Date)v=v.format(q);else{try{R=q.match(/[^\/\- ]+/g)}catch(Ja){th
|
|
|
378
378
|
'/validators/'+q+'/main.js',V.errorLabels[q]='Condition not satisfied',K?(z=p(gina.forms.validators[q].data),z=z.replace(/(\)\s+\{|\)\{){1}/,'$&\n\tvar validationContext = this.getValidationContext(),isGFFCtx = validationContext.isGFFCtx,self = validationContext.self,local = validationContext.local,replace = validationContext.replace;')):z=gina.forms.validators[q].toString(),m[u][q]=eval('('+z+')\n//# sourceURL='+q+'.js')}catch(q){throw Error('[UserFormValidator] Could not evaluate: `'+y+'`\n'+q.stack);
|
|
379
379
|
}}};for(let u in m)C(u,m[u]);m.addField=function(u,z){'undefined'==typeof m[u]&&C(u,z)};m.isValid=function(){return 0<m.getErrors().count()?!1:!0};m.setErrors=function(u){if(!u)return{};for(var z in m)if('object'==typeof m[z]){for(var y in m[z])'object'==typeof u[z]&&'undefined'!=typeof u[z][y]&&('undefined'!=typeof m[z].valid&&/^true$/i.test(m[z].valid)?delete u[z][y]:('undefined'==typeof m[z].errors&&(m[z].errors={}),m[z].errors[y]=u[z][y]));('undefined'==typeof m[z].errors&&'undefined'!=typeof u[z]||
|
|
380
380
|
'undefined'!=typeof m[z].errors&&0==m[z].errors.count()&&'undefined'!=typeof u[z])&&delete u[z]}return u};m.getErrors=function(u){var z={};if('undefined'!=typeof u)return'undefined'!=typeof m[u]&&m[u]&&'undefined'!=typeof m[u].errors&&0<m[u].errors.count()&&(z[u]=m[u].errors),z;for(var y in m)'object'==typeof m[y]&&'undefined'!=typeof m[y].errors&&0<m[y].errors.count()&&(z[y]=m[y].errors);return z};m.toData=function(){if(0<V.excluded.length)for(var u=0,z=V.excluded.length;u<z;++u)'undefined'!=typeof V.data[V.excluded[u]]&&
|
|
381
|
-
delete V.data[V.excluded[u]];return V.data};var B=function(u,z){var y=u.match(/%[a-z]+/gi);if(y)for(var J=0,q=y.length;J<q;++J)u=u.replace(new RegExp(y[J],'g'),z[V.keys[y[J]]]);return u};m.setErrorLabels=function(u){'undefined'!=typeof u&&(V.errorLabels=U(u,V.errorLabels))};return m}'undefined'!==typeof module&&module.exports?module.exports=FormValidatorUtil:'function'===typeof define&&define.amd&&define('
|
|
382
|
-
function Routing(){var E='undefined'!==typeof module&&module.exports?!1:!0,O={allowedMethods:['get','post','put','delete'],reservedParams:['controle','file','title','namespace','path'],notFound:{}};O.allowedMethodsString=O.allowedMethods.join(',');var ha=null,Ca=null,K=null;E?(Ca&&'function'==typeof Ca||(Ca=require('
|
|
381
|
+
delete V.data[V.excluded[u]];return V.data};var B=function(u,z){var y=u.match(/%[a-z]+/gi);if(y)for(var J=0,q=y.length;J<q;++J)u=u.replace(new RegExp(y[J],'g'),z[V.keys[y[J]]]);return u};m.setErrorLabels=function(u){'undefined'!=typeof u&&(V.errorLabels=U(u,V.errorLabels))};return m}'undefined'!==typeof module&&module.exports?module.exports=FormValidatorUtil:'function'===typeof define&&define.amd&&define('lib/form-validator',[],function(){return FormValidatorUtil});
|
|
382
|
+
function Routing(){var E='undefined'!==typeof module&&module.exports?!1:!0,O={allowedMethods:['get','post','put','delete'],reservedParams:['controle','file','title','namespace','path'],notFound:{}};O.allowedMethodsString=O.allowedMethods.join(',');var ha=null,Ca=null,K=null;E?(Ca&&'function'==typeof Ca||(Ca=require('lib/merge')),K&&'function'==typeof K||(K=require('lib/form-validator'))):(require('fs'),require('util'),require('../../inherits'),Ca=require('../../merge'),ha=require(__dirname+'/../../../core/plugins')||
|
|
383
383
|
getContext('gina').plugins,K=ha.Validator);O.getUrlProps=function(m,S){var p={};if(E){var da=window.gina.config;p.hostname=da.hostname;'undefined'!=typeof m&&(m=routing.getRoute('webroot@'+m),p.hostname=m.hostname,p.host=m.host,p.webroot=m.webroot)}else da=getContext('gina').config,'undefined'!=typeof getContext('argvFilename')&&(da.getRouting=getContext('gina').Config.instance.getRouting),'undefined'==typeof m&&(m=da.bundle),'undefined'==typeof S&&(S=da.env),p.hostname=da.envConf[m][S].hostname,
|
|
384
384
|
p.host=da.envConf[m][S].host,p.webroot=da.envConf[m][S].server.webroot;return p};O.compareUrls=async function(m,S,p,da,ya){'undefined'==typeof p&&(p={routing:{}});if(/,/.test(S)){var N=0;S=S.split(/,/g);for(var L=S.length,C={past:!1,request:p};N<L&&!C.past;)C=await U(m,S[N],p,da,ya),++N;return C}return await U(m,S,p,da,ya)};var U=async function(m,S,p,da,ya){var N=m.url.split(/\//);S=S.split(/\//);var L=0,C=0,B=S.length,u=0,z={},y=0,J=p.method.toLowerCase(),q=m.method.toLowerCase(),v=!1;if('undefined'!=
|
|
385
385
|
typeof m.requirements&&/get|delete/i.test(J)&&'undefined'!=typeof p[J]||'undefined'!=typeof m.requirements&&/get/i.test(J)&&/delete/i.test(q)){/get/i.test(J)&&/delete/i.test(q)&&(J=q);if(/^(delete)$/i.test(J)&&N.length===S.length){'undefined'==typeof p[J]&&(p[J]={});for(let R=0,sa=S.length;R<sa;R++)if(N[R]===S[R])++u;else if(q=S[R].substr(1),'undefined'!=typeof m.requirements[q]){q=m.requirements[q];if(/^\//.test(q))q=q.substr(1,q.lastIndexOf('/')-1);else if(/^validator::/.test(q)&&await oa(S[R],
|
|
@@ -407,9 +407,9 @@ N.test(B)&&(B=da.method),'undefined'==typeof C[H].method||N.test(B))){q={method:
|
|
|
407
407
|
u&&(m+=u),L.url=m,L.toUrl=function(R){var sa=this.webroot,T=this.hostname,ca=this.url;this.url='undefined'!=typeof R&&1==R?ca.replace(sa,'/'):ca;return T+this.url},L;if(E){u=!1;if('#'==m&&/GET/i.test(p)&&y||/^404:/.test(m))m=location.pathname,u=!0;'undefined'==typeof O.notFound&&(O.notFound={});C=null;L='[ RoutingHelper::getRouteByUrl(rule[, bundle, method]) ] : route [ %r ] is called but not found inside your view: `'+m+'` !';if((C=(C=gina.hasPopinHandler&&gina.popinIsBinded?gina.popin.getActivePopin().target.innerHTML.match(/404:\[\w+\][a-z 0-9-_@]+/):
|
|
408
408
|
document.body.innerHTML.match(/404:\[\w+\][a-z 0-9-_@]+/))&&0<C.length?C[0]:null)&&y&&u)return u=C.match(/\[\w+\]/)[0],C=C.replace('404:'+u,u.replace(/\[|\]/g,'')+'::'),L=L.replace(/%r/,C.replace(/404:\s+/,'')),'undefined'==typeof O.notFound[C]?O.notFound[C]={count:1,message:L}:y&&'undefined'!=typeof O.notFound[C]&&++O.notFound[C].count,!1;if((u=gina.config.reverseRouting[m]||null)&&'undefined'!=typeof u&&u.split(/@(.+)$/)[1]==S)return C=u,'undefined'==typeof O.notFound[C]?(L=L.replace(/%r/,p.toUpperCase()+
|
|
409
409
|
'::'+u),O.notFound[C]={count:1,message:L}):y&&'undefined'!=typeof O.notFound[C]&&++O.notFound[C].count,!1;C=O.compareUrls(q,m,da)||null;C.past&&y&&(C=p.toUpperCase()+'::'+C.request.routing.rule,'undefined'==typeof O.notFound[C]?L=L.replace(/%r/,C):++O.notFound[C].count);return!1}console.warn(Error('[ RoutingHelper::getRouteByUrl(rule[, bundle, method, request]) ] : route not found for url: `'+m+'` !').stack);return!1};return O}
|
|
410
|
-
'undefined'!==typeof module&&module.exports?module.exports=Routing():'function'===typeof define&&define.amd&&define('
|
|
410
|
+
'undefined'!==typeof module&&module.exports?module.exports=Routing():'function'===typeof define&&define.amd&&define('lib/routing',['require','lib/form-validator','lib/merge'],function(){return Routing()});
|
|
411
411
|
function StoragePlugin(E){function O(L){S=JSON.parse(V.getItem(this.bucket));'undefined'==typeof S[L]&&(S[L]=[],V.setItem(this.bucket,JSON.stringify(S)),S=JSON.parse(V.getItem(this.bucket)));m[L]={_collection:L,_bucket:this.bucket};m[L]=Ca(m[L],ya);return m[L]}function ha(L){if('object'!==typeof L)throw Error('filter must be an object');var C=S[this._collection],B=L.count(),u=0,z=null;if(0==B)return null;for(var y in C)for(var J in L){var q='boolean'!=typeof L[J]?L[J].toLocaleLowerCase():L[J];L[J]&&
|
|
412
|
-
-1<p.indexOf(q)&&'not null'==q&&'undefined'!=typeof C[y][J]&&'object'!==typeof C[y][J]&&C[y][J]===L[J]&&'null'!=C[y][J]&&'undefined'!=C[y][J]?0>z.indexOf(C[y][J])&&(++u,u===B&&(z=C[y],z._index=y,z._collection=this._collection,z._bucket=this._bucket)):'undefined'!=typeof C[y][J]&&'object'!==typeof C[y][J]&&C[y][J]===L[J]&&(++u,u===B&&(z=C[y],z._index=y,z._collection=this._collection,z._bucket=this._bucket,z._filter=L))}z&&(z.save=N);return z}var Ca=Ca||require('
|
|
412
|
+
-1<p.indexOf(q)&&'not null'==q&&'undefined'!=typeof C[y][J]&&'object'!==typeof C[y][J]&&C[y][J]===L[J]&&'null'!=C[y][J]&&'undefined'!=C[y][J]?0>z.indexOf(C[y][J])&&(++u,u===B&&(z=C[y],z._index=y,z._collection=this._collection,z._bucket=this._bucket)):'undefined'!=typeof C[y][J]&&'object'!==typeof C[y][J]&&C[y][J]===L[J]&&(++u,u===B&&(z=C[y],z._index=y,z._collection=this._collection,z._bucket=this._bucket,z._filter=L))}z&&(z.save=N);return z}var Ca=Ca||require('lib/merge');O=O||require('lib/collection');
|
|
413
413
|
var K=K||require('vendor/uuid'),U=U||require('helpers/dateFormat'),oa={bucket:'default'},Y={},V=null,m={},S={},p=['not null'],da={bucket:void 0,drop:function(){V.removeItem(oa.bucket);Y=null;for(var L in this)delete this[L];return Y},Collection:O},ya={insert:function(L){L._id=K.v1();L._createdAt=(new Date).format('isoDateTime');L._updatedAt=(new Date).format('isoDateTime');S[this._collection][S[this._collection].length]=L;V.setItem(this._bucket,JSON.stringify(S))},find:function(L,C){if(!L)return S[this._collection];
|
|
414
414
|
if('object'!==typeof L)throw Error('filter must be an object');C=S[this._collection];L.count();var B=0,u=[],z;for(z in C)for(var y in L){var J='boolean'!=typeof L[y]?L[y].toLocaleLowerCase():L[y];L[y]&&-1<p.indexOf(J)&&'not null'==J&&'undefined'!=typeof C[z][y]&&'object'!==typeof C[z][y]&&'null'!=C[z][y]&&'undefined'!=C[z][y]?0>u.indexOf(C[z][y])&&(u[B]=C[z][y],++B):'undefined'!=typeof C[z][y]&&'object'!==typeof C[z][y]&&C[z][y]===L[y]&&(u[B]=C[z],++B)}return u},findOne:ha,update:null,'delete':function(L){if('object'!==
|
|
415
415
|
typeof L)throw Error('filter must be an object');var C=JSON.clone(S[this._collection]),B=0,u=[],z;for(z in C)for(var y in L)L[y]&&-1<p.indexOf(L[y].toLocaleLowerCase())&&'not null'==L[y].toLowerCase()&&'undefined'!=typeof C[z][y]&&'object'!==typeof C[z][y]&&'null'!=C[z][y]&&'undefined'!=C[z][y]?0>u.indexOf(C[z][y])&&(u[B]=C[z][y],delete S[this._collection][z][y],++B):'undefined'!=typeof C[z][y]&&'object'!==typeof C[z][y]&&C[z][y]===L[y]&&(u[B]=C[z],S[this._collection].splice(z,1),++B);return 0<u.length?
|
|
@@ -417,11 +417,11 @@ typeof L)throw Error('filter must be an object');var C=JSON.clone(S[this._collec
|
|
|
417
417
|
delete C[u][B].save;delete C[u][B]._filter;if(L&&'object'==typeof C[u][B]){var J=function(v,F){for(var H=0,R=v.length;H<R;++H)'object'!=typeof F[H]||'undefined'==typeof v[H]||Array.isArray(v[H])?Array.isArray(v[H])?J(v[H],F[H]):'undefined'==typeof v[H]&&delete F[H]:q(v[H],F[H]);return F},q=function(v,F){for(var H in F)'object'!=typeof F[H]||'undefined'==typeof v[H]||Array.isArray(v[H])?Array.isArray(v[H])?J(v[H],F[H]):'undefined'==typeof v[H]&&delete F[H]:q(v[H],F[H]);return F};Array.isArray(C[u][B])?
|
|
418
418
|
C[u][B]=J(this,C[u][B]):'object'==typeof C[u][B]?C[u][B]=q(this,C[u][B]):'undefined'==typeof this[prop]&&delete C[u][B]}S[u][B]=C[u][B];V.setItem(z,JSON.stringify(S));return ha(y)}catch(v){throw v;}};(function(L){if(!window.localStorage||window.localStorage&&'undefined'==!typeof window.localStorage.setItem)throw Error('Make sure your browser supports `window.localStorage` to use Gina Storage. See: `https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API#Browser_compatibility`');if('object'!=
|
|
419
419
|
typeof L&&'undefined'!=typeof L)throw Error('`options` must be an object');'undefined'==typeof L&&(L={});oa=Ca(L,oa);V=window.localStorage;L=oa.bucket;if(!V.getItem(L)&&void 0!=L)V.setItem(L,JSON.stringify(S));else if(void 0==L)throw Error('`bucket` name cannot be undefined');Y.bucket=L;Y=Ca(Y,da)})(E);return Y}
|
|
420
|
-
if('undefined'!==typeof module&&module.exports){var merge=require('
|
|
420
|
+
if('undefined'!==typeof module&&module.exports){var merge=require('lib/merge');Collection=require('lib/collection');var uuid=require('uuid');module.exports=StoragePlugin}else'function'===typeof define&&define.amd&&define('gina/storage',['helpers/dateFormat','helpers/prototypes'],function(){return StoragePlugin});function insertAfter(E,O){E.parentNode.insertBefore(O,E.nextSibling)}
|
|
421
421
|
function getElementsByAttribute(E){for(var O=[],ha=0,Ca=document.getElementsByTagName('*'),K=0,U=Ca.length;K<U;++K)null!==Ca[K].getAttribute(E)&&(O[ha]=Ca[K],++ha);return O}
|
|
422
422
|
(function(E){var O=E.prototype,ha=O.parseFromString;try{if((new E).parseFromString('','text/html'))return}catch(Ca){}O.parseFromString=function(Ca,K){if(/^\s*text\/html\s*(?:;|$)/i.test(K)){var U=document.implementation.createHTMLDocument('');-1<Ca.toLowerCase().indexOf('<!doctype')?U.documentElement.innerHTML=Ca:U.body.innerHTML=Ca;return U}return ha.apply(this,arguments)}})(DOMParser);define('utils/dom',function(){});
|
|
423
423
|
function ValidatorPlugin(E,O,ha){this.plugin='validator';var Ca='init ready registered success error progress submit reset change changed keydown keyup focusout focusin validate validated destroy asyncCompleted'.split(' '),K='undefined'!==typeof module&&module.exports?!1:!0,U=null;K?(require('utils/events'),registerEvents(this.plugin,Ca),require('utils/dom'),require('utils/effects'),U=gina.config.envIsDev):(U=/^true$/i.test(process.env.NODE_ENV_IS_DEV)?!0:!1)&&delete require.cache[require.resolve('./form-validator')];
|
|
424
|
-
var oa=K?require('vendor/uuid'):require('uuid'),Y=K?require('
|
|
424
|
+
var oa=K?require('vendor/uuid'):require('uuid'),Y=K?require('lib/merge'):require('../../../../../lib/merge'),V=K?require('lib/inherits'):require('../../../../../lib/inherits'),m=K?require('lib/form-validator'):require('./form-validator'),S=K?require('lib/routing'):require('../../../../../lib/routing'),p={id:'validator-'+oa.v4(),plugin:this.plugin,on:K?on:null,eventData:{},target:K?document:null,errors:{},initialized:!1,isReady:!1,rules:{},$forms:{},getFormById:null,validateFormById:null,setOptions:null,
|
|
425
425
|
resetErrorsDisplay:null,resetFields:null},da={id:null,plugin:this.plugin,on:K?on:null,eventData:{},target:K?document:null,cachedErrors:{},binded:!1,unbinded:!1,withUserBindings:!1,rules:{},setOptions:null,send:null,isValidating:null,isSubmitting:null,submit:null,destroy:null,resetErrorsDisplay:null,resetFields:null},ya={},N={},L=null,C={url:'',method:'GET',isSynchrone:!1,withCredentials:!1,headers:{'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8','X-Requested-With':'XMLHttpRequest'}},
|
|
426
426
|
B=function(e,b,h){h='undefined'!=typeof h?{id:h}:null;var n={},x;for(x in b)n[x]=b[x];if('undefined'!=typeof e&&0<e.count()){try{Ia(e,''),Ka(e)}catch(r){throw r;}return M(h,n,null,p.rules)}return new m(n)},u=function(e){C=e=Y(e,C)},z=function(e){var b=null;if(!p.$forms)throw Error('`$forms` collection not found');if('undefined'==typeof e)throw Error('[ FormValidator::getFormById(formId) ] `formId` is missing');e=e.replace(/#/,'');if(null!=document.getElementById(e)&&'undefined'==typeof p.$forms[e]){var h=
|
|
427
427
|
document.getElementById(e),n,x=typeof(0<ya.count())?ya:p.rules;h.getAttribute?(id=h.getAttribute('id')||'form.'+oa.v4(),id!==h.getAttribute('id')&&h.setAttribute('id',id)):(id='form.'+oa.v4(),h.setAttribute('id',id));h.id=da.id=id;if('undefined'!=typeof h.id&&'null'!=h.id&&''!=h.id){da.target=h;p.$forms[h.id]=Y({},da);if(n=h.getAttribute('data-gina-form-rule')){n=n.replace(/\-|\//g,'.');if('undefined'==typeof x[n])throw Error('['+h.id+'] no rule found with key: `null`');n=x[n]}'string'==typeof h.id&&
|
|
@@ -585,9 +585,9 @@ xb[Jb].rules[Db])):Mb[Hb]=xb[Jb].rules[Db],'undefined'==typeof X[Hb]&&'undefined
|
|
|
585
585
|
(Mb[Db]=xb[Jb].rules[Db])):Mb[Db]=xb[Jb].rules[Db],'undefined'==typeof X[Db]&&'undefined'!=typeof ka[Db]&&'undefined'!=typeof ka[Db].value&&(X[Db]=ka[Db].value,K&&/(true|false)/i.test(X[Db])&&('true'==X[Db]?X[Db]=!0:'false'==X[Db]&&(X[Db]=!1)),Ua.addField(Db,X[Db]),'undefined'!=typeof ia[Db]&&(Mb[Db]=Y(Mb[Db],ia[Db])));++aa;if(K)Vb(Ya,fb,ia,X,ka,Mb,Qa,Za);else return Vb(Ya,fb,ia,X,ka,Mb,Qa,Za)}--Za}}--aa;if(0>=Za&&0>aa){fb=Ua.getErrors();for(Pa in fb){for(rule in fb[Pa])rb[Pa]||(rb[Pa]=''),0>rb[Pa].indexOf(rule)&&
|
|
586
586
|
(rb[Pa]+=rule+' ');K&&ka[Pa].setAttribute('data-gina-form-errors',rb[Pa].substr(0,rb[Pa].length-1))}try{W=Na(Ua.toData()),U&&K&&'undefined'!=typeof window.ginaToolbar&&window.ginaToolbar&&(gina.forms.validated||(gina.forms.validated={}),gina.forms.validated[A]||(gina.forms.validated[A]={}),window.ginaToolbar.update('forms',{id:A,validated:W}))}catch(Jb){throw Jb;}Q=!0;if(!P&&0>=na)if('undefined'!=typeof Qa&&'function'===typeof Qa)Qa._errors=Ua.getErrors(),Qa._data=Ua.toData(),triggerEvent(gina,Ya,
|
|
587
587
|
'validated.'+A,Qa);else return P=!0,{isValid:Ua.isValid,error:fb,data:W}}};K&&addListener(gina,e,r,function(Ya){Ya.preventDefault();if(!P){P=!0;Q=!1;na=0;var fb=Ya.detail,ia=fb._data||Ua.toData(),X=fb._errors||Ua.getErrors()||null;console.debug('instance errors: ',p.$forms[A].errors,' VS cbErrors: ',X,Ua.isValid(),' VS d.getErrors(): ',Ua.getErrors());0<X.count()&&Ua.isValid()&&(Ua.isValid=function(){return!1});fb({isValid:Ua.isValid,error:X,data:Na(ia)});removeListener(gina,Ya.target,'validated.'+
|
|
588
|
-
Ya.target.id)}});if(K)Vb(e,Gb,tb,b,h,n,x,0);else return Vb(e,Gb,tb,b,h,n,x,0)};return K?Oa(E):B(E,O,ha)}'undefined'!==typeof module&&module.exports?module.exports=ValidatorPlugin:'function'===typeof define&&define.amd&&define('gina/validator',['utils/events','utils/dom','
|
|
589
|
-
define('gina/toolbar','require jquery vendor/uuid
|
|
590
|
-
null,
|
|
588
|
+
Ya.target.id)}});if(K)Vb(e,Gb,tb,b,h,n,x,0);else return Vb(e,Gb,tb,b,h,n,x,0)};return K?Oa(E):B(E,O,ha)}'undefined'!==typeof module&&module.exports?module.exports=ValidatorPlugin:'function'===typeof define&&define.amd&&define('gina/validator',['utils/events','utils/dom','lib/form-validator'],function(){return ValidatorPlugin});
|
|
589
|
+
define('gina/toolbar','require jquery vendor/uuid lib/collection lib/routing gina/storage gina/validator'.split(' '),function(E){var O=E('jquery');O.noConflict();var ha=E('lib/routing');E('lib/collection');var Ca=E('gina/storage');return function(){var K=null,U=!1,oa=!1,Y=!1,V,m=(new Ca({bucket:'gina'})).Collection('plugin'),S=null,p=null,da=!1,ya=null,N=null,L=null,C=null,B=null,u='',z=null,y=null,J=null,q='',v=null,F=0,H=0,R=0,sa='',T={},ca=null,ea=null,Ja=null,fa=null,pa=null,Ea=null,Ka=null,Oa=
|
|
590
|
+
null,Ia=null,Da=null,cb=null,Fa=null,Na=null,Xa=null,qb=function(){S=O('#gina-toolbar');if(!S.length)return!1;ya=S.find('.gina-toolbar-tab > a');N=O('#gina-toolbar-toggle');L=O('#gina-toolbar-panels');C=L.find('.gina-toolbar-panel');z=O('#gina-toolbar-vposition');y=O('#gina-toolbar-hposition');J=z.add(y);v=O('#gina-toolbar-width');S.find('.gina-toolbar-main');ca=O('#gina-toolbar-json');ea=O('#gina-toolbar-gina-json');Ja=O('#gina-toolbar-toggle-code-raw');$forms=O('form:not(.gina-toolbar-options, .gina-toolbar-content)');
|
|
591
591
|
Ia=O('#gina-toolbar-data-html');Da=O('#gina-toolbar-view-html');cb=O('#gina-toolbar-forms-html');Oa=O('#gina-toolbar-configuration-environment-html');Fa=O('#gina-toolbar-code-toggle');S.prepend('<textarea class="gina-toolbar-copy"></textarea>');Na=S.find('.gina-toolbar-copy');p=m.findOne({_name:'toolbar'});p||(p={_name:'toolbar',_version:'1.0.3',_description:'Toolbar settings',_licence:'MIT',_author:[{name:'Fabrice Delaneau',company:'Freelancer'},{name:'Martin-Luther Etouman',company:'Rhinostone'}],
|
|
592
592
|
position:'top-right',width:'30',panelId:'#gina-toolbar-data',isCollapsed:!0,isUnfolded:[],debug:{forms:{active:!1,strategy:'frontend'}}},m.insert(p),p=m.findOne({_name:'toolbar'}));'1.0.3'!=p._version&&('1.0.1'>p._version&&(p.isUnfolded||(p.isUnfolded=[]),void 0!=p.codeFolding&&delete p.codeFolding),'undefined'==typeof p.isUnfolded||Array.isArray(p.isUnfolded)||(p.isUnfolded=[]),p._version='1.0.3',p.save(!0));q=p.position;F=p.width;u=p.panelId;da=p.isCollapsed;S.removeClass('gina-toolbar-hidden');
|
|
593
593
|
gc()},bb=function(h,n,x){var r=null,A=null;try{A=ca?ca.text():'',''==A||'null'==A?ca.text('Empty'):(pa=JSON.parse(A),Ka=JSON.parse(ea.text()),ca.text(''),fa||(fa={jsonObject:JSON.clone(pa),ginaJsonObject:JSON.clone(Ka)},Ea={}))}catch(ja){if(A='Could not load'+(h?' [ '+h+' ] ':' ')+'json\n'+ja.message+'\n'+ja.stack,ca)ca.text(A);else throw A;}if(pa){n&&!x?(pa[h]||(pa[h]={}),pa[h]=Ka[h]=n):'data-xhr'==h&&!n&&pa['data-xhr']?delete pa['data-xhr']:x&&(pa=n,Ka=x);b(pa,'');delete pa.environment.routing;
|
|
@@ -628,8 +628,8 @@ h);$section=A.find('ul.gina-toolbar-section-content').find('li.gina-toolbar-form
|
|
|
628
628
|
h.is(':visible')||h.slideToggle()},M=function(h,n){return h='<label class="gina-toolbar-input-file"><input type="file" multiple id="'+(h+'">')+n+'</label>'},e=function(h,n){h=M('mock','Select your JSON file');Ia.html(h);ca.text('');Ia.find('input').off('change').on('change',function(x){var r=O(this)[0].files,A=x=null;if(1==r.length)x=O(this)[0].files[0],A=new FileReader,A.addEventListener('load',function(){ca.text(A.result);ea.text(A.result);n()},!1),A.readAsBinaryString(x);else{var W=0;A=[];for(var P=
|
|
629
629
|
0,aa=r.length;P<aa;++P)switch(x=r[P],!0){case /user/.test(x.name):A[P]=new FileReader;A[P].addEventListener('load',function(Q){ca.text(Q.currentTarget.result);++W;W==r.length&&n()},!1);A[P].readAsBinaryString(x);break;case /gina/.test(x.name):A[P]=new FileReader,A[P].addEventListener('load',function(Q){ea.text(Q.currentTarget.result);++W;W==r.length&&n()},!1),A[P].readAsBinaryString(x)}}});return!1},b=function(h,n){for(var x in h)'object'==typeof h[x]&&b(h[x],n+x+'-')};this.update=function(h,n){bb(h,
|
|
630
630
|
n)};this.restore=function(){Ea&&'undefined'!=typeof Ea.data&&(fa.jsonObject.data=Ea.data);bb('data',fa.jsonObject,fa.ginaJsonObject);Y=!1;ha.notFound={}};if('undefined'!=typeof gina.validator)gina.validator.on('initialized',function(){console.log('toolbar validator ready');qb()});else qb()}});
|
|
631
|
-
define('gina','require vendor/uuid
|
|
632
|
-
|
|
631
|
+
define('gina','require vendor/uuid lib/merge utils/events helpers/prototypes helpers/dateFormat gina/toolbar'.split(' '),function(E){E('utils/events');var O=E('lib/merge'),ha=E('helpers/dateFormat')();E('helpers/prototypes')({dateFormat:ha});var Ca=E('vendor/uuid');window.process||function(K,U,oa,Y,V,m,S){for(m=K[oa]||(K[oa]={});!S&&V<Y.length;)S=K[Y[V++]+'requestAnimationFrame'];m[U]=m[U]||S&&S.bind(K)||K.setImmediate||K.setTimeout}(window,'nextTick','process',['r','webkitR','mozR','msR','oR'],0);
|
|
632
|
+
window.getComputedStyle||(window.getComputedStyle=function(K,U){this.el=K;this.getPropertyValue=function(oa){var Y=/(\-([a-z]){1})/g;'float'==oa&&(oa='styleFloat');Y.test(oa)&&(oa=oa.replace(Y,function(V,m,S){return S.toUpperCase()}));return K.currentStyle[oa]?K.currentStyle[oa]:null};return this});return function(K){this.plugin='gina';var U='gina-'+Ca.v1(),oa=document,Y;document.id=U;U={id:U,isFrameworkLoaded:!1,hasValidator:!1,hasPopinHandler:!1,config:{},registeredEvents:{},events:{},setOptions:function(V){Y=
|
|
633
633
|
O(Y,V,!0)}};'undefined'!=typeof parent.window.gina&&(window.gina=O(window.gina||{},parent.window.gina));U=O(window.gina||{},U);registerEvents(this.plugin,['ginaloaded','ready']);triggerEvent(K,oa,'ginaloaded',U)}});
|
|
634
634
|
!function(E,O){'object'==typeof exports&&'undefined'!=typeof module?module.exports=O():'function'==typeof define&&define.amd?define('vendor/engine.io',O):(E='undefined'!=typeof globalThis?globalThis:E||self).eio=O()}(this,function(){function E(wa){return E='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function(xa){return typeof xa}:function(xa){return xa&&'function'==typeof Symbol&&xa.constructor===Symbol&&xa!==Symbol.prototype?'symbol':typeof xa},E(wa)}function O(wa,xa){if(!(wa instanceof
|
|
635
635
|
xa))throw new TypeError('Cannot call a class as a function');}function ha(wa,xa){for(var Ha=0;Ha<xa.length;Ha++){var M=xa[Ha];M.enumerable=M.enumerable||!1;M.configurable=!0;'value'in M&&(M.writable=!0);Object.defineProperty(wa,M.key,M)}}function Ca(wa,xa,Ha){return xa&&ha(wa.prototype,xa),Ha&&ha(wa,Ha),wa}function K(){return K=Object.assign||function(wa){for(var xa=1;xa<arguments.length;xa++){var Ha=arguments[xa],M;for(M in Ha)Object.prototype.hasOwnProperty.call(Ha,M)&&(wa[M]=Ha[M])}return wa},
|
|
@@ -689,9 +689,9 @@ else if(window.fetch){L=N=null;try{N=await fetch(ya),oa=L=await N.text()}catch(B
|
|
|
689
689
|
'curl -o '+p.filename+' '+p.url+' >/dev/null 2>&1';console.debug('[DOMAIN] Running: '+ya);try{execSync(ya)}catch(B){console.warn('[DOMAIN] could not fetch from `'+p.url+'`. Trying with `'+p.alternativeUrl+'`');ya='curl -o '+p.filename+' '+p.alternativeUrl+' >/dev/null 2>&1';try{execSync(ya)}catch(u){da(u);return}}var C=!1;nIntervId=setInterval(()=>{if('undefined'!=typeof fs.accessSync)try{fs.accessSync(p.filename,fs.constants.F_OK),C=!0}catch(B){C=!1;try{fs.lstatSync(p.filename).isSymbolicLink()&&
|
|
690
690
|
(C=!0)}catch(u){}}else C=fs.existsSync(p.filename);C&&(clearInterval(nIntervId),oa=fs.readFileSync(p.filename).toString(),da(!1))},200)}try{oa=fs.readFileSync(p.filename).toString(),da&&da(!1)}catch(B){console.warn('[DOMAIN] could not read from `'+p.filename+'`'),V(E,da)}}},m=function(p){U.isUpdating=!0;V(U,p)},S={getRootDomain:function(p,da){'undefined'==typeof da&&(da=!1);var ya=!1,N=!1,L=p.replace(/^(.*):\/\/|\/(.*)/g,''),C=L.split(/\./g).reverse(),B=C.length?C.length-1:0,u=oa.replace(/\/\/\s*(.*)\n|^\s*\n/gm,
|
|
691
691
|
'').split(/\n/).filter(function(z,y,J){/[^a-z 0-9.]+/.test(z)&&(z=z.replace(/[^a-z 0-9.]+/g,'').replace(/^\./g,''));return/\./.test(z)&&!ya&&(new RegExp('.'+z+'$')).test(L)?(ya=!0,B=z.split(/\./g).length,J.splice(0,J.length),!1):z});L=C[B];0<B&&(C=C.splice(0,B),N=C[0],/:(.*)$/.test(N)&&(N=N.replace(/:(.*)$/,'')),(N=ya||!ya&&-1<u.indexOf(N)?!0:!1)?1<B&&!ya?(C.splice(2),L=C.reverse().join('.')):L+='.'+C.reverse().join('.'):1<B?(C.splice(2),L=C.reverse().join('.')):L+='.'+C.reverse().join('.'));/:(.*)$/.test(L)&&
|
|
692
|
-
(L=L.replace(/:(.*)$/,''));console.debug('[DOMAIN] isSLD: '+ya,p,' -> ',L)
|
|
693
|
-
document.head.appendChild(m),setTimeout(()=>Y(S,E,O),500)):Y(S,E,O)}'undefined'!==typeof module&&module.exports?module.exports=Domain:'function'===typeof define&&define.amd&&define('
|
|
694
|
-
define('gina/link','require jquery vendor/uuid
|
|
692
|
+
(L=L.replace(/:(.*)$/,''));console.debug('[DOMAIN] isSLD: '+ya,p,' -> ',L);/^true$/i.test(da);return{value:L,isSLD:ya,isRegisteredTldOrSld:N}}};ha?S.onReady=function(){}:S.updatePSL=m;return ha&&Ca&&!window.fetch?(Ca=document.createElement('script'),Ca.type='text/javascript',Ca.src='https://cdn.jsdelivr.net/npm/promise-polyfill@8.1.3/dist/polyfill.min.js',m=document.createElement('script'),m.type='text/javascript',m.src='https://cdn.jsdelivr.net/npm/whatwg-fetch@3.4.0/dist/fetch.umd.min.js',document.head.appendChild(Ca),
|
|
693
|
+
document.head.appendChild(m),setTimeout(()=>Y(S,E,O),500)):Y(S,E,O)}'undefined'!==typeof module&&module.exports?module.exports=Domain:'function'===typeof define&&define.amd&&define('lib/domain',[],function(){return Domain});
|
|
694
|
+
define('gina/link','require jquery vendor/uuid lib/domain lib/merge utils/events'.split(' '),function(E){E('jquery').noConflict();var O=E('vendor/uuid'),ha=E('lib/domain'),Ca=null,K=E('lib/merge');E('utils/events');return function(U){function oa(u,z){var y=C(u),J=y.id,q=document.getElementById(J)||null;(q.getAttribute('data-gina-link-event-on-success')||q.getAttribute('data-gina-link-event-on-error'))&&listenToXhrEvents(y);z='undefined'==typeof z?da:K(z,da);if(/^(http|https):/.test(u)&&!(new RegExp('^'+
|
|
695
695
|
window.location.protocol+'//'+window.location.host)).test(u)){var v=Ca.getRootDomain(window.location.hostname).value,F=Ca.getRootDomain(u).value;v=v===F?!0:!1;gina.config.envIsDev&&(console.debug('Checking CORS from Popin plugin...TODO - local CORS Proxy'),console.debug('Is request from same domain ? ',v));v||(u=u.match(/^(https|http):/)[0]+'//corsacme.herokuapp.com/?'+u)}z.url=u;y&&'undefined'!=typeof y.options&&(z=K(y.options,z));z.withCredentials?'withCredentials'in p?z.isSynchrone?p.open(z.method,
|
|
696
696
|
z.url,z.isSynchrone):p.open(z.method,z.url):'undefined'!=typeof XDomainRequest?(p=new XDomainRequest,p.open(z.method,z.url)):(p=null,triggerEvent(gina,q,'error.'+J,'CORS not supported: the server is missing the header `"Access-Control-Allow-Credentials": true` ')):z.isSynchrone?p.open(z.method,z.url,z.isSynchrone):p.open(z.method,z.url);if(!p)throw Error('No `xhr` object initiated');z.$link=y;handleXhr(p,q,z,E);p.send()}function Y(u,z){if('object'!=typeof z)throw Error('`options` must be an object');
|
|
697
697
|
u.options=K(z,V.options);z=document.getElementById(u.id)||null;if('undefined'==typeof m.$links[u.id]){if(-1<ya.indexOf(u.id))throw Error('`link '+u.id+'` already exists !');if(!gina.events[evt]){addListener(gina,z,evt,function(q){cancelEvent(q);q=L(q.target.id);var v=q.url;'undefined'==typeof q.options.isSynchrone&&(q.options.isSynchrone=!1);'undefined'==typeof q.options.withCredentials&&(q.options.withCredentials=!1);oa(v,q.options)});var y=z.childNodes,J=0;lLen=y.length;if(0<lLen)for(;J<lLen;++J)'undefined'!=
|
|
@@ -701,7 +701,7 @@ typeof u&&(u=m.target);var y,J=null;u=u.getElementsByTagName('a');for(var q=0,v=
|
|
|
701
701
|
(J=y.getAttribute('onclick'));J?'undefined'==typeof J||/return false/.test(J)||(J=/;$/.test(J)?J+'return false;':J+'; return false;',y.setAttribute('onclick',J)):y.setAttribute('onclick','return false;');'undefined'==typeof m.$links[F.id]&&(F.target=y,y=K(F,S),Y(y,z))}};new ha(function(u,z){if(u)throw u;Ca=z});return function(u){m.bindLinks=B;m.request=oa;m.getLinkById=L;m.getLinkByUrl=C;m.on('init',function(z){if(window.XMLHttpRequest)p=new XMLHttpRequest;else if(window.ActiveXObject)try{p=new ActiveXObject('Msxml2.XMLHTTP')}catch(y){try{p=
|
|
702
702
|
new ActiveXObject('Microsoft.XMLHTTP')}catch(J){}}evt='click';addListener(gina,m.target,evt,function(y){'undefined'==typeof y.target.id&&(y.target.setAttribute('id',evt+'.'+O.v4()),y.target.id=y.target.getAttribute('id'));if(/^link\.click\./.test(y.target.id)){cancelEvent(y);var J=y.target.id;(new RegExp('^link.click.gina-link-'+m.id)).test(J)&&triggerEvent(gina,y.target,J,y.detail)}});'undefined'==typeof u&&(u={});m.options=u;B(m.target,u);gina.linkIsBinded=!0;m.isReady=!0;gina.hasLinkHandler=!0;
|
|
703
703
|
gina.link=K(gina.link,m);triggerEvent(gina,m.target,'ready.'+m.id,m)});m.initialized=!0;return m}(U)}});
|
|
704
|
-
define('gina/popin','require jquery vendor/uuid
|
|
704
|
+
define('gina/popin','require jquery vendor/uuid lib/domain lib/merge lib/routing utils/events'.split(' '),function(E){E('jquery').noConflict();var O=E('vendor/uuid'),ha=E('lib/domain'),Ca=null,K=E('lib/merge');E('lib/routing');E('utils/events');return function(U){function oa(){var T=null,ca;for(ca in gina.popin.$popins)if('undefined'!=typeof gina.popin.$popins[ca].isOpen&&gina.popin.$popins[ca].isOpen){T=gina.popin.$popins[ca];break}!T&&gina.popin.activePopinId&&(T=gina.popin.$popins[gina.popin.activePopinId]);
|
|
705
705
|
return T}function Y(T,ca){var ea=T.target,Ja=T.type;'undefined'!=typeof T.detail&&'function'==typeof T.detail.trim&&(ea.innerHTML=T.detail.trim());T=function(yb,hb,Fb){var Ob=Fb.getAttribute('data-gina-popin-is-link');Ob=/^true$/i.test(Ob)?!0:!1;'link'!=yb||Ob||(yb='action');addListener(gina,Fb,hb,function(ib){cancelEvent(ib);if('close'!=yb){var Ma=!1,mb='loaded.'+ca.id;'undefined'==typeof gina.events[mb]&&addListener(gina,ea,mb,function(Pb){Pb.preventDefault();Ma||(Ma=!0,S(Pb.detail))});mb={isSynchrone:!1,
|
|
706
706
|
withCredentials:!1};mb=K(ca.options,mb);m(ca.name,Fb.href,mb)}removeListener(gina,ib.target,ib.type)});addListener(gina,Fb,'click',function(ib){cancelEvent(ib);if(null!=ib.target.getAttribute('disabled')&&'false'!=ib.target.getAttribute('disabled'))return!1;if('link'==yb){var Ma=ib.target.getAttribute('href')||null,mb=ib.target.getAttribute('target');null!=mb&&''!=mb?window.open(Ma,mb):triggerEvent(gina,ib.target,ib.currentTarget.id,ca)}else'undefined'==typeof ib.target.id&&(ib.target.setAttribute('id',
|
|
707
707
|
hb+'.'+O.v4()),ib.target.id=ib.target.getAttribute('id')),/^popin\.close\./.test(ib.target.id)&&(cancelEvent(ib),ca.isRedirecting=!1,N(ca.name)),/^popin\.click\./.test(ib.target.id)&&(cancelEvent(ib),Ma=ib.target.id,(new RegExp('^popin.click.gina-popin-'+B.id)).test(Ma)&&triggerEvent(gina,ib.target,Ma,ib.detail))})};gina.popinIsBinded=!0;var fa=null,pa=null,Ea=null;ca.isOpen||addListener(gina,B.target.childNodes[0],'mousedown',function(yb){if(/gina-popin-is-active/.test(yb.target.className)){removeListener(gina,
|
|
@@ -745,9 +745,9 @@ function fadeIn(E){var O=.1;E.style.display='block';var ha=setInterval(function(
|
|
|
745
745
|
if('undefined'==typeof JSON.clone){var clone=function(E,O){if(null==E||'object'!=typeof E||E.constructor!=Object&&E.constructor!=Array)return E;if(E.constructor==Date||E.constructor==RegExp||E.constructor==Function||E.constructor==String||E.constructor==Number||E.constructor==Boolean)return new E.constructor(E);O=O||new E.constructor;for(var ha=0,Ca=Object.getOwnPropertyNames(E).length||0,K=Object.keys(E);ha<Ca;)O[K[ha]]='undefined'==typeof O[K[ha]]?clone(E[K[ha]],null):O[K[ha]],ha++;return O};JSON.clone=
|
|
746
746
|
clone}if('undefined'==typeof JSON.escape){var escape=function(E){try{return E.replace(/\n/g,'\\n').replace(/\r/g,'\\r').replace(/\t/g,'\\t')}catch(O){throw O;}};JSON.escape=escape}define('utils/polyfill',function(){});
|
|
747
747
|
function Inherits(E,O){return function(ha,Ca){var K='undefined'==typeof ha||'undefined'==typeof Ca?"inherits(a, b): neither [ a ] nor [ b ] can't be undefined or null":!1;if(K)throw Error(K);K=function(){return function(){if(this){this.prototype=ha.prototype;this.name||(this.name=ha.name);this.prototype.name=this.name;for(var U in Ca.prototype)this[U]||(this[U]=Ca.prototype[U]);Ca.apply(this,arguments);ha.apply(this,arguments)}}}(ha,Ca);void 0==ha.prototype&&(ha.prototype={});void 0==Ca.prototype&&
|
|
748
|
-
(Ca.prototype={});ha.prototype=Object.create(Ca.prototype,{});K.prototype=Object.create(ha.prototype,{});return K}}'undefined'!==typeof module&&module.exports?module.exports=Inherits():'function'===typeof define&&define.amd&&define('
|
|
748
|
+
(Ca.prototype={});ha.prototype=Object.create(Ca.prototype,{});K.prototype=Object.create(ha.prototype,{});return K}}'undefined'!==typeof module&&module.exports?module.exports=Inherits():'function'===typeof define&&define.amd&&define('lib/inherits',[],function(){return Inherits()});var readyList=[{name:'gina',ctx:window.gina,fn:window.onGinaLoaded}],readyFired=!1,readyEventHandlersInstalled=!1;
|
|
749
749
|
function ready(){if(!readyFired){readyFired=!0;var E=null,O=function(ha,Ca){if(Ca[ha])if('gina'==Ca[ha].name)var K=window.setInterval(function(U,oa){try{if('undefined'==typeof oa&&(oa=window.readyList),oa[U].ctx=window.gina,E=oa[U].fn.call(window,oa[U].ctx,window.require))window.clearInterval(K),++U,O(U,oa)}catch(Y){throw window.clearInterval(K),Y;}},50,ha,Ca);else window.$||'undefined'==typeof parent.window.$||(window.$=parent.window.$),'undefined'==typeof window.originalContext&&'undefined'!=typeof window.$&&
|
|
750
750
|
(window.originalContext=window.$),Ca[ha].ctx=window.originalContext||$,Ca[ha].fn.call(window,Ca[ha].ctx,window.require),++ha,O(ha,Ca);else Ca=[]};O(0,readyList)}}function readyStateChange(){'complete'===document.readyState&&gina.ready()}
|
|
751
751
|
if('undefined'==typeof window.gina){var gina={_global:{register:function(E){if('undefined'!=typeof E)for(let O in E)window[O]=E[O]},unregister:function(E){if('undefined'==typeof E||!Array.isArray(E))throw Error('`variables` needs to ba an array');for(let O=0,ha=E.length;O<ha;O++)delete window[E[O]]}},ready:function(E,O){readyFired?setTimeout(function(){E(O)},1):(readyList.push({name:'anonymous',fn:E,ctx:O}),'complete'===document.readyState||!document.attachEvent&&'interactive'===document.readyState?
|
|
752
|
-
setTimeout(ready,1):readyEventHandlersInstalled||(document.addEventListener?(document.addEventListener('DOMContentLoaded',ready,!1),window.addEventListener('load',ready,!1)):(document.attachEvent('onreadystatechange',readyStateChange),window.attachEvent('onload',ready)),readyEventHandlersInstalled=!0))}};window.gina=gina}define('core',['require','gina'],function(E){E('gina')(window.gina)});require.config({packages:['gina']});require('vendor/uuid vendor/engine.io core helpers/prototypes helpers/binding helpers/dateFormat gina/link gina/validator gina/popin gina/storage utils/dom utils/events utils/effects utils/polyfill
|
|
752
|
+
setTimeout(ready,1):readyEventHandlersInstalled||(document.addEventListener?(document.addEventListener('DOMContentLoaded',ready,!1),window.addEventListener('load',ready,!1)):(document.attachEvent('onreadystatechange',readyStateChange),window.attachEvent('onload',ready)),readyEventHandlersInstalled=!0))}};window.gina=gina}define('core',['require','gina'],function(E){E('gina')(window.gina)});require.config({packages:['gina']});require('vendor/uuid vendor/engine.io core helpers/prototypes helpers/binding helpers/dateFormat gina/link gina/validator gina/popin gina/storage utils/dom utils/events utils/effects utils/polyfill lib/inherits lib/form-validator lib/collection lib/domain lib/routing'.split(' '));
|
|
753
753
|
for(var tags=document.getElementsByTagName('script'),t=0,len=tags.length;t<len;++t)if(/gina.min.js|gina.js/.test(tags[t].getAttribute('src'))){tags[t].onload=function(E){if(window.onGinaLoaded)var O=window.onGinaLoaded;document.addEventListener?document.addEventListener('ginaloaded',function(ha){window.gina=ha.detail;O(ha.detail)}):document.attachEvent&&document.attachEvent('ginaloaded',function(ha){window.gina=ha.detail;O(ha.detail)})}();break};
|