mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-01-23 02:36:05 +00:00
chore: make everything work without warnings again
This commit is contained in:
parent
4b91d8de8c
commit
5482581eb9
4 changed files with 37 additions and 38 deletions
24
angular.json
24
angular.json
|
|
@ -25,6 +25,27 @@
|
|||
"customWebpackConfig": {
|
||||
"path": "./extra-webpack.config.js"
|
||||
},
|
||||
"allowedCommonJsDependencies": [
|
||||
"shortid",
|
||||
"dragula",
|
||||
"crossvent",
|
||||
"contra/emitter",
|
||||
"file-saver",
|
||||
"semver",
|
||||
"debounce-fn",
|
||||
"stack-generator",
|
||||
"stacktrace-gps",
|
||||
"error-stack-parser",
|
||||
"stacktrace-js",
|
||||
"helpful-decorators",
|
||||
"pkce-challenge",
|
||||
"moment-duration-format",
|
||||
"axios",
|
||||
"crypto",
|
||||
"jira2md",
|
||||
"query-string",
|
||||
"chart.js"
|
||||
],
|
||||
"aot": true,
|
||||
"outputPath": "dist",
|
||||
"index": "src/index.html",
|
||||
|
|
@ -60,7 +81,6 @@
|
|||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": true,
|
||||
"evalSourceMap": false,
|
||||
"extractCss": true,
|
||||
"namedChunks": false,
|
||||
"aot": true,
|
||||
|
|
@ -162,4 +182,4 @@
|
|||
"style": "scss"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,37 +4,20 @@ export const TRACKING_INTERVAL = 1000;
|
|||
|
||||
export const MODEL_VERSION_KEY = '__modelVersion';
|
||||
|
||||
import en from '@angular/common/locales/en';
|
||||
import es from '@angular/common/locales/es';
|
||||
import de from '@angular/common/locales/de';
|
||||
import ar from '@angular/common/locales/ar';
|
||||
import fa from '@angular/common/locales/fa';
|
||||
import fr from '@angular/common/locales/fr';
|
||||
import ja from '@angular/common/locales/ja';
|
||||
import ko from '@angular/common/locales/ko';
|
||||
import ru from '@angular/common/locales/ru';
|
||||
import tr from '@angular/common/locales/tr';
|
||||
import zh from '@angular/common/locales/zh';
|
||||
import it from '@angular/common/locales/it';
|
||||
import pt from '@angular/common/locales/pt';
|
||||
import nl from '@angular/common/locales/nl';
|
||||
|
||||
export const NG_LOCALES = {
|
||||
en,
|
||||
es,
|
||||
de,
|
||||
ar,
|
||||
fa,
|
||||
fr,
|
||||
ja,
|
||||
ko,
|
||||
ru,
|
||||
tr,
|
||||
zh,
|
||||
it,
|
||||
pt,
|
||||
nl,
|
||||
};
|
||||
import '@angular/common/locales/global/en';
|
||||
import '@angular/common/locales/global/es';
|
||||
import '@angular/common/locales/global/de';
|
||||
import '@angular/common/locales/global/ar';
|
||||
import '@angular/common/locales/global/fa';
|
||||
import '@angular/common/locales/global/fr';
|
||||
import '@angular/common/locales/global/ja';
|
||||
import '@angular/common/locales/global/ko';
|
||||
import '@angular/common/locales/global/ru';
|
||||
import '@angular/common/locales/global/tr';
|
||||
import '@angular/common/locales/global/zh';
|
||||
import '@angular/common/locales/global/it';
|
||||
import '@angular/common/locales/global/pt';
|
||||
import '@angular/common/locales/global/nl';
|
||||
|
||||
export const ALL_THEMES = [
|
||||
'blue',
|
||||
|
|
|
|||
|
|
@ -3,9 +3,8 @@ import { TranslateService } from '@ngx-translate/core';
|
|||
import { DateTimeAdapter } from 'ngx-date-time-picker-schedule';
|
||||
import { DateAdapter } from '@angular/material/core';
|
||||
import * as moment from 'moment';
|
||||
import { AUTO_SWITCH_LNGS, LanguageCode, LanguageCodeMomentMap, NG_LOCALES, RTL_LANGUAGES } from '../../app.constants';
|
||||
import { AUTO_SWITCH_LNGS, LanguageCode, LanguageCodeMomentMap, RTL_LANGUAGES } from '../../app.constants';
|
||||
import { BehaviorSubject, Observable } from 'rxjs';
|
||||
import { registerLocaleData } from '@angular/common';
|
||||
|
||||
@Injectable({providedIn: 'root'})
|
||||
export class LanguageService {
|
||||
|
|
@ -44,8 +43,6 @@ export class LanguageService {
|
|||
|
||||
private _setFn(lng: LanguageCode) {
|
||||
const momLng = LanguageCodeMomentMap[lng];
|
||||
const ngLocale = NG_LOCALES[lng];
|
||||
registerLocaleData(ngLocale);
|
||||
|
||||
this.isRTL.next(this._isRTL(lng));
|
||||
this._translateService.use(lng);
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
|||
import { AppModule } from './app/app.module';
|
||||
import { environment } from './environments/environment';
|
||||
import { IS_ELECTRON } from './app/app.constants';
|
||||
import 'hammerjs';
|
||||
import { IS_ANDROID_WEB_VIEW } from './app/util/is-android-web-view';
|
||||
import { androidInterface } from './app/core/android/android-interface';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue