From c5d1274ac41fa4a975b4acf4291a717090672b14 Mon Sep 17 00:00:00 2001 From: Jack Wilburn Date: Thu, 2 Mar 2023 11:45:22 -0700 Subject: [PATCH 1/3] Add ToolBar component --- components.d.ts | 13 ++++ package.json | 3 +- src/assets/multinet_logo.svg | 36 ++++++++++ src/components/ToolBar.vue | 136 +++++++++++++++++++++++++++++++++++ src/main.ts | 2 + 5 files changed, 189 insertions(+), 1 deletion(-) create mode 100644 src/assets/multinet_logo.svg create mode 100644 src/components/ToolBar.vue diff --git a/components.d.ts b/components.d.ts index 6e5f75b..e6bb305 100644 --- a/components.d.ts +++ b/components.d.ts @@ -9,19 +9,32 @@ declare module '@vue/runtime-core' { export interface GlobalComponents { LoginMenu: typeof import('./src/components/LoginMenu.vue')['default'] NetworkSubsetter: typeof import('./src/components/NetworkSubsetter.vue')['default'] + ToolBar: typeof import('./src/components/ToolBar.vue')['default'] + VAppBar: typeof import('vuetify/lib')['VAppBar'] + VAppBarNavIcon: typeof import('vuetify/lib')['VAppBarNavIcon'] + VAppBarTitle: typeof import('vuetify/lib')['VAppBarTitle'] + VAutocomplete: typeof import('vuetify/lib')['VAutocomplete'] VAvatar: typeof import('vuetify/lib')['VAvatar'] VBtn: typeof import('vuetify/lib')['VBtn'] VCard: typeof import('vuetify/lib')['VCard'] VCardText: typeof import('vuetify/lib')['VCardText'] VCardTitle: typeof import('vuetify/lib')['VCardTitle'] + VCol: typeof import('vuetify/lib')['VCol'] VDivider: typeof import('vuetify/lib')['VDivider'] VIcon: typeof import('vuetify/lib')['VIcon'] VList: typeof import('vuetify/lib')['VList'] VListItem: typeof import('vuetify/lib')['VListItem'] VListItemAction: typeof import('vuetify/lib')['VListItemAction'] + VListItemTitle: typeof import('vuetify/lib')['VListItemTitle'] VMenu: typeof import('vuetify/lib')['VMenu'] VOverlay: typeof import('vuetify/lib')['VOverlay'] VRow: typeof import('vuetify/lib')['VRow'] VSlider: typeof import('vuetify/lib')['VSlider'] + VSpacer: typeof import('vuetify/lib')['VSpacer'] + VToolbar: typeof import('vuetify/lib')['VToolbar'] + VToolbarItems: typeof import('vuetify/lib')['VToolbarItems'] + VToolbarNavIcon: typeof import('vuetify/lib')['VToolbarNavIcon'] + VToolbarTitle: typeof import('vuetify/lib')['VToolbarTitle'] + VTooltip: typeof import('vuetify/lib')['VTooltip'] } } diff --git a/package.json b/package.json index f0bae18..a701255 100644 --- a/package.json +++ b/package.json @@ -30,6 +30,7 @@ "vue-tsc": "^0.40.0" }, "scripts": { - "build": "vite build && vue-tsc --emitDeclarationOnly" + "build": "vite build && vue-tsc --emitDeclarationOnly", + "watch": "vite build --watch" } } diff --git a/src/assets/multinet_logo.svg b/src/assets/multinet_logo.svg new file mode 100644 index 0000000..0d62eba --- /dev/null +++ b/src/assets/multinet_logo.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + diff --git a/src/components/ToolBar.vue b/src/components/ToolBar.vue new file mode 100644 index 0000000..bb80ccb --- /dev/null +++ b/src/components/ToolBar.vue @@ -0,0 +1,136 @@ + + + + + \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index 3e06984..7c91f27 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,7 +1,9 @@ import LoginMenu from './components/LoginMenu.vue'; import NetworkSubsetter from './components/NetworkSubsetter.vue'; +import ToolBar from './components/ToolBar.vue'; export { LoginMenu, NetworkSubsetter, + ToolBar, }; \ No newline at end of file From dd6a09ed22bb68548639db3604a1c2db0ab64647 Mon Sep 17 00:00:00 2001 From: Jack Wilburn Date: Thu, 2 Mar 2023 11:45:36 -0700 Subject: [PATCH 2/3] Make login menu compatible with the toolbar component --- src/components/LoginMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/LoginMenu.vue b/src/components/LoginMenu.vue index 5e6d792..12f5640 100644 --- a/src/components/LoginMenu.vue +++ b/src/components/LoginMenu.vue @@ -1,7 +1,7 @@