@owdproject/nuxt-app-about 0.0.0-stage → 4.0.0-alpha.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/LICENSE +20 -0
- package/README.md +49 -2
- package/dist/module.d.mts +17 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +73 -0
- package/dist/runtime/app.config.d.ts +31 -0
- package/dist/runtime/app.config.js +38 -0
- package/dist/runtime/components/Window/WindowAbout.d.vue.ts +6 -0
- package/dist/runtime/components/Window/WindowAbout.vue +86 -0
- package/dist/runtime/components/Window/WindowAbout.vue.d.ts +6 -0
- package/dist/runtime/plugin.d.ts +2 -0
- package/dist/runtime/plugin.js +10 -0
- package/dist/runtime/server/tsconfig.json +3 -0
- package/dist/types.d.mts +7 -0
- package/package.json +76 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Open Web Desktop Team ~ github.com/owdproject
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
19
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
20
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img width="160" height="160" src="https://avatars.githubusercontent.com/u/65117737?s=160&v=4" />
|
|
3
|
+
</p>
|
|
4
|
+
<h1 align="center">About</h1>
|
|
5
|
+
<h3 align="center">
|
|
6
|
+
About App for Open Web Desktop.
|
|
7
|
+
</h3>
|
|
2
8
|
|
|
3
|
-
|
|
9
|
+
<br />
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
This app for Open Web Desktop displays the version and other system information.
|
|
14
|
+
|
|
15
|
+
[Demo](https://owdproject.github.io/nuxt-app-about/) · [Documentation](https://owdproject.github.io/docs/) · [Support](https://github.com/sponsors/owdproject)
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
pnpm desktop add app-about
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Configuration
|
|
24
|
+
|
|
25
|
+
Add the app to your `desktop.config.ts`:
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
export default defineDesktopConfig({
|
|
29
|
+
apps: [
|
|
30
|
+
'@owdproject/nuxt-app-about'
|
|
31
|
+
],
|
|
32
|
+
about: {
|
|
33
|
+
title: 'Open Web Desktop',
|
|
34
|
+
subtitle: 'github.com/owdproject/nuxt-desktop',
|
|
35
|
+
href: 'https://github.com/owdproject/nuxt-desktop',
|
|
36
|
+
versionText: 'v{desktopVersion} on Nuxt {nuxtVersion}',
|
|
37
|
+
icons: [
|
|
38
|
+
{
|
|
39
|
+
title: 'Open Web Desktop',
|
|
40
|
+
name: 'mdi:hexagon-multiple-outline',
|
|
41
|
+
size: 24,
|
|
42
|
+
},
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
})
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
## License
|
|
49
|
+
|
|
50
|
+
This application is released under the [MIT License](LICENSE).
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _nuxt_schema from '@nuxt/schema';
|
|
2
|
+
|
|
3
|
+
declare const _default: _nuxt_schema.NuxtModule<{
|
|
4
|
+
title: string;
|
|
5
|
+
subtitle: string;
|
|
6
|
+
href: string;
|
|
7
|
+
versionText: string;
|
|
8
|
+
icons: never[];
|
|
9
|
+
}, {
|
|
10
|
+
title: string;
|
|
11
|
+
subtitle: string;
|
|
12
|
+
href: string;
|
|
13
|
+
versionText: string;
|
|
14
|
+
icons: never[];
|
|
15
|
+
}, false>;
|
|
16
|
+
|
|
17
|
+
export { _default as default };
|
package/dist/module.json
ADDED
package/dist/module.mjs
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { defineNuxtModule, createResolver, addComponentsDir, addPlugin } from '@nuxt/kit';
|
|
2
|
+
import { registerTailwindPath } from '@owdproject/nuxt-kit-tailwind/kit/registerTailwindPath';
|
|
3
|
+
|
|
4
|
+
const module$1 = defineNuxtModule({
|
|
5
|
+
meta: {
|
|
6
|
+
name: "desktop-app-about",
|
|
7
|
+
configKey: "about"
|
|
8
|
+
},
|
|
9
|
+
defaults: {
|
|
10
|
+
title: "Open Web Desktop",
|
|
11
|
+
subtitle: "github.com/owdproject/nuxt-desktop",
|
|
12
|
+
href: "https://github.com/owdproject/nuxt-desktop",
|
|
13
|
+
versionText: "Nuxt {nuxtVersion} + Desktop {desktopVersion}",
|
|
14
|
+
icons: []
|
|
15
|
+
},
|
|
16
|
+
async setup(options, nuxt) {
|
|
17
|
+
const { resolve } = createResolver(import.meta.url);
|
|
18
|
+
const coreVersion = nuxt.options.runtimeConfig.public.desktop?.coreVersion ?? "?.?";
|
|
19
|
+
options.versionText = options.versionText.replace("{desktopVersion}", coreVersion).replace("{nuxtVersion}", nuxt._version || "unknown");
|
|
20
|
+
if (!options.icons || Array.isArray(options.icons) && options.icons.length === 0) {
|
|
21
|
+
options.icons = [
|
|
22
|
+
{
|
|
23
|
+
title: "Vue.js",
|
|
24
|
+
name: "simple-icons:vuedotjs",
|
|
25
|
+
size: 18,
|
|
26
|
+
style: "margin: 3px -5px 0 0"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: "Nuxt.js",
|
|
30
|
+
name: "simple-icons:nuxt",
|
|
31
|
+
size: 25,
|
|
32
|
+
style: "margin-top: -1px"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: "TypeScript",
|
|
36
|
+
name: "simple-icons:typescript",
|
|
37
|
+
size: 18,
|
|
38
|
+
style: "margin-top: 3px"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
title: "PrimeVue",
|
|
42
|
+
name: "simple-icons:primevue",
|
|
43
|
+
size: 18,
|
|
44
|
+
style: "margin-top: 3px"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
title: "Tailwind CSS",
|
|
48
|
+
name: "simple-icons:tailwindcss",
|
|
49
|
+
size: 18,
|
|
50
|
+
style: "margin-top: 3px"
|
|
51
|
+
}
|
|
52
|
+
];
|
|
53
|
+
}
|
|
54
|
+
nuxt.options.runtimeConfig.public.desktop ??= {};
|
|
55
|
+
nuxt.options.runtimeConfig.public.desktop.about = options;
|
|
56
|
+
{
|
|
57
|
+
addComponentsDir({
|
|
58
|
+
path: resolve("./runtime/components")
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
{
|
|
62
|
+
addPlugin(resolve("./runtime/plugin"));
|
|
63
|
+
}
|
|
64
|
+
{
|
|
65
|
+
registerTailwindPath(
|
|
66
|
+
nuxt,
|
|
67
|
+
resolve("./runtime/components/**/*.{vue,mjs,ts}")
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
export { module$1 as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
category: string;
|
|
5
|
+
singleton: boolean;
|
|
6
|
+
icon: string;
|
|
7
|
+
windows: {
|
|
8
|
+
main: {
|
|
9
|
+
component: () => Promise<any>;
|
|
10
|
+
resizable: boolean;
|
|
11
|
+
size: {
|
|
12
|
+
width: number;
|
|
13
|
+
height: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
entries: {
|
|
18
|
+
about: {
|
|
19
|
+
command: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
terminal: {
|
|
23
|
+
about: {
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
commands: {
|
|
28
|
+
about: (app: any) => any;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
id: "org.owdproject.about",
|
|
3
|
+
title: "About",
|
|
4
|
+
category: "system-tools",
|
|
5
|
+
singleton: true,
|
|
6
|
+
icon: "mdi:hexagon-multiple-outline",
|
|
7
|
+
windows: {
|
|
8
|
+
main: {
|
|
9
|
+
component: () => import("./components/Window/WindowAbout.vue"),
|
|
10
|
+
resizable: false,
|
|
11
|
+
size: {
|
|
12
|
+
width: 448,
|
|
13
|
+
height: 240
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
entries: {
|
|
18
|
+
about: {
|
|
19
|
+
command: "about"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
terminal: {
|
|
23
|
+
about: {
|
|
24
|
+
description: "Open the About window"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
commands: {
|
|
28
|
+
about: (app) => {
|
|
29
|
+
const existing = app.getFirstWindowByModel("main");
|
|
30
|
+
if (existing) {
|
|
31
|
+
existing.actions.setActive(true);
|
|
32
|
+
existing.actions.bringToFront();
|
|
33
|
+
return existing;
|
|
34
|
+
}
|
|
35
|
+
return app.openWindow("main");
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
window?: IWindowController;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { useRuntimeConfig } from "#imports";
|
|
3
|
+
defineProps({
|
|
4
|
+
window: { type: null, required: false }
|
|
5
|
+
});
|
|
6
|
+
const runtimeConfig = useRuntimeConfig();
|
|
7
|
+
</script>
|
|
8
|
+
|
|
9
|
+
<template>
|
|
10
|
+
<DesktopWindow :window="window" :content="{ centered: true }">
|
|
11
|
+
<div class="about">
|
|
12
|
+
<h2
|
|
13
|
+
class="about__title"
|
|
14
|
+
v-text="runtimeConfig.public.desktop.about.title"
|
|
15
|
+
/>
|
|
16
|
+
<a
|
|
17
|
+
class="about__link"
|
|
18
|
+
:href="runtimeConfig.public.desktop.about.href"
|
|
19
|
+
target="_blank"
|
|
20
|
+
v-text="runtimeConfig.public.desktop.about.subtitle"
|
|
21
|
+
/>
|
|
22
|
+
|
|
23
|
+
<div
|
|
24
|
+
class="about__version"
|
|
25
|
+
v-text="runtimeConfig.public.desktop.about.versionText"
|
|
26
|
+
/>
|
|
27
|
+
|
|
28
|
+
<div class="about__powered-by">
|
|
29
|
+
<ul>
|
|
30
|
+
<li
|
|
31
|
+
v-for="icon of runtimeConfig.public.desktop.about.icons"
|
|
32
|
+
:key="icon.name"
|
|
33
|
+
>
|
|
34
|
+
<a v-bind="typeof icon.link === 'string' ? { href: icon.link } : icon.link">
|
|
35
|
+
<Icon
|
|
36
|
+
:title="icon.title"
|
|
37
|
+
:name="icon.name"
|
|
38
|
+
:size="icon.size"
|
|
39
|
+
:style="icon.style"
|
|
40
|
+
/>
|
|
41
|
+
</a>
|
|
42
|
+
</li>
|
|
43
|
+
</ul>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
</DesktopWindow>
|
|
47
|
+
</template>
|
|
48
|
+
|
|
49
|
+
<style scoped>
|
|
50
|
+
.about {
|
|
51
|
+
margin: 0 auto;
|
|
52
|
+
text-align: center;
|
|
53
|
+
}
|
|
54
|
+
.about__title {
|
|
55
|
+
margin: 0 0 4px;
|
|
56
|
+
font-size: 1.5rem;
|
|
57
|
+
font-weight: 600;
|
|
58
|
+
line-height: 1.2;
|
|
59
|
+
}
|
|
60
|
+
.about__link {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
opacity: 0.75;
|
|
64
|
+
}
|
|
65
|
+
.about__version {
|
|
66
|
+
margin: 16px 0;
|
|
67
|
+
font-size: 18px;
|
|
68
|
+
opacity: 0.3;
|
|
69
|
+
}
|
|
70
|
+
.about__powered-by {
|
|
71
|
+
margin-top: 12px;
|
|
72
|
+
opacity: 0.5;
|
|
73
|
+
}
|
|
74
|
+
.about__powered-by ul {
|
|
75
|
+
display: flex;
|
|
76
|
+
margin: 0 auto;
|
|
77
|
+
max-width: min-content;
|
|
78
|
+
line-height: 23px;
|
|
79
|
+
text-align: right;
|
|
80
|
+
text-transform: uppercase;
|
|
81
|
+
list-style-type: none;
|
|
82
|
+
}
|
|
83
|
+
.about__powered-by ul li {
|
|
84
|
+
margin: 0 8px;
|
|
85
|
+
}
|
|
86
|
+
</style>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
window?: IWindowController;
|
|
3
|
+
};
|
|
4
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
declare const _default: typeof __VLS_export;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { defineNuxtPlugin } from "nuxt/app";
|
|
2
|
+
import { defineDesktopApp } from "@owdproject/nuxt/kit/defineDesktopApp";
|
|
3
|
+
import configAppAbout from "./app.config.js";
|
|
4
|
+
export default defineNuxtPlugin({
|
|
5
|
+
name: "desktop-app-about-register",
|
|
6
|
+
async setup() {
|
|
7
|
+
if (import.meta.server) return;
|
|
8
|
+
await defineDesktopApp(configAppAbout);
|
|
9
|
+
}
|
|
10
|
+
});
|
package/dist/types.d.mts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owdproject/nuxt-app-about",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "4.0.0-alpha.3",
|
|
4
|
+
"description": "About App for your Open Web Desktop client",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"owd-client",
|
|
7
|
+
"owd-apps",
|
|
8
|
+
"owd-modules"
|
|
9
|
+
],
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"homepage": "https://github.com/owdproject/nuxt-app-about",
|
|
12
|
+
"author": {
|
|
13
|
+
"name": "Open Web Desktop Team",
|
|
14
|
+
"url": "https://github.com/owdproject"
|
|
15
|
+
},
|
|
16
|
+
"type": "module",
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/types.d.mts",
|
|
20
|
+
"development": "./src/module.ts",
|
|
21
|
+
"import": "./dist/module.mjs",
|
|
22
|
+
"default": "./dist/module.mjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"main": "./dist/module.mjs",
|
|
26
|
+
"typesVersions": {
|
|
27
|
+
"*": {
|
|
28
|
+
".": [
|
|
29
|
+
"./dist/types.d.mts"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"files": [
|
|
34
|
+
"dist"
|
|
35
|
+
],
|
|
36
|
+
"scripts": {
|
|
37
|
+
"prepack": "nuxt-module-build build",
|
|
38
|
+
"dev": "pnpm run dev:prepare && cd playground && pnpm exec nuxt dev",
|
|
39
|
+
"dev:build": "nuxt build playground",
|
|
40
|
+
"dev:generate": "NUXT_APP_BASE_URL=${NUXT_APP_BASE_URL:-/app-about/} nuxt generate playground",
|
|
41
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && cd playground && pnpm exec nuxt prepare",
|
|
42
|
+
"release": "npm run lint && npm run test && npm run prepack && changelogen --release && npm publish && git push --follow-tags",
|
|
43
|
+
"validate": "desktop validate .",
|
|
44
|
+
"lint": "eslint .",
|
|
45
|
+
"test": "vitest run",
|
|
46
|
+
"test:watch": "vitest watch",
|
|
47
|
+
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@nuxt/kit": "^4.4.6",
|
|
51
|
+
"@owdproject/nuxt-kit-tailwind": "^4.0.0-alpha.3",
|
|
52
|
+
"@owdproject/nuxt": "^4.0.0-alpha.3"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"@owdproject/core": "^4.0.0-alpha.3",
|
|
56
|
+
"@owdproject/nuxt": "^4.0.0-alpha.3"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@owdproject/core": "^4.0.0-alpha.3",
|
|
60
|
+
"@nuxt/devtools": "^3.2.4",
|
|
61
|
+
"@nuxt/eslint-config": "^1.15.2",
|
|
62
|
+
"@nuxt/module-builder": "^1.0.2",
|
|
63
|
+
"@nuxt/schema": "^4.4.6",
|
|
64
|
+
"@nuxt/test-utils": "^4.0.3",
|
|
65
|
+
"@types/node": "latest",
|
|
66
|
+
"changelogen": "^0.6.2",
|
|
67
|
+
"eslint": "^10.4.0",
|
|
68
|
+
"nuxt": "^4.4.6",
|
|
69
|
+
"typescript": "~6.0.3",
|
|
70
|
+
"vitest": "^4.1.7",
|
|
71
|
+
"vue-tsc": "^3.3.1"
|
|
72
|
+
},
|
|
73
|
+
"publishConfig": {
|
|
74
|
+
"access": "public",
|
|
75
|
+
"tag": "alpha",
|
|
76
|
+
"registry": "https://registry.npmjs.org/"
|
|
77
|
+
}
|
|
78
|
+
}
|