From f6d665ca4de17992e71e8d664c2515a3711b2a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Odini?= Date: Sat, 9 Nov 2024 16:34:09 +0100 Subject: [PATCH] feat: new /experiments page (#1023) --- src/i18n/locales/en.json | 9 ++++++--- src/router.js | 5 +++-- src/views/Experiments.vue | 21 +++++++++++++++++++++ src/views/ProofAddSingle.vue | 4 ---- 4 files changed, 30 insertions(+), 9 deletions(-) create mode 100644 src/views/Experiments.vue diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index be812a17aba..b8d0d48c51b 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -461,6 +461,12 @@ "AddPriceMultiple": { "Title": "Add multiple prices" }, + "AddProofSingle": { + "Title": "Add a single proof" + }, + "Experiments": { + "Title": "Experiments" + }, "Home": { "Title": "Home" }, @@ -476,9 +482,6 @@ "MyProofs": { "Title": "My proofs" }, - "ProofAddSingle": { - "Title": "Add a proof" - }, "Search": { "Title": "Search" }, diff --git a/src/router.js b/src/router.js index 2465ca449a0..073f16f68e6 100644 --- a/src/router.js +++ b/src/router.js @@ -11,7 +11,7 @@ const routes = [ { path: '/dashboard/proofs', name: 'dashboard-proofs', component: () => import('./views/UserDashboardProofList.vue'), meta: { title: 'MyProofs', requiresAuth: true, breadcrumbs: [{title: 'Dashboard', disabled: false, to: '/dashboard' }, {title: 'MyProofs', disabled: true}] } }, { path: '/dashboard/settings', name: 'dashboard-settings', component: () => import('./views/UserSettings.vue'), meta: { title: 'Settings', requiresAuth: true } }, { path: '/prices/add', name: 'add-price', component: () => import('./views/AddPriceHome.vue'), meta: { title: 'AddPrice', requiresAuth: true }}, - { path: '/prices/add/single', name: 'add-price-single', component: () => import('./views/AddPriceSingle.vue'), meta: { title: 'Add a single price (price tag)', requiresAuth: true, breadcrumbs: [{title: 'AddPriceSingle', disabled: true }] }}, + { path: '/prices/add/single', name: 'add-price-single', component: () => import('./views/AddPriceSingle.vue'), meta: { title: 'Add a single price (price tag)', requiresAuth: true, breadcrumbs: [{title: 'Experiments', disabled: false, to: '/experiments' }, {title: 'AddPriceSingle', disabled: true }] }}, { path: '/prices/add/multiple', name: 'add-price-multiple', component: () => import('./views/AddPriceMultiple.vue'), meta: { title: 'AddPrice', icon: 'mdi-tag-plus-outline', drawerMenu: true, color: 'primary', requiresAuth: true, breadcrumbs: [{title: 'AddPriceMultiple', disabled: true }] }}, { path: '/prices/add/multiple/price-tag', name: 'add-price-multiple-price-tag', redirect: () => { return { path: '/prices/add/multiple' }}}, { path: '/prices/add/multiple/receipt', name: 'add-price-multiple-receipt', redirect: () => { return { path: '/prices/add/multiple' }}}, @@ -28,10 +28,11 @@ const routes = [ { path: '/dates/:date', name: 'date-detail', component: () => import('./views/DateDetail.vue'), meta: { title: 'Date detail' }}, { path: '/categories/:id', name: 'category-detail', component: () => import('./views/CategoryDetail.vue'), meta: { title: 'Category detail' }}, { path: '/labels/:id', name: 'label-detail', component: () => import('./views/LabelDetail.vue'), meta: { title: 'Label detail' }}, - { path: '/proofs/add/single', name: 'proof-add', component: () => import('./views/ProofAddSingle.vue'), meta: { title: 'ProofAddSingle', icon: 'mdi-plus', color: 'primary', requiresAuth: true }}, + { path: '/proofs/add/single', name: 'proof-add', component: () => import('./views/ProofAddSingle.vue'), meta: { title: 'AddProofSingle', icon: 'mdi-image-plus', requiresAuth: true, breadcrumbs: [{title: 'Experiments', disabled: false, to: '/experiments' }, {title: 'AddProofSingle', disabled: true }] }}, { path: '/proofs/:id', name: 'proof-detail', component: () => import('./views/ProofDetail.vue'), meta: { title: 'Proof detail', requiresAuth: true }}, { path: '/users', name: 'users', component: () => import('./views/UserList.vue'), meta: { title: 'TopContributors', icon: 'mdi-account-star-outline', drawerMenu: true }}, { path: '/users/:username', name: 'user-detail', component: () => import('./views/UserDetail.vue'), meta: { title: 'User detail' }}, + { path: '/experiments', name: 'experiments', component: () => import('./views/Experiments.vue'), meta: { title: 'Experiments', icon: 'mdi-test-tube', breadcrumbs: [{title: 'Experiments', disabled: true }] }}, { path: '/stats', name: 'stats', component: () => import('./views/Stats.vue'), meta: { title: 'Stats', icon: 'mdi-chart-box-outline', drawerMenu: true }}, { path: '/settings', name: 'settings', component: () => import('./views/Settings.vue'), meta: { title: 'Settings', icon: 'mdi-cog-outline', drawerMenu: true, breadcrumbs: [{title: 'Settings', disabled: true }] }}, { path: '/about', name: 'about', component: () => import('./views/About.vue'), meta: { title: 'About', icon: 'mdi-information-outline', drawerMenu: true }}, diff --git a/src/views/Experiments.vue b/src/views/Experiments.vue new file mode 100644 index 00000000000..18266e4f5e3 --- /dev/null +++ b/src/views/Experiments.vue @@ -0,0 +1,21 @@ + + + diff --git a/src/views/ProofAddSingle.vue b/src/views/ProofAddSingle.vue index b2d4339c864..179d32752f4 100644 --- a/src/views/ProofAddSingle.vue +++ b/src/views/ProofAddSingle.vue @@ -1,8 +1,4 @@