refactor(web): rename the settings route to /settings
Keep /reglages as a redirect for existing bookmarks.
8fabaaa parent: d4ef3f2 modified
web/src/project/TopBar.vue +1 -1 | @@ -140,7 +140,7 @@ function openProject(id: string) { | ||
| 140 | 140 | <RouterLink to="/bibliotheque" class="nav-item">{{ t("nav.library") }}</RouterLink> |
| 141 | 141 | </template> |
| 142 | 142 | |
| 143 | - <RouterLink to="/reglages" class="nav-item" :class="{ on: route.name === 'settings' }">{{ t("nav.settings") }}</RouterLink> | |
| 143 | + <RouterLink to="/settings" class="nav-item" :class="{ on: route.name === 'settings' }">{{ t("nav.settings") }}</RouterLink> | |
| 144 | 144 | <div |
| 145 | 145 | class="worker" |
| 146 | 146 | :class="workerAlive === null ? 'unknown' : workerAlive ? 'ok' : 'down'" |
| @@ -140,7 +140,7 @@ function openProject(id: string) { | |||
| 140 | <RouterLink to="/bibliotheque" class="nav-item">{{ t("nav.library") }}</RouterLink> | 140 | <RouterLink to="/bibliotheque" class="nav-item">{{ t("nav.library") }}</RouterLink> |
| 141 | </template> | 141 | </template> |
| 142 | 142 | ||
| 143 | - <RouterLink to="/reglages" class="nav-item" :class="{ on: route.name === 'settings' }">{{ t("nav.settings") }}</RouterLink> | 143 | + <RouterLink to="/settings" class="nav-item" :class="{ on: route.name === 'settings' }">{{ t("nav.settings") }}</RouterLink> |
| 144 | <div | 144 | <div |
| 145 | class="worker" | 145 | class="worker" |
| 146 | :class="workerAlive === null ? 'unknown' : workerAlive ? 'ok' : 'down'" | 146 | :class="workerAlive === null ? 'unknown' : workerAlive ? 'ok' : 'down'" |
modified
web/src/project/steps/UploadStep.vue +1 -1 | @@ -46,7 +46,7 @@ const visLabel = (vis: Visibility) => { const key = VISIBILITY.find(([k]) => k = | ||
| 46 | 46 | <div class="screen"> |
| 47 | 47 | <div v-if="P.account.value && !P.account.value.connected" class="banner"> |
| 48 | 48 | {{ t("upload.notConnected") }} |
| 49 | - <RouterLink to="/reglages">{{ t("upload.connect") }}</RouterLink> | |
| 49 | + <RouterLink to="/settings">{{ t("upload.connect") }}</RouterLink> | |
| 50 | 50 | </div> |
| 51 | 51 | <div v-else-if="P.account.value?.channel" class="summary"> |
| 52 | 52 | <span>{{ t("upload.summary", { sent, n: P.videos.value.length }) }}{{ blocked ? t("upload.blocked", { n: blocked }) : "" }}</span> |
| @@ -46,7 +46,7 @@ const visLabel = (vis: Visibility) => { const key = VISIBILITY.find(([k]) => k = | |||
| 46 | <div class="screen"> | 46 | <div class="screen"> |
| 47 | <div v-if="P.account.value && !P.account.value.connected" class="banner"> | 47 | <div v-if="P.account.value && !P.account.value.connected" class="banner"> |
| 48 | {{ t("upload.notConnected") }} | 48 | {{ t("upload.notConnected") }} |
| 49 | - <RouterLink to="/reglages">{{ t("upload.connect") }}</RouterLink> | 49 | + <RouterLink to="/settings">{{ t("upload.connect") }}</RouterLink> |
| 50 | </div> | 50 | </div> |
| 51 | <div v-else-if="P.account.value?.channel" class="summary"> | 51 | <div v-else-if="P.account.value?.channel" class="summary"> |
| 52 | <span>{{ t("upload.summary", { sent, n: P.videos.value.length }) }}{{ blocked ? t("upload.blocked", { n: blocked }) : "" }}</span> | 52 | <span>{{ t("upload.summary", { sent, n: P.videos.value.length }) }}{{ blocked ? t("upload.blocked", { n: blocked }) : "" }}</span> |
modified
web/src/router.ts +2 -1 | @@ -9,7 +9,8 @@ export const router = createRouter({ | ||
| 9 | 9 | { path: "/", name: "home", component: () => import("./pages/HomePage.vue"), meta: { title: "nav.projects" } }, |
| 10 | 10 | { path: "/nouveau", name: "new", component: () => import("./pages/NewProjectPage.vue"), meta: { title: "nav.newProject" } }, |
| 11 | 11 | { path: "/bibliotheque", name: "library", component: () => import("./pages/LibraryPage.vue"), meta: { title: "nav.library" } }, |
| 12 | - { path: "/reglages", name: "settings", component: () => import("./pages/SettingsPage.vue"), meta: { title: "nav.settings" } }, | |
| 12 | + { path: "/settings", name: "settings", component: () => import("./pages/SettingsPage.vue"), meta: { title: "nav.settings" } }, | |
| 13 | + { path: "/reglages", redirect: "/settings" }, | |
| 13 | 14 | { path: "/p/:pid", name: "project", component: () => import("./project/OverviewPage.vue") }, |
| 14 | 15 | { path: "/p/:pid/brief", name: "brief", component: () => import("./pages/NewProjectPage.vue"), meta: { title: "nav.brief" } }, |
| 15 | 16 | { path: "/p/:pid/ressources", name: "resources", component: () => import("./project/ResourcesPage.vue"), meta: { title: "nav.media" } }, |
| @@ -9,7 +9,8 @@ export const router = createRouter({ | |||
| 9 | { path: "/", name: "home", component: () => import("./pages/HomePage.vue"), meta: { title: "nav.projects" } }, | 9 | { path: "/", name: "home", component: () => import("./pages/HomePage.vue"), meta: { title: "nav.projects" } }, |
| 10 | { path: "/nouveau", name: "new", component: () => import("./pages/NewProjectPage.vue"), meta: { title: "nav.newProject" } }, | 10 | { path: "/nouveau", name: "new", component: () => import("./pages/NewProjectPage.vue"), meta: { title: "nav.newProject" } }, |
| 11 | { path: "/bibliotheque", name: "library", component: () => import("./pages/LibraryPage.vue"), meta: { title: "nav.library" } }, | 11 | { path: "/bibliotheque", name: "library", component: () => import("./pages/LibraryPage.vue"), meta: { title: "nav.library" } }, |
| 12 | - { path: "/reglages", name: "settings", component: () => import("./pages/SettingsPage.vue"), meta: { title: "nav.settings" } }, | 12 | + { path: "/settings", name: "settings", component: () => import("./pages/SettingsPage.vue"), meta: { title: "nav.settings" } }, |
| 13 | + { path: "/reglages", redirect: "/settings" }, | ||
| 13 | { path: "/p/:pid", name: "project", component: () => import("./project/OverviewPage.vue") }, | 14 | { path: "/p/:pid", name: "project", component: () => import("./project/OverviewPage.vue") }, |
| 14 | { path: "/p/:pid/brief", name: "brief", component: () => import("./pages/NewProjectPage.vue"), meta: { title: "nav.brief" } }, | 15 | { path: "/p/:pid/brief", name: "brief", component: () => import("./pages/NewProjectPage.vue"), meta: { title: "nav.brief" } }, |
| 15 | { path: "/p/:pid/ressources", name: "resources", component: () => import("./project/ResourcesPage.vue"), meta: { title: "nav.media" } }, | 16 | { path: "/p/:pid/ressources", name: "resources", component: () => import("./project/ResourcesPage.vue"), meta: { title: "nav.media" } }, |