fix: lint
This commit is contained in:
parent
b34118485c
commit
ed8de7e3eb
@ -67,7 +67,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {computed, watch, ref} from 'vue'
|
import {computed, ref} from 'vue'
|
||||||
import {useProjectStore} from '@/stores/projects'
|
import {useProjectStore} from '@/stores/projects'
|
||||||
import {useBaseStore} from '@/stores/base'
|
import {useBaseStore} from '@/stores/base'
|
||||||
|
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import {reactive, ref, watch} from 'vue'
|
import {reactive, ref, watch} from 'vue'
|
||||||
import type {PropType} from 'vue'
|
import type {PropType} from 'vue'
|
||||||
import {useI18n} from 'vue-i18n'
|
|
||||||
|
|
||||||
import type {IProject} from '@/modelTypes/IProject'
|
import type {IProject} from '@/modelTypes/IProject'
|
||||||
|
|
||||||
@ -41,8 +40,6 @@ const props = defineProps({
|
|||||||
})
|
})
|
||||||
const emit = defineEmits(['update:modelValue'])
|
const emit = defineEmits(['update:modelValue'])
|
||||||
|
|
||||||
const {t} = useI18n({useScope: 'global'})
|
|
||||||
|
|
||||||
const project: IProject = reactive(new ProjectModel())
|
const project: IProject = reactive(new ProjectModel())
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import {i18n} from '@/i18n'
|
import {i18n} from '@/i18n'
|
||||||
import type {IProject} from '@/modelTypes/IProject'
|
import type {IProject} from '@/modelTypes/IProject'
|
||||||
import {useProjectStore} from '@/stores/projects'
|
|
||||||
|
|
||||||
export function getProjectTitle(project: IProject) {
|
export function getProjectTitle(project: IProject) {
|
||||||
if (project.id === -1) {
|
if (project.id === -1) {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {watch, reactive, shallowReactive, unref, toRefs, readonly, ref, computed, watchEffect} from 'vue'
|
import {watch, reactive, shallowReactive, unref, readonly, ref, computed, watchEffect} from 'vue'
|
||||||
import {acceptHMRUpdate, defineStore} from 'pinia'
|
import {acceptHMRUpdate, defineStore} from 'pinia'
|
||||||
import {useI18n} from 'vue-i18n'
|
import {useI18n} from 'vue-i18n'
|
||||||
import {useRouter} from 'vue-router'
|
import {useRouter} from 'vue-router'
|
||||||
@ -18,7 +18,7 @@ import ProjectModel from '@/models/project'
|
|||||||
import {success} from '@/message'
|
import {success} from '@/message'
|
||||||
import {useBaseStore} from '@/stores/base'
|
import {useBaseStore} from '@/stores/base'
|
||||||
|
|
||||||
const {add, remove, search, update} = createNewIndexer('projects', ['title', 'description'])
|
const {remove, search, update} = createNewIndexer('projects', ['title', 'description'])
|
||||||
|
|
||||||
export interface ProjectState {
|
export interface ProjectState {
|
||||||
[id: IProject['id']]: IProject
|
[id: IProject['id']]: IProject
|
||||||
|
@ -464,6 +464,7 @@ export const useTaskStore = defineStore('task', () => {
|
|||||||
setCoverImage,
|
setCoverImage,
|
||||||
findProjectId,
|
findProjectId,
|
||||||
ensureLabelsExist,
|
ensureLabelsExist,
|
||||||
|
toggleFavorite,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -57,7 +57,6 @@ import {useProjectStore} from '@/stores/projects'
|
|||||||
import {useConfigStore} from '@/stores/config'
|
import {useConfigStore} from '@/stores/config'
|
||||||
import {useAuthStore} from '@/stores/auth'
|
import {useAuthStore} from '@/stores/auth'
|
||||||
import {useTaskStore} from '@/stores/tasks'
|
import {useTaskStore} from '@/stores/tasks'
|
||||||
import type {IProject} from '@/modelTypes/IProject'
|
|
||||||
|
|
||||||
const salutation = useDaytimeSalutation()
|
const salutation = useDaytimeSalutation()
|
||||||
|
|
||||||
|
@ -26,11 +26,9 @@
|
|||||||
import {computed} from 'vue'
|
import {computed} from 'vue'
|
||||||
import {useI18n} from 'vue-i18n'
|
import {useI18n} from 'vue-i18n'
|
||||||
|
|
||||||
import BaseButton from '@/components/base/BaseButton.vue'
|
|
||||||
import Fancycheckbox from '@/components/input/fancycheckbox.vue'
|
import Fancycheckbox from '@/components/input/fancycheckbox.vue'
|
||||||
import ProjectCardGrid from '@/components/project/partials/ProjectCardGrid.vue'
|
import ProjectCardGrid from '@/components/project/partials/ProjectCardGrid.vue'
|
||||||
|
|
||||||
import {getProjectTitle} from '@/helpers/getProjectTitle'
|
|
||||||
import {useTitle} from '@/composables/useTitle'
|
import {useTitle} from '@/composables/useTitle'
|
||||||
import {useStorage} from '@vueuse/core'
|
import {useStorage} from '@vueuse/core'
|
||||||
|
|
||||||
|
@ -44,7 +44,6 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {ref, reactive, shallowReactive, watch} from 'vue'
|
import {ref, reactive, shallowReactive, watch} from 'vue'
|
||||||
import {useI18n} from 'vue-i18n'
|
import {useI18n} from 'vue-i18n'
|
||||||
import {useRouter, useRoute} from 'vue-router'
|
|
||||||
|
|
||||||
import ProjectService from '@/services/project'
|
import ProjectService from '@/services/project'
|
||||||
import ProjectModel from '@/models/project'
|
import ProjectModel from '@/models/project'
|
||||||
@ -58,8 +57,6 @@ import ProjectSearch from '@/components/tasks/partials/projectSearch.vue'
|
|||||||
import type {IProject} from '@/modelTypes/IProject'
|
import type {IProject} from '@/modelTypes/IProject'
|
||||||
|
|
||||||
const {t} = useI18n({useScope: 'global'})
|
const {t} = useI18n({useScope: 'global'})
|
||||||
const router = useRouter()
|
|
||||||
const route = useRoute()
|
|
||||||
|
|
||||||
useTitle(() => t('project.create.header'))
|
useTitle(() => t('project.create.header'))
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {ref, watch} from 'vue'
|
import {ref, watch} from 'vue'
|
||||||
import {useRoute, useRouter} from 'vue-router'
|
import {useRoute} from 'vue-router'
|
||||||
import {useI18n} from 'vue-i18n'
|
import {useI18n} from 'vue-i18n'
|
||||||
|
|
||||||
import CreateEdit from '@/components/misc/create-edit.vue'
|
import CreateEdit from '@/components/misc/create-edit.vue'
|
||||||
@ -28,7 +28,6 @@ const {t} = useI18n({useScope: 'global'})
|
|||||||
useTitle(() => t('project.duplicate.title'))
|
useTitle(() => t('project.duplicate.title'))
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const router = useRouter()
|
|
||||||
const projectStore = useProjectStore()
|
const projectStore = useProjectStore()
|
||||||
|
|
||||||
const {project, isLoading, duplicateProject} = useProject(route.params.projectId)
|
const {project, isLoading, duplicateProject} = useProject(route.params.projectId)
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
ref="heading"
|
ref="heading"
|
||||||
/>
|
/>
|
||||||
<h6 class="subtitle" v-if="project?.id">
|
<h6 class="subtitle" v-if="project?.id">
|
||||||
<template v-for="p in projectStore.getAncestors(project)">
|
<template v-for="p in projectStore.getAncestors(project)" :key="p.id">
|
||||||
<router-link :to="{ name: 'project.index', params: { projectId: p.id } }">
|
<router-link :to="{ name: 'project.index', params: { projectId: p.id } }">
|
||||||
{{ getProjectTitle(p) }}
|
{{ getProjectTitle(p) }}
|
||||||
</router-link>
|
</router-link>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user