mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 14:02:48 +00:00
committed by
Rainer Killinger
parent
e59689e94c
commit
32c8a2149a
@@ -1,6 +1,8 @@
|
|||||||
// tslint:disable:no-default-export
|
// tslint:disable:no-default-export
|
||||||
// tslint:disable:no-magic-numbers
|
// tslint:disable:no-magic-numbers
|
||||||
import {SCConfigFile, SCSettingInputType, SCThingOriginType, SCThingType} from '@openstapps/core';
|
import {SCConfigFile, SCSettingInputType, SCThingOriginType, SCThingType} from '@openstapps/core';
|
||||||
|
import {readFileSync} from 'fs';
|
||||||
|
import {resolve} from 'path';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is the default configuration for app and backend
|
* This is the default configuration for app and backend
|
||||||
@@ -253,7 +255,8 @@ const config: Partial<SCConfigFile> = {
|
|||||||
|
|
||||||
},
|
},
|
||||||
backend: {
|
backend: {
|
||||||
SCVersion: '1.0.0',
|
SCVersion: JSON.parse((readFileSync(resolve('.', '.', 'package.json'), 'utf-8')).toString())
|
||||||
|
.dependencies['@openstapps/core'],
|
||||||
externalRequestTimeout: 5000,
|
externalRequestTimeout: 5000,
|
||||||
hiddenTypes: [
|
hiddenTypes: [
|
||||||
SCThingType.DateSeries,
|
SCThingType.DateSeries,
|
||||||
|
|||||||
@@ -16,8 +16,6 @@
|
|||||||
import {SCConfigFile, SCPluginMetaData} from '@openstapps/core';
|
import {SCConfigFile, SCPluginMetaData} from '@openstapps/core';
|
||||||
import {Validator} from '@openstapps/core-tools/lib/validate';
|
import {Validator} from '@openstapps/core-tools/lib/validate';
|
||||||
import config from 'config';
|
import config from 'config';
|
||||||
import {readFileSync} from 'fs';
|
|
||||||
import {resolve} from 'path';
|
|
||||||
import {BackendTransport} from './notification/backend-transport';
|
import {BackendTransport} from './notification/backend-transport';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -58,8 +56,7 @@ export const plugins = new Map<string, SCPluginMetaData>();
|
|||||||
/**
|
/**
|
||||||
* The version of the installed core
|
* The version of the installed core
|
||||||
*/
|
*/
|
||||||
export const coreVersion: string = JSON.parse((readFileSync(resolve('.', '.', 'package.json'), 'utf-8')).toString())
|
export const coreVersion: string = configFile.backend.SCVersion;
|
||||||
.dependencies['@openstapps/core'];
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default timeout in milliseconds
|
* The default timeout in milliseconds
|
||||||
|
|||||||
Reference in New Issue
Block a user