Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5ae0684d39 | ||
|
|
ea9a50a2f7 | ||
|
|
5e60b5ad20 | ||
|
|
f811facff8 | ||
|
|
db9ecb4773 | ||
|
|
51801f67f9 | ||
|
|
fe41547ced | ||
|
|
e87068e379 | ||
|
|
cc856c3402 | ||
|
|
b24f3bb656 | ||
|
|
cf2f48c84c | ||
|
|
0f5f3b2fc5 | ||
|
|
3a40b06354 | ||
|
|
117d3a2029 | ||
|
|
478091b0ba | ||
|
|
08b3b06089 | ||
|
|
1c7d38fc15 | ||
|
|
350da88802 | ||
|
|
29cdf7bb7e |
@@ -25,7 +25,6 @@ RUN uv pip install . --system
|
||||
|
||||
ENV APP_ENV=production
|
||||
ENV PORT=5000
|
||||
EXPOSE ${PORT}
|
||||
ENV BIND=0.0.0.0
|
||||
|
||||
COPY --from=front-end /app/dist ./dist
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
|
||||
> A shareable task list with auto resetting items.
|
||||
|
||||

|
||||
|
||||
**[todo.klemek.fr](https://todo.klemek.fr)**
|
||||
|
||||
## Running your own
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
from tortoise import migrations
|
||||
from tortoise.migrations import operations as ops
|
||||
from tortoise import fields
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [('models', '0001_initial')]
|
||||
|
||||
initial = False
|
||||
|
||||
operations = [
|
||||
ops.AlterField(
|
||||
model_name='Task',
|
||||
name='list_name',
|
||||
field=fields.CharField(db_index=True, max_length=128),
|
||||
),
|
||||
ops.AlterField(
|
||||
model_name='Task',
|
||||
name='reset_cron',
|
||||
field=fields.CharField(null=True, max_length=64),
|
||||
),
|
||||
]
|
||||
+1
-1
@@ -10,7 +10,7 @@ CRONTAB_REGEX = r"^(@(annually|yearly|monthly|weekly|daily|hourly|reboot))|(@eve
|
||||
|
||||
|
||||
class Task(AbstractModel):
|
||||
list_name = tortoise.fields.CharField(max_length=32, db_index=True, null=False)
|
||||
list_name = tortoise.fields.CharField(max_length=128, db_index=True, null=False)
|
||||
name = tortoise.fields.TextField(null=False)
|
||||
reset_cron = tortoise.fields.CharField(
|
||||
max_length=64,
|
||||
|
||||
+2
-2
@@ -58,13 +58,13 @@ class Server(gunicorn.app.base.BaseApplication):
|
||||
|
||||
@self.app.route("/api/lists/<list_name>/tasks", methods=["GET"])
|
||||
async def get_tasks(list_name: str) -> list:
|
||||
return await Task.filter(list_name=list_name).values()
|
||||
return await Task.filter(list_name=list_name[:128]).values()
|
||||
|
||||
@self.app.route("/api/lists/<list_name>/tasks", methods=["POST"])
|
||||
async def post_task(list_name: str) -> typing.Any:
|
||||
data = flask.request.get_json()
|
||||
logging.getLogger(self.__class__.__name__).info("%s", data)
|
||||
data["list_name"] = list_name
|
||||
data["list_name"] = list_name[:128]
|
||||
parsed_data = Task.validate_create(data)
|
||||
if parsed_data is None:
|
||||
flask.abort(400)
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
<!-- card related -->
|
||||
<meta property="og:title" content="{{ title }}">
|
||||
<meta property="og:description" content="{{ lang('home') }}">
|
||||
<meta property="og:image" content="{{ app_url }}/assets/favicon-96x96.jpg">
|
||||
<meta property="og:image" content="{{ app_url }}/assets/preview.jpg">
|
||||
<meta property="og:url" content="{{ app_url }}/{{ path }}">
|
||||
|
||||
<script
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "tout-doux",
|
||||
"version": "1.0.1",
|
||||
"version": "1.1.0",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"engines": {
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 78 KiB |
+1
-1
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "tout-doux"
|
||||
version = "1.0.1"
|
||||
version = "1.1.0"
|
||||
description = ""
|
||||
requires-python = ">=3.14"
|
||||
dependencies = [
|
||||
|
||||
@@ -10,3 +10,38 @@ body {
|
||||
font-style: normal;
|
||||
font-variation-settings: "wdth" 100;
|
||||
}
|
||||
|
||||
.bg-hero {
|
||||
--size: 15vh;
|
||||
--angle: 45deg;
|
||||
background: repeating-linear-gradient(
|
||||
var(--angle),
|
||||
var(--color-base-200) 0%,
|
||||
var(--color-base-200) 12.5%,
|
||||
var(--color-secondary) 12.5%,
|
||||
var(--color-secondary) 25%,
|
||||
var(--color-base-200) 25%,
|
||||
var(--color-base-200) 37.5%,
|
||||
var(--color-accent) 37.5%,
|
||||
var(--color-accent) 50%,
|
||||
var(--color-base-200) 50%,
|
||||
var(--color-base-200) 62.5%,
|
||||
var(--color-secondary) 62.5%,
|
||||
var(--color-secondary) 75%,
|
||||
var(--color-base-200) 75%,
|
||||
var(--color-base-200) 87.5%,
|
||||
var(--color-accent) 87.5%,
|
||||
var(--color-accent) 100%,
|
||||
var(--color-base-200) 100%
|
||||
);
|
||||
background-repeat: repeat;
|
||||
background-size: calc(var(--size) / sin(var(--angle)))
|
||||
calc(var(--size) / sin(var(--angle)));
|
||||
animation: BackgroundAnimate 10s linear infinite reverse;
|
||||
}
|
||||
|
||||
@keyframes BackgroundAnimate {
|
||||
0% {
|
||||
background-position: calc(var(--size) / sin(var(--angle))) 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,5 +78,11 @@
|
||||
"call_to_action": "Create your list below:",
|
||||
"home_button": "Let's go !",
|
||||
"share_button": "Share my list",
|
||||
"share_text": "Check my list on Tout Doux!"
|
||||
"share_text": "Check my list on Tout Doux!",
|
||||
"add_button": "Add task",
|
||||
"cancel_button": "Cancel editing",
|
||||
"save_button": "Save task",
|
||||
"clone_button": "Clone task",
|
||||
"delete_button": "Delete task",
|
||||
"recent": "Recent lists"
|
||||
}
|
||||
|
||||
@@ -78,5 +78,11 @@
|
||||
"call_to_action": "Créez ta liste ci-dessous :",
|
||||
"home_button": "C'est parti !",
|
||||
"share_button": "Partager ma liste",
|
||||
"share_text": "Regarde ma liste sur Tout Doux!"
|
||||
"share_text": "Regarde ma liste sur Tout Doux!",
|
||||
"add_button": "Ajouter la tâche",
|
||||
"cancel_button": "Annuler la modification",
|
||||
"save_button": "Sauvegarder la tâche",
|
||||
"clone_button": "Cloner la tâche",
|
||||
"delete_button": "Supprimer la tâche",
|
||||
"recent": "Listes récentes"
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ onMounted(() => {
|
||||
:style="{ display: visible ? 'flex' : 'none' }"
|
||||
class="min-h-screen flex-col w-screen"
|
||||
>
|
||||
<div class="hero bg-base-200 grow">
|
||||
<div class="hero bg-hero grow">
|
||||
<div class="hero-content text-center p-0">
|
||||
<div
|
||||
class="max-w-md min-w-96 bg-base-100 rounded-box shadow-md"
|
||||
|
||||
@@ -2,7 +2,8 @@
|
||||
import { ref, onBeforeMount, watch } from "vue";
|
||||
import { getCron, parseCron, validCron } from "@/lib/cron";
|
||||
import { CronType } from "@/enums";
|
||||
import { DEFAULT_CRON } from "@/constants";
|
||||
|
||||
const DEFAULT_CRON = "0 0 * * *";
|
||||
|
||||
const cron = defineModel<string | null>({ required: true });
|
||||
const rawCron = ref<string>(DEFAULT_CRON);
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import { ArrowBigRightDashIcon } from "@lucide/vue";
|
||||
|
||||
defineProps<{list: string}>();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<router-link
|
||||
:to="`/${list}`"
|
||||
class="w-full flex gap-2 mb-2"
|
||||
>
|
||||
<arrow-big-right-dash-icon :size="16" class="inline" />
|
||||
<span class="underline">{{ list }}</span>
|
||||
</router-link>
|
||||
</template>
|
||||
@@ -1,5 +1,12 @@
|
||||
<script setup lang="ts">
|
||||
import { onBeforeMount, ref, watch, computed, defineAsyncComponent } from "vue";
|
||||
import {
|
||||
onBeforeMount,
|
||||
ref,
|
||||
watch,
|
||||
computed,
|
||||
defineAsyncComponent,
|
||||
nextTick,
|
||||
} from "vue";
|
||||
import type { Task } from "@/types";
|
||||
import { CopyIcon, TrashIcon, SaveIcon, XIcon } from "@lucide/vue";
|
||||
import { updateTask } from "@/api/tasks";
|
||||
@@ -11,7 +18,8 @@ import { relativeTime } from "@/lib/dates";
|
||||
import { useAlertStore } from "@/stores/alerts";
|
||||
import { useI18n } from "vue-i18n";
|
||||
|
||||
const emit = defineEmits<(e: "clone" | "delete" | "updated", task: Task) => void>();
|
||||
const emit =
|
||||
defineEmits<(e: "clone" | "delete" | "updated", task: Task) => void>();
|
||||
|
||||
const task = defineModel<Task>({ required: true });
|
||||
defineProps<{ showLastChecked: boolean; showNextReset: boolean }>();
|
||||
@@ -20,6 +28,7 @@ const editMode = ref<boolean>(false);
|
||||
const editName = ref<string>("");
|
||||
const editCron = ref<string | null>(null);
|
||||
const refreshKey = ref<number>(0);
|
||||
const editNameInput = ref<HTMLInputElement | null>(null);
|
||||
|
||||
const checked = computed<boolean>(() => taskCompleted(task.value));
|
||||
const nextReset = computed<Date | null>(() => taskNextReset(task.value));
|
||||
@@ -28,13 +37,22 @@ const i18n = useI18n();
|
||||
|
||||
const { alertSuccess, alertError } = useAlertStore();
|
||||
|
||||
async function onOpen() {
|
||||
editMode.value = true;
|
||||
await nextTick();
|
||||
editNameInput.value?.focus();
|
||||
}
|
||||
|
||||
function onClose() {
|
||||
editName.value = task.value.name;
|
||||
editCron.value = task.value.reset_cron;
|
||||
editMode.value = false;
|
||||
}
|
||||
|
||||
function onSave() {
|
||||
if (editName.value.trim()) {
|
||||
updateTask(task.value.id, {
|
||||
name: editName.value,
|
||||
name: editName.value.trim(),
|
||||
reset_cron: editCron.value,
|
||||
})
|
||||
.then((newTask) => {
|
||||
@@ -49,6 +67,7 @@ function onSave() {
|
||||
task.value.reset_cron = editCron.value;
|
||||
editMode.value = false;
|
||||
}
|
||||
}
|
||||
|
||||
function onCheck() {
|
||||
if (!checked.value) {
|
||||
@@ -117,7 +136,7 @@ watch(task, () => {
|
||||
</div>
|
||||
<div
|
||||
class="cursor-pointer text-lg select-none"
|
||||
@click.prevent="editMode = true"
|
||||
@click.prevent="onOpen"
|
||||
>
|
||||
<div>{{ task.name }}</div>
|
||||
<div
|
||||
@@ -131,27 +150,53 @@ watch(task, () => {
|
||||
v-if="showNextReset && checked && nextReset"
|
||||
class="font-light text-xs italic"
|
||||
>
|
||||
{{ $t("resets") }} {{ relativeTime(nextReset, $i18n.locale) }}
|
||||
{{ $t("resets") }}
|
||||
{{ relativeTime(nextReset, $i18n.locale) }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="list-col-grow flex flex-col gap-2">
|
||||
<div class="flex justify-evenly">
|
||||
<button class="btn btn-square me-1" @click="onClose">
|
||||
<button
|
||||
class="btn btn-square me-1"
|
||||
:title="$t('cancel_button')"
|
||||
@click="onClose"
|
||||
>
|
||||
<x-icon />
|
||||
</button>
|
||||
<button class="btn btn-square me-1" @click="onSave">
|
||||
<button
|
||||
class="btn btn-square me-1"
|
||||
:class="
|
||||
editName.trim().length === 0 ? 'btn-disabled' : ''
|
||||
"
|
||||
:title="$t('save_button')"
|
||||
@click="onSave"
|
||||
>
|
||||
<save-icon />
|
||||
</button>
|
||||
<button class="btn btn-square me-1" @click="onClone">
|
||||
<button
|
||||
class="btn btn-square me-1"
|
||||
:title="$t('clone_button')"
|
||||
@click="onClone"
|
||||
>
|
||||
<copy-icon />
|
||||
</button>
|
||||
<button class="btn btn-square" @click="onDelete">
|
||||
<button
|
||||
class="btn btn-square"
|
||||
:title="$t('delete_button')"
|
||||
@click="onDelete"
|
||||
>
|
||||
<trash-icon />
|
||||
</button>
|
||||
</div>
|
||||
<input v-model="editName" type="text" class="input w-full" />
|
||||
<input
|
||||
ref="editNameInput"
|
||||
v-model="editName"
|
||||
type="text"
|
||||
class="input w-full"
|
||||
@keyup.enter="onSave"
|
||||
/>
|
||||
<cron-input v-model="editCron" :edit-mode="editMode" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
export const DEFAULT_CRON = "0 0 * * *";
|
||||
@@ -1,4 +1,4 @@
|
||||
import { getCookie, setCookie } from "./cookies";
|
||||
import { getCookie, setCookie } from "@/lib/cookies";
|
||||
|
||||
export function getLang() {
|
||||
const params = new URLSearchParams(document.location.search);
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
import { getCookie, setCookie } from "@/lib/cookies";
|
||||
|
||||
const COOKIE_NAME = "recent-lists";
|
||||
const MAX_RECENT_LISTS = 32;
|
||||
|
||||
export function getRecentLists(): string[] {
|
||||
const rawData = getCookie(COOKIE_NAME, "");
|
||||
if (!rawData) {
|
||||
return [];
|
||||
}
|
||||
return rawData.split(",");
|
||||
}
|
||||
|
||||
export function saveRecentList(list: string): void {
|
||||
const recentLists = [list]
|
||||
.concat(getRecentLists())
|
||||
.filter((v, i, a) => a.indexOf(v) === i)
|
||||
.slice(0, MAX_RECENT_LISTS);
|
||||
setCookie(COOKIE_NAME, recentLists.join(","));
|
||||
}
|
||||
@@ -1,10 +1,15 @@
|
||||
<script setup lang="ts">
|
||||
import { ArrowBigRightDashIcon, DicesIcon } from "@lucide/vue";
|
||||
import { getRecentLists } from "@/lib/lists";
|
||||
import { ArrowBigRightDashIcon, DicesIcon, HistoryIcon } from "@lucide/vue";
|
||||
import { generateSlug } from "random-word-slugs";
|
||||
import { onBeforeMount, ref } from "vue";
|
||||
import { defineAsyncComponent, onBeforeMount, ref } from "vue";
|
||||
import { onBeforeRouteUpdate } from "vue-router";
|
||||
const RecentItem = defineAsyncComponent(
|
||||
() => import("@/components/RecentItem.vue"),
|
||||
);
|
||||
|
||||
const listNameInput = ref<string>(generateSlug(4));
|
||||
const recentLists = ref<string[]>(getRecentLists());
|
||||
|
||||
function onRandom() {
|
||||
listNameInput.value = generateSlug(4);
|
||||
@@ -27,11 +32,10 @@ onBeforeRouteUpdate(updateTitle);
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="p-4">
|
||||
<div
|
||||
class="mb-4 italic text-xl font-extralight"
|
||||
class="p-4 italic text-xl font-extralight"
|
||||
>{{ $t('home') }}<br/>{{ $t('call_to_action') }}</div>
|
||||
<div class="flex gap-2 mb-4">
|
||||
<div class="flex gap-2 p-4">
|
||||
<input
|
||||
v-model="listNameInput"
|
||||
type="text"
|
||||
@@ -45,7 +49,7 @@ onBeforeRouteUpdate(updateTitle);
|
||||
</div>
|
||||
<div class="w-full">
|
||||
<router-link
|
||||
class="btn btn-lg px-4"
|
||||
class="btn btn-lg"
|
||||
:class="listNameInput.trim().length === 0 ? 'btn-disabled' : ''"
|
||||
:to="`/${listNameInput.trim()}`"
|
||||
>
|
||||
@@ -53,5 +57,14 @@ onBeforeRouteUpdate(updateTitle);
|
||||
{{ $t("home_button") }}
|
||||
</router-link>
|
||||
</div>
|
||||
<div v-if="recentLists.length" class="collapse collapse-arrow font-light text-sm">
|
||||
<input id="recent-dropdown" type="checkbox" />
|
||||
<div class="collapse-title">
|
||||
<history-icon class="inline" :size="16" />
|
||||
{{ $t("recent") }}
|
||||
</div>
|
||||
<div class="collapse-content">
|
||||
<recent-item v-for="(list, i) in recentLists" :key="`recent-${i}`" :list="list" />
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
CircleCheckBigIcon,
|
||||
CheckCheckIcon,
|
||||
SearchIcon,
|
||||
Share2Icon
|
||||
Share2Icon,
|
||||
} from "@lucide/vue";
|
||||
const TaskItem = defineAsyncComponent(
|
||||
() => import("@/components/TaskItem.vue"),
|
||||
@@ -21,10 +21,12 @@ import { useAlertStore } from "@/stores/alerts";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import { onBeforeRouteUpdate, useRoute } from "vue-router";
|
||||
import { shareLink } from "@/lib/share";
|
||||
import { saveRecentList } from "@/lib/lists";
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
const list = ref<string | null>(null);
|
||||
const loading = ref<boolean>(true);
|
||||
const taskInput = ref<string>("");
|
||||
const tasks = ref<Task[]>([]);
|
||||
|
||||
@@ -54,6 +56,10 @@ function fetchTasks() {
|
||||
.then((data: Task[]) => {
|
||||
tasks.value = data;
|
||||
reSortTasks();
|
||||
loading.value = false;
|
||||
if (data.length && list.value) {
|
||||
saveRecentList(list.value);
|
||||
}
|
||||
setTimeout(fetchTasks, 10000);
|
||||
})
|
||||
.catch(() => {
|
||||
@@ -72,7 +78,7 @@ function reSortTasks() {
|
||||
}
|
||||
|
||||
function onNewTask() {
|
||||
if (taskInput.value.trim() && list.value) {
|
||||
if (taskInput.value.trim() && list.value && !loading.value) {
|
||||
createTask(list.value, {
|
||||
name: taskInput.value.trim(),
|
||||
reset_cron: null,
|
||||
@@ -129,9 +135,9 @@ function onChangeSortReverse() {
|
||||
|
||||
function onShare() {
|
||||
shareLink(
|
||||
`Tout Doux - ${list.value ?? ''}`,
|
||||
i18n.t('share_text'),
|
||||
`${document.location.href.split('?')[0] ?? ''}?lang=${i18n.locale.value}`
|
||||
`Tout Doux - ${list.value ?? ""}`,
|
||||
i18n.t("share_text"),
|
||||
`${document.location.href.split("?")[0] ?? ""}?lang=${i18n.locale.value}`,
|
||||
)
|
||||
.then((viaShare) => {
|
||||
if (!viaShare) {
|
||||
@@ -139,23 +145,23 @@ function onShare() {
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
alertError(i18n.t("alerts.share_error"))
|
||||
alertError(i18n.t("alerts.share_error"));
|
||||
});
|
||||
}
|
||||
|
||||
function updateTitle() {
|
||||
if (list.value !== null) {
|
||||
document.title = `Tout Doux - ${list.value} (${completedCount.value.toFixed(0)}/${taskCount.value.toFixed(0)})`
|
||||
document.title = `Tout Doux - ${list.value} (${completedCount.value.toFixed(0)}/${taskCount.value.toFixed(0)})`;
|
||||
}
|
||||
}
|
||||
|
||||
onBeforeMount(() => {
|
||||
list.value = route.params.list as string;
|
||||
list.value = (route.params.list as string).slice(0, 128);
|
||||
fetchTasks();
|
||||
});
|
||||
|
||||
onBeforeRouteUpdate((to) => {
|
||||
list.value = to.params.list as string;
|
||||
list.value = (to.params.list as string).slice(0, 128);
|
||||
fetchTasks();
|
||||
});
|
||||
</script>
|
||||
@@ -179,7 +185,7 @@ onBeforeRouteUpdate((to) => {
|
||||
</li>
|
||||
</template>
|
||||
<li
|
||||
v-if="empty"
|
||||
v-if="!loading && empty"
|
||||
class="list-row italic text-xl font-extralight self-center"
|
||||
>
|
||||
<span
|
||||
@@ -188,7 +194,7 @@ onBeforeRouteUpdate((to) => {
|
||||
></span>
|
||||
</li>
|
||||
<li
|
||||
v-else-if="allCompleted && separateCompleted"
|
||||
v-else-if="!loading && allCompleted && separateCompleted"
|
||||
class="list-row italic text-xl font-extralight self-center"
|
||||
>
|
||||
<span
|
||||
@@ -196,26 +202,6 @@ onBeforeRouteUpdate((to) => {
|
||||
<span v-html="$t('all_completed_hint')"></span
|
||||
></span>
|
||||
</li>
|
||||
<li class="list-row">
|
||||
<div class="list-col-grow">
|
||||
<input
|
||||
v-model="taskInput"
|
||||
type="text"
|
||||
:placeholder="$t('new_task_hint')"
|
||||
class="input w-full"
|
||||
@keyup.enter="onNewTask"
|
||||
/>
|
||||
</div>
|
||||
<div>
|
||||
<button
|
||||
class="btn btn-square"
|
||||
:disabled="taskInput.trim().length === 0"
|
||||
@click="onNewTask"
|
||||
>
|
||||
<circle-plus-icon />
|
||||
</button>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<div
|
||||
v-if="separateCompleted && hasCompleted"
|
||||
@@ -245,12 +231,29 @@ onBeforeRouteUpdate((to) => {
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<button class="btn btn-sm px-4" @click="onShare">
|
||||
<share-2-icon class="inline" :size="16" /> {{ $t('share_button') }}
|
||||
<div class="flex gap-2 p-4">
|
||||
<input
|
||||
v-model="taskInput"
|
||||
type="text"
|
||||
:placeholder="$t('new_task_hint')"
|
||||
class="input grow"
|
||||
@keyup.enter="onNewTask"
|
||||
/>
|
||||
<button
|
||||
class="btn btn-square"
|
||||
:disabled="loading || taskInput.trim().length === 0"
|
||||
:title="$t('add_button')"
|
||||
@click="onNewTask"
|
||||
>
|
||||
<circle-plus-icon />
|
||||
</button>
|
||||
</div>
|
||||
<div class="collapse collapse-arrow font-light text-sm">
|
||||
<div v-if="!empty">
|
||||
<button class="btn btn-sm px-4" @click="onShare">
|
||||
<share-2-icon class="inline" :size="16" /> {{ $t("share_button") }}
|
||||
</button>
|
||||
</div>
|
||||
<div v-if="!empty" class="collapse collapse-arrow font-light text-sm">
|
||||
<input id="options-dropdown" type="checkbox" />
|
||||
<div class="collapse-title">
|
||||
<settings-2-icon class="inline" :size="16" />
|
||||
|
||||
Reference in New Issue
Block a user