@owdproject/nuxt-theme-ui 0.0.0-stage → 4.0.0-alpha.4

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.
Files changed (85) hide show
  1. package/dist/i18n/locales/en.d.ts +2 -0
  2. package/dist/i18n/locales/en.js +1 -0
  3. package/dist/module.d.mts +7 -0
  4. package/dist/module.json +9 -0
  5. package/dist/module.mjs +50 -0
  6. package/dist/runtime/apps/calculator/app.config.d.ts +34 -0
  7. package/dist/runtime/apps/calculator/app.config.js +35 -0
  8. package/dist/runtime/apps/calculator/components/Window/WindowCalculator.d.vue.ts +6 -0
  9. package/dist/runtime/apps/calculator/components/Window/WindowCalculator.vue +94 -0
  10. package/dist/runtime/apps/calculator/components/Window/WindowCalculator.vue.d.ts +6 -0
  11. package/dist/runtime/apps/calculator/plugin.d.ts +2 -0
  12. package/dist/runtime/apps/calculator/plugin.js +11 -0
  13. package/dist/runtime/apps/explorer/app.config.d.ts +36 -0
  14. package/dist/runtime/apps/explorer/app.config.js +39 -0
  15. package/dist/runtime/apps/explorer/components/Window/WindowExplorer.d.vue.ts +6 -0
  16. package/dist/runtime/apps/explorer/components/Window/WindowExplorer.vue +30 -0
  17. package/dist/runtime/apps/explorer/components/Window/WindowExplorer.vue.d.ts +6 -0
  18. package/dist/runtime/apps/explorer/plugin.d.ts +2 -0
  19. package/dist/runtime/apps/explorer/plugin.js +11 -0
  20. package/dist/runtime/apps/installBuiltInApps.d.ts +3 -0
  21. package/dist/runtime/apps/installBuiltInApps.js +28 -0
  22. package/dist/runtime/apps/notepad/app.config.d.ts +34 -0
  23. package/dist/runtime/apps/notepad/app.config.js +35 -0
  24. package/dist/runtime/apps/notepad/components/Window/WindowNotepad.d.vue.ts +6 -0
  25. package/dist/runtime/apps/notepad/components/Window/WindowNotepad.vue +47 -0
  26. package/dist/runtime/apps/notepad/components/Window/WindowNotepad.vue.d.ts +6 -0
  27. package/dist/runtime/apps/notepad/plugin.d.ts +2 -0
  28. package/dist/runtime/apps/notepad/plugin.js +11 -0
  29. package/dist/runtime/apps/registry.d.ts +8 -0
  30. package/dist/runtime/apps/registry.js +10 -0
  31. package/dist/runtime/components/Background/DesktopBackground.d.vue.ts +3 -0
  32. package/dist/runtime/components/Background/DesktopBackground.vue +3 -0
  33. package/dist/runtime/components/Background/DesktopBackground.vue.d.ts +3 -0
  34. package/dist/runtime/components/Desktop/DesktopContent.d.vue.ts +13 -0
  35. package/dist/runtime/components/Desktop/DesktopContent.vue +23 -0
  36. package/dist/runtime/components/Desktop/DesktopContent.vue.d.ts +13 -0
  37. package/dist/runtime/components/Desktop.client.d.vue.ts +23 -0
  38. package/dist/runtime/components/Desktop.client.vue +52 -0
  39. package/dist/runtime/components/Desktop.client.vue.d.ts +23 -0
  40. package/dist/runtime/components/NuxtLauncherOverlay.d.vue.ts +3 -0
  41. package/dist/runtime/components/NuxtLauncherOverlay.vue +110 -0
  42. package/dist/runtime/components/NuxtLauncherOverlay.vue.d.ts +3 -0
  43. package/dist/runtime/components/NuxtTopBar.d.vue.ts +3 -0
  44. package/dist/runtime/components/NuxtTopBar.vue +63 -0
  45. package/dist/runtime/components/NuxtTopBar.vue.d.ts +3 -0
  46. package/dist/runtime/components/Window/DesktopWindow.d.vue.ts +43 -0
  47. package/dist/runtime/components/Window/DesktopWindow.vue +40 -0
  48. package/dist/runtime/components/Window/DesktopWindow.vue.d.ts +43 -0
  49. package/dist/runtime/components/Window/DesktopWindowContent.d.vue.ts +13 -0
  50. package/dist/runtime/components/Window/DesktopWindowContent.vue +5 -0
  51. package/dist/runtime/components/Window/DesktopWindowContent.vue.d.ts +13 -0
  52. package/dist/runtime/components/Window/DesktopWindowIframe.d.vue.ts +29 -0
  53. package/dist/runtime/components/Window/DesktopWindowIframe.vue +13 -0
  54. package/dist/runtime/components/Window/DesktopWindowIframe.vue.d.ts +29 -0
  55. package/dist/runtime/components/Window/DesktopWindowNav.d.vue.ts +3 -0
  56. package/dist/runtime/components/Window/DesktopWindowNav.vue +105 -0
  57. package/dist/runtime/components/Window/DesktopWindowNav.vue.d.ts +3 -0
  58. package/dist/runtime/composables/useNuxtStartMenu.d.ts +9 -0
  59. package/dist/runtime/composables/useNuxtStartMenu.js +57 -0
  60. package/dist/types.d.mts +7 -0
  61. package/package.json +70 -4
  62. package/src/i18n/locales/en.ts +1 -0
  63. package/src/module.ts +69 -0
  64. package/src/runtime/apps/calculator/app.config.ts +35 -0
  65. package/src/runtime/apps/calculator/components/Window/WindowCalculator.vue +104 -0
  66. package/src/runtime/apps/calculator/plugin.ts +12 -0
  67. package/src/runtime/apps/explorer/app.config.ts +39 -0
  68. package/src/runtime/apps/explorer/components/Window/WindowExplorer.vue +34 -0
  69. package/src/runtime/apps/explorer/plugin.ts +12 -0
  70. package/src/runtime/apps/installBuiltInApps.ts +36 -0
  71. package/src/runtime/apps/notepad/app.config.ts +35 -0
  72. package/src/runtime/apps/notepad/components/Window/WindowNotepad.vue +50 -0
  73. package/src/runtime/apps/notepad/plugin.ts +12 -0
  74. package/src/runtime/apps/registry.ts +21 -0
  75. package/src/runtime/components/Background/DesktopBackground.vue +3 -0
  76. package/src/runtime/components/Desktop/DesktopContent.vue +37 -0
  77. package/src/runtime/components/Desktop.client.vue +136 -0
  78. package/src/runtime/components/NuxtLauncherOverlay.vue +117 -0
  79. package/src/runtime/components/NuxtTopBar.vue +68 -0
  80. package/src/runtime/components/Window/DesktopWindow.vue +44 -0
  81. package/src/runtime/components/Window/DesktopWindowContent.vue +5 -0
  82. package/src/runtime/components/Window/DesktopWindowIframe.vue +13 -0
  83. package/src/runtime/components/Window/DesktopWindowNav.vue +110 -0
  84. package/src/runtime/composables/useNuxtStartMenu.ts +72 -0
  85. package/README.md +0 -3
@@ -0,0 +1,23 @@
1
+ <script setup>
2
+ import { useAppConfig } from "nuxt/app";
3
+ import { computed } from "vue";
4
+ const appConfig = useAppConfig();
5
+ const classes = computed(() => {
6
+ const list = ["owd-desktop__content"];
7
+ const pos = appConfig.desktop?.systemBar?.position;
8
+ if (pos) {
9
+ list.push(`owd-desktop__content--system-bar-position-${pos}`);
10
+ }
11
+ return list;
12
+ });
13
+ </script>
14
+
15
+ <template>
16
+ <div :class="classes">
17
+ <slot />
18
+ </div>
19
+ </template>
20
+
21
+ <style scoped>
22
+ .owd-desktop__content{height:100%;overflow:hidden;position:relative;width:100%}.owd-desktop__content--system-bar-position-bottom,.owd-desktop__content--system-bar-position-top{flex:1 1 auto;min-height:0}
23
+ </style>
@@ -0,0 +1,13 @@
1
+ declare var __VLS_1: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_1) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,23 @@
1
+ declare var __VLS_23: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_23) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ systemBar: {
7
+ type: null;
8
+ required: false;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ systemBar: {
12
+ type: null;
13
+ required: false;
14
+ };
15
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,52 @@
1
+ <script setup>
2
+ import { ref, onMounted, onUnmounted } from "vue";
3
+ import { useDesktopWorkArea } from "@owdproject/nuxt/runtime/composables/useDesktopWorkArea";
4
+ import Background from "./Background/DesktopBackground.vue";
5
+ import DesktopContent from "./Desktop/DesktopContent.vue";
6
+ import NuxtTopBar from "./NuxtTopBar.vue";
7
+ import NuxtLauncherOverlay from "./NuxtLauncherOverlay.vue";
8
+ defineProps({
9
+ systemBar: { type: null, required: false }
10
+ });
11
+ const shellStageRef = ref(null);
12
+ useDesktopWorkArea(shellStageRef);
13
+ const BODY_SHELL_CLASS = "owd-has-nuxt-shell";
14
+ onMounted(() => {
15
+ document.body.classList.add(BODY_SHELL_CLASS);
16
+ });
17
+ onUnmounted(() => {
18
+ document.body.classList.remove(BODY_SHELL_CLASS);
19
+ });
20
+ </script>
21
+
22
+ <template>
23
+ <DesktopCore
24
+ v-bind="$props"
25
+ class="owd-desktop--nuxt flex flex-col h-screen overflow-hidden select-none bg-gray-50 dark:bg-gray-950"
26
+ >
27
+ <NuxtTopBar />
28
+
29
+ <!--
30
+ `isolate` keeps every window's z-index inside this stacking context, so the
31
+ system bar and the launcher (siblings) always stay above open windows
32
+ instead of losing to the window manager's 100+ z-index values.
33
+ -->
34
+ <div ref="shellStageRef" class="flex-1 min-h-0 relative flex flex-col isolate">
35
+ <Background />
36
+
37
+ <DesktopContent>
38
+ <slot />
39
+ </DesktopContent>
40
+ <DesktopCoreApplicationRender />
41
+ </div>
42
+
43
+ <NuxtLauncherOverlay />
44
+
45
+ <!-- Supports programmatically opened Nuxt UI modals -->
46
+ <UModals />
47
+ </DesktopCore>
48
+ </template>
49
+
50
+ <style>
51
+ .owd-desktop--nuxt{--owd-system-bar-height:60px}.owd-desktop--nuxt,.owd-has-nuxt-shell{overscroll-behavior:none}.owd-desktop--nuxt .desktop-window__content{display:flex;flex:1 1 auto;flex-direction:column;min-height:0}.owd-desktop--nuxt .desktop-window__content--centered{align-items:center;justify-content:center;text-align:center}.owd-desktop--nuxt .desktop-window__content--centered>*{max-width:100%}.owd-desktop--nuxt .desktop-window__content--padded{padding:12px}.owd-desktop--nuxt .desktop-window__content,.owd-desktop--nuxt .owd-desktop__scroll{scrollbar-color:rgba(0,0,0,.18) transparent;scrollbar-width:thin}.owd-desktop--nuxt .desktop-window__content::-webkit-scrollbar,.owd-desktop--nuxt .owd-desktop__scroll::-webkit-scrollbar{height:10px;width:10px}.owd-desktop--nuxt .desktop-window__content::-webkit-scrollbar-track,.owd-desktop--nuxt .owd-desktop__scroll::-webkit-scrollbar-track{background:transparent}.owd-desktop--nuxt .desktop-window__content::-webkit-scrollbar-thumb,.owd-desktop--nuxt .owd-desktop__scroll::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:rgba(0,0,0,.18);border:3px solid transparent;border-radius:9999px}.owd-desktop--nuxt .desktop-window__content::-webkit-scrollbar-thumb:hover,.owd-desktop--nuxt .owd-desktop__scroll::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.3)}.dark .owd-desktop--nuxt .desktop-window__content,.dark .owd-desktop--nuxt .owd-desktop__scroll,.owd-desktop--nuxt.dark .desktop-window__content,.owd-desktop--nuxt.dark .owd-desktop__scroll{scrollbar-color:hsla(0,0%,100%,.22) transparent}.dark .owd-desktop--nuxt .desktop-window__content::-webkit-scrollbar-thumb,.dark .owd-desktop--nuxt .owd-desktop__scroll::-webkit-scrollbar-thumb{background-color:hsla(0,0%,100%,.22)}
52
+ </style>
@@ -0,0 +1,23 @@
1
+ declare var __VLS_23: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_23) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ systemBar: {
7
+ type: null;
8
+ required: false;
9
+ };
10
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
11
+ systemBar: {
12
+ type: null;
13
+ required: false;
14
+ };
15
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
+ declare const _default: typeof __VLS_export;
18
+ export default _default;
19
+ type __VLS_WithSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,110 @@
1
+ <script setup>
2
+ import { ref, watch, onMounted, onUnmounted } from "vue";
3
+ import { useNuxtStartMenu } from "../composables/useNuxtStartMenu";
4
+ const { open, searchQuery, filteredEntries, close, launchEntry } = useNuxtStartMenu();
5
+ const searchInput = ref(null);
6
+ watch(open, (isOpen) => {
7
+ if (isOpen) {
8
+ setTimeout(() => searchInput.value?.focus(), 50);
9
+ }
10
+ });
11
+ function onKeydown(event) {
12
+ if (event.key === "Escape" && open.value) {
13
+ close();
14
+ }
15
+ }
16
+ onMounted(() => window.addEventListener("keydown", onKeydown));
17
+ onUnmounted(() => window.removeEventListener("keydown", onKeydown));
18
+ </script>
19
+
20
+ <template>
21
+ <Transition
22
+ enter-active-class="transition duration-150 ease-out"
23
+ enter-from-class="opacity-0 -translate-y-1"
24
+ leave-active-class="transition duration-100 ease-in"
25
+ leave-to-class="opacity-0 -translate-y-1"
26
+ >
27
+ <div
28
+ v-if="open"
29
+ class="fixed inset-0 z-40 flex items-start justify-center pt-24"
30
+ @click="close"
31
+ >
32
+ <!-- Overlay scrim -->
33
+ <div class="absolute inset-0 bg-gray-950/10 dark:bg-black/40" />
34
+
35
+ <!-- Command palette -->
36
+ <div
37
+ class="relative w-full max-w-xl mx-4 flex flex-col bg-white/95 dark:bg-gray-900/95 backdrop-blur-xl border border-gray-200 dark:border-gray-800 rounded-xl shadow-2xl overflow-hidden"
38
+ @click.stop
39
+ >
40
+ <!-- Search -->
41
+ <div class="p-3 border-b border-gray-200 dark:border-gray-800">
42
+ <div
43
+ class="flex items-center gap-2.5 h-11 px-3.5 rounded-lg bg-gray-100/80 dark:bg-gray-800/60 ring-1 ring-inset ring-transparent focus-within:ring-primary-500/60 focus-within:bg-white dark:focus-within:bg-gray-900 transition"
44
+ >
45
+ <UIcon
46
+ name="i-heroicons-magnifying-glass"
47
+ class="w-4 h-4 flex-shrink-0 text-gray-400 dark:text-gray-500"
48
+ />
49
+ <input
50
+ ref="searchInput"
51
+ v-model="searchQuery"
52
+ type="text"
53
+ placeholder="Search apps..."
54
+ autocomplete="off"
55
+ spellcheck="false"
56
+ class="flex-1 min-w-0 h-full bg-transparent border-0 outline-none focus:outline-none focus:ring-0 text-sm text-gray-900 dark:text-gray-100 placeholder:text-gray-400 dark:placeholder:text-gray-500"
57
+ />
58
+ </div>
59
+ </div>
60
+
61
+ <!-- Results -->
62
+ <div class="flex-1 overflow-y-auto owd-desktop__scroll max-h-[50vh] p-2">
63
+ <div
64
+ v-if="filteredEntries.length === 0"
65
+ class="text-center py-12 text-gray-500 dark:text-gray-400 text-sm"
66
+ >
67
+ No apps found.
68
+ </div>
69
+
70
+ <div class="grid grid-cols-1 gap-0.5">
71
+ <button
72
+ v-for="entry in filteredEntries"
73
+ :key="entry.application.id"
74
+ class="group flex items-center gap-3 p-2.5 rounded-lg hover:bg-gray-100/70 dark:hover:bg-gray-800/60 focus:bg-gray-100/70 dark:focus:bg-gray-800/60 focus:outline-none transition-colors text-left"
75
+ @click="launchEntry(entry)"
76
+ >
77
+ <div
78
+ class="flex-shrink-0 flex items-center justify-center w-9 h-9 bg-gray-100 dark:bg-gray-800 rounded-md group-hover:bg-white dark:group-hover:bg-gray-900 transition-colors"
79
+ >
80
+ <UIcon
81
+ v-if="entry.icon"
82
+ :name="entry.icon"
83
+ class="w-5 h-5 text-gray-700 dark:text-gray-300"
84
+ />
85
+ <UIcon
86
+ v-else
87
+ name="i-heroicons-window"
88
+ class="w-5 h-5 text-gray-700 dark:text-gray-300"
89
+ />
90
+ </div>
91
+ <div class="flex flex-col min-w-0">
92
+ <span
93
+ class="text-sm font-medium text-gray-900 dark:text-gray-100 truncate"
94
+ >
95
+ {{ entry.title }}
96
+ </span>
97
+ <span
98
+ v-if="entry.description"
99
+ class="text-xs text-gray-500 dark:text-gray-400 truncate"
100
+ >
101
+ {{ entry.description }}
102
+ </span>
103
+ </div>
104
+ </button>
105
+ </div>
106
+ </div>
107
+ </div>
108
+ </div>
109
+ </Transition>
110
+ </template>
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,63 @@
1
+ <script setup>
2
+ import { ref, onMounted, onUnmounted, computed } from "vue";
3
+ import { useColorMode } from "#imports";
4
+ import { useNuxtStartMenu } from "../composables/useNuxtStartMenu";
5
+ const { toggle: toggleStart, open: startOpen } = useNuxtStartMenu();
6
+ const time = ref("");
7
+ const dateLabel = ref("");
8
+ let timer;
9
+ onMounted(() => {
10
+ const update = () => {
11
+ const d = /* @__PURE__ */ new Date();
12
+ time.value = d.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
13
+ dateLabel.value = d.toLocaleDateString([], { weekday: "short", month: "short", day: "numeric" });
14
+ };
15
+ update();
16
+ timer = setInterval(update, 1e3);
17
+ });
18
+ onUnmounted(() => {
19
+ clearInterval(timer);
20
+ });
21
+ const colorMode = useColorMode();
22
+ const isDark = computed({
23
+ get() {
24
+ return colorMode.value === "dark";
25
+ },
26
+ set() {
27
+ colorMode.preference = colorMode.value === "dark" ? "light" : "dark";
28
+ }
29
+ });
30
+ </script>
31
+
32
+ <template>
33
+ <header class="h-[60px] w-full flex items-center justify-between px-4 sm:px-6 lg:px-8 bg-white/75 dark:bg-gray-900/75 backdrop-blur border-b border-gray-200 dark:border-gray-800 flex-shrink-0 select-none z-50">
34
+ <!-- Left Section: Logo/Start Button -->
35
+ <div class="flex items-center gap-4">
36
+ <button
37
+ @click="toggleStart"
38
+ class="flex items-center gap-2 hover:opacity-80 transition-opacity"
39
+ aria-label="Toggle Start Menu"
40
+ >
41
+ <UIcon name="i-heroicons-cube-transparent" class="w-6 h-6 text-green-500" />
42
+ <span class="font-bold text-gray-900 dark:text-white text-lg tracking-tight hidden sm:block">Nuxt Desktop</span>
43
+ </button>
44
+ </div>
45
+
46
+ <!-- Center Section: Title/Clock -->
47
+ <div class="flex flex-col items-center justify-center">
48
+ <span class="text-sm font-medium text-gray-700 dark:text-gray-300">{{ time }}</span>
49
+ <span class="text-xs text-gray-500 dark:text-gray-400">{{ dateLabel }}</span>
50
+ </div>
51
+
52
+ <!-- Right Section: Quick controls -->
53
+ <div class="flex items-center gap-3">
54
+ <UButton
55
+ :icon="isDark ? 'i-heroicons-moon' : 'i-heroicons-sun'"
56
+ color="gray"
57
+ variant="ghost"
58
+ class="text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"
59
+ @click="isDark = !isDark"
60
+ />
61
+ </div>
62
+ </header>
63
+ </template>
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,43 @@
1
+ declare var __VLS_17: {}, __VLS_20: {}, __VLS_28: {};
2
+ type __VLS_Slots = {} & {
3
+ 'nav-prepend'?: (props: typeof __VLS_17) => any;
4
+ } & {
5
+ 'nav-append'?: (props: typeof __VLS_20) => any;
6
+ } & {
7
+ default?: (props: typeof __VLS_28) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ config: {
11
+ type: null;
12
+ required: false;
13
+ };
14
+ window: {
15
+ type: null;
16
+ required: false;
17
+ };
18
+ content: {
19
+ type: null;
20
+ required: false;
21
+ };
22
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ config: {
24
+ type: null;
25
+ required: false;
26
+ };
27
+ window: {
28
+ type: null;
29
+ required: false;
30
+ };
31
+ content: {
32
+ type: null;
33
+ required: false;
34
+ };
35
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
36
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
+ declare const _default: typeof __VLS_export;
38
+ export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,40 @@
1
+ <script setup>
2
+ import { useWindowDragHandlers } from "@owdproject/nuxt/runtime/composables/useWindowDragHandlers";
3
+ const props = defineProps({
4
+ config: { type: null, required: false },
5
+ window: { type: null, required: false },
6
+ content: { type: null, required: false }
7
+ });
8
+ const { onDragStart, onDragEnd } = useWindowDragHandlers(
9
+ () => props.window
10
+ );
11
+ </script>
12
+
13
+ <template>
14
+ <DesktopCoreWindow
15
+ v-bind="$props"
16
+ v-show="window?.state?.active !== false"
17
+ @drag:start="onDragStart"
18
+ @drag:end="onDragEnd"
19
+ >
20
+ <div class="flex flex-col h-full bg-white dark:bg-gray-950 border border-gray-200 dark:border-gray-800 rounded-lg shadow-xl overflow-hidden">
21
+ <DesktopWindowNav>
22
+ <template #prepend>
23
+ <slot name="nav-prepend" />
24
+ </template>
25
+ <template #append>
26
+ <slot name="nav-append" />
27
+ </template>
28
+ </DesktopWindowNav>
29
+ <div class="flex-1 min-h-0 relative">
30
+ <DesktopWindowContent>
31
+ <slot />
32
+ </DesktopWindowContent>
33
+ </div>
34
+ </div>
35
+ </DesktopCoreWindow>
36
+ </template>
37
+
38
+ <style scoped>
39
+ .owd-window{box-sizing:border-box;min-height:160px;min-width:160px}
40
+ </style>
@@ -0,0 +1,43 @@
1
+ declare var __VLS_17: {}, __VLS_20: {}, __VLS_28: {};
2
+ type __VLS_Slots = {} & {
3
+ 'nav-prepend'?: (props: typeof __VLS_17) => any;
4
+ } & {
5
+ 'nav-append'?: (props: typeof __VLS_20) => any;
6
+ } & {
7
+ default?: (props: typeof __VLS_28) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ config: {
11
+ type: null;
12
+ required: false;
13
+ };
14
+ window: {
15
+ type: null;
16
+ required: false;
17
+ };
18
+ content: {
19
+ type: null;
20
+ required: false;
21
+ };
22
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
+ config: {
24
+ type: null;
25
+ required: false;
26
+ };
27
+ window: {
28
+ type: null;
29
+ required: false;
30
+ };
31
+ content: {
32
+ type: null;
33
+ required: false;
34
+ };
35
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
36
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
+ declare const _default: typeof __VLS_export;
38
+ export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,13 @@
1
+ declare var __VLS_7: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_7) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,5 @@
1
+ <template>
2
+ <DesktopCoreWindowContent>
3
+ <slot />
4
+ </DesktopCoreWindowContent>
5
+ </template>
@@ -0,0 +1,13 @@
1
+ declare var __VLS_7: {};
2
+ type __VLS_Slots = {} & {
3
+ default?: (props: typeof __VLS_7) => any;
4
+ };
5
+ declare const __VLS_base: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
9
+ type __VLS_WithSlots<T, S> = T & {
10
+ new (): {
11
+ $slots: S;
12
+ };
13
+ };
@@ -0,0 +1,29 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ config: {
3
+ type: null;
4
+ required: false;
5
+ };
6
+ window: {
7
+ type: null;
8
+ required: false;
9
+ };
10
+ src: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ config: {
16
+ type: null;
17
+ required: false;
18
+ };
19
+ window: {
20
+ type: null;
21
+ required: false;
22
+ };
23
+ src: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
@@ -0,0 +1,13 @@
1
+ <script setup>
2
+ defineProps({
3
+ config: { type: null, required: false },
4
+ window: { type: null, required: false },
5
+ src: { type: String, required: true }
6
+ });
7
+ </script>
8
+
9
+ <template>
10
+ <DesktopWindow v-bind="$props">
11
+ <iframe :src="src" class="w-full h-full border-0" />
12
+ </DesktopWindow>
13
+ </template>
@@ -0,0 +1,29 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ config: {
3
+ type: null;
4
+ required: false;
5
+ };
6
+ window: {
7
+ type: null;
8
+ required: false;
9
+ };
10
+ src: {
11
+ type: StringConstructor;
12
+ required: true;
13
+ };
14
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ config: {
16
+ type: null;
17
+ required: false;
18
+ };
19
+ window: {
20
+ type: null;
21
+ required: false;
22
+ };
23
+ src: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ declare const _default: typeof __VLS_export;
29
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;