@berqnet/theme 2.4.291 → 2.4.292
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.mjs
CHANGED
|
@@ -38,7 +38,7 @@ const scripts = {
|
|
|
38
38
|
sass: "node generate-sass.js",
|
|
39
39
|
"clean-composables": "node remove-composable.js",
|
|
40
40
|
build: "nuxt-module-build build && npm run clean-composables",
|
|
41
|
-
version: "
|
|
41
|
+
version: "commit-and-tag-version --release-as ${npm_config_type:-patch}",
|
|
42
42
|
release: "npm run build && npm run version && npm run pub && git push --follow-tags origin main"
|
|
43
43
|
};
|
|
44
44
|
const repository = {
|
|
@@ -81,7 +81,7 @@ const PackageJson = {
|
|
|
81
81
|
types: types,
|
|
82
82
|
files: files,
|
|
83
83
|
scripts: scripts,
|
|
84
|
-
"
|
|
84
|
+
"commit-and-tag-version": {
|
|
85
85
|
tagPrefix: "theme-v",
|
|
86
86
|
releaseCommitMessageFormat: "chore(release): @berqnet/theme {{currentTag}}",
|
|
87
87
|
types: [
|
|
@@ -104,6 +104,7 @@ const PackageJson = {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
const folderPath = "./runtime";
|
|
107
|
+
const DEV_LAYOUT_NAME = "berqnet-modules";
|
|
107
108
|
const module = defineNuxtModule({
|
|
108
109
|
meta: {
|
|
109
110
|
name: PackageJson.name,
|
|
@@ -166,6 +167,16 @@ const module = defineNuxtModule({
|
|
|
166
167
|
}
|
|
167
168
|
});
|
|
168
169
|
});
|
|
170
|
+
if (isDev) {
|
|
171
|
+
nuxt.hook("app:templates", (app) => {
|
|
172
|
+
if (!app.layouts[DEV_LAYOUT_NAME]) {
|
|
173
|
+
app.layouts[DEV_LAYOUT_NAME] = {
|
|
174
|
+
name: DEV_LAYOUT_NAME,
|
|
175
|
+
file: resolver.resolve(`${folderPath}/layouts/${DEV_LAYOUT_NAME}.vue`)
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
169
180
|
addPlugin(resolver.resolve(`${folderPath}/plugins/sample-plugin`));
|
|
170
181
|
addPlugin(resolver.resolve(`${folderPath}/plugins/disable-warnings-plugin`));
|
|
171
182
|
addPlugin(resolver.resolve(`${folderPath}/plugins/theme-provider-plugin`));
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="flex flex-col grow bg-gray-50">
|
|
3
|
+
<header class="bg-white h-20 flex items-center border-b border-b-light-3">
|
|
4
|
+
<div class="container flex items-center justify-between">
|
|
5
|
+
<h1 class="font-bold">Berqnet Modules</h1>
|
|
6
|
+
<ul class="list-none flex gap-12">
|
|
7
|
+
<li v-for="link in links" :key="link.name">
|
|
8
|
+
<nuxt-link :to="{ name: link.name }">{{ link.label }}</nuxt-link>
|
|
9
|
+
</li>
|
|
10
|
+
</ul>
|
|
11
|
+
</div>
|
|
12
|
+
</header>
|
|
13
|
+
<div class="container grow py-12 bg-gray-50">
|
|
14
|
+
<slot />
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<script lang="ts" setup>
|
|
20
|
+
import { computed } from 'vue';
|
|
21
|
+
|
|
22
|
+
import { useRouter } from '#imports';
|
|
23
|
+
|
|
24
|
+
const ALL_LINKS = [
|
|
25
|
+
{ name: 'theme', label: 'Theme' },
|
|
26
|
+
{ name: 'icons', label: 'Icons' },
|
|
27
|
+
{ name: 'colors', label: 'Colors' },
|
|
28
|
+
{ name: 'fonts', label: 'Fonts' },
|
|
29
|
+
];
|
|
30
|
+
|
|
31
|
+
const router = useRouter();
|
|
32
|
+
|
|
33
|
+
const links = computed(() => ALL_LINKS.filter((link) => router.hasRoute(link.name)));
|
|
34
|
+
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@berqnet/theme",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.292",
|
|
4
4
|
"description": "A comprehensive Nuxt.js module providing a tailored theme experience with integrated TailwindCSS support for applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"sass": "node generate-sass.js",
|
|
28
28
|
"clean-composables": "node remove-composable.js",
|
|
29
29
|
"build": "nuxt-module-build build && npm run clean-composables",
|
|
30
|
-
"version": "
|
|
30
|
+
"version": "commit-and-tag-version --release-as ${npm_config_type:-patch}",
|
|
31
31
|
"release": "npm run build && npm run version && npm run pub && git push --follow-tags origin main"
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"commit-and-tag-version": {
|
|
34
34
|
"tagPrefix": "theme-v",
|
|
35
35
|
"releaseCommitMessageFormat": "chore(release): @berqnet/theme {{currentTag}}",
|
|
36
36
|
"types": [
|