Skip to content

Commit 14aa1ff

Browse files
Merge pull request #19 from webdevnerdstuff/dev
Dev
2 parents 6e0a75a + 657042a commit 14aa1ff

38 files changed

+1849
-914
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@
107107
"postcss-html": "^1.5.0",
108108
"postcss-scss": "^4.0.6",
109109
"prettier": "^2.8.8",
110+
"prismjs": "^1.29.0",
110111
"roboto-fontface": "^0.10.0",
111112
"rollup": "^3.24.0",
112113
"rollup-plugin-polyfill-node": "^0.12.0",

pnpm-lock.yaml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/App.vue

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
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
@@ -10,25 +13,14 @@
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>
@@ -37,10 +29,13 @@
3729

3830
<script setup>
3931
import { 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';
4335
import { 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
4641
const 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+
5466
provide('drawerOptions', drawerOptions);
5567
provide('links', store.links);
5668

src/components/MenuComponent.vue

Lines changed: 0 additions & 113 deletions
This file was deleted.

src/components/docs/DescriptionComponent.vue

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/components/docs/EventsComponent.vue

Lines changed: 0 additions & 95 deletions
This file was deleted.

0 commit comments

Comments
 (0)