From 43ecf895d367bb63b35a2452b1e1c81e76e560cb Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 4 Dec 2023 00:21:19 +0530 Subject: added sidebar --- package-lock.json | 10 +++- package.json | 3 +- src/App.vue | 16 +++++- src/components/sidebar.vue | 119 +++++++++++++++++++++++++++++++++++++++++++++ src/router/index.ts | 6 +-- 5 files changed, 147 insertions(+), 7 deletions(-) create mode 100644 src/components/sidebar.vue diff --git a/package-lock.json b/package-lock.json index 5c3f59e..f051c37 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,17 @@ { "name": "openbills-web", - "version": "0.0.5", + "version": "0.1.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "openbills-web", - "version": "0.0.5", + "version": "0.1.1", "dependencies": { "axios": "^1.5.1", "bootstrap": "^5.3.2", "bootstrap-icons": "^1.11.1", + "bootstrap-icons-vue": "^1.11.1", "vue": "^3.3.4", "vue-router": "^4.2.4", "vue-toast-notification": "^3.1.1" @@ -1859,6 +1860,11 @@ } ] }, + "node_modules/bootstrap-icons-vue": { + "version": "1.11.1", + "resolved": "https://registry.npmjs.org/bootstrap-icons-vue/-/bootstrap-icons-vue-1.11.1.tgz", + "integrity": "sha512-vQELXxclY2LauUJ7OMXScv1j+mJS2K2h7NTgW7yDG954dI+SC2QHLKg+Mc7qmCDZ+3oMayeLqmFTDX0GBmdobA==" + }, "node_modules/bplist-parser": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz", diff --git a/package.json b/package.json index 73155b0..5e3e9af 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openbills-web", - "version": "0.1.1", + "version": "0.2.0", "private": false, "scripts": { "dev": "vite", @@ -15,6 +15,7 @@ "axios": "^1.5.1", "bootstrap": "^5.3.2", "bootstrap-icons": "^1.11.1", + "bootstrap-icons-vue": "^1.11.1", "vue": "^3.3.4", "vue-router": "^4.2.4", "vue-toast-notification": "^3.1.1" diff --git a/src/App.vue b/src/App.vue index ab2e3f5..c637566 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,25 @@ + + diff --git a/src/components/sidebar.vue b/src/components/sidebar.vue new file mode 100644 index 0000000..d9c05d5 --- /dev/null +++ b/src/components/sidebar.vue @@ -0,0 +1,119 @@ + + + + + diff --git a/src/router/index.ts b/src/router/index.ts index 55e2070..9817a1e 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -46,7 +46,7 @@ const router = createRouter({ }, { path: '/customer/new', - name: 'new customer', + name: 'new-customer', component: NewCustomer, meta: { isAuth: true } }, @@ -58,13 +58,13 @@ const router = createRouter({ }, { path: '/item/new', - name: 'new item', + name: 'new-item', component: NewItem, meta: { isAuth: true } }, { path: '/invoice/new', - name: 'new invoice', + name: 'new-invoice', component: NewInvoice, meta: { isAuth: true } }, -- cgit v1.2.3