Change title to Fail Well

This commit is contained in:
Julien Calixte
2023-12-02 21:27:15 +01:00
parent ae407780cb
commit 438fda7025
7 changed files with 12 additions and 13 deletions

View File

@@ -1,4 +1,4 @@
# Taskflow # Fail well
![standadized-work](standardized-work.png) ![standadized-work](standardized-work.png)

View File

@@ -4,7 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" href="/loop.png" /> <link rel="icon" href="/loop.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Taskflow</title> <title>Fail Well</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

View File

@@ -1,5 +1,5 @@
{ {
"name": "taskflow", "name": "failwell",
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"scripts": { "scripts": {

View File

@@ -7,7 +7,7 @@ import { RouterLink, RouterView } from 'vue-router'
<header> <header>
<nav> <nav>
<router-link class="title is-3" to="/"> <router-link class="title is-3" to="/">
<img class="logo" src="/loop.png" alt="Taskflow" /> <img class="logo" src="/loop.png" alt="Fail Well" />
</router-link> </router-link>
</nav> </nav>
</header> </header>

View File

@@ -2,7 +2,7 @@
import EstimationTimeArrival from '@/components/EstimationTimeArrival.vue' import EstimationTimeArrival from '@/components/EstimationTimeArrival.vue'
import RecordResume from '@/modules/record/components/RecordResume.vue' import RecordResume from '@/modules/record/components/RecordResume.vue'
import { useTaskStore } from '@/modules/task/stores/useTask.store' import { useTaskStore } from '@/modules/task/stores/useTask.store'
import { useTaskflowTitle } from '@/shared/useTaskflowTitle' import { useAppTitle } from '@/shared/useAppTitle'
import { computed, onMounted } from 'vue' import { computed, onMounted } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { useTaskRecordStore } from '../stores/useTaskRecordStore' import { useTaskRecordStore } from '../stores/useTaskRecordStore'
@@ -28,7 +28,7 @@ onMounted(() => {
recordStore.initRecord(props.taskId) recordStore.initRecord(props.taskId)
}) })
useTaskflowTitle(task.value?.title ?? '') useAppTitle(task.value?.title ?? '')
const record = computed(() => recordStore.getTaskRecord(props.taskId)) const record = computed(() => recordStore.getTaskRecord(props.taskId))
const recordNotes = computed(() => recordStore.getRecordNotes(props.taskId)) const recordNotes = computed(() => recordStore.getRecordNotes(props.taskId))
@@ -108,4 +108,3 @@ table {
overflow-x: auto; overflow-x: auto;
} }
</style> </style>
@/shared/useTaskflowTitle

View File

@@ -1,16 +1,16 @@
import { useTitle } from '@vueuse/core' import { useTitle } from '@vueuse/core'
import { onUnmounted } from 'vue' import { onUnmounted } from 'vue'
export const useTaskflowTitle = (title: string) => { export const useAppTitle = (title: string) => {
if (title) { if (title) {
useTitle(title, { useTitle(title, {
titleTemplate: '%s | Taskflow' titleTemplate: '%s | Fail Well'
}) })
} else { } else {
useTitle('Taskflow') useTitle('Fail Well')
} }
onUnmounted(() => { onUnmounted(() => {
useTitle('Taskflow') useTitle('Fail Well')
}) })
} }

View File

@@ -11,8 +11,8 @@ export default defineConfig({
registerType: 'autoUpdate', registerType: 'autoUpdate',
includeAssets: ['icons/*.svg', 'loop.png'], includeAssets: ['icons/*.svg', 'loop.png'],
manifest: { manifest: {
name: 'Taskflow', name: 'Fail Well',
short_name: 'Taskflow', short_name: 'Fail Well',
description: 'Feedback loop when coding', description: 'Feedback loop when coding',
theme_color: '#192a56', theme_color: '#192a56',
icons: [ icons: [