chore: refactor a lot, add codegen and upgrade vue

This commit is contained in:
2022-08-03 18:40:05 +02:00
parent 0e1ce42af2
commit e24b65c85b
42 changed files with 3854 additions and 1073 deletions
+6 -2
View File
@@ -5,12 +5,16 @@
</template>
<script>
import { getCurrentInstance } from 'vue'
import { getDarkMode } from '../../utils/localStorage'
export default {
name: 'ThemedLayout',
setup(props, context) {
context.root.$vuetify.theme.dark = getDarkMode()
setup() {
const instance = getCurrentInstance()
if (instance) {
instance.proxy.$vuetify.theme.dark = getDarkMode()
}
}
}
</script>