fix help mode keys import
This commit is contained in:
parent
48c3a4ee63
commit
ad4016f6d0
@ -69,7 +69,7 @@ import { UI_CACHES } from '@utils/constants';
|
||||
import { ColorPickerService } from 'ngx-color-picker';
|
||||
import { LoggerModule, NGXLogger, NgxLoggerLevel, TOKEN_LOGGER_CONFIG, TOKEN_LOGGER_RULES_SERVICE } from 'ngx-logger';
|
||||
import { ToastrModule } from 'ngx-toastr';
|
||||
import * as helpModeKeys from '../assets/help-mode/help-mode-keys.json';
|
||||
import helpModeKeys from '../assets/help-mode/help-mode-keys.json';
|
||||
import { AppRoutingModule } from './app-routing.module';
|
||||
import { AppComponent } from './app.component';
|
||||
import { IconsModule } from './modules/icons/icons.module';
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import { inject, Injectable } from '@angular/core';
|
||||
import featuresJson from '../../assets/features/features.json';
|
||||
import { getConfig } from '@iqser/common-ui';
|
||||
import { AppConfig } from '@red/domain';
|
||||
import { NGXLogger } from 'ngx-logger';
|
||||
import featuresJson from '../../assets/features/features.json';
|
||||
|
||||
function transform(version: string): number {
|
||||
const [major, minor, patch, release] = version.split(/[.-]/).map(x => parseInt(x, 10));
|
||||
@ -23,7 +23,7 @@ export class FeaturesService {
|
||||
}
|
||||
|
||||
loadConfig() {
|
||||
const BACKEND_APP_VERSION = transform(this.#config.BACKEND_APP_VERSION as string);
|
||||
const BACKEND_APP_VERSION = transform(this.#config.BACKEND_APP_VERSION);
|
||||
featuresJson.features.forEach(feature => {
|
||||
this.#features.set(feature.name, transform(feature.minVersion) <= BACKEND_APP_VERSION);
|
||||
});
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM node:20.14-buster AS builder
|
||||
FROM node:20.15-buster AS builder
|
||||
|
||||
WORKDIR /ng-app
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user