JS frontend stuff
Move old ember frontend to properly named folder Add vue based new frontend
This commit is contained in:
parent
8947d97825
commit
88398334fe
254 changed files with 837 additions and 0 deletions
21
frontend-old-ember/config/ember-cli-update.json
Normal file
21
frontend-old-ember/config/ember-cli-update.json
Normal file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"schemaVersion": "1.0.0",
|
||||
"packages": [
|
||||
{
|
||||
"name": "ember-cli",
|
||||
"version": "5.11.0",
|
||||
"blueprints": [
|
||||
{
|
||||
"name": "app",
|
||||
"outputRepo": "https://github.com/ember-cli/ember-new-output",
|
||||
"codemodsSource": "ember-app-codemods-manifest@1",
|
||||
"isBaseBlueprint": true,
|
||||
"options": [
|
||||
"--ci-provider=github",
|
||||
"--typescript"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
93
frontend-old-ember/config/ember-intl.js
Normal file
93
frontend-old-ember/config/ember-intl.js
Normal file
|
@ -0,0 +1,93 @@
|
|||
module.exports = function (/* environment */) {
|
||||
return {
|
||||
/**
|
||||
* Cause a build error if missing translations are detected.
|
||||
*
|
||||
* See https://ember-intl.github.io/ember-intl/docs/guide/missing-translations#throwing-a-build-error-on-missing-when-required-translations
|
||||
*
|
||||
* @property errorOnMissingTranslations
|
||||
* @type {Boolean}
|
||||
* @default "false"
|
||||
*/
|
||||
errorOnMissingTranslations: false,
|
||||
|
||||
/**
|
||||
* Cause a build error if ICU argument mismatches are detected between translations
|
||||
* with the same key across all locales.
|
||||
*
|
||||
* @property errorOnNamedArgumentMismatch
|
||||
* @type {Boolean}
|
||||
* @default "false"
|
||||
*/
|
||||
errorOnNamedArgumentMismatch: false,
|
||||
|
||||
/**
|
||||
* Merges the fallback locale's translations into all other locales as a
|
||||
* build-time fallback strategy.
|
||||
*
|
||||
* This will **not** prevent missing translation warnings or errors from occurring.
|
||||
* It's meant as safety net when warnings are enabled.
|
||||
* When enabled along with `errorOnMissingTranslations` any fallback attempts will result in an error.
|
||||
*
|
||||
* @property fallbackLocale
|
||||
* @type {String?}
|
||||
* @default "null"
|
||||
*/
|
||||
fallbackLocale: null,
|
||||
|
||||
/**
|
||||
* Path where translations are stored. This is relative to the project root.
|
||||
* For example, if your translations are an npm dependency, set this to:
|
||||
*`'./node_modules/path/to/translations'`
|
||||
*
|
||||
* @property inputPath
|
||||
* @type {String}
|
||||
* @default "'translations'"
|
||||
*/
|
||||
inputPath: 'translations',
|
||||
|
||||
/**
|
||||
* Prevents the translations from being bundled with the application code.
|
||||
* This enables asynchronously loading the translations for the active locale
|
||||
* by fetching them from the asset folder of the build.
|
||||
*
|
||||
* See: https://ember-intl.github.io/ember-intl/docs/guide/asynchronously-loading-translations
|
||||
*
|
||||
* @property publicOnly
|
||||
* @type {Boolean}
|
||||
* @default "false"
|
||||
*/
|
||||
publicOnly: false,
|
||||
|
||||
/**
|
||||
* A function that is called whenever any translation key, from any locale, is missing at build time.
|
||||
*
|
||||
* See https://ember-intl.github.io/ember-intl/docs/guide/missing-translations#requiring-translations
|
||||
*
|
||||
* @property requiresTranslation
|
||||
* @type {Function}
|
||||
* @default "function(key,locale) { return true }"
|
||||
*/
|
||||
requiresTranslation(/* key, locale */) {
|
||||
return true;
|
||||
},
|
||||
|
||||
/**
|
||||
* Removes empty translations from the build output.
|
||||
*
|
||||
* @property stripEmptyTranslations
|
||||
* @type {Boolean}
|
||||
* @default "false"
|
||||
*/
|
||||
stripEmptyTranslations: false,
|
||||
|
||||
/**
|
||||
* Add the subdirectories of the translations as a namespace for all keys.
|
||||
*
|
||||
* @property wrapTranslationsWithNamespace
|
||||
* @type {Boolean}
|
||||
* @default "false"
|
||||
*/
|
||||
wrapTranslationsWithNamespace: true,
|
||||
};
|
||||
};
|
48
frontend-old-ember/config/environment.js
Normal file
48
frontend-old-ember/config/environment.js
Normal file
|
@ -0,0 +1,48 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = function (environment) {
|
||||
const ENV = {
|
||||
modulePrefix: 'frontend-reactive',
|
||||
environment,
|
||||
rootURL: '/',
|
||||
locationType: 'history',
|
||||
EmberENV: {
|
||||
EXTEND_PROTOTYPES: false,
|
||||
FEATURES: {
|
||||
// Here you can enable experimental features on an ember canary build
|
||||
// e.g. EMBER_NATIVE_DECORATOR_SUPPORT: true
|
||||
},
|
||||
},
|
||||
|
||||
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;
|
||||
};
|
7
frontend-old-ember/config/optional-features.json
Normal file
7
frontend-old-ember/config/optional-features.json
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"application-template-wrapper": false,
|
||||
"default-async-observers": true,
|
||||
"jquery-integration": false,
|
||||
"template-only-glimmer-components": true,
|
||||
"no-implicit-route-model": true
|
||||
}
|
11
frontend-old-ember/config/targets.js
Normal file
11
frontend-old-ember/config/targets.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
const browsers = [
|
||||
'last 1 Chrome versions',
|
||||
'last 1 Firefox versions',
|
||||
'last 1 Safari versions',
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
browsers,
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue