From 3c32dc10009bcc81fcb4148ba7ee9a320b181002 Mon Sep 17 00:00:00 2001 From: Gregory Luneau Date: Sat, 28 Sep 2024 12:30:52 -0500 Subject: [PATCH 1/6] refactor index.js --- package.json | 7 +- src/components/AppHeader.vue | 82 + src/components/EssentialLink.vue | 43 - src/components/LeftDrawer.vue | 64 + src/components/NetworkGraph.vue | 73 + src/components/ParachainDialog.vue | 94 + src/components/RightDrawer.vue | 39 + src/pages/Index.vue | 3583 ++-------------------------- src/utils/currencies.js | 60 + src/utils/endpoints.js | 291 +++ src/utils/eventHandlers.js | 13 + src/utils/graphConfigs.js | 91 + 12 files changed, 957 insertions(+), 3483 deletions(-) create mode 100644 src/components/AppHeader.vue delete mode 100644 src/components/EssentialLink.vue create mode 100644 src/components/LeftDrawer.vue create mode 100644 src/components/NetworkGraph.vue create mode 100644 src/components/ParachainDialog.vue create mode 100644 src/components/RightDrawer.vue create mode 100644 src/utils/currencies.js create mode 100644 src/utils/endpoints.js create mode 100644 src/utils/eventHandlers.js create mode 100644 src/utils/graphConfigs.js diff --git a/package.json b/package.json index 880e978..3f36a85 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,13 @@ { "name": "channels", - "version": "1.1.16", + "version": "1.1.17", "description": "Dotsama HRMP Channel and token App", "productName": "Dotsama HRMP Channel and token App", "author": "Gregory Luneau ", "private": true, + "license": "MIT", "scripts": { + "dev": "quasar dev", "build": "quasar build", "deploy": "vercel", "lint": "eslint --ext .js,.vue ./", @@ -59,6 +61,5 @@ "node": ">= 12.22.1", "npm": ">= 6.13.4", "yarn": ">= 1.21.1" - }, - "license": "MIT" + } } diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue new file mode 100644 index 0000000..14fd22a --- /dev/null +++ b/src/components/AppHeader.vue @@ -0,0 +1,82 @@ + + + diff --git a/src/components/EssentialLink.vue b/src/components/EssentialLink.vue deleted file mode 100644 index d047fad..0000000 --- a/src/components/EssentialLink.vue +++ /dev/null @@ -1,43 +0,0 @@ - - - diff --git a/src/components/LeftDrawer.vue b/src/components/LeftDrawer.vue new file mode 100644 index 0000000..a799450 --- /dev/null +++ b/src/components/LeftDrawer.vue @@ -0,0 +1,64 @@ + + + diff --git a/src/components/NetworkGraph.vue b/src/components/NetworkGraph.vue new file mode 100644 index 0000000..87fa9e4 --- /dev/null +++ b/src/components/NetworkGraph.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/src/components/ParachainDialog.vue b/src/components/ParachainDialog.vue new file mode 100644 index 0000000..82e66fa --- /dev/null +++ b/src/components/ParachainDialog.vue @@ -0,0 +1,94 @@ + + + diff --git a/src/components/RightDrawer.vue b/src/components/RightDrawer.vue new file mode 100644 index 0000000..157f76c --- /dev/null +++ b/src/components/RightDrawer.vue @@ -0,0 +1,39 @@ + + + diff --git a/src/pages/Index.vue b/src/pages/Index.vue index 85d90c8..1407867 100644 --- a/src/pages/Index.vue +++ b/src/pages/Index.vue @@ -1,448 +1,90 @@