-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
1,270 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,35 @@ | ||
<template> | ||
<p> | ||
{{ $route.params.id }} | ||
</p> | ||
<div> | ||
<div v-html="testPost.post.description"></div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { SERVER_API_CONSTANTS } from "~/utils/lib-temp/constants/serverApiConstants" | ||
import { Post } from "~/utils/lib-temp/common/post" | ||
import Env from "zhi-env" | ||
import ZhiUtil from "~/utils/zhiUtil" | ||
const nuxtEnv = useRuntimeConfig() | ||
const env = new Env(nuxtEnv) | ||
const zhiSdk = ZhiUtil.zhiSdk(env) | ||
const logger = zhiSdk.getLogger() | ||
const route = useRoute() | ||
const testPost = reactive({ | ||
post: <Post>{}, | ||
}) | ||
try { | ||
const res = await useFetch(SERVER_API_CONSTANTS.SERVER_API_GET_POST, { | ||
method: "post", | ||
body: { | ||
id: route.params.id.includes(".html") ? route.params.id.toString().replace(".html", "") : route.params.id, | ||
}, | ||
}) | ||
testPost.post = <Post>(res?.data.value as any).data | ||
} catch (e) { | ||
logger.error(SERVER_API_CONSTANTS.SERVER_API_GET_POST + "error", e) | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// import { createDeviceDetector } from "next-vue-device-detector" | ||
|
||
export default defineNuxtPlugin(({ vueApp }) => { | ||
// const device = createDeviceDetector() | ||
// vueApp.use(device) | ||
}) |
Oops, something went wrong.