diff --git a/TODO b/TODO index 06ad18b..efa11c6 100644 --- a/TODO +++ b/TODO @@ -59,7 +59,6 @@ Add own timers for electorn export & such si tu appuies sur New Project, puis que tu selectionne direct le dropdown pour choisir Local/Cloud, ça ferme le popup et c'est impossible de rappuyer sur New Project C3 Preview ne fonctionne pas Steam achievement test c3 example -Itch plugin Filesystem plugin: overwrite parameter + better sentences/descriptions Convert dektop app to web app + node backend diff --git a/components.d.ts b/components.d.ts index 990cf7f..9ca32c9 100644 --- a/components.d.ts +++ b/components.d.ts @@ -7,6 +7,12 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { + Accordion: typeof import('primevue/accordion')['default'] + AccordionContent: typeof import('primevue/accordioncontent')['default'] + AccordionHeader: typeof import('primevue/accordionheader')['default'] + AccordionPanel: typeof import('primevue/accordionpanel')['default'] + Avatar: typeof import('primevue/avatar')['default'] + Badge: typeof import('primevue/badge')['default'] Button: typeof import('primevue/button')['default'] Checkbox: typeof import('primevue/checkbox')['default'] Chip: typeof import('primevue/chip')['default'] @@ -25,9 +31,15 @@ declare module 'vue' { Password: typeof import('primevue/password')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + ScrollPanel: typeof import('primevue/scrollpanel')['default'] Select: typeof import('primevue/select')['default'] SelectButton: typeof import('primevue/selectbutton')['default'] Skeleton: typeof import('primevue/skeleton')['default'] + Tab: typeof import('primevue/tab')['default'] + TabList: typeof import('primevue/tablist')['default'] + TabPanel: typeof import('primevue/tabpanel')['default'] + TabPanels: typeof import('primevue/tabpanels')['default'] + Tabs: typeof import('primevue/tabs')['default'] Toast: typeof import('primevue/toast')['default'] } } diff --git a/package.json b/package.json index e96322e..cb5cf82 100644 --- a/package.json +++ b/package.json @@ -67,6 +67,7 @@ "change-case": "5.4.4", "code-tag": "1.2.0", "d3-shape": "3.2.0", + "date-fns": "4.1.0", "dompurify": "3.1.7", "ejs": "3.1.10", "electron-squirrel-startup": "1.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 267906a..ba42468 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -99,6 +99,9 @@ importers: d3-shape: specifier: 3.2.0 version: 3.2.0 + date-fns: + specifier: 4.1.0 + version: 4.1.0 dompurify: specifier: 3.1.7 version: 3.1.7 @@ -3312,6 +3315,9 @@ packages: dataloader@1.4.0: resolution: {integrity: sha512-68s5jYdlvasItOJnCuI2Q9s4q98g0pCyL3HrcKJu8KNugUl8ahgmZYg38ysLTgQjjXX3H8CJLkAvWrclWfcalw==} + date-fns@4.1.0: + resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==} + de-indent@1.0.2: resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==} @@ -11011,6 +11017,8 @@ snapshots: dataloader@1.4.0: {} + date-fns@4.1.0: {} + de-indent@1.0.2: {} debug@2.6.9: diff --git a/src/main/handler-func.ts b/src/main/handler-func.ts index ccc185f..1a4e3b9 100644 --- a/src/main/handler-func.ts +++ b/src/main/handler-func.ts @@ -162,11 +162,16 @@ export const handleActionExecute = async ( await node.runner({ inputs: resolvedInputs, log: (...args) => { - const logArgs = [`[${node.node.name}]`, ...args] + const decorator = `[${node.node.name}]` + const logArgs = [decorator, ...args] logger().info(...logArgs) send({ type: 'log', - data: logArgs + data: { + decorator, + time: Date.now(), + message: args + } }) }, setOutput: (key, value) => { diff --git a/src/renderer/components/nodes/EditorNodeAction.vue b/src/renderer/components/nodes/EditorNodeAction.vue index 7fb503e..934d25e 100644 --- a/src/renderer/components/nodes/EditorNodeAction.vue +++ b/src/renderer/components/nodes/EditorNodeAction.vue @@ -89,15 +89,6 @@ icon="pi pi-exclamation-triangle" size="small" text - @click.stop.prevent="isLogDialogOpened = true" - /> -