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)

View File

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

View File

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

View File

@@ -7,7 +7,7 @@ import { RouterLink, RouterView } from 'vue-router'
<header>
<nav>
<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>
</nav>
</header>

View File

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

View File

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

View File

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