Skip to content

Commit 87c7609

Browse files
committed
fix(Docker/Pomodoro Timer): allow Google Fonts for CSP + fix translation call
Fix #174
1 parent 6706c68 commit 87c7609

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

nginx.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ server {
1111
add_header X-Permitted-Cross-Domain-Policies none;
1212
add_header Cross-Origin-Resource-Policy same-site;
1313
add_header Cross-Origin-Opener-Policy same-origin;
14-
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob: https: http:; connect-src data: blob: https: http:; font-src 'self'; object-src 'none'; base-uri 'self'; form-action 'self';";
14+
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com http://fonts.googleapis.com; img-src 'self' data: blob: https: http:; connect-src data: blob: https: http:; font-src 'self' https: http:; object-src 'none'; base-uri 'self'; form-action 'self';";
1515
location / {
1616
rewrite ^/it-tools/(.*) /$1 break;
1717
try_files $uri $uri/ /index.html;

src/tools/pomodoro-timer/app/PomodoroApp.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@ const currentTab = computed(
7272
<Header />
7373
<div class="page-container">
7474
<n-tabs v-model:value="currentTab" type="line" animated>
75-
<n-tab-pane name="home" :tab="t('tools.pomodoro-timer.PomodoroApp.text.timer')">
75+
<n-tab-pane name="home" :tab="$t('tools.pomodoro-timer.PomodoroApp.text.timer')">
7676
<PomodoroHome />
7777
</n-tab-pane>
78-
<n-tab-pane name="about" :tab="t('tools.pomodoro-timer.PomodoroApp.text.about')">
78+
<n-tab-pane name="about" :tab="$t('tools.pomodoro-timer.PomodoroApp.text.about')">
7979
<PomodoroAbout />
8080
</n-tab-pane>
81-
<n-tab-pane name="settings" :tab="t('tools.pomodoro-timer.PomodoroApp.text.settings')">
81+
<n-tab-pane name="settings" :tab="$t('tools.pomodoro-timer.PomodoroApp.text.settings')">
8282
<PomodoroSettings />
8383
</n-tab-pane>
8484
</n-tabs>

0 commit comments

Comments
 (0)