Skip to content

Commit 4271728

Browse files
committed
feat(web): update claude code 4
1 parent a954ba6 commit 4271728

20 files changed

+81
-81
lines changed

web/src/App.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@
491491
</v-list-item-content>
492492

493493
<v-list-item-action>
494-
<v-chip color="red" v-if="user.admin" small>{{ $i18n.t('admin') }}</v-chip>
494+
<v-chip color="red" v-if="user.admin" small>{{ $t('admin') }}</v-chip>
495495
</v-list-item-action>
496496
</v-list-item>
497497
</template>
@@ -1083,14 +1083,14 @@ export default {
10831083
}
10841084
},
10851085
1086-
darkMode(val) {
1087-
this.$vuetify.theme.global.name.value = val ? 'dark' : 'light';
1088-
if (val) {
1089-
localStorage.setItem('darkMode', '1');
1090-
} else {
1091-
localStorage.removeItem('darkMode');
1092-
}
1093-
},
1086+
// darkMode(val) {
1087+
// this.$vuetify.theme.global.name.value = val ? 'dark' : 'light';
1088+
// if (val) {
1089+
// localStorage.setItem('darkMode', '1');
1090+
// } else {
1091+
// localStorage.removeItem('darkMode');
1092+
// }
1093+
// },
10941094
},
10951095
10961096
computed: {

web/src/components/TaskList.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default {
9292
return {
9393
headers: [
9494
{
95-
text: this.$i18n.t('taskId'),
95+
text: this.$t('taskId'),
9696
value: 'id',
9797
sortable: false,
9898
},
@@ -102,27 +102,27 @@ export default {
102102
width: '0%',
103103
},
104104
{
105-
text: this.$i18n.t('version'),
105+
text: this.$t('version'),
106106
value: 'version',
107107
sortable: false,
108108
},
109109
{
110-
text: this.$i18n.t('status'),
110+
text: this.$t('status'),
111111
value: 'status',
112112
sortable: false,
113113
},
114114
{
115-
text: this.$i18n.t('user'),
115+
text: this.$t('user'),
116116
value: 'user_name',
117117
sortable: false,
118118
},
119119
{
120-
text: this.$i18n.t('start'),
120+
text: this.$t('start'),
121121
value: 'start',
122122
sortable: false,
123123
},
124124
{
125-
text: this.$i18n.t('duration'),
125+
text: this.$t('duration'),
126126
value: 'end',
127127
sortable: false,
128128
},
@@ -153,7 +153,7 @@ export default {
153153
},
154154
155155
getActionButtonTitle() {
156-
return this.$i18n.t(`Re${TEMPLATE_TYPE_ACTION_TITLES[this.template.type]}`);
156+
return this.$t(`Re${TEMPLATE_TYPE_ACTION_TITLES[this.template.type]}`);
157157
},
158158
159159
createTask(task) {

web/src/plugins/i18.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if (!locale) {
88
}
99

1010
export default createI18n({
11-
legacy: false,
11+
legacy: true,
1212
fallbackLocale: 'en',
1313
locale,
1414
messages,

web/src/views/Apps.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,14 @@ export default {
123123
text: '',
124124
value: 'active',
125125
}, {
126-
text: this.$i18n.t('name'),
126+
text: this.$t('name'),
127127
value: 'title',
128128
}, {
129129
text: 'ID',
130130
value: 'id',
131131
width: '100%',
132132
}, {
133-
text: this.$i18n.t('actions'),
133+
text: this.$t('actions'),
134134
value: 'actions',
135135
sortable: false,
136136
}];

web/src/views/Runners.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -541,25 +541,25 @@ semaphore runner start --no-config`;
541541
{
542542
value: 'active',
543543
}, {
544-
text: this.$i18n.t('name'),
544+
text: this.$t('name'),
545545
value: 'name',
546546
width: '50%',
547547
},
548548
...(this.projectId ? [] : [{
549-
text: this.$i18n.t('project'),
549+
text: this.$t('project'),
550550
value: 'project_id',
551551
}]),
552552
{
553-
text: this.$i18n.t('webhook'),
553+
text: this.$t('webhook'),
554554
value: 'webhook',
555555
}, {
556-
text: this.$i18n.t('tag'),
556+
text: this.$t('tag'),
557557
value: 'tag',
558558
}, {
559-
text: this.$i18n.t('activity'),
559+
text: this.$t('activity'),
560560
value: 'touched',
561561
}, {
562-
text: this.$i18n.t('actions'),
562+
text: this.$t('actions'),
563563
value: 'actions',
564564
sortable: false,
565565
}];

web/src/views/Tasks.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,22 +107,22 @@ export default {
107107
108108
getHeaders() {
109109
return [{
110-
text: this.$i18n.t('task', {}),
110+
text: this.$t('task', {}),
111111
value: 'task_id',
112112
}, {
113-
text: this.$i18n.t('project'),
113+
text: this.$t('project'),
114114
value: 'project_id',
115115
}, {
116-
text: this.$i18n.t('username'),
116+
text: this.$t('username'),
117117
value: 'username',
118118
}, {
119-
text: this.$i18n.t('status'),
119+
text: this.$t('status'),
120120
value: 'status',
121121
}, {
122-
text: this.$i18n.t('location'),
122+
text: this.$t('location'),
123123
value: 'location',
124124
}, {
125-
text: this.$i18n.t('actions'),
125+
text: this.$t('actions'),
126126
value: 'actions',
127127
sortable: false,
128128
width: 70,

web/src/views/Tokens.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ export default {
142142
143143
getHeaders() {
144144
return [{
145-
text: this.$i18n.t('token'),
145+
text: this.$t('token'),
146146
value: 'id',
147147
}, {
148-
text: this.$i18n.t('created'),
148+
text: this.$t('created'),
149149
value: 'created',
150150
}, {
151-
text: this.$i18n.t('status'),
151+
text: this.$t('status'),
152152
value: 'expired',
153153
}, {
154154
text: '',

web/src/views/Users.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,33 +120,33 @@ export default {
120120
methods: {
121121
getHeaders() {
122122
return [{
123-
text: this.$i18n.t('name'),
123+
text: this.$t('name'),
124124
value: 'name',
125125
width: '50%',
126126
},
127127
{
128-
text: this.$i18n.t('username'),
128+
text: this.$t('username'),
129129
value: 'username',
130130
},
131131
{
132-
text: this.$i18n.t('email'),
132+
text: this.$t('email'),
133133
value: 'email',
134134
},
135135
{
136-
text: this.$i18n.t('alert'),
136+
text: this.$t('alert'),
137137
value: 'alert',
138138
},
139139
{
140-
text: this.$i18n.t('admin'),
140+
text: this.$t('admin'),
141141
value: 'admin',
142142
},
143143
{
144-
text: this.$i18n.t('external'),
144+
text: this.$t('external'),
145145
value: 'external',
146146
width: '50%',
147147
},
148148
{
149-
text: this.$i18n.t('actions'),
149+
text: this.$t('actions'),
150150
value: 'actions',
151151
sortable: false,
152152
}];

web/src/views/project/Activity.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,19 @@ export default {
3737
getHeaders() {
3838
return [
3939
{
40-
text: this.$i18n.t('time'),
40+
text: this.$t('time'),
4141
value: 'created',
4242
sortable: false,
4343
width: '20%',
4444
},
4545
{
46-
text: this.$i18n.t('user'),
46+
text: this.$t('user'),
4747
value: 'username',
4848
sortable: false,
4949
width: '10%',
5050
},
5151
{
52-
text: this.$i18n.t('description'),
52+
text: this.$t('description'),
5353
value: 'description',
5454
sortable: false,
5555
width: '70%',

web/src/views/project/Environment.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export default {
9494
methods: {
9595
getHeaders() {
9696
return [{
97-
text: this.$i18n.t('name'),
97+
text: this.$t('name'),
9898
value: 'name',
9999
width: '100%',
100100
},

0 commit comments

Comments
 (0)