feat(home): new task text
This commit is contained in:
@@ -5,4 +5,4 @@
|
|||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"printWidth": 80,
|
"printWidth": 80,
|
||||||
"trailingComma": "none"
|
"trailingComma": "none"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ import { RouterLink, RouterView } from 'vue-router'
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -18,26 +18,28 @@ const resetTasks = () => {
|
|||||||
<main>
|
<main>
|
||||||
<div class="content-tasks columns is-centered is-vcentered">
|
<div class="content-tasks columns is-centered is-vcentered">
|
||||||
<div class="new-task-container column buttons">
|
<div class="new-task-container column buttons">
|
||||||
<router-link :to="{ name: 'new-task' }" class="button is-primary"
|
<router-link :to="{ name: 'new-task' }" class="button is-primary">
|
||||||
>Create a new task</router-link
|
new task
|
||||||
>
|
</router-link>
|
||||||
<button v-if="hasTask" class="button is-danger" @click="resetTasks">
|
<button v-if="hasTask" class="button is-danger" @click="resetTasks">
|
||||||
clear the list
|
clear the list
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<task-list class="column task-list" />
|
<task-list class="column task-list" />
|
||||||
</div>
|
</div>
|
||||||
<!-- <footer>
|
<!--
|
||||||
<p>
|
<footer>
|
||||||
|
<p>
|
||||||
Made with <img src="@/assets/icons/love.svg" alt="love" /> by
|
Made with <img src="@/assets/icons/love.svg" alt="love" /> by
|
||||||
<a
|
<a
|
||||||
href="http://github.com/jcalixte/loopycode"
|
href="http://github.com/jcalixte/loopycode"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
>Julien</a
|
>Julien</a
|
||||||
>
|
>
|
||||||
</p>
|
</p>
|
||||||
</footer> -->
|
</footer>
|
||||||
|
-->
|
||||||
</main>
|
</main>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -31,30 +31,24 @@ const { canShareTask, taskCopied, shareTask } = useCopyRecord(task)
|
|||||||
<template>
|
<template>
|
||||||
<div class="task-view" v-if="task">
|
<div class="task-view" v-if="task">
|
||||||
<div class="buttons actions">
|
<div class="buttons actions">
|
||||||
<router-link
|
<router-link :to="{
|
||||||
:to="{
|
name: 'edit-task',
|
||||||
name: 'edit-task',
|
params: {
|
||||||
params: {
|
id
|
||||||
id
|
}
|
||||||
}
|
}" class="button">
|
||||||
}"
|
|
||||||
class="button"
|
|
||||||
>
|
|
||||||
<img src="/icons/edit.svg" alt="edit task" />
|
<img src="/icons/edit.svg" alt="edit task" />
|
||||||
</router-link>
|
</router-link>
|
||||||
<button v-if="canShareTask" class="share-task button" @click="shareTask">
|
<button v-if="canShareTask" class="share-task button" @click="shareTask">
|
||||||
<img v-if="taskCopied" src="/icons/check.svg" alt="task copied!" />
|
<img v-if="taskCopied" src="/icons/check.svg" alt="task copied!" />
|
||||||
<img v-else src="/icons/share.svg" alt="share task" />
|
<img v-else src="/icons/share.svg" alt="share task" />
|
||||||
</button>
|
</button>
|
||||||
<router-link
|
<router-link :to="{
|
||||||
:to="{
|
name: 'duplicate-task',
|
||||||
name: 'duplicate-task',
|
params: {
|
||||||
params: {
|
id
|
||||||
id
|
}
|
||||||
}
|
}" class="button">
|
||||||
}"
|
|
||||||
class="button"
|
|
||||||
>
|
|
||||||
<img src="/icons/copy.svg" alt="duplicate task" />
|
<img src="/icons/copy.svg" alt="duplicate task" />
|
||||||
</router-link>
|
</router-link>
|
||||||
<button class="delete-task button is-light is-danger" @click="deleteTask">
|
<button class="delete-task button is-light is-danger" @click="deleteTask">
|
||||||
@@ -65,14 +59,8 @@ const { canShareTask, taskCopied, shareTask } = useCopyRecord(task)
|
|||||||
<h2 class="subtitle">
|
<h2 class="subtitle">
|
||||||
<estimation-time-arrival :estimation="task.totalEstimation" />
|
<estimation-time-arrival :estimation="task.totalEstimation" />
|
||||||
</h2>
|
</h2>
|
||||||
<a
|
<a v-if="task.link" :href="task.link" target="_blank" rel="noopener noreferrer" class="button is-link">user story
|
||||||
v-if="task.link"
|
link</a>
|
||||||
:href="task.link"
|
|
||||||
target="_blank"
|
|
||||||
rel="noopener noreferrer"
|
|
||||||
class="button is-link"
|
|
||||||
>user story link</a
|
|
||||||
>
|
|
||||||
<task-record-preview :task-id="id" />
|
<task-record-preview :task-id="id" />
|
||||||
<hr />
|
<hr />
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
Reference in New Issue
Block a user