refactor: use material symbols for menu

This commit is contained in:
Jovan Krunić
2022-08-22 15:25:00 +00:00
committed by Thea Schöbl
parent 557d050b36
commit 9e1017edfb
2 changed files with 85 additions and 152 deletions

View File

@@ -3,19 +3,20 @@
import {SCAboutPageContentType, SCConfigFile, SCLanguageCode} from '@openstapps/core';
import {RecursivePartial} from '@openstapps/logger/lib/common';
const markdownSources: {[key in SCLanguageCode]?: {
/**
* Privacy policy markdown
*/
privacyPolicy?: string;
/**
* Terms and conditions markdown
*/
termsAndConditions?: string;
}} = {en: {}, de: {}};
const markdownSources: {
[key in SCLanguageCode]?: {
/**
* Privacy policy markdown
*/
privacyPolicy?: string;
/**
* Terms and conditions markdown
*/
termsAndConditions?: string;
};
} = {en: {}, de: {}};
markdownSources.de!.privacyPolicy =
`
markdownSources.de!.privacyPolicy = `
Diese Datenschutzerklärung dient zur Erfüllung der nach Artikel 13 EU DSGVO geforderten Informationspflicht bei Erhebung von Daten zum Zeitpunkt der Erhebung bei betroffenen Personen.
# **Name und Anschrift des Verantwortlichen**
@@ -176,8 +177,7 @@ Pseudonymisierung gehören kann.</li>
</ol>
`;
markdownSources.de!.termsAndConditions =
`
markdownSources.de!.termsAndConditions = `
<p>Stand: 04. November 2015</p>
<p>Es gilt der jeweilige Datenschutz der Hochschule im jeweiligen Bundesland. Darüber hinaus gelten die folgenden Vereinbarungen. Mit der Installation erklären Sie sich bereit die folgenden Bedingungen zu akzeptieren. <br>
</p>
@@ -282,8 +282,7 @@ markdownSources.de!.termsAndConditions =
<p>Fragen oder Anmerkungen zu dieser AGB richten Sie bitte an: <a href="mailto:app@rz.uni-frankfurt.de">app@rz.uni-frankfurt.de</a></p>
`;
markdownSources.en!.privacyPolicy =
`
markdownSources.en!.privacyPolicy = `
This data protection declaration serves to fulfill the information obligation required under Article 13 EU DSGVO when data is collected at the time of collection from data subjects.
# **Name and address of the responsible person**
@@ -445,8 +444,7 @@ Pseudonymization may include.</li>
</ol>
`;
markdownSources.en!.termsAndConditions =
`
markdownSources.en!.termsAndConditions = `
<p>As of November 04, 2015</p>
<p>The respective data protection of the university in the respective federal state applies. In addition, the following agreements apply. By installing you agree to accept the following terms and conditions. <br>
</p>
@@ -551,7 +549,6 @@ markdownSources.en!.termsAndConditions =
<p>If you have any questions or comments about these terms and conditions, please contact: <a href="mailto:app@rz.uni-frankfurt.de">app@rz.uni-frankfurt.de</a></p>
`;
/**
* This is the default configuration for the Goethe university of Frankfurt
*/
@@ -598,8 +595,7 @@ const config: RecursivePartial<SCConfigFile> = {
title: 'Über das StApps Projekt',
content: [
{
title:
'Verbundprojekt mehrerer Hochschulen für eine generische Studierenden-App',
title: 'Verbundprojekt mehrerer Hochschulen für eine generische Studierenden-App',
content: {
type: SCAboutPageContentType.MARKDOWN,
value: `
@@ -622,8 +618,7 @@ const config: RecursivePartial<SCConfigFile> = {
},
translations: {
en: {
title:
'Collaborative project of multiple universities for a single generic study app',
title: 'Collaborative project of multiple universities for a single generic study app',
},
},
type: SCAboutPageContentType.SECTION,
@@ -649,8 +644,7 @@ const config: RecursivePartial<SCConfigFile> = {
Norbert-Wollheim-Platz 1<br>
60629 Frankfurt
`,
translations: {
},
translations: {},
type: SCAboutPageContentType.MARKDOWN,
},
],
@@ -669,8 +663,7 @@ const config: RecursivePartial<SCConfigFile> = {
'[app@rz.uni-frankfurt.de](mailto:app@rz.uni-frankfurt.de)<br>' +
'[+49 69 798 32936](tel:+496979832936)<br>' +
'[https://app.rz.uni-frankfurt.de](https://app.rz.uni-frankfurt.de)',
translations: {
},
translations: {},
type: SCAboutPageContentType.MARKDOWN,
},
],
@@ -696,7 +689,7 @@ const config: RecursivePartial<SCConfigFile> = {
type: SCAboutPageContentType.ROUTER_LINK,
},
{
icon: 'document',
icon: 'description',
title: 'Impressum',
link: 'imprint',
translations: {
@@ -707,7 +700,7 @@ const config: RecursivePartial<SCConfigFile> = {
type: SCAboutPageContentType.ROUTER_LINK,
},
{
icon: 'shield-half',
icon: 'policy',
title: 'Datenschutz',
link: 'privacy',
translations: {
@@ -718,7 +711,7 @@ const config: RecursivePartial<SCConfigFile> = {
type: SCAboutPageContentType.ROUTER_LINK,
},
{
icon: 'reader',
icon: 'text_snippet',
title: 'Allgemeine Geschäftsbedingungen',
link: 'terms',
translations: {
@@ -729,7 +722,7 @@ const config: RecursivePartial<SCConfigFile> = {
type: SCAboutPageContentType.ROUTER_LINK,
},
{
icon: 'library',
icon: 'copyright',
title: 'Bibliotheken und Lizenzen',
link: 'licenses',
translations: {