{{ item.title }}
{{ item.description }}
{{ item.url }}
diff --git a/package.json b/package.json
index 6b6806f..5d87c6f 100644
--- a/package.json
+++ b/package.json
@@ -27,10 +27,12 @@
"@uploadthing/nuxt": "^7.1.7",
"@vueuse/core": "^13.1.0",
"animate.css": "^4.1.1",
+ "argon2": "^0.43.0",
"bootstrap-icons": "^1.12.1",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"crypto-js": "^4.2.0",
+ "emoji-js": "^3.8.1",
"groq-sdk": "^0.21.0",
"gsap": "^3.13.0",
"html-to-json-parser": "^2.0.1",
diff --git a/pages/app/desktop/index.vue b/pages/app/desktop/index.vue
index dda8f1c..1d127d6 100644
--- a/pages/app/desktop/index.vue
+++ b/pages/app/desktop/index.vue
@@ -123,21 +123,20 @@ const toggleLangMenu = () => {
// values
const activeWindows = ref
([]);
-const currentApplication = ref();
// ?opemapp= component
const openApp = ref(false);
const openAppId = ref();
-watch(() => route.query.openapp, (newVal) => {
- if (newVal) {
- openApp.value = true;
- openAppId.value = newVal;
- router.replace({
- path: route.path,
- query: {},
- });
+const openAppNameQuery = ref();
+
+onMounted(() => {
+ openApp.value = route.query.openapp;
+ openAppId.value = route.query.id;
+ openAppNameQuery.value = route.query.name;
+ if (openApp.value) {
+ openWindow(openApp.value);
}
-});
+})
const associAppWindow = [
{
@@ -149,9 +148,11 @@ const associAppWindow = [
height: "500px",
},
{ name: "login", id: "2", title: t("app.login") , component: LoginWindow },
- { name: "sources", id: "3", title: t("app.sources"), component: SourcesWindow },
+ { name: "sources", id: "3", title: t("app.sources"), component: SourcesWindow }
];
+const currentOpenAppId = ref(0);
+
const findAndOpenWindow = (windowName: string) => {
const app = associAppWindow.find((app) => app.name === windowName)
@@ -166,13 +167,14 @@ const findAndOpenWindow = (windowName: string) => {
const windowComponent = shallowRef(app.component)
activeWindows.value.push({
- id: `${windowName}-${Date.now()}`,
+ id: currentOpenAppId.value,
component: windowComponent,
name: windowName,
title: app.title,
width: app.width || "400px",
height: app.height || "300px",
})
+ currentOpenAppId.value++;
}
}
@@ -183,8 +185,18 @@ const closeWindow = (windowId: string) => {
console.log("activeWindows.value", activeWindows.value);
};
+const topWindow = (windowId: string) => {
+ const windowIndex = activeWindows.value.findIndex(
+ (window) => window.id === windowId,
+ );
+ if (windowIndex !== -1) {
+ const [window] = activeWindows.value.splice(windowIndex, 1);
+ activeWindows.value.push(window);
+ }
+};
+
useSeoMeta({
- title: currentApplication.value.title + " - " + t("app.title"),
+ title: "hi" + " - Desktop",
})
@@ -249,17 +261,19 @@ useSeoMeta({
-
+
@@ -304,4 +319,4 @@ useSeoMeta({
-
+
\ No newline at end of file
diff --git a/pages/home.vue b/pages/home.vue
index de200c2..659d020 100644
--- a/pages/home.vue
+++ b/pages/home.vue
@@ -1,4 +1,5 @@