diff --git a/CHANGELOG.md b/CHANGELOG.md index 8eb65a5a..ce1fa040 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,11 @@ # Changelog -## [1.4.0](https://github.com/terwer/siyuan-plugin-blog/compare/v1.3.0...v1.4.0) (2023-06-21) +## [1.5.0](https://github.com/terwer/siyuan-plugin-blog/compare/v1.4.0...v1.5.0) (2023-06-21) ### Features +* 支持内部链接和外部链接 ([605abd8](https://github.com/terwer/siyuan-plugin-blog/commit/605abd89bdf7edd9762586ce30d00dd3241069c7)) +* 支持任务列表 +* 增加打开主页链接 +## [1.4.0](https://github.com/terwer/siyuan-plugin-blog/compare/v1.3.0...v1.4.0) (2023-06-21) * 支持设置自定义域名 ([bf17949](https://github.com/terwer/siyuan-plugin-blog/commit/bf179498a893c156511478dd7ccd46aa9728f09c)) ### Bug Fixes * 修复未打开浮窗时可能出现的报错问题 ([f379a9d](https://github.com/terwer/siyuan-plugin-blog/commit/f379a9d5ddae19b30a98865d227162ec9255d0c8)) diff --git a/nuxt.config.ts b/nuxt.config.ts index 2e078519..cc86dd5c 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -9,7 +9,7 @@ const generateDynamicV = () => { } const isDev = process.env.NODE_ENV === "development" -const appBase = "/plugins/siyuan-blog/" +const appBase = "/" const staticV = generateDynamicV() // https://nuxt.com/docs/api/configuration/nuxt-config @@ -24,14 +24,7 @@ export default defineNuxtConfig({ }, // build modules - modules: [ - "@vueuse/nuxt", - "@nuxtjs/i18n-edge", - "@element-plus/nuxt", - "@nuxtjs/color-mode", - "@pinia/nuxt", - "@nuxt/image", - ], + modules: ["@vueuse/nuxt", "@nuxtjs/i18n", "@element-plus/nuxt", "@nuxtjs/color-mode", "@pinia/nuxt", "@nuxt/image"], // vueuse vueuse: { @@ -54,7 +47,7 @@ export default defineNuxtConfig({ define: { "process.env.DEV_MODE": `"${isDev}"`, "process.env.APP_BASE": `"${appBase}"`, - "process.env.SSR": `"false"`, + "process.env.SSR": `"true"`, }, plugins: [], }, @@ -65,14 +58,6 @@ export default defineNuxtConfig({ themes: ["dark"], }, - // https://nuxt.com/docs/guide/going-further/custom-routing#hash-mode-spa - ssr: false, - router: { - options: { - hashMode: true, - }, - }, - css: ["~/assets/siyuan/style.styl", "~/assets/siyuan/index.styl"], app: { @@ -109,15 +94,11 @@ export default defineNuxtConfig({ // 环境变量 runtimeConfig: { - // siyuanAuthToken: process.env.NUXT_SIYUAN_AUTH_TOKEN, - siyuanAuthToken: "", + siyuanAuthToken: process.env.NUXT_SIYUAN_AUTH_TOKEN, public: { - // defaultType: process.env.NUXT_PUBLIC_DEFAULT_TYPE, - defaultType: "siyuan", - // siyuanApiUrl: process.env.NUXT_PUBLIC_SIYUAN_API_URL, - siyuanApiUrl: "", - // waitTime: process.env.NUXT_PUBLIC_WAIT_TIME, - waitTime: "0", + defaultType: process.env.NUXT_PUBLIC_DEFAULT_TYPE ?? "siyuan", + siyuanApiUrl: process.env.NUXT_PUBLIC_SIYUAN_API_URL ?? "http://127.0.0.1:6806", + waitTime: process.env.NUXT_PUBLIC_WAIT_TIME, }, }, }) diff --git a/package.json b/package.json index a2359341..b7276df2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "siyuan-blog", - "version": "1.4.0", + "version": "1.5.0", "description": "The notions sharing function you want is here too", "type": "module", "scripts": { diff --git a/plugin.json b/plugin.json index 87e1968d..d046b9b1 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,7 @@ "name": "siyuan-blog", "author": "terwer", "url": "https://github.com/terwer/siyuan-plugin-blog", - "version": "1.4.0", + "version": "1.5.0", "minAppVersion": "2.9.0", "backends": [ "windows", diff --git a/scripts/docker.sh b/scripts/docker.sh index 345b2de3..2819712f 100644 --- a/scripts/docker.sh +++ b/scripts/docker.sh @@ -3,7 +3,7 @@ # 使用 Docker 构建配置 echo "Using Docker build config as SSR build." -APP_VERSION=1.4.0 +APP_VERSION=1.5.0 # 兼容 node 的构建 pnpm nodeBuild