+
diff --git a/components/app/windows/tty.vue b/components/app/windows/tty.vue
index f6e0182..67493e9 100644
--- a/components/app/windows/tty.vue
+++ b/components/app/windows/tty.vue
@@ -65,10 +65,10 @@ const findExecutable = (inputContent: string) => {
const executeMatch = inputContent.match(/^execute\s+(.*)$/);
if (executeMatch) {
const targetPath = executeMatch[1].trim();
- console.log("Executing:", targetPath);
openNewWindow(targetPath);
+ printData(`Running ${targetPath}...`);
} else {
- console.error("Invalid execute command format");
+ printData(`${executeMatch} ia not an application.`, false, true);
}
};
diff --git a/i18n/locales/en.json b/i18n/locales/en.json
index 109bcbc..5616f15 100644
--- a/i18n/locales/en.json
+++ b/i18n/locales/en.json
@@ -52,7 +52,7 @@
"Welcome": "Welcome",
"loading": "Loading...",
"app": {
- "changelangmessage": "Switching the language",
+ "changelangmessage": "Switching the language...",
"launchtext": "Cooking up the desktop...",
"hotnews": "Hot News",
"news": "News",
diff --git a/pages/app/desktop/index.vue b/pages/app/desktop/index.vue
index 49cd870..35507fe 100644
--- a/pages/app/desktop/index.vue
+++ b/pages/app/desktop/index.vue
@@ -17,8 +17,12 @@ interface currentNavBarInterface {
interface associAppWindowInterface {
name: string;
id: string;
+ absoluteId: string;
title: string;
component: any;
+ width: string;
+ height: string;
+ black: boolean;
}
// Import plugins
@@ -373,7 +377,12 @@ const openNewWindowViaApp = (windowId: string) => {
}, 1000);
};
-const maxWindow = (windowId: string) => {};
+const maxWindow = (windowUUId: string) => {
+ const windowIndex = activeWindows.value.findIndex(
+ (window) => window.absoluteId === windowUUId,
+ );
+ console.log(windowIndex);
+};
// Title
useSeoMeta({
@@ -531,7 +540,7 @@ watchEffect((cleanupFn) => {
:width="window.width"
:height="window.height"
@click="obtainTopWindowPosition(window.id)"
- @maximize="maxWindow(window.id)"
+ @maximize="maxWindow(window.absoluteId)"
:black="window.black"
>