@shwfed/nuxt 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +3 -0
- package/dist/runtime/components/app.vue +1 -5
- package/dist/runtime/style.css +1 -0
- package/package.json +6 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addImportsDir, addComponentsDir, addRouteMiddleware } from '@nuxt/kit';
|
|
2
2
|
import VueI18nPlugin from '@intlify/unplugin-vue-i18n/vite';
|
|
3
|
+
import TailwindCSS from '@tailwindcss/vite';
|
|
3
4
|
import defu from 'defu';
|
|
4
5
|
|
|
5
6
|
const module$1 = defineNuxtModule({
|
|
@@ -28,10 +29,12 @@ const module$1 = defineNuxtModule({
|
|
|
28
29
|
nuxt.options.runtimeConfig.public.shwfed = resolvedConfig;
|
|
29
30
|
nuxt.options.css ||= [];
|
|
30
31
|
nuxt.options.css.push("vue-sonner/style.css");
|
|
32
|
+
nuxt.options.css.push(resolver.resolve("./runtime/style.css"));
|
|
31
33
|
nuxt.options.ssr = false;
|
|
32
34
|
addVitePlugin(VueI18nPlugin({
|
|
33
35
|
ssr: true
|
|
34
36
|
}));
|
|
37
|
+
addVitePlugin(TailwindCSS());
|
|
35
38
|
addPlugin(resolver.resolve("runtime/plugins/i18n/index"));
|
|
36
39
|
addPlugin(resolver.resolve("runtime/plugins/cel/index"));
|
|
37
40
|
addPlugin(resolver.resolve("runtime/plugins/markdown/index"));
|
|
@@ -61,11 +61,7 @@ const {
|
|
|
61
61
|
} = useFavorite("navigation", () => props.sidebar ?? []);
|
|
62
62
|
const logout = () => {
|
|
63
63
|
if (shwfed.api.logout) {
|
|
64
|
-
|
|
65
|
-
url.search = new URLSearchParams({
|
|
66
|
-
Authorization: sessionStorage.getItem("token")
|
|
67
|
-
}).toString();
|
|
68
|
-
window.location.href = url.toString();
|
|
64
|
+
window.location.href = shwfed.api.logout;
|
|
69
65
|
}
|
|
70
66
|
return Effect.void;
|
|
71
67
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "tailwindcss";@plugin "@tailwindcss/typography";@source "components";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shwfed/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,9 +41,12 @@
|
|
|
41
41
|
"@intlify/unplugin-vue-i18n": "^11.0.3",
|
|
42
42
|
"@marcbachmann/cel-js": "^7.2.1",
|
|
43
43
|
"@nuxt/kit": "^4.3.0",
|
|
44
|
+
"@tailwindcss/typography": "^0.5.19",
|
|
45
|
+
"@tailwindcss/vite": "^4.2.1",
|
|
44
46
|
"@tanstack/vue-table": "^8.21.3",
|
|
45
47
|
"@tanstack/vue-virtual": "^3.13.18",
|
|
46
48
|
"@vueuse/core": "^14.1.0",
|
|
49
|
+
"@vueuse/integrations": "^14.1.0",
|
|
47
50
|
"bignumber.js": "^9.3.1",
|
|
48
51
|
"class-variance-authority": "^0.7.1",
|
|
49
52
|
"clsx": "^2.1.1",
|
|
@@ -54,6 +57,7 @@
|
|
|
54
57
|
"markdown-it": "^14.1.0",
|
|
55
58
|
"mutative": "^1.3.0",
|
|
56
59
|
"reka-ui": "^2.7.0",
|
|
60
|
+
"sortablejs": "^1.15.0",
|
|
57
61
|
"tailwind-merge": "^3.4.0",
|
|
58
62
|
"vue": "^3.5.27",
|
|
59
63
|
"vue-i18n": "^11.2.8",
|
|
@@ -72,6 +76,7 @@
|
|
|
72
76
|
"@types/markdown-it": "^14.1.2",
|
|
73
77
|
"@types/node": "latest",
|
|
74
78
|
"@vue/test-utils": "^2.4.6",
|
|
79
|
+
"@vueuse/nuxt": "^14.2.1",
|
|
75
80
|
"changelogen": "^0.6.2",
|
|
76
81
|
"eslint": "^9.39.2",
|
|
77
82
|
"husky": "^9.1.7",
|