cortex 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.babelrc +18 -0
- data/.codeclimate.yml +43 -0
- data/.csslintrc +2 -0
- data/.editorconfig +9 -0
- data/.eslintignore +1 -0
- data/.eslintrc.yml +277 -0
- data/.github/PULL_REQUEST_TEMPLATE.md +47 -0
- data/.gitignore +82 -0
- data/.npmignore +34 -0
- data/.postcssrc.yml +3 -0
- data/.rspec +3 -0
- data/.rubocop.yml +1156 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/CONTRIBUTING.md +58 -0
- data/Gemfile +101 -0
- data/Gemfile.lock +604 -0
- data/Guardfile +23 -0
- data/LICENSE.md +201 -0
- data/README.md +239 -0
- data/Rakefile +22 -0
- data/app/assets/config/cortex_manifest.js +4 -0
- data/app/assets/fonts/cortex/Montserrat-Light.otf +0 -0
- data/app/assets/fonts/cortex/Montserrat-Medium.otf +0 -0
- data/app/assets/fonts/cortex/Montserrat-Regular.otf +0 -0
- data/app/assets/fonts/cortex/Montserrat-SemiBold.otf +0 -0
- data/app/assets/images/cortex/favicon.ico +0 -0
- data/app/assets/images/cortex/icons/add.svg +59 -0
- data/app/assets/images/cortex/icons/blog.png +0 -0
- data/app/assets/images/cortex/icons/media.png +0 -0
- data/app/assets/images/cortex/logo.svg +43 -0
- data/app/assets/javascripts/cortex/application.js +17 -0
- data/app/assets/javascripts/cortex/authentication.js +6 -0
- data/app/assets/javascripts/cortex/base.js +6 -0
- data/app/assets/javascripts/cortex/datepicker_init.js +29 -0
- data/app/assets/javascripts/cortex/flash.js +7 -0
- data/app/assets/javascripts/cortex/form.js +6 -0
- data/app/assets/javascripts/cortex/media_dialogs.js +40 -0
- data/app/assets/javascripts/cortex/quick_links.js +13 -0
- data/app/assets/stylesheets/cortex/application.scss +34 -0
- data/app/assets/stylesheets/cortex/authentication.scss +34 -0
- data/app/assets/stylesheets/cortex/base.scss +4 -0
- data/app/assets/stylesheets/cortex/bootstrap-namespaced.scss +57 -0
- data/app/assets/stylesheets/cortex/components/card.scss +9 -0
- data/app/assets/stylesheets/cortex/components/dialog.scss +67 -0
- data/app/assets/stylesheets/cortex/components/flash.scss +60 -0
- data/app/assets/stylesheets/cortex/components/form.scss +45 -0
- data/app/assets/stylesheets/cortex/components/header.scss +53 -0
- data/app/assets/stylesheets/cortex/components/index.scss +28 -0
- data/app/assets/stylesheets/cortex/components/jumbo-button.scss +41 -0
- data/app/assets/stylesheets/cortex/components/loaders.scss +76 -0
- data/app/assets/stylesheets/cortex/components/notes.scss +26 -0
- data/app/assets/stylesheets/cortex/components/sidebar.scss +120 -0
- data/app/assets/stylesheets/cortex/components/table.scss +7 -0
- data/app/assets/stylesheets/cortex/components/tenant-switcher.scss +209 -0
- data/app/assets/stylesheets/cortex/components/ui.scss +119 -0
- data/app/assets/stylesheets/cortex/demo.scss +140 -0
- data/app/assets/stylesheets/cortex/directives/aspect-ratio.scss +9 -0
- data/app/assets/stylesheets/cortex/helpers.scss +1701 -0
- data/app/assets/stylesheets/cortex/layout.scss +21 -0
- data/app/assets/stylesheets/cortex/material-icons.scss +13 -0
- data/app/assets/stylesheets/cortex/variables/_colors.scss +46 -0
- data/app/assets/stylesheets/cortex/variables/_material-overrides.scss +1 -0
- data/app/assets/stylesheets/cortex/variables/_typography.scss +114 -0
- data/app/cells/cortex/application_cell.rb +8 -0
- data/app/cells/cortex/content_type/nav.haml +5 -0
- data/app/cells/cortex/content_type_cell.rb +10 -0
- data/app/cells/cortex/field_cell.rb +35 -0
- data/app/cells/cortex/index/content_item/column.haml +4 -0
- data/app/cells/cortex/index/content_item_cell.rb +37 -0
- data/app/cells/cortex/index/index.haml +5 -0
- data/app/cells/cortex/index/table_body.haml +11 -0
- data/app/cells/cortex/index/table_headers.haml +5 -0
- data/app/cells/cortex/index_cell.rb +53 -0
- data/app/cells/cortex/wizard/column/show.haml +10 -0
- data/app/cells/cortex/wizard/column_cell.rb +21 -0
- data/app/cells/cortex/wizard/field/show.haml +30 -0
- data/app/cells/cortex/wizard/field_cell.rb +29 -0
- data/app/cells/cortex/wizard/plugin/show.haml +1 -0
- data/app/cells/cortex/wizard/plugin_cell.rb +28 -0
- data/app/cells/cortex/wizard/show.haml +1 -0
- data/app/cells/cortex/wizard/step/show.haml +2 -0
- data/app/cells/cortex/wizard/step_cell.rb +17 -0
- data/app/cells/cortex/wizard_cell.rb +15 -0
- data/app/containers/cortex/transaction_container.rb +23 -0
- data/app/controllers/concerns/cortex/decoratable.rb +16 -0
- data/app/controllers/cortex/admin_controller.rb +7 -0
- data/app/controllers/cortex/application_controller.rb +19 -0
- data/app/controllers/cortex/authentication/passwords_controller.rb +3 -0
- data/app/controllers/cortex/authentication/sessions_controller.rb +3 -0
- data/app/controllers/cortex/content_items_controller.rb +75 -0
- data/app/controllers/cortex/content_types_controller.rb +19 -0
- data/app/controllers/cortex/dashboards_controller.rb +7 -0
- data/app/controllers/cortex/graphql_controller.rb +40 -0
- data/app/controllers/cortex/tenants_controller.rb +12 -0
- data/app/devise/cortex/authentication_failure.rb +12 -0
- data/app/graphql/cortex/cortex_schema.rb +8 -0
- data/app/graphql/cortex/interfaces/.keep +0 -0
- data/app/graphql/cortex/mutations/.keep +0 -0
- data/app/graphql/cortex/types/content_item_type.rb +31 -0
- data/app/graphql/cortex/types/content_type_type.rb +23 -0
- data/app/graphql/cortex/types/contract_type.rb +10 -0
- data/app/graphql/cortex/types/date_time_type.rb +8 -0
- data/app/graphql/cortex/types/field_item_type.rb +15 -0
- data/app/graphql/cortex/types/field_type.rb +18 -0
- data/app/graphql/cortex/types/mutation_type.rb +5 -0
- data/app/graphql/cortex/types/query_type.rb +45 -0
- data/app/graphql/cortex/types/tenant_type.rb +19 -0
- data/app/graphql/cortex/types/user_type.rb +20 -0
- data/app/helpers/cortex/application_helper.rb +75 -0
- data/app/helpers/cortex/cells/association_helper.rb +25 -0
- data/app/helpers/cortex/content_item_helper.rb +106 -0
- data/app/helpers/cortex/dashboard_helper.rb +19 -0
- data/app/helpers/cortex/popup_helper.rb +27 -0
- data/app/jobs/cortex/application_job.rb +4 -0
- data/app/mailers/cortex/application_mailer.rb +6 -0
- data/app/mailers/cortex/password_reset_mailer.rb +13 -0
- data/app/models/concerns/cortex/belongs_to_tenant.rb +13 -0
- data/app/models/concerns/cortex/has_firstname_lastname.rb +11 -0
- data/app/models/concerns/cortex/has_gravatar.rb +18 -0
- data/app/models/concerns/cortex/searchable.rb +11 -0
- data/app/models/concerns/cortex/searchable_content_item.rb +31 -0
- data/app/models/concerns/cortex/searchable_content_item_for_content_type.rb +52 -0
- data/app/models/concerns/cortex/searchable_content_type.rb +11 -0
- data/app/models/cortex/application_record.rb +17 -0
- data/app/models/cortex/content_item.rb +71 -0
- data/app/models/cortex/content_type.rb +27 -0
- data/app/models/cortex/contentable_decorator.rb +8 -0
- data/app/models/cortex/contract.rb +12 -0
- data/app/models/cortex/decorator.rb +13 -0
- data/app/models/cortex/field.rb +36 -0
- data/app/models/cortex/field_item.rb +54 -0
- data/app/models/cortex/field_type.rb +44 -0
- data/app/models/cortex/permission.rb +11 -0
- data/app/models/cortex/role.rb +12 -0
- data/app/models/cortex/tenant.rb +41 -0
- data/app/models/cortex/user.rb +77 -0
- data/app/operations/cortex/database_transact_operation.rb +17 -0
- data/app/operations/cortex/execute_content_item_state_change_operation.rb +16 -0
- data/app/operations/cortex/parse_content_item_field_items_operation.rb +18 -0
- data/app/operations/cortex/persist_content_item_operation.rb +12 -0
- data/app/policies/cortex/application_policy.rb +55 -0
- data/app/policies/cortex/content_item_policy.rb +49 -0
- data/app/policies/cortex/content_type_policy.rb +38 -0
- data/app/transactions/concerns/cortex/content_itemable.rb +15 -0
- data/app/transactions/concerns/cortex/field_item_transactor.rb +28 -0
- data/app/transactions/concerns/cortex/widget_parsable.rb +19 -0
- data/app/transactions/cortex/application_transaction.rb +5 -0
- data/app/transactions/cortex/create_content_item_transaction.rb +35 -0
- data/app/transactions/cortex/get_content_item_transaction.rb +4 -0
- data/app/transactions/cortex/get_content_items_for_content_type_transaction.rb +34 -0
- data/app/transactions/cortex/get_publish_state_transaction.rb +28 -0
- data/app/transactions/cortex/new_field_item_transaction.rb +16 -0
- data/app/transactions/cortex/update_content_item_transaction.rb +45 -0
- data/app/transactions/cortex/update_field_item_transaction.rb +23 -0
- data/app/types/cortex/application_types.rb +21 -0
- data/app/types/cortex/content_item_transaction_type.rb +10 -0
- data/app/types/cortex/core_types.rb +5 -0
- data/app/types/cortex/transaction_type.rb +5 -0
- data/app/views/cortex/authentication/passwords/new.html.haml +13 -0
- data/app/views/cortex/authentication/sessions/new.html.haml +20 -0
- data/app/views/cortex/authentication/shared/_links.html.haml +19 -0
- data/app/views/cortex/content_items/_form.html.haml +13 -0
- data/app/views/cortex/content_items/_grid.html.haml +1 -0
- data/app/views/cortex/content_items/edit.html.haml +2 -0
- data/app/views/cortex/content_items/index.html.haml +4 -0
- data/app/views/cortex/content_items/new.html.haml +2 -0
- data/app/views/cortex/content_types/index.html.haml +2 -0
- data/app/views/cortex/content_types/new.html.haml +0 -0
- data/app/views/cortex/dashboards/index.html.haml +6 -0
- data/app/views/cortex/graphql/ide.haml +1 -0
- data/app/views/cortex/partials/_breadcrumb.html.haml +2 -0
- data/app/views/cortex/partials/_cortex_redux_state.html.haml +1 -0
- data/app/views/cortex/partials/_flash.html.haml +25 -0
- data/app/views/cortex/partials/_media_dialogs.html.haml +13 -0
- data/app/views/cortex/partials/_navigation.html.haml +15 -0
- data/app/views/cortex/partials/_notes.html.haml +17 -0
- data/app/views/cortex/partials/_quick_links.html.haml +22 -0
- data/app/views/cortex/partials/_sidebar.html.haml +7 -0
- data/app/views/cortex/partials/_topbar.html.haml +5 -0
- data/app/views/cortex/partials/_user_control.html.haml +7 -0
- data/app/views/cortex/partials/authentication/_header.html.haml +4 -0
- data/app/views/cortex/partials/trackers/_google_analytics.html.haml +10 -0
- data/app/views/cortex/partials/trackers/_qualtrics.html.haml +10 -0
- data/app/views/cortex/password_reset_mailer/send_password_reset.html.erb +5 -0
- data/app/views/cortex/password_reset_mailer/send_password_reset.text.erb +5 -0
- data/app/views/layouts/cortex/application.html.haml +30 -0
- data/app/views/layouts/cortex/devise.html.haml +19 -0
- data/app/views/layouts/cortex/mailer.html.erb +13 -0
- data/app/views/layouts/cortex/mailer.text.erb +1 -0
- data/bin/rails +25 -0
- data/config/config.yml +22 -0
- data/config/initializers/devise.rb +35 -0
- data/config/initializers/elasticsearch.rb +3 -0
- data/config/initializers/filter_parameter_logging.rb +4 -0
- data/config/initializers/flipper.rb +16 -0
- data/config/initializers/graphiql.rb +51 -0
- data/config/initializers/inflections.rb +16 -0
- data/config/initializers/load_config.rb +16 -0
- data/config/initializers/mime_types.rb +5 -0
- data/config/initializers/plugins.rb +17 -0
- data/config/initializers/react_on_rails.rb +15 -0
- data/config/initializers/rolify.rb +9 -0
- data/config/initializers/tag_parsers.rb +5 -0
- data/config/locales/devise.en.yml +64 -0
- data/config/routes.rb +41 -0
- data/cortex.gemspec +84 -0
- data/db/migrate/0_enable_pgcrypto_extension.rb +5 -0
- data/db/migrate/10_create_fields.rb +15 -0
- data/db/migrate/11_create_content_items.rb +14 -0
- data/db/migrate/12_create_field_items.rb +12 -0
- data/db/migrate/13_create_field_types.rb +5 -0
- data/db/migrate/1_create_users.rb +14 -0
- data/db/migrate/2_create_tenants.rb +26 -0
- data/db/migrate/3_add_devise_to_users.rb +49 -0
- data/db/migrate/4_create_roles.rb +15 -0
- data/db/migrate/5_create_permissions.rb +16 -0
- data/db/migrate/6_create_flipper_tables.rb +20 -0
- data/db/migrate/7_create_contracts.rb +11 -0
- data/db/migrate/8_create_decorators.rb +21 -0
- data/db/migrate/9_create_content_types.rb +17 -0
- data/db/seeds.rb +40 -0
- data/db/seeds.yml +33 -0
- data/lib/assets/.keep +0 -0
- data/lib/breadcrumbs/title_builder.rb +12 -0
- data/lib/cortex.rb +4 -0
- data/lib/cortex/engine.rb +41 -0
- data/lib/cortex/version.rb +3 -0
- data/lib/helpers/utility_helper.rb +7 -0
- data/lib/tasks/cortex_tasks.rake +13 -0
- data/lib/tasks/elasticsearch_tasks.rake +1 -0
- data/node_package/.babelrc +26 -0
- data/node_package/src/components/side_bar/environment_flag.jsx +21 -0
- data/node_package/src/components/side_bar/tenant_list.jsx +65 -0
- data/node_package/src/components/wizard/column.jsx +29 -0
- data/node_package/src/components/wizard/field.jsx +22 -0
- data/node_package/src/components/wizard/step.jsx +20 -0
- data/node_package/src/constants/tenant_switcher.jsx +17 -0
- data/node_package/src/constants/type_constants.jsx +12 -0
- data/node_package/src/constants/wizard.jsx +9 -0
- data/node_package/src/containers/layout.jsx +33 -0
- data/node_package/src/containers/tenant_switcher_container.jsx +115 -0
- data/node_package/src/containers/wizard_container.jsx +28 -0
- data/node_package/src/elements/loaders.jsx +7 -0
- data/node_package/src/helpers/formatting.jsx +5 -0
- data/node_package/src/helpers/tenant_ancestry.jsx +14 -0
- data/node_package/src/helpers/tenant_lookup.jsx +23 -0
- data/node_package/src/index.jsx +21 -0
- data/node_package/src/reducers/index.jsx +13 -0
- data/node_package/src/reducers/rails_context_reducer.jsx +5 -0
- data/node_package/src/reducers/tenant_switcher_reducer.jsx +74 -0
- data/node_package/src/reducers/wizard_reducer.jsx +32 -0
- data/node_package/src/services/rails_api_service.jsx +13 -0
- data/node_package/src/store/store.jsx +15 -0
- data/package.json +66 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/config/manifest.js +4 -0
- data/spec/dummy/app/assets/javascripts/application.js +2 -0
- data/spec/dummy/app/assets/stylesheets/application.scss +2 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/javascript/packs/application.js +8 -0
- data/spec/dummy/app/javascript/packs/cortex.jsx +1 -0
- data/spec/dummy/app/jobs/application_job.rb +2 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/views/layouts/application.html.haml +11 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/bundle +105 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/rspec +17 -0
- data/spec/dummy/bin/setup +38 -0
- data/spec/dummy/bin/update +29 -0
- data/spec/dummy/bin/webpack +29 -0
- data/spec/dummy/bin/webpack-dev-server +29 -0
- data/spec/dummy/bin/yarn +11 -0
- data/spec/dummy/config.ru +7 -0
- data/spec/dummy/config/apollo_engine_proxy.yml +23 -0
- data/spec/dummy/config/application.rb +21 -0
- data/spec/dummy/config/boot.rb +11 -0
- data/spec/dummy/config/cable.yml +9 -0
- data/spec/dummy/config/config.yml +22 -0
- data/spec/dummy/config/database.yml +22 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +74 -0
- data/spec/dummy/config/environments/production.rb +103 -0
- data/spec/dummy/config/environments/staging.rb +103 -0
- data/spec/dummy/config/environments/test.rb +65 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +6 -0
- data/spec/dummy/config/initializers/assets.rb +14 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/load_config.rb +9 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/react_on_rails.rb +41 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/sentry.rb +6 -0
- data/spec/dummy/config/initializers/session_store.rb +7 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +8 -0
- data/spec/dummy/config/newrelic.yml +224 -0
- data/spec/dummy/config/puma.rb +47 -0
- data/spec/dummy/config/routes.rb +5 -0
- data/spec/dummy/config/secrets.yml +32 -0
- data/spec/dummy/config/sidekiq.yml +9 -0
- data/spec/dummy/config/webpack/development.js +3 -0
- data/spec/dummy/config/webpack/environment.js +3 -0
- data/spec/dummy/config/webpack/production.js +3 -0
- data/spec/dummy/config/webpack/test.js +3 -0
- data/spec/dummy/config/webpacker.yml +66 -0
- data/spec/dummy/db/migrate/20180118233001_enable_pgcrypto_extension.cortex.rb +6 -0
- data/spec/dummy/db/migrate/20180118233002_create_users.cortex.rb +15 -0
- data/spec/dummy/db/migrate/20180118233003_create_tenants.cortex.rb +27 -0
- data/spec/dummy/db/migrate/20180118233004_add_devise_to_users.cortex.rb +50 -0
- data/spec/dummy/db/migrate/20180118233005_create_roles.cortex.rb +16 -0
- data/spec/dummy/db/migrate/20180118233006_create_permissions.cortex.rb +17 -0
- data/spec/dummy/db/migrate/20180118233007_create_flipper_tables.cortex.rb +21 -0
- data/spec/dummy/db/migrate/20180118233008_create_contracts.cortex.rb +12 -0
- data/spec/dummy/db/migrate/20180118233009_create_decorators.cortex.rb +22 -0
- data/spec/dummy/db/migrate/20180118233010_create_content_types.cortex.rb +18 -0
- data/spec/dummy/db/migrate/20180118233011_create_fields.cortex.rb +16 -0
- data/spec/dummy/db/migrate/20180118233012_create_content_items.cortex.rb +15 -0
- data/spec/dummy/db/migrate/20180118233013_create_field_items.cortex.rb +13 -0
- data/spec/dummy/db/migrate/20180118233014_create_field_types.cortex.rb +6 -0
- data/spec/dummy/db/schema.rb +258 -0
- data/spec/dummy/db/seeds.rb +1 -0
- data/spec/dummy/lib/tasks/content_types_tasks.rake +31 -0
- data/spec/dummy/lib/tasks/employer/blog_tasks.rake +345 -0
- data/spec/dummy/package.json +28 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/robots.txt +5 -0
- data/spec/dummy/spec/javascripts/support/jasmine.yml +50 -0
- data/spec/dummy/yarn.lock +6615 -0
- data/spec/rails_helper.rb +57 -0
- data/spec/spec_helper.rb +96 -0
- data/yarn.lock +6032 -0
- metadata +1061 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 02be4dc6153e80f279a2fd206836a381fefc3795f041f374cba3432b4a2635e2
|
4
|
+
data.tar.gz: 9030f02d775228201076a839717fbc448865298cb10439ea7fdd4ad1cc0e793f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 74e62c6f98e35e21d3b401664d8cbee5ed0cccbf8e3d5f10099703324dd947250b412181f7972f4086b4b5b907b6ecf5dfdfd1ef211fa0c9e4957ee55db9f8a9
|
7
|
+
data.tar.gz: 07f749ee18a1b26dcac66f7aa34a8b4b8bc261a7a380614e7b3b0ce9d151d3efa127ceeb7e1725f3996bb6e791a8f82a512d205f90e8e43e743c8e23f8880862
|
data/.babelrc
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
{
|
2
|
+
"presets": [
|
3
|
+
["env", {
|
4
|
+
"modules": false,
|
5
|
+
"targets": {
|
6
|
+
"browsers": "> 1%",
|
7
|
+
"uglify": true
|
8
|
+
},
|
9
|
+
"useBuiltIns": true
|
10
|
+
}]
|
11
|
+
],
|
12
|
+
|
13
|
+
"plugins": [
|
14
|
+
"syntax-dynamic-import",
|
15
|
+
"transform-object-rest-spread",
|
16
|
+
["transform-class-properties", { "spec": true }]
|
17
|
+
]
|
18
|
+
}
|
data/.codeclimate.yml
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
---
|
2
|
+
engines:
|
3
|
+
brakeman:
|
4
|
+
enabled: true
|
5
|
+
bundler-audit:
|
6
|
+
enabled: true
|
7
|
+
csslint:
|
8
|
+
enabled: true
|
9
|
+
duplication:
|
10
|
+
enabled: true
|
11
|
+
config:
|
12
|
+
languages:
|
13
|
+
- ruby
|
14
|
+
- javascript
|
15
|
+
eslint:
|
16
|
+
enabled: true
|
17
|
+
fixme:
|
18
|
+
enabled: true
|
19
|
+
rubocop:
|
20
|
+
enabled: true
|
21
|
+
ratings:
|
22
|
+
paths:
|
23
|
+
- Gemfile.lock
|
24
|
+
- "**.erb"
|
25
|
+
- "**.haml"
|
26
|
+
- "**.rb"
|
27
|
+
- "**.css"
|
28
|
+
- "**.inc"
|
29
|
+
- "**.js"
|
30
|
+
- "**.jsx"
|
31
|
+
- "**.module"
|
32
|
+
exclude_paths:
|
33
|
+
- config/
|
34
|
+
- db/
|
35
|
+
- node_modules/
|
36
|
+
- client/node_modules/
|
37
|
+
- spec/
|
38
|
+
- vendor/
|
39
|
+
- semaphore_ci/
|
40
|
+
- lib/
|
41
|
+
- bin/
|
42
|
+
- .cloud66/
|
43
|
+
- .github/
|
data/.csslintrc
ADDED
data/.editorconfig
ADDED
data/.eslintignore
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
**/*{.,-}min.js
|
data/.eslintrc.yml
ADDED
@@ -0,0 +1,277 @@
|
|
1
|
+
---
|
2
|
+
parserOptions:
|
3
|
+
sourceType: module
|
4
|
+
ecmaFeatures:
|
5
|
+
jsx: true
|
6
|
+
|
7
|
+
env:
|
8
|
+
amd: true
|
9
|
+
browser: true
|
10
|
+
es6: true
|
11
|
+
jquery: true
|
12
|
+
node: true
|
13
|
+
|
14
|
+
# http://eslint.org/docs/rules/
|
15
|
+
rules:
|
16
|
+
# Possible Errors
|
17
|
+
no-await-in-loop: off
|
18
|
+
no-cond-assign: error
|
19
|
+
no-console: off
|
20
|
+
no-constant-condition: error
|
21
|
+
no-control-regex: error
|
22
|
+
no-debugger: error
|
23
|
+
no-dupe-args: error
|
24
|
+
no-dupe-keys: error
|
25
|
+
no-duplicate-case: error
|
26
|
+
no-empty-character-class: error
|
27
|
+
no-empty: error
|
28
|
+
no-ex-assign: error
|
29
|
+
no-extra-boolean-cast: error
|
30
|
+
no-extra-parens: off
|
31
|
+
no-extra-semi: error
|
32
|
+
no-func-assign: error
|
33
|
+
no-inner-declarations:
|
34
|
+
- error
|
35
|
+
- functions
|
36
|
+
no-invalid-regexp: error
|
37
|
+
no-irregular-whitespace: error
|
38
|
+
no-negated-in-lhs: error
|
39
|
+
no-obj-calls: error
|
40
|
+
no-prototype-builtins: off
|
41
|
+
no-regex-spaces: error
|
42
|
+
no-sparse-arrays: error
|
43
|
+
no-template-curly-in-string: off
|
44
|
+
no-unexpected-multiline: error
|
45
|
+
no-unreachable: error
|
46
|
+
no-unsafe-finally: off
|
47
|
+
no-unsafe-negation: off
|
48
|
+
use-isnan: error
|
49
|
+
valid-jsdoc: off
|
50
|
+
valid-typeof: error
|
51
|
+
|
52
|
+
# Best Practices
|
53
|
+
accessor-pairs: error
|
54
|
+
array-callback-return: off
|
55
|
+
block-scoped-var: off
|
56
|
+
class-methods-use-this: off
|
57
|
+
complexity:
|
58
|
+
- error
|
59
|
+
- 6
|
60
|
+
consistent-return: off
|
61
|
+
curly: off
|
62
|
+
default-case: off
|
63
|
+
dot-location: off
|
64
|
+
dot-notation: off
|
65
|
+
eqeqeq: error
|
66
|
+
guard-for-in: error
|
67
|
+
no-alert: error
|
68
|
+
no-caller: error
|
69
|
+
no-case-declarations: error
|
70
|
+
no-div-regex: error
|
71
|
+
no-else-return: off
|
72
|
+
no-empty-function: off
|
73
|
+
no-empty-pattern: error
|
74
|
+
no-eq-null: error
|
75
|
+
no-eval: error
|
76
|
+
no-extend-native: error
|
77
|
+
no-extra-bind: error
|
78
|
+
no-extra-label: off
|
79
|
+
no-fallthrough: error
|
80
|
+
no-floating-decimal: off
|
81
|
+
no-global-assign: off
|
82
|
+
no-implicit-coercion: off
|
83
|
+
no-implied-eval: error
|
84
|
+
no-invalid-this: off
|
85
|
+
no-iterator: error
|
86
|
+
no-labels:
|
87
|
+
- error
|
88
|
+
- allowLoop: true
|
89
|
+
allowSwitch: true
|
90
|
+
no-lone-blocks: error
|
91
|
+
no-loop-func: error
|
92
|
+
no-magic-number: off
|
93
|
+
no-multi-spaces: off
|
94
|
+
no-multi-str: off
|
95
|
+
no-native-reassign: error
|
96
|
+
no-new-func: error
|
97
|
+
no-new-wrappers: error
|
98
|
+
no-new: error
|
99
|
+
no-octal-escape: error
|
100
|
+
no-octal: error
|
101
|
+
no-param-reassign: off
|
102
|
+
no-proto: error
|
103
|
+
no-redeclare: error
|
104
|
+
no-restricted-properties: off
|
105
|
+
no-return-assign: error
|
106
|
+
no-return-await: off
|
107
|
+
no-script-url: error
|
108
|
+
no-self-assign: off
|
109
|
+
no-self-compare: error
|
110
|
+
no-sequences: off
|
111
|
+
no-throw-literal: off
|
112
|
+
no-unmodified-loop-condition: off
|
113
|
+
no-unused-expressions: error
|
114
|
+
no-unused-labels: off
|
115
|
+
no-useless-call: error
|
116
|
+
no-useless-concat: error
|
117
|
+
no-useless-escape: off
|
118
|
+
no-useless-return: off
|
119
|
+
no-void: error
|
120
|
+
no-warning-comments: off
|
121
|
+
no-with: error
|
122
|
+
prefer-promise-reject-errors: off
|
123
|
+
radix: error
|
124
|
+
require-await: off
|
125
|
+
vars-on-top: off
|
126
|
+
wrap-iife: error
|
127
|
+
yoda: off
|
128
|
+
|
129
|
+
# Strict
|
130
|
+
strict: off
|
131
|
+
|
132
|
+
# Variables
|
133
|
+
init-declarations: off
|
134
|
+
no-catch-shadow: error
|
135
|
+
no-delete-var: error
|
136
|
+
no-label-var: error
|
137
|
+
no-restricted-globals: off
|
138
|
+
no-shadow-restricted-names: error
|
139
|
+
no-shadow: off
|
140
|
+
no-undef-init: error
|
141
|
+
no-undef: off
|
142
|
+
no-undefined: off
|
143
|
+
no-unused-vars: off
|
144
|
+
no-use-before-define: off
|
145
|
+
|
146
|
+
# Node.js and CommonJS
|
147
|
+
callback-return: error
|
148
|
+
global-require: error
|
149
|
+
handle-callback-err: error
|
150
|
+
no-mixed-requires: off
|
151
|
+
no-new-require: off
|
152
|
+
no-path-concat: error
|
153
|
+
no-process-env: off
|
154
|
+
no-process-exit: error
|
155
|
+
no-restricted-modules: off
|
156
|
+
no-sync: off
|
157
|
+
|
158
|
+
# Stylistic Issues
|
159
|
+
array-bracket-spacing: off
|
160
|
+
block-spacing: off
|
161
|
+
brace-style: off
|
162
|
+
camelcase: off
|
163
|
+
capitalized-comments: off
|
164
|
+
comma-dangle:
|
165
|
+
- error
|
166
|
+
- never
|
167
|
+
comma-spacing: off
|
168
|
+
comma-style: off
|
169
|
+
computed-property-spacing: off
|
170
|
+
consistent-this: off
|
171
|
+
eol-last: off
|
172
|
+
func-call-spacing: off
|
173
|
+
func-name-matching: off
|
174
|
+
func-names: off
|
175
|
+
func-style: off
|
176
|
+
id-length: off
|
177
|
+
id-match: off
|
178
|
+
indent: off
|
179
|
+
jsx-quotes: off
|
180
|
+
key-spacing: off
|
181
|
+
keyword-spacing: off
|
182
|
+
line-comment-position: off
|
183
|
+
linebreak-style: off
|
184
|
+
lines-around-comment: off
|
185
|
+
lines-around-directive: off
|
186
|
+
max-depth: off
|
187
|
+
max-len: off
|
188
|
+
max-nested-callbacks: off
|
189
|
+
max-params: off
|
190
|
+
max-statements-per-line: off
|
191
|
+
max-statements:
|
192
|
+
- error
|
193
|
+
- 30
|
194
|
+
multiline-ternary: off
|
195
|
+
new-cap: off
|
196
|
+
new-parens: off
|
197
|
+
newline-after-var: off
|
198
|
+
newline-before-return: off
|
199
|
+
newline-per-chained-call: off
|
200
|
+
no-array-constructor: off
|
201
|
+
no-bitwise: off
|
202
|
+
no-continue: off
|
203
|
+
no-inline-comments: off
|
204
|
+
no-lonely-if: off
|
205
|
+
no-mixed-operators: off
|
206
|
+
no-mixed-spaces-and-tabs: off
|
207
|
+
no-multi-assign: off
|
208
|
+
no-multiple-empty-lines: off
|
209
|
+
no-negated-condition: off
|
210
|
+
no-nested-ternary: off
|
211
|
+
no-new-object: off
|
212
|
+
no-plusplus: off
|
213
|
+
no-restricted-syntax: off
|
214
|
+
no-spaced-func: off
|
215
|
+
no-tabs: off
|
216
|
+
no-ternary: off
|
217
|
+
no-trailing-spaces: off
|
218
|
+
no-underscore-dangle: off
|
219
|
+
no-unneeded-ternary: off
|
220
|
+
object-curly-newline: off
|
221
|
+
object-curly-spacing: off
|
222
|
+
object-property-newline: off
|
223
|
+
one-var-declaration-per-line: off
|
224
|
+
one-var: off
|
225
|
+
operator-assignment: off
|
226
|
+
operator-linebreak: off
|
227
|
+
padded-blocks: off
|
228
|
+
quote-props: off
|
229
|
+
quotes: off
|
230
|
+
require-jsdoc: off
|
231
|
+
semi-spacing: off
|
232
|
+
semi: off
|
233
|
+
sort-keys: off
|
234
|
+
sort-vars: off
|
235
|
+
space-before-blocks: off
|
236
|
+
space-before-function-paren: off
|
237
|
+
space-in-parens: off
|
238
|
+
space-infix-ops: off
|
239
|
+
space-unary-ops: off
|
240
|
+
spaced-comment: off
|
241
|
+
template-tag-spacing: off
|
242
|
+
unicode-bom: off
|
243
|
+
wrap-regex: off
|
244
|
+
|
245
|
+
# ECMAScript 6
|
246
|
+
arrow-body-style: off
|
247
|
+
arrow-parens: off
|
248
|
+
arrow-spacing: off
|
249
|
+
constructor-super: off
|
250
|
+
generator-star-spacing: off
|
251
|
+
no-class-assign: off
|
252
|
+
no-confusing-arrow: off
|
253
|
+
no-const-assign: off
|
254
|
+
no-dupe-class-members: off
|
255
|
+
no-duplicate-imports: off
|
256
|
+
no-new-symbol: off
|
257
|
+
no-restricted-imports: off
|
258
|
+
no-this-before-super: off
|
259
|
+
no-useless-computed-key: off
|
260
|
+
no-useless-constructor: off
|
261
|
+
no-useless-rename: off
|
262
|
+
no-var: off
|
263
|
+
object-shorthand: off
|
264
|
+
prefer-arrow-callback: off
|
265
|
+
prefer-const: off
|
266
|
+
prefer-destructuring: off
|
267
|
+
prefer-numeric-literals: off
|
268
|
+
prefer-rest-params: off
|
269
|
+
prefer-reflect: off
|
270
|
+
prefer-spread: off
|
271
|
+
prefer-template: off
|
272
|
+
require-yield: off
|
273
|
+
rest-spread-spacing: off
|
274
|
+
sort-imports: off
|
275
|
+
symbol-description: off
|
276
|
+
template-curly-spacing: off
|
277
|
+
yield-star-spacing: off
|
@@ -0,0 +1,47 @@
|
|
1
|
+
**Purpose**
|
2
|
+
|
3
|
+
|
4
|
+
**JIRA**
|
5
|
+
|
6
|
+
|
7
|
+
**Changes**
|
8
|
+
* Improvements and fixes
|
9
|
+
*
|
10
|
+
|
11
|
+
* Changes to developer setup/environment
|
12
|
+
*
|
13
|
+
|
14
|
+
* Architectural changes
|
15
|
+
*
|
16
|
+
|
17
|
+
* Migrations or Steps to Take on Production
|
18
|
+
*
|
19
|
+
|
20
|
+
* Library changes
|
21
|
+
*
|
22
|
+
|
23
|
+
* Side effects
|
24
|
+
*
|
25
|
+
|
26
|
+
**Screenshots**
|
27
|
+
* Before
|
28
|
+
|
29
|
+
* After
|
30
|
+
|
31
|
+
**Feature Server**
|
32
|
+
|
33
|
+
|
34
|
+
**How to Verify These Changes**
|
35
|
+
* Specific pages to visit
|
36
|
+
*
|
37
|
+
|
38
|
+
* Steps to take
|
39
|
+
*
|
40
|
+
|
41
|
+
* Responsive considerations
|
42
|
+
*
|
43
|
+
|
44
|
+
**Relevant PRs/Dependencies**
|
45
|
+
*
|
46
|
+
|
47
|
+
**Additional Information**
|
data/.gitignore
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
# Build Artifacts
|
8
|
+
pkg/
|
9
|
+
node_package/lib
|
10
|
+
**.gem
|
11
|
+
|
12
|
+
# Ignore bundler config.
|
13
|
+
/.bundle
|
14
|
+
/vendor/bundle
|
15
|
+
|
16
|
+
# Debug
|
17
|
+
.byebug_history
|
18
|
+
|
19
|
+
# OS Files
|
20
|
+
.DS_Store
|
21
|
+
._.DS_Store
|
22
|
+
.directory
|
23
|
+
|
24
|
+
# Text-editor/IDE generated files
|
25
|
+
*.sublime-workspace
|
26
|
+
*.sublime-project
|
27
|
+
/.idea
|
28
|
+
*.iml
|
29
|
+
|
30
|
+
*.rbc
|
31
|
+
*.sassc
|
32
|
+
.sass-cache
|
33
|
+
capybara-*.html
|
34
|
+
.powrc
|
35
|
+
/coverage/
|
36
|
+
/spec/tmp
|
37
|
+
/spec/examples.txt
|
38
|
+
**.orig
|
39
|
+
rerun.txt
|
40
|
+
pickle-email-*.html
|
41
|
+
|
42
|
+
# rspec failure tracking
|
43
|
+
.rspec_status
|
44
|
+
|
45
|
+
# Environment
|
46
|
+
.rvmrc
|
47
|
+
.ruby-version
|
48
|
+
.env
|
49
|
+
|
50
|
+
# Documentation Artifacts
|
51
|
+
erd.pdf
|
52
|
+
|
53
|
+
#
|
54
|
+
# Dummy Spec App
|
55
|
+
#
|
56
|
+
|
57
|
+
spec/dummy/public/assets/
|
58
|
+
spec/dummy/public/uploads/
|
59
|
+
spec/dummy/public/system/
|
60
|
+
|
61
|
+
# Ignore the default SQLite database.
|
62
|
+
spec/dummy/db/*.sqlite3
|
63
|
+
spec/dummy/db/*.sqlite3-journal
|
64
|
+
spec/dummy/log/*.log
|
65
|
+
spec/dummy/node_modules/
|
66
|
+
spec/dummy/yarn-error.log
|
67
|
+
spec/dummy/storage/
|
68
|
+
spec/dummy/tmp/
|
69
|
+
|
70
|
+
# Ignore all logfiles and tempfiles.
|
71
|
+
/spec/dummy/log/*
|
72
|
+
/spec/dummy/tmp/*
|
73
|
+
!/spec/dummy/log/.keep
|
74
|
+
!/spec/dummy/tmp/.keep
|
75
|
+
|
76
|
+
# Webpacker Pipeline
|
77
|
+
npm-debug.log*
|
78
|
+
/spec/dummy/public/packs
|
79
|
+
/spec/dummy/public/packs-test
|
80
|
+
node_modules
|
81
|
+
/yarn-error.log
|
82
|
+
/spec/dummy/yarn-error.log
|