@adminforth/i18n 2.0.23 → 2.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.log
CHANGED
|
@@ -20,5 +20,5 @@ custom/package.json
|
|
|
20
20
|
custom/pnpm-lock.yaml
|
|
21
21
|
custom/tsconfig.json
|
|
22
22
|
|
|
23
|
-
sent 45,
|
|
24
|
-
total size is 44,
|
|
23
|
+
sent 45,257 bytes received 305 bytes 91,124.00 bytes/sec
|
|
24
|
+
total size is 44,110 speedup is 0.97
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
<div class="grid grid-cols-3 gap-2">
|
|
14
|
-
<div
|
|
14
|
+
<div
|
|
15
|
+
class="bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 border-gray-200 dark:border-gray-700 transition-all px-2 py-2 rounded-md border max-w-64 w-full flex items-center justify-between gap-2"
|
|
16
|
+
v-for="(task, index) in translationTasks"
|
|
17
|
+
:key="index"
|
|
18
|
+
>
|
|
15
19
|
<span class="truncate">
|
|
16
20
|
{{ task.state?.taskName }} to
|
|
17
21
|
</span>
|
|
@@ -44,7 +48,7 @@ const currentPaginationWindow = ref({limit: 25, offset: 0});
|
|
|
44
48
|
const props = defineProps<{
|
|
45
49
|
meta: any;
|
|
46
50
|
getJobTasks: (limit?: number, offset?: number) => Promise<
|
|
47
|
-
{
|
|
51
|
+
{state: Record<string, any>, status: string}[]>;
|
|
48
52
|
job: {
|
|
49
53
|
id: string;
|
|
50
54
|
name: string;
|
|
@@ -60,9 +64,7 @@ const props = defineProps<{
|
|
|
60
64
|
}>();
|
|
61
65
|
|
|
62
66
|
onMounted(async () => {
|
|
63
|
-
|
|
64
|
-
translationTasks.value = tasks;
|
|
65
|
-
|
|
67
|
+
translationTasks.value = await props.getJobTasks(currentPaginationWindow.value.limit, currentPaginationWindow.value.offset);
|
|
66
68
|
websocket.subscribe(`/background-jobs-task-update/${props.job.id}`, (data: { taskIndex: number, status?: string, state?: Record<string, any> }) => {
|
|
67
69
|
if ( data.taskIndex <= currentPaginationWindow.value.offset + currentPaginationWindow.value.limit && data.taskIndex >= currentPaginationWindow.value.offset ) {
|
|
68
70
|
if (data.state) {
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
<div class="grid grid-cols-3 gap-2">
|
|
14
|
-
<div
|
|
14
|
+
<div
|
|
15
|
+
class="bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 border-gray-200 dark:border-gray-700 transition-all px-2 py-2 rounded-md border max-w-64 w-full flex items-center justify-between gap-2"
|
|
16
|
+
v-for="(task, index) in translationTasks"
|
|
17
|
+
:key="index"
|
|
18
|
+
>
|
|
15
19
|
<span class="truncate">
|
|
16
20
|
{{ task.state?.taskName }} to
|
|
17
21
|
</span>
|
|
@@ -44,7 +48,7 @@ const currentPaginationWindow = ref({limit: 25, offset: 0});
|
|
|
44
48
|
const props = defineProps<{
|
|
45
49
|
meta: any;
|
|
46
50
|
getJobTasks: (limit?: number, offset?: number) => Promise<
|
|
47
|
-
{
|
|
51
|
+
{state: Record<string, any>, status: string}[]>;
|
|
48
52
|
job: {
|
|
49
53
|
id: string;
|
|
50
54
|
name: string;
|
|
@@ -60,9 +64,7 @@ const props = defineProps<{
|
|
|
60
64
|
}>();
|
|
61
65
|
|
|
62
66
|
onMounted(async () => {
|
|
63
|
-
|
|
64
|
-
translationTasks.value = tasks;
|
|
65
|
-
|
|
67
|
+
translationTasks.value = await props.getJobTasks(currentPaginationWindow.value.limit, currentPaginationWindow.value.offset);
|
|
66
68
|
websocket.subscribe(`/background-jobs-task-update/${props.job.id}`, (data: { taskIndex: number, status?: string, state?: Record<string, any> }) => {
|
|
67
69
|
if ( data.taskIndex <= currentPaginationWindow.value.offset + currentPaginationWindow.value.limit && data.taskIndex >= currentPaginationWindow.value.offset ) {
|
|
68
70
|
if (data.state) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminforth/i18n",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.25",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"p-limit": "^7.3.0"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"adminforth": "^3.
|
|
41
|
+
"adminforth": "^3.1.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/node": "^22.10.7",
|
|
45
|
-
"adminforth": "^3.
|
|
45
|
+
"adminforth": "^3.1.1",
|
|
46
46
|
"i18n-iso-countries": "^7.13.0",
|
|
47
47
|
"semantic-release": "^24.2.1",
|
|
48
48
|
"semantic-release-slack-bot": "^4.0.2",
|