diff --git a/ui/connect-client/.editorconfig b/ui/connect-client/.editorconfig new file mode 100644 index 000000000..c35a00240 --- /dev/null +++ b/ui/connect-client/.editorconfig @@ -0,0 +1,19 @@ +# EditorConfig helps developers define and maintain consistent +# coding styles between different editors and IDEs +# editorconfig.org + +root = true + +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +indent_style = space +indent_size = 2 + +[*.hbs] +insert_final_newline = false + +[*.{diff,md}] +trim_trailing_whitespace = false diff --git a/ui/connect-client/.ember-cli b/ui/connect-client/.ember-cli new file mode 100644 index 000000000..ee64cfed2 --- /dev/null +++ b/ui/connect-client/.ember-cli @@ -0,0 +1,9 @@ +{ + /** + Ember CLI sends analytics information by default. The data is completely + anonymous, but there are times when you might want to disable this behavior. + + Setting `disableAnalytics` to true will prevent any data from being sent. + */ + "disableAnalytics": false +} diff --git a/ui/connect-client/.eslintignore b/ui/connect-client/.eslintignore new file mode 100644 index 000000000..72df37307 --- /dev/null +++ b/ui/connect-client/.eslintignore @@ -0,0 +1,20 @@ +# unconventional js +/blueprints/*/files/ +/vendor/ + +# compiled output +/dist/ +/tmp/ + +# dependencies +/bower_components/ +/node_modules/ + +# misc +/coverage/ +!.* + +# ember-try +/.node_modules.ember-try/ +/bower.json.ember-try +/package.json.ember-try diff --git a/ui/connect-client/.eslintrc.js b/ui/connect-client/.eslintrc.js new file mode 100644 index 000000000..f3c9d4f26 --- /dev/null +++ b/ui/connect-client/.eslintrc.js @@ -0,0 +1,56 @@ +'use strict'; + +module.exports = { + root: true, + parser: 'babel-eslint', + parserOptions: { + ecmaVersion: 2018, + sourceType: 'module', + ecmaFeatures: { + legacyDecorators: true + } + }, + plugins: [ + 'ember' + ], + extends: [ + 'eslint:recommended', + 'plugin:ember/recommended' + ], + env: { + browser: true + }, + rules: { + 'ember/no-jquery': 'error' + }, + overrides: [ + // node files + { + files: [ + '.eslintrc.js', + '.template-lintrc.js', + 'ember-cli-build.js', + 'testem.js', + 'blueprints/*/index.js', + 'config/**/*.js', + 'lib/*/index.js', + 'server/**/*.js' + ], + parserOptions: { + sourceType: 'script' + }, + env: { + browser: false, + node: true + }, + plugins: ['node'], + rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, { + // add your custom rules and overrides for node files here + + // this can be removed once the following is fixed + // https://github.com/mysticatea/eslint-plugin-node/issues/77 + 'node/no-unpublished-require': 'off' + }) + } + ] +}; diff --git a/ui/connect-client/.template-lintrc.js b/ui/connect-client/.template-lintrc.js new file mode 100644 index 000000000..f38737001 --- /dev/null +++ b/ui/connect-client/.template-lintrc.js @@ -0,0 +1,5 @@ +'use strict'; + +module.exports = { + extends: 'octane' +}; diff --git a/ui/connect-client/.travis.yml b/ui/connect-client/.travis.yml new file mode 100644 index 000000000..b1f2a2c3b --- /dev/null +++ b/ui/connect-client/.travis.yml @@ -0,0 +1,33 @@ +--- +language: node_js +node_js: + - "10" + +dist: trusty + +addons: + chrome: stable + +cache: + yarn: true + +env: + global: + # See https://git.io/vdao3 for details. + - JOBS=1 + +branches: + only: + - master + +before_install: + - curl -o- -L https://yarnpkg.com/install.sh | bash + - export PATH=$HOME/.yarn/bin:$PATH + +install: + - yarn install --non-interactive + +script: + - yarn lint:hbs + - yarn lint:js + - yarn test diff --git a/ui/connect-client/.watchmanconfig b/ui/connect-client/.watchmanconfig new file mode 100644 index 000000000..e7834e3e4 --- /dev/null +++ b/ui/connect-client/.watchmanconfig @@ -0,0 +1,3 @@ +{ + "ignore_dirs": ["tmp", "dist"] +} diff --git a/ui/connect-client/README.md b/ui/connect-client/README.md new file mode 100644 index 000000000..3dad99b7f --- /dev/null +++ b/ui/connect-client/README.md @@ -0,0 +1,58 @@ +# connect-client + +This README outlines the details of collaborating on this Ember application. +A short introduction of this app could easily go here. + +## Prerequisites + +You will need the following things properly installed on your computer. + +* [Git](https://git-scm.com/) +* [Node.js](https://nodejs.org/) +* [Yarn](https://yarnpkg.com/) +* [Ember CLI](https://ember-cli.com/) +* [Google Chrome](https://google.com/chrome/) + +## Installation + +* `git clone ` this repository +* `cd connect-client` +* `yarn install` + +## Running / Development + +* `ember serve` +* Visit your app at [http://localhost:4200](http://localhost:4200). +* Visit your tests at [http://localhost:4200/tests](http://localhost:4200/tests). + +### Code Generators + +Make use of the many generators for code, try `ember help generate` for more details + +### Running Tests + +* `ember test` +* `ember test --server` + +### Linting + +* `yarn lint:hbs` +* `yarn lint:js` +* `yarn lint:js --fix` + +### Building + +* `ember build` (development) +* `ember build --environment production` (production) + +### Deploying + +Specify what it takes to deploy your app. + +## Further Reading / Useful Links + +* [ember.js](https://emberjs.com/) +* [ember-cli](https://ember-cli.com/) +* Development Browser Extensions + * [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi) + * [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/) diff --git a/ui/connect-client/app/app.js b/ui/connect-client/app/app.js new file mode 100644 index 000000000..d8e2088b6 --- /dev/null +++ b/ui/connect-client/app/app.js @@ -0,0 +1,12 @@ +import Application from '@ember/application'; +import Resolver from 'ember-resolver'; +import loadInitializers from 'ember-load-initializers'; +import config from './config/environment'; + +export default class App extends Application { + modulePrefix = config.modulePrefix; + podModulePrefix = config.podModulePrefix; + Resolver = Resolver; +} + +loadInitializers(App, config.modulePrefix); diff --git a/ui/connect-client/app/components/.gitkeep b/ui/connect-client/app/components/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ui/connect-client/app/controllers/.gitkeep b/ui/connect-client/app/controllers/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ui/connect-client/app/helpers/.gitkeep b/ui/connect-client/app/helpers/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ui/connect-client/app/index.html b/ui/connect-client/app/index.html new file mode 100644 index 000000000..836b9e453 --- /dev/null +++ b/ui/connect-client/app/index.html @@ -0,0 +1,25 @@ + + + + + + ConnectClient + + + + {{content-for "head"}} + + + + + {{content-for "head-footer"}} + + + {{content-for "body"}} + + + + + {{content-for "body-footer"}} + + diff --git a/ui/connect-client/app/models/.gitkeep b/ui/connect-client/app/models/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ui/connect-client/app/router.js b/ui/connect-client/app/router.js new file mode 100644 index 000000000..224ca426a --- /dev/null +++ b/ui/connect-client/app/router.js @@ -0,0 +1,10 @@ +import EmberRouter from '@ember/routing/router'; +import config from './config/environment'; + +export default class Router extends EmberRouter { + location = config.locationType; + rootURL = config.rootURL; +} + +Router.map(function() { +}); diff --git a/ui/connect-client/app/routes/.gitkeep b/ui/connect-client/app/routes/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ui/connect-client/app/styles/app.css b/ui/connect-client/app/styles/app.css new file mode 100644 index 000000000..e69de29bb diff --git a/ui/connect-client/app/templates/application.hbs b/ui/connect-client/app/templates/application.hbs new file mode 100644 index 000000000..7b1b1040f --- /dev/null +++ b/ui/connect-client/app/templates/application.hbs @@ -0,0 +1,5 @@ +{{!-- The following component displays Ember's default welcome message. --}} + +{{!-- Feel free to remove this! --}} + +{{outlet}} \ No newline at end of file diff --git a/ui/connect-client/config/environment.js b/ui/connect-client/config/environment.js new file mode 100644 index 000000000..30281bf3c --- /dev/null +++ b/ui/connect-client/config/environment.js @@ -0,0 +1,51 @@ +'use strict'; + +module.exports = function(environment) { + let ENV = { + modulePrefix: 'connect-client', + environment, + rootURL: '/', + locationType: 'auto', + EmberENV: { + FEATURES: { + // Here you can enable experimental features on an ember canary build + // e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true + }, + EXTEND_PROTOTYPES: { + // Prevent Ember Data from overriding Date.parse. + Date: false + } + }, + + APP: { + // Here you can pass flags/options to your application instance + // when it is created + } + }; + + if (environment === 'development') { + // ENV.APP.LOG_RESOLVER = true; + // ENV.APP.LOG_ACTIVE_GENERATION = true; + // ENV.APP.LOG_TRANSITIONS = true; + // ENV.APP.LOG_TRANSITIONS_INTERNAL = true; + // ENV.APP.LOG_VIEW_LOOKUPS = true; + } + + if (environment === 'test') { + // Testem prefers this... + ENV.locationType = 'none'; + + // keep test console output quieter + ENV.APP.LOG_ACTIVE_GENERATION = false; + ENV.APP.LOG_VIEW_LOOKUPS = false; + + ENV.APP.rootElement = '#ember-testing'; + ENV.APP.autoboot = false; + } + + if (environment === 'production') { + // here you can enable a production-specific feature + } + + return ENV; +}; diff --git a/ui/connect-client/config/optional-features.json b/ui/connect-client/config/optional-features.json new file mode 100644 index 000000000..b26286e2e --- /dev/null +++ b/ui/connect-client/config/optional-features.json @@ -0,0 +1,6 @@ +{ + "application-template-wrapper": false, + "default-async-observers": true, + "jquery-integration": false, + "template-only-glimmer-components": true +} diff --git a/ui/connect-client/config/targets.js b/ui/connect-client/config/targets.js new file mode 100644 index 000000000..8ffae3636 --- /dev/null +++ b/ui/connect-client/config/targets.js @@ -0,0 +1,18 @@ +'use strict'; + +const browsers = [ + 'last 1 Chrome versions', + 'last 1 Firefox versions', + 'last 1 Safari versions' +]; + +const isCI = !!process.env.CI; +const isProduction = process.env.EMBER_ENV === 'production'; + +if (isCI || isProduction) { + browsers.push('ie 11'); +} + +module.exports = { + browsers +}; diff --git a/ui/connect-client/ember-cli-build.js b/ui/connect-client/ember-cli-build.js new file mode 100644 index 000000000..d690a2531 --- /dev/null +++ b/ui/connect-client/ember-cli-build.js @@ -0,0 +1,24 @@ +'use strict'; + +const EmberApp = require('ember-cli/lib/broccoli/ember-app'); + +module.exports = function(defaults) { + let app = new EmberApp(defaults, { + // Add options here + }); + + // Use `app.import` to add additional libraries to the generated + // output files. + // + // If you need to use different assets in different + // environments, specify an object as the first parameter. That + // object's keys should be the environment name and the values + // should be the asset to use in that environment. + // + // If the library that you are including contains AMD or ES6 + // modules that you would like to import into your application + // please specify an object with the list of modules as keys + // along with the exports of each module as its value. + + return app.toTree(); +}; diff --git a/ui/connect-client/package.json b/ui/connect-client/package.json new file mode 100644 index 000000000..0985e10a0 --- /dev/null +++ b/ui/connect-client/package.json @@ -0,0 +1,57 @@ +{ + "name": "connect-client", + "version": "0.0.0", + "private": true, + "description": "Small description for connect-client goes here", + "repository": "", + "license": "MIT", + "author": "", + "directories": { + "doc": "doc", + "test": "tests" + }, + "scripts": { + "build": "ember build --environment=production", + "lint:hbs": "ember-template-lint .", + "lint:js": "eslint .", + "start": "ember serve", + "test": "ember test" + }, + "devDependencies": { + "@ember/optional-features": "^1.3.0", + "@glimmer/component": "^1.0.0", + "@glimmer/tracking": "^1.0.0", + "babel-eslint": "^10.0.3", + "broccoli-asset-rev": "^3.0.0", + "ember-auto-import": "^1.5.3", + "ember-cli": "~3.16.2", + "ember-cli-app-version": "^3.2.0", + "ember-cli-babel": "^7.17.2", + "ember-cli-dependency-checker": "^3.2.0", + "ember-cli-eslint": "^5.1.0", + "ember-cli-htmlbars": "^4.2.2", + "ember-cli-inject-live-reload": "^2.0.2", + "ember-cli-sri": "^2.1.1", + "ember-cli-template-lint": "^1.0.0-beta.3", + "ember-cli-uglify": "^3.0.0", + "ember-data": "~3.16.0", + "ember-export-application-global": "^2.0.1", + "ember-fetch": "^7.0.0", + "ember-load-initializers": "^2.1.1", + "ember-maybe-import-regenerator": "^0.1.6", + "ember-qunit": "^4.6.0", + "ember-resolver": "^7.0.0", + "ember-source": "~3.16.0", + "ember-welcome-page": "^4.0.0", + "eslint-plugin-ember": "^7.7.2", + "eslint-plugin-node": "^11.0.0", + "loader.js": "^4.7.0", + "qunit-dom": "^1.0.0" + }, + "engines": { + "node": "10.* || >= 12" + }, + "ember": { + "edition": "octane" + } +} diff --git a/ui/connect-client/public/robots.txt b/ui/connect-client/public/robots.txt new file mode 100644 index 000000000..f5916452e --- /dev/null +++ b/ui/connect-client/public/robots.txt @@ -0,0 +1,3 @@ +# http://www.robotstxt.org +User-agent: * +Disallow: diff --git a/ui/connect-client/testem.js b/ui/connect-client/testem.js new file mode 100644 index 000000000..49f53feed --- /dev/null +++ b/ui/connect-client/testem.js @@ -0,0 +1,27 @@ +'use strict'; + +module.exports = { + test_page: 'tests/index.html?hidepassed', + disable_watching: true, + launch_in_ci: [ + 'Chrome' + ], + launch_in_dev: [ + 'Chrome' + ], + browser_start_timeout: 120, + browser_args: { + Chrome: { + ci: [ + // --no-sandbox is needed when running Chrome inside a container + process.env.CI ? '--no-sandbox' : null, + '--headless', + '--disable-dev-shm-usage', + '--disable-software-rasterizer', + '--mute-audio', + '--remote-debugging-port=0', + '--window-size=1440,900' + ].filter(Boolean) + } + } +}; diff --git a/ui/connect-client/tests/helpers/.gitkeep b/ui/connect-client/tests/helpers/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ui/connect-client/tests/index.html b/ui/connect-client/tests/index.html new file mode 100644 index 000000000..4bdd48cd0 --- /dev/null +++ b/ui/connect-client/tests/index.html @@ -0,0 +1,33 @@ + + + + + + ConnectClient Tests + + + + {{content-for "head"}} + {{content-for "test-head"}} + + + + + + {{content-for "head-footer"}} + {{content-for "test-head-footer"}} + + + {{content-for "body"}} + {{content-for "test-body"}} + + + + + + + + {{content-for "body-footer"}} + {{content-for "test-body-footer"}} + + diff --git a/ui/connect-client/tests/integration/.gitkeep b/ui/connect-client/tests/integration/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ui/connect-client/tests/test-helper.js b/ui/connect-client/tests/test-helper.js new file mode 100644 index 000000000..0382a848d --- /dev/null +++ b/ui/connect-client/tests/test-helper.js @@ -0,0 +1,8 @@ +import Application from '../app'; +import config from '../config/environment'; +import { setApplication } from '@ember/test-helpers'; +import { start } from 'ember-qunit'; + +setApplication(Application.create(config.APP)); + +start(); diff --git a/ui/connect-client/tests/unit/.gitkeep b/ui/connect-client/tests/unit/.gitkeep new file mode 100644 index 000000000..e69de29bb diff --git a/ui/connect-client/vendor/.gitkeep b/ui/connect-client/vendor/.gitkeep new file mode 100644 index 000000000..e69de29bb