Author SHA1 Message Date
klemek 5ae0684d39 chore: 1.1.0
Python Lint CI / ruff (push) Successful in 6m31s
Python Lint CI / ruff-format-check (push) Successful in 6m46s
Python Lint CI / ty (push) Successful in 6m58s
TS Lint / ESLint (push) Successful in 6m6s
TS Lint / TypeScript (push) Successful in 5m55s
TS Lint / Oxlint (push) Successful in 5m56s
Docker Build / build (push) Successful in 13m56s
2026-07-15 16:34:53 +02:00
klemek ea9a50a2f7 feat: recent lists
Docker Build / build (push) Has been cancelled
TS Lint / ESLint (push) Has been cancelled
TS Lint / Oxlint (push) Has been cancelled
TS Lint / TypeScript (push) Has been cancelled
2026-07-15 16:34:37 +02:00
klemek 5e60b5ad20 feat: hide unnecessary options at first
TS Lint / ESLint (push) Successful in 3m55s
TS Lint / TypeScript (push) Successful in 4m45s
TS Lint / Oxlint (push) Successful in 4m45s
Docker Build / build (push) Successful in 8m53s
2026-07-15 16:10:06 +02:00
klemek f811facff8 feat: add titles to icon-only buttons
Docker Build / build (push) Has been cancelled
TS Lint / ESLint (push) Has been cancelled
TS Lint / Oxlint (push) Has been cancelled
TS Lint / TypeScript (push) Has been cancelled
2026-07-15 16:08:52 +02:00
klemek db9ecb4773 fix: preview
TS Lint / Oxlint (push) Successful in 3m42s
TS Lint / ESLint (push) Successful in 3m42s
TS Lint / TypeScript (push) Successful in 3m44s
Docker Build / build (push) Successful in 9m19s
2026-07-15 15:49:34 +02:00
klemek 51801f67f9 fix: animated background 2026-07-15 15:49:29 +02:00
klemek fe41547ced fix: better preview 2026-07-15 15:22:05 +02:00
15 changed files with 154 additions and 60 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "tout-doux",
"version": "1.0.5",
"version": "1.1.0",
"private": true,
"type": "module",
"engines": {
Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 78 KiB

+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "tout-doux"
version = "1.0.5"
version = "1.1.0"
description = ""
requires-python = ">=3.14"
dependencies = [
+22 -13
View File
@@ -12,27 +12,36 @@ body {
}
.bg-hero {
--size: 5vh;
--size: 15vh;
--angle: 45deg;
background: repeating-linear-gradient(
var(--angle),
var(--color-base-200) calc(0 * var(--size)),
var(--color-base-200) calc(1 * var(--size)),
var(--color-secondary) calc(1 * var(--size)),
var(--color-secondary) calc(2 * var(--size)),
var(--color-base-200) calc(2 * var(--size)),
var(--color-base-200) calc(3 * var(--size)),
var(--color-accent) calc(3 * var(--size)),
var(--color-accent) calc(4 * var(--size)),
var(--color-base-200) calc(4 * var(--size))
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-size: calc(4 * var(--size) / sin(var(--angle)))
calc(4 * var(--size) / sin(var(--angle)));
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(4 * var(--size) / sin(var(--angle))) 0;
background-position: calc(var(--size) / sin(var(--angle))) 0;
}
}
+7 -1
View File
@@ -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"
}
+7 -1
View File
@@ -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"
}
+2 -1
View File
@@ -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);
+15
View File
@@ -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>
+24 -4
View File
@@ -1,5 +1,12 @@
<script setup lang="ts">
import { onBeforeMount, ref, watch, computed, defineAsyncComponent, nextTick } 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";
@@ -151,7 +158,11 @@ watch(task, () => {
<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
@@ -159,14 +170,23 @@ watch(task, () => {
: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>
-1
View File
@@ -1 +0,0 @@
export const DEFAULT_CRON = "0 0 * * *";
+1 -1
View File
@@ -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);
+20
View File
@@ -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(","));
}
+39 -26
View File
@@ -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,31 +32,39 @@ onBeforeRouteUpdate(updateTitle);
</script>
<template>
<div class="p-4">
<div
class="mb-4 italic text-xl font-extralight"
>{{ $t('home') }}<br/>{{ $t('call_to_action') }}</div>
<div class="flex gap-2 mb-4">
<input
v-model="listNameInput"
type="text"
:placeholder="$t('new_task_hint')"
class="input grow"
@input="onInput"
/>
<button class="btn btn-square" @click="onRandom">
<dices-icon />
</button>
<div
class="p-4 italic text-xl font-extralight"
>{{ $t('home') }}<br/>{{ $t('call_to_action') }}</div>
<div class="flex gap-2 p-4">
<input
v-model="listNameInput"
type="text"
:placeholder="$t('new_task_hint')"
class="input grow"
@input="onInput"
/>
<button class="btn btn-square" @click="onRandom">
<dices-icon />
</button>
</div>
<div class="w-full">
<router-link
class="btn btn-lg"
:class="listNameInput.trim().length === 0 ? 'btn-disabled' : ''"
:to="`/${listNameInput.trim()}`"
>
<arrow-big-right-dash-icon class="inline" />
{{ $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="w-full">
<router-link
class="btn btn-lg px-4"
:class="listNameInput.trim().length === 0 ? 'btn-disabled' : ''"
:to="`/${listNameInput.trim()}`"
>
<arrow-big-right-dash-icon class="inline" />
{{ $t("home_button") }}
</router-link>
<div class="collapse-content">
<recent-item v-for="(list, i) in recentLists" :key="`recent-${i}`" :list="list" />
</div>
</div>
</template>
+14 -9
View File
@@ -9,7 +9,7 @@ import {
CircleCheckBigIcon,
CheckCheckIcon,
SearchIcon,
Share2Icon
Share2Icon,
} from "@lucide/vue";
const TaskItem = defineAsyncComponent(
() => import("@/components/TaskItem.vue"),
@@ -21,6 +21,7 @@ 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();
@@ -56,6 +57,9 @@ function fetchTasks() {
tasks.value = data;
reSortTasks();
loading.value = false;
if (data.length && list.value) {
saveRecentList(list.value);
}
setTimeout(fetchTasks, 10000);
})
.catch(() => {
@@ -131,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) {
@@ -141,13 +145,13 @@ 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)})`;
}
}
@@ -238,17 +242,18 @@ onBeforeRouteUpdate((to) => {
<button
class="btn btn-square"
:disabled="loading || taskInput.trim().length === 0"
:title="$t('add_button')"
@click="onNewTask"
>
<circle-plus-icon />
</button>
</div>
<div>
<div v-if="!empty">
<button class="btn btn-sm px-4" @click="onShare">
<share-2-icon class="inline" :size="16" /> {{ $t('share_button') }}
<share-2-icon class="inline" :size="16" /> {{ $t("share_button") }}
</button>
</div>
<div class="collapse collapse-arrow font-light text-sm">
<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" />
Generated
+1 -1
View File
@@ -323,7 +323,7 @@ asyncpg = [
[[package]]
name = "tout-doux"
version = "1.0.5"
version = "1.1.0"
source = { editable = "." }
dependencies = [
{ name = "flask", extra = ["async"] },