mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-07 14:02:48 +00:00
refactor: update @openstapps/core
This commit is contained in:
@@ -10,12 +10,12 @@ import {
|
|||||||
SCUserGroupSetting,
|
SCUserGroupSetting,
|
||||||
} from '@openstapps/core';
|
} from '@openstapps/core';
|
||||||
import {readFileSync} from 'fs';
|
import {readFileSync} from 'fs';
|
||||||
import {resolve} from 'path';
|
import path from 'path';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Evaluates if a number is within the given range
|
* Evaluates if a number is within the given range
|
||||||
*
|
*
|
||||||
* @param num The number that should be checked
|
* @param number_ The number that should be checked
|
||||||
* @param range Array of two numbers representing a range (inclusive interval)
|
* @param range Array of two numbers representing a range (inclusive interval)
|
||||||
*/
|
*/
|
||||||
export function inRangeInclusive(number_: number, range: number[]): boolean {
|
export function inRangeInclusive(number_: number, range: number[]): boolean {
|
||||||
@@ -474,6 +474,7 @@ const config: Partial<SCConfigFile> = {
|
|||||||
id: 'personal',
|
id: 'personal',
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
|
authProvider: 'paia',
|
||||||
icon: 'account_circle',
|
icon: 'account_circle',
|
||||||
route: '/library-account',
|
route: '/library-account',
|
||||||
title: 'library account',
|
title: 'library account',
|
||||||
@@ -487,7 +488,21 @@ const config: Partial<SCConfigFile> = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: 'grade',
|
authProvider: 'default',
|
||||||
|
icon: 'task',
|
||||||
|
route: '/assessments',
|
||||||
|
title: 'summary of grades',
|
||||||
|
translations: {
|
||||||
|
de: {
|
||||||
|
title: 'Notenspiegel',
|
||||||
|
},
|
||||||
|
en: {
|
||||||
|
title: 'summary of grades',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
icon: 'star',
|
||||||
route: '/favorites',
|
route: '/favorites',
|
||||||
title: 'favorites',
|
title: 'favorites',
|
||||||
translations: {
|
translations: {
|
||||||
@@ -588,9 +603,8 @@ const config: Partial<SCConfigFile> = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
backend: {
|
backend: {
|
||||||
SCVersion: JSON.parse(readFileSync(resolve('.', '.', 'package.json'), 'utf-8').toString()).dependencies[
|
SCVersion: JSON.parse(readFileSync(path.resolve('.', '.', 'package.json'), 'utf8').toString())
|
||||||
'@openstapps/core'
|
.dependencies['@openstapps/core'],
|
||||||
],
|
|
||||||
externalRequestTimeout: 5000,
|
externalRequestTimeout: 5000,
|
||||||
hiddenTypes: [SCThingType.DateSeries, SCThingType.Diff, SCThingType.Floor],
|
hiddenTypes: [SCThingType.DateSeries, SCThingType.Diff, SCThingType.Floor],
|
||||||
mappingIgnoredTags: ['minlength', 'pattern', 'see', 'tjs-format'],
|
mappingIgnoredTags: ['minlength', 'pattern', 'see', 'tjs-format'],
|
||||||
|
|||||||
6
package-lock.json
generated
6
package-lock.json
generated
@@ -587,9 +587,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@openstapps/core": {
|
"@openstapps/core": {
|
||||||
"version": "0.69.0",
|
"version": "0.70.0",
|
||||||
"resolved": "https://registry.npmjs.org/@openstapps/core/-/core-0.69.0.tgz",
|
"resolved": "https://registry.npmjs.org/@openstapps/core/-/core-0.70.0.tgz",
|
||||||
"integrity": "sha512-IaUb10IfldokrqopdqsyHl5j3rVvg8CA10s2E+WpVOjgkXnW8SP9jVg5AP0jx3vgN3e0xHsrPtvrZWTPgyoSRQ==",
|
"integrity": "sha512-obLFSiI5P0cEAeadxEQ1Wbbe/FDiSi0p4azpmszUPyshpSXKqt4y6F4Z+dnswBSe85wtPg/PuHC1MYZ79SJB4g==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@openstapps/core-tools": "0.32.0",
|
"@openstapps/core-tools": "0.32.0",
|
||||||
"@types/geojson": "1.0.6",
|
"@types/geojson": "1.0.6",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@elastic/elasticsearch": "5.6.22",
|
"@elastic/elasticsearch": "5.6.22",
|
||||||
"@openstapps/core": "0.69.0",
|
"@openstapps/core": "0.70.0",
|
||||||
"@openstapps/core-tools": "0.32.0",
|
"@openstapps/core-tools": "0.32.0",
|
||||||
"@openstapps/logger": "1.0.0",
|
"@openstapps/logger": "1.0.0",
|
||||||
"@types/node": "14.18.24",
|
"@types/node": "14.18.24",
|
||||||
|
|||||||
Reference in New Issue
Block a user