File tree Expand file tree Collapse file tree 7 files changed +9
-24
lines changed Expand file tree Collapse file tree 7 files changed +9
-24
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <nuxt-layout >
2
+ <nuxt-layout name = " default " >
3
3
<nuxt-page ></nuxt-page >
4
4
</nuxt-layout >
5
5
</template >
Original file line number Diff line number Diff line change 53
53
let mode = ref (false );
54
54
watch (mode , () => {
55
55
if (! mode .value ) {
56
- document .body .parentElement ?.classList .add (" dark" );
57
56
} else {
58
- document .body .parentElement ?.classList .remove (" dark" );
59
57
}
60
58
});
61
59
let toggleUI = {
Original file line number Diff line number Diff line change 1
1
<script setup lang="ts">
2
- import { definePageMeta } from " #imports" ;
3
2
import highlightjs from " ~/assets/highlightjs.png" ;
4
3
import vue from " ~/assets/vue.png" ;
5
4
import nitro from " ~/assets/nitro.svg" ;
@@ -24,9 +23,6 @@ useAsyncData(async () => {
24
23
myInfo .value = data2 ?? null ;
25
24
console .log (data2 );
26
25
});
27
- definePageMeta ({
28
- layout: " default"
29
- });
30
26
31
27
useHead ({
32
28
title: " About Page"
Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ let pairedVales: Record<string, string> = {
33
33
" <" : " >" ,
34
34
" `" : " `"
35
35
};
36
- definePageMeta ({
37
- layout: " default"
38
- });
39
36
40
37
useHead ({
41
38
title: " Create Page"
@@ -200,7 +197,7 @@ function update(e = eKeyDefault) {
200
197
<UAccordion :items =" snipAccordian" size =" xl" >
201
198
<template #default >
202
199
<UButton color =" emerald" >
203
- <Icon :name =" icons (langSelect)" />
200
+ <Icon :name =" iconFn (langSelect)" />
204
201
{{ langLabels[langSelect] }}
205
202
</UButton >
206
203
</template >
Original file line number Diff line number Diff line change @@ -30,10 +30,6 @@ function goto() {
30
30
navigateTo (" /search/" + search .value );
31
31
}
32
32
33
- definePageMeta ({
34
- layout: " default"
35
- });
36
-
37
33
onMounted (async function () {
38
34
let search = document .querySelector <HTMLInputElement >(" #search" );
39
35
if (search == null ) return ;
Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ import "./../../app.css";
4
4
import hljs from " highlight.js" ;
5
5
import " highlight.js/styles/vs2015.css" ;
6
6
7
- import { useGQLFetch } from " ~/plugins/gql-fetch" ;
7
+ let langNamesPrint = useNuxtApp ().$langNamesPrint as (lang : string ) => string ;
8
+ let useGQLFetch = useNuxtApp ().$useGQLFetch as UseGQLFetch ;
8
9
9
10
let route = useRoute ();
10
11
let title: string = route .params .title ;
@@ -27,12 +28,12 @@ const nuxtApp = useNuxtApp();
27
28
28
29
onMounted (async function () {
29
30
if (nuxtApp .$useGQLFetch == undefined ) return ;
30
- ({ data: titleFind .value , error: error .value } = await useGQLFetch <{
31
- titleFind : {
31
+ ({ data: titleFind .value , error: error .value } = await useGQLFetch <
32
+ {
32
33
langName: string ;
33
34
codeBoxes : { title: string ; code : string }[];
34
- }[];
35
- } >(
35
+ }[]
36
+ > (
36
37
" http://localhost:3300/" ,
37
38
` #graphql
38
39
{
@@ -93,9 +94,7 @@ onMounted(async function () {
93
94
>
94
95
<span class =" truncate"
95
96
>{{ index + 1 }}.
96
- {{
97
- useNuxtApp().$langNamesPrint(item.langName)
98
- }}</span
97
+ {{ langNamesPrint(item.langName) }}</span
99
98
>
100
99
101
100
<template #trailing >
Original file line number Diff line number Diff line change @@ -39,7 +39,6 @@ onMounted(async function () {
39
39
" http://localhost:3300/" ,
40
40
query
41
41
));
42
- console .log (data .value , loading .value );
43
42
});
44
43
</script >
45
44
You can’t perform that action at this time.
0 commit comments