Skip to content

Commit 184bc5c

Browse files
committed
Small update localization and UI
1 parent 5372a28 commit 184bc5c

File tree

9 files changed

+36
-38
lines changed

9 files changed

+36
-38
lines changed

src/_locales/de/messages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extName": {
3-
"message": "Web Activity Time Tracker - Blockieren Sie Websites und Webanalysen"
3+
"message": "Web Activity Time Tracker - Websites sperren, Pomodoro & Webanalyse"
44
},
55
"extDescription": {
66
"message": "Verfolgen und begrenzen Sie die Zeit Ihrer Webaktivitäten und blockieren Sie den Zugang zu den Websites. Überwachen Sie Ihre Internetnutzung."
@@ -361,7 +361,7 @@
361361
},
362362
"promoClearYoutube": {
363363
"message": "Möchten Sie Kurzfilme, Kommentare, empfohlene Videos, Abonnements und andere YouTube-Ablenkungen blockieren? Wir haben eine weitere Erweiterung erstellt, mit der Sie YouTube ohne Ablenkung ansehen können.",
364-
"description": "Install"
364+
"description": "Versuchen Clean YouTube"
365365
},
366366
"completelyBlocked": {
367367
"message": "Vollständig blockiert",

src/_locales/en/messages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extName": {
3-
"message": "Web Activity Time Tracker - Block Sites, Web Analytics & Pomodoro"
3+
"message": "Web Activity Time Tracker - Block Sites, Pomodoro & Web Analytics"
44
},
55
"extDescription": {
66
"message": "Track time of your web activity, limit and block distracting websites. Monitor your web usage."
@@ -263,7 +263,7 @@
263263
},
264264
"promoClearYoutube": {
265265
"message": "Would you like to block shorts, comments, recommended videos, subscriptions, and other YouTube distractions? We've created another extension that will help you watch YouTube without distractions.",
266-
"description": "Install"
266+
"description": "Try Clean Youtube"
267267
},
268268
"block": {
269269
"message": "You've reached your limit for today on "

src/_locales/es/messages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extName": {
3-
"message": "Web Activity Time Tracker - Bloquear sitios, análisis web y Pomodoro"
3+
"message": "Web Activity Time Tracker - Sitios bloqueados, Pomodoro y análisis web"
44
},
55
"extDescription": {
66
"message": "Controla el tiempo de tu actividad web, limita y bloquea los sitios web que te distraen. Monitoriza tu uso de la web."
@@ -263,7 +263,7 @@
263263
},
264264
"promoClearYoutube": {
265265
"message": "¿Te gustaría bloquear los cortos, los comentarios, los vídeos recomendados, las suscripciones y otras distracciones de YouTube? Hemos creado otra extensión que te ayudará a ver YouTube sin distracciones.",
266-
"description": "Instale"
266+
"description": "Prueba Clean YouTube"
267267
},
268268
"block": {
269269
"message": "Has alcanzado tu límite por hoy en"

src/_locales/ru/messages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extName": {
3-
"message": "Web Activity Time Tracker - Блокировка сайтов и \u0412\u0435\u0431 аналитика"
3+
"message": "Web Activity Time Tracker - Блокировка сайтов, Pomodoro и \u0412\u0435\u0431 аналитика"
44
},
55
"extDescription": {
66
"message": "Отслеживайте время вашей веб-активности и блокируйте отвлекающие сайты. Следите за тем, сколько времени вы проводите на сайтах."
@@ -288,7 +288,7 @@
288288
},
289289
"promoClearYoutube": {
290290
"message": "Хотели бы вы блокировать шортсы, комментарии, рекомендованные видео, подписки и другие отвлекающие элементы YouTube? Мы создали еще одно расширение, которое поможет вам смотреть YouTube без отвлекающих факторов.",
291-
"description": "Установить"
291+
"description": "Попробовать Clean YouTube"
292292
},
293293
"removeAllData": {
294294
"message": "Удалить все данные",

src/_locales/zh_CN/messages.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extName": {
3-
"message": "Web Activity Time Tracker - 阻止网站、网络分析和番茄钟"
3+
"message": "Web Activity Time Tracker - 封鎖網站、Pomodoro 與網頁分析"
44
},
55
"extDescription": {
66
"message": "追踪和限制您的网站活动时间,并阻止访问网站。监控您的网站使用情况"
@@ -361,7 +361,7 @@
361361
},
362362
"promoClearYoutube": {
363363
"message": "您想屏蔽短片、评论、推荐视频、订阅和其他 YouTube 干扰内容吗? 我们创建了另一个扩展程序,可帮助您不受干扰地观看 YouTube",
364-
"description": "安装"
364+
"description": "嘗試 Clean YouTube"
365365
},
366366
"completelyBlocked": {
367367
"message": "完全封锁",

src/assets/css/dashboard.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ body {
3434
min-height: 300px;
3535
cursor: pointer;
3636
list-style: none;
37-
padding: 10px;
37+
padding-left: 10px;
3838
max-height: 600px;
3939
overflow: auto;
4040
}
4141

4242
.url-list li {
43-
line-height: 25px;
4443
font-size: 14px;
4544
}
4645

src/components/ListWithTime.vue

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
11
<template>
2-
<ul readonly class="url-list">
3-
<li v-for="(limit, i) of list" :key="i">
4-
<div>
5-
<img src="../assets/icons/delete.png" height="16" @click="deleteFromList(limit.domain)" />
6-
<img
7-
src="../assets/icons/edit.svg"
8-
height="16"
9-
@click="editItemFromList(limit.domain, limit.time)"
10-
/>
11-
<Favicon :type="TypeOfUrl.WebSite" :favicon="getFavicon(limit.domain)" />
12-
<span>{{ limit.domain }}</span>
13-
<div>
14-
<p class="time-value d-inline-block" v-if="!completelyBlocked(limit.time)">
15-
{{ t('limit.message') }} : {{ getTime(limit.time) }}
16-
</p>
17-
<p class="blocked" v-if="completelyBlocked(limit.time)">
18-
{{ t('completelyBlocked.message') }}
19-
</p>
20-
</div>
21-
</div>
22-
</li>
23-
</ul>
24-
<div class="limits-time-block mt-20">
2+
<div class="limits-time-block mb-20">
253
<input
264
type="text"
275
:disabled="isEdit"
@@ -50,6 +28,28 @@
5028
<span>{{ t('completelyBlocked.description') }}</span>
5129
</label>
5230
</div>
31+
<ul readonly class="url-list">
32+
<li v-for="(limit, i) of list" :key="i">
33+
<div>
34+
<img src="../assets/icons/delete.png" height="16" @click="deleteFromList(limit.domain)" />
35+
<img
36+
src="../assets/icons/edit.svg"
37+
height="16"
38+
@click="editItemFromList(limit.domain, limit.time)"
39+
/>
40+
<Favicon :type="TypeOfUrl.WebSite" :favicon="getFavicon(limit.domain)" />
41+
<span>{{ limit.domain }}</span>
42+
<div>
43+
<p class="time-value d-inline-block" v-if="!completelyBlocked(limit.time)">
44+
{{ t('limit.message') }} : {{ getTime(limit.time) }}
45+
</p>
46+
<p class="blocked" v-if="completelyBlocked(limit.time)">
47+
{{ t('completelyBlocked.message') }}
48+
</p>
49+
</div>
50+
</div>
51+
</li>
52+
</ul>
5353
</template>
5454

5555
<script lang="ts">
@@ -213,6 +213,6 @@ async function save(value: any) {
213213
font-size: 13px;
214214
color: gray;
215215
margin-left: 55px;
216-
margin-top: 5px;
216+
margin-top: 0;
217217
}
218218
</style>

src/components/PromoClearYouTube.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ async function saveValue() {
6868
}
6969
.review-block input[type='button'] {
7070
float: right;
71-
width: auto;
7271
}
7372
.review-block p {
7473
display: inline-block;

src/welcome.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<title>Welcome to the Web Activity Time Tracker</title>
88
</head>
99

10-
<body style="background: linear-gradient(to right, #ececff, #fff2f4)">
10+
<body>
1111
<script type="module" src="./welcome.ts"></script>
1212
</body>
1313
</html>

0 commit comments

Comments
 (0)