diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 719de55..8a30288 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -33,6 +33,8 @@ services: - DATA_MANAGER_URL=htwkalender-data-manager networks: - "net" + depends_on: + - htwkalender-data-manager htwkalender-frontend: image: DOCKER_REGISTRY_REPO-frontend # DOCKER_REGISTRY_REPO will be replaced by CI diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index f52e1aa..061692b 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -33,6 +33,8 @@ services: - DATA_MANAGER_URL=htwkalender-data-manager networks: - "net" + depends_on: + - htwkalender-data-manager htwkalender-frontend: image: DOCKER_REGISTRY_REPO-frontend # DOCKER_REGISTRY_REPO will be replaced by CI diff --git a/docker-compose.yml b/docker-compose.yml index 7ec3d59..97cd99c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -35,6 +35,8 @@ services: target: dev # prod environment: - DATA_MANAGER_URL=htwkalender-data-manager + depends_on: + - htwkalender-data-manager htwkalender-frontend: build: diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 8e67212..dc99832 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -27,8 +27,10 @@ http { include mime.types; default_type application/octet-stream; - access_log /opt/bitnami/nginx/logs/proxy_access.log; - error_log /opt/bitnami/nginx/logs/proxy_error.log; + log_format anonymized '[$time_local] "$request" $status $body_bytes_sent "$http_referer"'; + + access_log /opt/bitnami/nginx/logs/proxy_access.log anonymized; + error_log /opt/bitnami/nginx/logs/proxy_error.log error; sendfile on; keepalive_timeout 180s; diff --git a/frontend/src/i18n/translations/de.json b/frontend/src/i18n/translations/de.json index 3c0ee36..68c5bfe 100644 --- a/frontend/src/i18n/translations/de.json +++ b/frontend/src/i18n/translations/de.json @@ -142,7 +142,10 @@ "copyToastErrorDetail": "Link konnte nicht in Zwischenablage kopiert werden", "copyToClipboard": "Link kopieren", "toGoogleCalendar": "Google Kalender", - "toMicrosoftCalendar": "Microsoft Kalender" + "toMicrosoftCalendar": "Microsoft Kalender", + "copyTokenToastSummary": "Information", + "copyTokenToastNotification": "Token in die Zwischenablage kopiert, um den Kalender in der HTWK App zu abonnieren", + "toHTWKApp": "HTWK App" }, "calendarPreview": { "preview": "Vorschau", @@ -229,6 +232,14 @@ "six": "Sonstige Einstellungen nach Belieben vornehmen.", "seven": "Auf “Subscribe to calendar” klicken.", "eight": "Das Windows-Phone-Gerät muss mit dem gleichen Outlook.com-Benutzerkonto angemeldet sein. Fortan sollte die Synchronisierung des Kalenders automatisch erfolgen." + }, + "htwk_app": { + "description": "Die HTWK-App bietet die Möglichkeit, den Stundenplan direkt in der App zu abonnieren. Dazu musst du nur den Token in der App einfügen und schon hast du deinen Stundenplan immer dabei. ", + "one": "Erstelle deinen Kalender und kopiere den Token.", + "two": "Öffne die HTWK-App und gehe in den Kalender.", + "three": "Dort fügst du den Token ein und schon hast du deinen Stundenplan immer dabei.", + "four": "Falls du bereits einen Kalender in der App abonniert hast, kannst du über den Button oben rechts den Kalender wechseln.", + "five": "Der Kalender in der HTWK App wird über einen weiteren Service der App stündlich aktualisiert. Wenn du den Kalender bearbeitest werden die Änderungen erst nach einer Stunde in der App sichtbar." } }, "fourthQuestion": "Kalender abonnieren? Ich will den downloaden!", diff --git a/frontend/src/i18n/translations/en.json b/frontend/src/i18n/translations/en.json index 7f2992f..bc3c9e6 100644 --- a/frontend/src/i18n/translations/en.json +++ b/frontend/src/i18n/translations/en.json @@ -142,7 +142,10 @@ "copyToastErrorDetail": "could not copy link to clipboard", "copyToClipboard": "copy to clipboard", "toGoogleCalendar": "to Google Calendar", - "toMicrosoftCalendar": "to Microsoft Calendar" + "toMicrosoftCalendar": "to Microsoft Calendar", + "copyTokenToastSummary": "information", + "copyTokenToastNotification": "token copied to clipboard, go to the HTWK app to insert it", + "toHTWKApp": "HTWK App" }, "calendarPreview": { "preview": "preview", @@ -229,6 +232,14 @@ "six": "Make other settings as desired.", "seven": "Click on 'Subscribe to calendar.'", "eight": "The Windows Phone device must be logged in with the same Outlook.com user account. From now on, calendar synchronization should occur automatically." + }, + "htwk_app": { + "description": "The HTWK app offers the possibility to subscribe to the timetable directly in the app. All you have to do is insert the token in the app and you'll always have your timetable with you. ", + "one": "Create your calendar and copy the token.", + "two": "Open the HTWK app and go to the calendar.", + "three": "Paste the token there and you'll always have your timetable with you.", + "four": "If you have already subscribed to a calendar in the app, you can change the calendar using the button at the top right.", + "five": "The calendar in the HTWK app is updated hourly via another service of the app. If you edit the calendar, the changes will only be visible in the app after one hour." } }, "fourthQuestion": "Subscribe to the calendar? I want to download it!", diff --git a/frontend/src/view/CalendarLink.vue b/frontend/src/view/CalendarLink.vue index 23a7301..41f6dc5 100644 --- a/frontend/src/view/CalendarLink.vue +++ b/frontend/src/view/CalendarLink.vue @@ -78,6 +78,17 @@ const forwardToMicrosoft = () => { ); }; +const copyTokenToClipboard = () => { + navigator.clipboard.writeText(tokenStore().token).then(() => { + toast.add({ + severity: "info", + summary: t("calendarLink.copyTokenToastSummary"), + detail: t("calendarLink.copyTokenToastNotification"), + life: 3000, + }); + }); +}; + const actions = computed(() => [ { label: t("calendarLink.copyToClipboard"), @@ -94,6 +105,11 @@ const actions = computed(() => [ icon: "pi pi-microsoft", command: forwardToMicrosoft, }, + { + label: t("calendarLink.toHTWKApp"), + icon: "pi pi-mobile", + command: copyTokenToClipboard, + }, ]); diff --git a/frontend/src/view/FaqView.vue b/frontend/src/view/FaqView.vue index d856c85..db8067e 100644 --- a/frontend/src/view/FaqView.vue +++ b/frontend/src/view/FaqView.vue @@ -16,7 +16,8 @@ You should have received a copy of the GNU Affero General Public License along with this program. If not, see . --> - +