mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 00:23:03 +00:00
refactor: update configs to production values
This commit is contained in:
@@ -111,7 +111,7 @@ const languageSetting: SCLanguageSetting = {
|
||||
* IDE to read the TSDoc documentation.
|
||||
*/
|
||||
|
||||
const config: Partial<SCConfigFile> = {
|
||||
const config: SCConfigFile = {
|
||||
app: {
|
||||
aboutPages: {
|
||||
'about': {
|
||||
@@ -242,17 +242,6 @@ const config: Partial<SCConfigFile> = {
|
||||
},
|
||||
type: SCAboutPageContentType.ROUTER_LINK,
|
||||
},
|
||||
{
|
||||
icon: 'text_snippet',
|
||||
title: 'Allgemeine Geschäftsbedingungen',
|
||||
link: 'terms',
|
||||
translations: {
|
||||
en: {
|
||||
title: 'Terms and conditions',
|
||||
},
|
||||
},
|
||||
type: SCAboutPageContentType.ROUTER_LINK,
|
||||
},
|
||||
{
|
||||
icon: 'copyright',
|
||||
title: 'Bibliotheken und Lizenzen',
|
||||
@@ -279,17 +268,21 @@ const config: Partial<SCConfigFile> = {
|
||||
card: true,
|
||||
content: {
|
||||
value: `
|
||||
[Nimrasi Universität Null Island]()
|
||||
|
||||
[Königliche Hochschule Lummerland]()
|
||||
`,
|
||||
[Johann Wolfgang Goethe-Universität Frankfurt am Main](https://uni-frankfurt.de)<br>
|
||||
[Philipps-Universität Marburg](https://www.uni-marburg.de)<br>
|
||||
[Technische Hochschule Mittelhessen](https://www.thm.de)<br>
|
||||
[Universität Kassel](https://www.uni-kassel.de)<br>
|
||||
weitere Hochschulen und Mitarbeitende
|
||||
`,
|
||||
translations: {
|
||||
en: {
|
||||
value: `
|
||||
[Nimrasi University of Null Island]()
|
||||
|
||||
[Royal Institute of Make-Believe]()
|
||||
`,
|
||||
[Goethe University Frankfurt](https://uni-frankfurt.de)<br>
|
||||
[University of Marburg](https://www.uni-marburg.de)<br>
|
||||
[University of Applied Sciences Mittelhessen](https://www.thm.de)<br>
|
||||
[University of Kassel](https://www.uni-kassel.de)<br>
|
||||
further universities and developers
|
||||
`,
|
||||
},
|
||||
},
|
||||
type: SCAboutPageContentType.MARKDOWN,
|
||||
@@ -327,25 +320,6 @@ const config: Partial<SCConfigFile> = {
|
||||
},
|
||||
},
|
||||
},
|
||||
'about/terms': {
|
||||
title: 'Allgemeine Geschäftsbedingungen',
|
||||
content: [
|
||||
{
|
||||
value: 'Hier wären die AGB',
|
||||
translations: {
|
||||
en: {
|
||||
value: 'This would be the terms & conditions',
|
||||
},
|
||||
},
|
||||
type: SCAboutPageContentType.MARKDOWN,
|
||||
},
|
||||
],
|
||||
translations: {
|
||||
en: {
|
||||
title: 'Terms and conditions',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
campusPolygon: {
|
||||
coordinates: [
|
||||
@@ -359,14 +333,7 @@ const config: Partial<SCConfigFile> = {
|
||||
],
|
||||
type: 'Polygon',
|
||||
},
|
||||
features: {
|
||||
extern: {
|
||||
paia: {
|
||||
authProvider: 'paia',
|
||||
url: 'https://hds.hebis.de/paia/core',
|
||||
},
|
||||
},
|
||||
},
|
||||
features: {},
|
||||
menus: [
|
||||
{
|
||||
icon: 'home',
|
||||
@@ -538,10 +505,10 @@ const config: Partial<SCConfigFile> = {
|
||||
title: 'about',
|
||||
translations: {
|
||||
de: {
|
||||
title: 'Über Open StApps',
|
||||
title: 'Über die App',
|
||||
},
|
||||
en: {
|
||||
title: 'About Open StApps',
|
||||
title: 'About the App',
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -562,26 +529,7 @@ const config: Partial<SCConfigFile> = {
|
||||
privacyPolicyUrl: 'https://mobile.server.uni-frankfurt.de/_static/privacy.md',
|
||||
settings: [userGroupSetting, languageSetting],
|
||||
},
|
||||
auth: {
|
||||
paia: {
|
||||
client: {
|
||||
clientId: '',
|
||||
scopes: '',
|
||||
url: 'https://hds.hebis.de/Shibboleth.sso/UBFFM?target=https://hds.hebis.de/ubffm/paia_login_stub.php',
|
||||
},
|
||||
endpoints: {
|
||||
authorization:
|
||||
'https://hds.hebis.de/Shibboleth.sso/UBFFM?target=https://hds.hebis.de/ubffm/paia_login_stub.php',
|
||||
mapping: {
|
||||
id: '$.email',
|
||||
name: '$.name',
|
||||
role: '$.type',
|
||||
},
|
||||
token: 'https://hds.hebis.de/paia/auth/login',
|
||||
userinfo: 'https://hds.hebis.de/paia/core',
|
||||
},
|
||||
},
|
||||
},
|
||||
auth: {},
|
||||
backend: {
|
||||
SCVersion: JSON.parse(readFileSync(path.resolve('.', '.', 'package.json'), 'utf8').toString())
|
||||
.dependencies['@openstapps/core'],
|
||||
|
||||
Reference in New Issue
Block a user