11<template >
22 <v-app id =" home" >
33 <!-- ====================================================== App Bar -->
4- <AppBar @updated-drawer =" toggleDrawer" />
4+ <AppBar
5+ @changed-theme =" updateCodeBlockTheme"
6+ @updated-drawer =" toggleDrawer"
7+ />
58
69 <!-- ====================================================== Navigation Drawer -->
710 <v-navigation-drawer
1013 :color =" drawerOptions.color"
1114 :elevation =" drawerOptions.elevation"
1215 >
13- <!-- <v-list>
14- <v-list-item>
15- <v-list-item-title class="text-h6">
16- Drilldown Table
17- </v-list-item-title>
18- <v-list-item-subtitle></v-list-item-subtitle>
19- </v-list-item>
20- </v-list>
21-
22- <v-divider></v-divider> -->
23-
2416 <MenuComponent :drawerOptions =" drawerOptions" />
2517 </v-navigation-drawer >
2618
2719 <!-- ====================================================== Main Container -->
2820 <v-main class =" main-container pb-10" >
2921 <v-responsive >
3022 <v-container class =" px-10" >
31- <DocsComponent />
23+ <DocsPage :codeBlockOptions = " codeBlockSettings " />
3224 </v-container >
3325 </v-responsive >
3426 </v-main >
3729
3830<script setup>
3931import { provide , ref } from ' vue' ;
40- import AppBar from ' ./layout/AppBar.vue' ;
41- import MenuComponent from ' ./components/MenuComponent.vue' ;
42- import DocsComponent from ' ./components/DocsComponent .vue' ;
32+ import AppBar from ' ./documentation/ layout/AppBar.vue' ;
33+ import MenuComponent from ' ./documentation/ components/MenuComponent.vue' ;
34+ import DocsPage from ' ./documentation/DocsPage .vue' ;
4335import { useCoreStore } from ' ./stores/index' ;
36+ // eslint-disable-next-line @typescript-eslint/no-unused-vars, no-unused-vars
37+ import Prism from ' prismjs' ;
38+ import ' prismjs/components/prism-typescript.js' ;
4439
4540
4641const store = useCoreStore ();
@@ -51,6 +46,23 @@ const drawerOptions = ref({
5146 elevation: 10 ,
5247});
5348
49+ const codeBlockPlugin = ' prismjs' ;
50+ const codeBlockLightTheme = ' tomorrow' ;
51+ const codeBlockDarkTheme = ' tomorrow' ;
52+
53+ const codeBlockSettings = ref ({
54+ plugin: codeBlockPlugin,
55+ theme: codeBlockDarkTheme,
56+ });
57+
58+ function updateCodeBlockTheme (val ) {
59+ codeBlockSettings .value .theme = codeBlockLightTheme;
60+
61+ if (val === ' dark' ) {
62+ codeBlockSettings .value .theme = codeBlockDarkTheme;
63+ }
64+ }
65+
5466provide (' drawerOptions' , drawerOptions);
5567provide (' links' , store .links );
5668
0 commit comments