- Tout Doux
+
+ Tout Doux
diff --git a/resources/ts/components/RecentItem.vue b/resources/ts/components/RecentItem.vue
index c4ab976..81b96a3 100644
--- a/resources/ts/components/RecentItem.vue
+++ b/resources/ts/components/RecentItem.vue
@@ -1,15 +1,14 @@
-
- {{ list }}
+ {{ list }}
diff --git a/resources/ts/views/HomeView.vue b/resources/ts/views/HomeView.vue
index 118c8aa..26a07c2 100644
--- a/resources/ts/views/HomeView.vue
+++ b/resources/ts/views/HomeView.vue
@@ -24,18 +24,18 @@ function onInput() {
}
function updateTitle() {
- document.title = 'Tout Doux';
+ document.title = "Tout Doux";
}
-onBeforeMount(updateTitle)
+onBeforeMount(updateTitle);
onBeforeRouteUpdate(updateTitle);
-
-
+
+
-
+
-
-
-
+
+
+
{{ $t("recent") }}
-
+
diff --git a/resources/ts/views/ListView.vue b/resources/ts/views/ListView.vue
index 00330f0..b6f5f34 100644
--- a/resources/ts/views/ListView.vue
+++ b/resources/ts/views/ListView.vue
@@ -134,19 +134,21 @@ function onChangeSortReverse() {
}
function onShare() {
- shareLink(
- `Tout Doux - ${list.value ?? ""}`,
- i18n.t("share_text"),
- `${document.location.href.split("?")[0] ?? ""}?lang=${i18n.locale.value}`,
- )
- .then((viaShare) => {
- if (!viaShare) {
- alertSuccess(i18n.t("alerts.share_clipboard"));
- }
- })
- .catch(() => {
- alertError(i18n.t("alerts.share_error"));
- });
+ if (!empty.value) {
+ shareLink(
+ `Tout Doux - ${list.value ?? ""}`,
+ i18n.t("share_text"),
+ `${document.location.href.split("?")[0] ?? ""}?lang=${i18n.locale.value}`,
+ )
+ .then((viaShare) => {
+ if (!viaShare) {
+ alertSuccess(i18n.t("alerts.share_clipboard"));
+ }
+ })
+ .catch(() => {
+ alertError(i18n.t("alerts.share_error"));
+ });
+ }
}
function updateTitle() {
@@ -167,11 +169,32 @@ onBeforeRouteUpdate((to) => {
-