Skip to content

Commit a954ba6

Browse files
committed
feat(web): update claude code 3
1 parent b308c01 commit a954ba6

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

web/src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1084,7 +1084,7 @@ export default {
10841084
},
10851085
10861086
darkMode(val) {
1087-
this.$vuetify.theme.global.name = val ? 'dark' : 'light';
1087+
this.$vuetify.theme.global.name.value = val ? 'dark' : 'light';
10881088
if (val) {
10891089
localStorage.setItem('darkMode', '1');
10901090
} else {

web/src/plugins/vuetify.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,42 @@
11
import { createVuetify } from 'vuetify';
22
import { aliases, mdi } from 'vuetify/iconsets/mdi';
3+
import * as components from 'vuetify/components';
4+
import * as directives from 'vuetify/directives';
35
import OpenTofuIcon from '@/components/OpenTofuIcon.vue';
46
import PulumiIcon from '@/components/PulumiIcon.vue';
57
import TerragruntIcon from '@/components/TerragruntIcon.vue';
68
import HashicorpVaultIcon from '@/components/HashicorpVaultIcon.vue';
79

810
export default createVuetify({
11+
components,
12+
directives,
13+
theme: {
14+
defaultTheme: 'light',
15+
themes: {
16+
light: {
17+
colors: {
18+
primary: '#1976D2',
19+
secondary: '#424242',
20+
accent: '#82B1FF',
21+
error: '#FF5252',
22+
info: '#2196F3',
23+
success: '#4CAF50',
24+
warning: '#FFC107',
25+
},
26+
},
27+
dark: {
28+
colors: {
29+
primary: '#2196F3',
30+
secondary: '#424242',
31+
accent: '#FF4081',
32+
error: '#FF5252',
33+
info: '#2196F3',
34+
success: '#4CAF50',
35+
warning: '#FB8C00',
36+
},
37+
},
38+
},
39+
},
940
icons: {
1041
defaultSet: 'mdi',
1142
aliases,

web/vue.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ module.exports = {
55
plugins: [
66
new webpack.DefinePlugin({
77
'process.env.VUE_APP_BUILD_TYPE': JSON.stringify(process.env.VUE_APP_BUILD_TYPE),
8+
// Vue 3 feature flags
9+
'__VUE_OPTIONS_API__': JSON.stringify(true),
10+
'__VUE_PROD_DEVTOOLS__': JSON.stringify(false),
11+
'__VUE_PROD_HYDRATION_MISMATCH_DETAILS__': JSON.stringify(false),
812
}),
913
],
1014
devServer: {

0 commit comments

Comments
 (0)