@hostlink/nuxt-light 0.0.3
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/README.md +106 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.ts +7 -0
- package/dist/module.json +5 -0
- package/dist/module.mjs +51 -0
- package/dist/runtime/assets/element.css +15925 -0
- package/dist/runtime/assets/element.css.map +1 -0
- package/dist/runtime/assets/main.css +13 -0
- package/dist/runtime/components/l-add-btn.vue +22 -0
- package/dist/runtime/components/l-app-main.vue +214 -0
- package/dist/runtime/components/l-app.vue +17 -0
- package/dist/runtime/components/l-back-btn.vue +7 -0
- package/dist/runtime/components/l-btn.vue +19 -0
- package/dist/runtime/components/l-card.vue +19 -0
- package/dist/runtime/components/l-checkbox.vue +6 -0
- package/dist/runtime/components/l-col.vue +14 -0
- package/dist/runtime/components/l-customizer.vue +102 -0
- package/dist/runtime/components/l-date-picker.vue +78 -0
- package/dist/runtime/components/l-delete-btn.vue +23 -0
- package/dist/runtime/components/l-edit-btn.vue +3 -0
- package/dist/runtime/components/l-file-manager-labels.vue +55 -0
- package/dist/runtime/components/l-file-manager-move.vue +185 -0
- package/dist/runtime/components/l-file-manager-preview.vue +59 -0
- package/dist/runtime/components/l-file-manager.vue +618 -0
- package/dist/runtime/components/l-file.vue +33 -0
- package/dist/runtime/components/l-form.vue +73 -0
- package/dist/runtime/components/l-input.vue +48 -0
- package/dist/runtime/components/l-item.vue +14 -0
- package/dist/runtime/components/l-link.vue +24 -0
- package/dist/runtime/components/l-list.vue +5 -0
- package/dist/runtime/components/l-login.vue +128 -0
- package/dist/runtime/components/l-menu.vue +37 -0
- package/dist/runtime/components/l-page.vue +94 -0
- package/dist/runtime/components/l-row.vue +5 -0
- package/dist/runtime/components/l-save-btn.vue +3 -0
- package/dist/runtime/components/l-select.vue +77 -0
- package/dist/runtime/components/l-table.vue +333 -0
- package/dist/runtime/components/l-tabs.vue +5 -0
- package/dist/runtime/components/l-time-picker.vue +28 -0
- package/dist/runtime/components/l-view-btn.vue +3 -0
- package/dist/runtime/composables/addObject.d.ts +2 -0
- package/dist/runtime/composables/addObject.mjs +6 -0
- package/dist/runtime/composables/f.d.ts +1 -0
- package/dist/runtime/composables/f.mjs +27 -0
- package/dist/runtime/composables/getApiUrl.d.ts +1 -0
- package/dist/runtime/composables/getApiUrl.mjs +4 -0
- package/dist/runtime/composables/getCurrentUser.d.ts +2 -0
- package/dist/runtime/composables/getCurrentUser.mjs +8 -0
- package/dist/runtime/composables/getObject.d.ts +1 -0
- package/dist/runtime/composables/getObject.mjs +20 -0
- package/dist/runtime/composables/id.d.ts +2 -0
- package/dist/runtime/composables/id.mjs +12 -0
- package/dist/runtime/composables/list.d.ts +1 -0
- package/dist/runtime/composables/list.mjs +33 -0
- package/dist/runtime/composables/listData.d.ts +1 -0
- package/dist/runtime/composables/listData.mjs +30 -0
- package/dist/runtime/composables/login.d.ts +2 -0
- package/dist/runtime/composables/login.mjs +17 -0
- package/dist/runtime/composables/m.d.ts +1 -0
- package/dist/runtime/composables/m.mjs +73 -0
- package/dist/runtime/composables/mutation.d.ts +1 -0
- package/dist/runtime/composables/mutation.mjs +23 -0
- package/dist/runtime/composables/q.d.ts +1 -0
- package/dist/runtime/composables/q.mjs +18 -0
- package/dist/runtime/composables/removeObject.d.ts +1 -0
- package/dist/runtime/composables/removeObject.mjs +15 -0
- package/dist/runtime/composables/t.d.ts +1 -0
- package/dist/runtime/composables/t.mjs +8 -0
- package/dist/runtime/composables/updateObject.d.ts +2 -0
- package/dist/runtime/composables/updateObject.mjs +10 -0
- package/dist/runtime/composables/useLight.d.ts +7 -0
- package/dist/runtime/composables/useLight.mjs +17 -0
- package/dist/runtime/composables/viewAs.d.ts +1 -0
- package/dist/runtime/composables/viewAs.mjs +15 -0
- package/dist/runtime/locales/en.json +14 -0
- package/dist/runtime/locales/zh-hk.json +140 -0
- package/dist/runtime/pages/EventLog/_eventlog_id/view.vue +21 -0
- package/dist/runtime/pages/EventLog/index.vue +56 -0
- package/dist/runtime/pages/FileManager/index.vue +5 -0
- package/dist/runtime/pages/MailLog/index.vue +48 -0
- package/dist/runtime/pages/Permission/add.vue +47 -0
- package/dist/runtime/pages/Permission/all.vue +85 -0
- package/dist/runtime/pages/Permission/index.vue +26 -0
- package/dist/runtime/pages/Role/add.vue +28 -0
- package/dist/runtime/pages/Role/index.vue +51 -0
- package/dist/runtime/pages/System/database/backup.vue +5 -0
- package/dist/runtime/pages/System/database/table.vue +19 -0
- package/dist/runtime/pages/System/index.vue +8 -0
- package/dist/runtime/pages/System/mailtest.vue +22 -0
- package/dist/runtime/pages/System/package.vue +8 -0
- package/dist/runtime/pages/System/phpinfo.vue +8 -0
- package/dist/runtime/pages/System/setting.vue +68 -0
- package/dist/runtime/pages/System/view_as.vue +56 -0
- package/dist/runtime/pages/User/_user_id/change-password.vue +49 -0
- package/dist/runtime/pages/User/_user_id/edit.vue +49 -0
- package/dist/runtime/pages/User/_user_id/view.vue +21 -0
- package/dist/runtime/pages/User/add.vue +64 -0
- package/dist/runtime/pages/User/index.vue +47 -0
- package/dist/runtime/pages/User/profile.vue +25 -0
- package/dist/runtime/pages/User/update-password.vue +45 -0
- package/dist/runtime/pages/UserLog/index.vue +53 -0
- package/dist/runtime/pages/index.vue +9 -0
- package/dist/runtime/pages/logout.vue +10 -0
- package/dist/runtime/plugin.d.ts +4 -0
- package/dist/runtime/plugin.mjs +58 -0
- package/dist/runtime/routes.d.ts +7 -0
- package/dist/runtime/routes.mjs +261 -0
- package/dist/runtime/system_menus.d.ts +10 -0
- package/dist/runtime/system_menus.mjs +37 -0
- package/dist/types.d.ts +15 -0
- package/package.json +57 -0
package/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
Get your module up and running quickly.
|
|
3
|
+
|
|
4
|
+
Find and replace all on all files (CMD+SHIFT+F):
|
|
5
|
+
- Name: My Module
|
|
6
|
+
- Package name: my-module
|
|
7
|
+
- Description: My new Nuxt module
|
|
8
|
+
-->
|
|
9
|
+
|
|
10
|
+
# My Module
|
|
11
|
+
|
|
12
|
+
[![npm version][npm-version-src]][npm-version-href]
|
|
13
|
+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
|
|
14
|
+
[![License][license-src]][license-href]
|
|
15
|
+
[![Nuxt][nuxt-src]][nuxt-href]
|
|
16
|
+
|
|
17
|
+
My new Nuxt module for doing amazing things.
|
|
18
|
+
|
|
19
|
+
- [✨ Release Notes](/CHANGELOG.md)
|
|
20
|
+
<!-- - [🏀 Online playground](https://stackblitz.com/github/your-org/my-module?file=playground%2Fapp.vue) -->
|
|
21
|
+
<!-- - [📖 Documentation](https://example.com) -->
|
|
22
|
+
|
|
23
|
+
## Features
|
|
24
|
+
|
|
25
|
+
<!-- Highlight some of the features your module provide here -->
|
|
26
|
+
- ⛰ Foo
|
|
27
|
+
- 🚠 Bar
|
|
28
|
+
- 🌲 Baz
|
|
29
|
+
|
|
30
|
+
## Quick Setup
|
|
31
|
+
|
|
32
|
+
1. Add `my-module` dependency to your project
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Using pnpm
|
|
36
|
+
pnpm add -D my-module
|
|
37
|
+
|
|
38
|
+
# Using yarn
|
|
39
|
+
yarn add --dev my-module
|
|
40
|
+
|
|
41
|
+
# Using npm
|
|
42
|
+
npm install --save-dev my-module
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
2. Add `my-module` to the `modules` section of `nuxt.config.ts`
|
|
46
|
+
|
|
47
|
+
```js
|
|
48
|
+
export default defineNuxtConfig({
|
|
49
|
+
modules: [
|
|
50
|
+
'my-module'
|
|
51
|
+
]
|
|
52
|
+
})
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
That's it! You can now use My Module in your Nuxt app ✨
|
|
56
|
+
|
|
57
|
+
## Development
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Install dependencies
|
|
61
|
+
npm install
|
|
62
|
+
|
|
63
|
+
# Generate type stubs
|
|
64
|
+
npm run dev:prepare
|
|
65
|
+
|
|
66
|
+
# Develop with the playground
|
|
67
|
+
npm run dev
|
|
68
|
+
|
|
69
|
+
# Build the playground
|
|
70
|
+
npm run dev:build
|
|
71
|
+
|
|
72
|
+
# Run ESLint
|
|
73
|
+
npm run lint
|
|
74
|
+
|
|
75
|
+
# Run Vitest
|
|
76
|
+
npm run test
|
|
77
|
+
npm run test:watch
|
|
78
|
+
|
|
79
|
+
# Release new version
|
|
80
|
+
npm run release
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
<!-- Badges -->
|
|
84
|
+
[npm-version-src]: https://img.shields.io/npm/v/my-module/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
85
|
+
[npm-version-href]: https://npmjs.com/package/my-module
|
|
86
|
+
|
|
87
|
+
[npm-downloads-src]: https://img.shields.io/npm/dm/my-module.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
88
|
+
[npm-downloads-href]: https://npmjs.com/package/my-module
|
|
89
|
+
|
|
90
|
+
[license-src]: https://img.shields.io/npm/l/my-module.svg?style=flat&colorA=18181B&colorB=28CF8D
|
|
91
|
+
[license-href]: https://npmjs.com/package/my-module
|
|
92
|
+
|
|
93
|
+
[nuxt-src]: https://img.shields.io/badge/Nuxt-18181B?logo=nuxt.js
|
|
94
|
+
[nuxt-href]: https://nuxt.com
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
### app.vue
|
|
99
|
+
```html
|
|
100
|
+
<template>
|
|
101
|
+
<l-app>
|
|
102
|
+
<NuxtLoadingIndicator />
|
|
103
|
+
<NuxtPage />
|
|
104
|
+
</l-app>
|
|
105
|
+
</template>
|
|
106
|
+
```
|
package/dist/module.cjs
ADDED
package/dist/module.d.ts
ADDED
package/dist/module.json
ADDED
package/dist/module.mjs
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { defineNuxtModule, createResolver, addComponentsDir, addPlugin } from '@nuxt/kit';
|
|
2
|
+
import AutoImport from 'unplugin-auto-import/vite';
|
|
3
|
+
|
|
4
|
+
const module = defineNuxtModule({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "light",
|
|
7
|
+
configKey: "light"
|
|
8
|
+
},
|
|
9
|
+
// Default configuration options of the Nuxt module
|
|
10
|
+
defaults: {},
|
|
11
|
+
setup(options, nuxt) {
|
|
12
|
+
const resolver = createResolver(import.meta.url);
|
|
13
|
+
nuxt.options.modules.push("@nuxt/content");
|
|
14
|
+
nuxt.options.css.push("element-plus/dist/index.css");
|
|
15
|
+
nuxt.options.css.push("quasar/dist/quasar.prod.css");
|
|
16
|
+
nuxt.options.css.push("@quasar/extras/material-icons/material-icons.css");
|
|
17
|
+
nuxt.options.css.push("@quasar/extras/material-icons-outlined/material-icons-outlined.css");
|
|
18
|
+
nuxt.options.css.push("@quasar/extras/fontawesome-v6/fontawesome-v6.css");
|
|
19
|
+
nuxt.options.css.push("@quasar/extras/fontawesome-v5/fontawesome-v5.css");
|
|
20
|
+
nuxt.options.app.head.link = nuxt.options.app.head.link || [];
|
|
21
|
+
nuxt.options.app.head.link.push({
|
|
22
|
+
rel: "stylesheet",
|
|
23
|
+
href: "https://fonts.googleapis.com/css2?family=Noto+Sans&family=Noto+Sans+HK&family=Noto+Sans+TC&family=Material+Symbols+Outlined"
|
|
24
|
+
});
|
|
25
|
+
nuxt.options.vite.plugins?.push(AutoImport({
|
|
26
|
+
imports: [
|
|
27
|
+
"vue",
|
|
28
|
+
"vue-router",
|
|
29
|
+
{
|
|
30
|
+
"quasar": [
|
|
31
|
+
"useQuasar"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"vue-i18n": [
|
|
36
|
+
"useI18n"
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
dirs: [
|
|
41
|
+
resolver.resolve("./runtime/composables")
|
|
42
|
+
]
|
|
43
|
+
}));
|
|
44
|
+
addComponentsDir({
|
|
45
|
+
path: resolver.resolve("./runtime/components")
|
|
46
|
+
});
|
|
47
|
+
addPlugin(resolver.resolve("./runtime/plugin"));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
export { module as default };
|