From 7239a9587f53da7bdecdfcb7ba7d48fd79ed82a6 Mon Sep 17 00:00:00 2001 From: Jo Date: Thu, 4 Jul 2024 19:33:25 +0200 Subject: [PATCH] [frontend] add CustomCursor component and update plugin loading mechanism --- .../src/common/plugins/plugin.loader.ts | 2 +- apps/frontend/src/App.vue | 87 ++++++- apps/frontend/src/components/CustomCursor.vue | 213 ++++++++++++++++++ 3 files changed, 289 insertions(+), 13 deletions(-) create mode 100644 apps/frontend/src/components/CustomCursor.vue diff --git a/apps/backend/src/common/plugins/plugin.loader.ts b/apps/backend/src/common/plugins/plugin.loader.ts index 6f0ee98..8fd8ebe 100644 --- a/apps/backend/src/common/plugins/plugin.loader.ts +++ b/apps/backend/src/common/plugins/plugin.loader.ts @@ -5,7 +5,7 @@ export async function loadPlugins(): Promise { return new Promise(async (resolve, reject) => { const files = await glob('../shared/plugins/**/*.plugin.{ts,js}'); - console.log(files) + console.log(files); const plugins = []; for (const file of files) { diff --git a/apps/frontend/src/App.vue b/apps/frontend/src/App.vue index 64c9f44..f767ead 100644 --- a/apps/frontend/src/App.vue +++ b/apps/frontend/src/App.vue @@ -1,13 +1,76 @@ + + \ No newline at end of file + +
+

Hello App!

+

+ Current route path: {{ $route.fullPath }} +

+ +
+ +
+
+ + + + + \ No newline at end of file diff --git a/apps/frontend/src/components/CustomCursor.vue b/apps/frontend/src/components/CustomCursor.vue new file mode 100644 index 0000000..6a0c19e --- /dev/null +++ b/apps/frontend/src/components/CustomCursor.vue @@ -0,0 +1,213 @@ + + + + + \ No newline at end of file