Add code for a ‘new project’ button to project list navigation.

This is currently disabled though (value in route/index.js is
commented out) as it is not possible at the moment to create
new projects fully from scratch from the frontend. See comment
on previous commit.

NB: projects may be created fully from scratch by making an API
request with a suitable YAML / JSON configuration file, thusly:

curl -vs "https://[hostname]/api/project" -X POST \
    -H "Content-Type: application/yaml"
    --data-binary @/path/to/configuration.yaml
This commit is contained in:
D. Berge
2023-10-29 19:40:07 +01:00
parent 1801fdb052
commit 402a3f9cce
2 changed files with 96 additions and 1 deletions

View File

@@ -16,7 +16,9 @@ import Log from '../views/Log.vue'
import QC from '../views/QC.vue'
import Graphs from '../views/Graphs.vue'
import Map from '../views/Map.vue'
import ProjectSettings from '../views/ProjectSettings.vue'
import DougalAppBarExtensionProject from '../components/app-bar-extension-project'
import DougalAppBarExtensionProjectList from '../components/app-bar-extension-project-list'
Vue.use(VueRouter)
@@ -80,7 +82,10 @@ Vue.use(VueRouter)
meta: {
breadcrumbs: [
{ text: "Projects", href: "/projects", disabled: true }
]
],
appBarExtension: {
// component: DougalAppBarExtensionProjectList
}
}
},
{
@@ -168,6 +173,11 @@ Vue.use(VueRouter)
path: "map",
name: "map",
component: Map
},
{
path: "configuration",
name: "configuration",
component: ProjectSettings
}
]
}