From d93bfdfb93b1e0c4149602eefc6adbad269ac018 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8B=AC=20=E5=90=8E=E8=97=A4?= <1823773980@qq.com>
Date: Sat, 2 Dec 2023 21:45:34 +0800
Subject: [PATCH 1/6] feat: add a new page named "sendNotification"
---
src/routes/sendNotification.svelte | 102 ++++++++++++++++++++++++++++-
1 file changed, 101 insertions(+), 1 deletion(-)
diff --git a/src/routes/sendNotification.svelte b/src/routes/sendNotification.svelte
index 9ed7b18..fede6c2 100644
--- a/src/routes/sendNotification.svelte
+++ b/src/routes/sendNotification.svelte
@@ -1 +1,101 @@
-
send notification
+
+
+发布你的第一条通知吧!
+
+
+
+
+
+
From 539f86f4a832fe369e99fe2845cf2e8da7642007 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8B=AC=20=E5=90=8E=E8=97=A4?= <1823773980@qq.com>
Date: Wed, 24 Jan 2024 13:24:51 +0800
Subject: [PATCH 2/6] refactor: add a new element named tag.
---
src/routes/sendNotification.svelte | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/src/routes/sendNotification.svelte b/src/routes/sendNotification.svelte
index fede6c2..15196dd 100644
--- a/src/routes/sendNotification.svelte
+++ b/src/routes/sendNotification.svelte
@@ -7,6 +7,7 @@
let tittle = "";
let body = "";
let release_time = "";
+ let tag = "";
const pb = new PocketBase(PocketBase_URL);
function cancel() {
@@ -19,6 +20,7 @@
tittle: tittle,
body: body,
release_time: release_time,
+ tag: tag,
};
try {
await pb.collection("notices").create(data);
@@ -56,6 +58,15 @@
placeholder="Release Time"
/>
+
+
+
+
From 83840d8c3a5c1939cad7aef2d31972309a6260ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8B=AC=20=E5=90=8E=E8=97=A4?= <1823773980@qq.com>
Date: Wed, 24 Jan 2024 14:37:59 +0800
Subject: [PATCH 3/6] feat: add a new page named "sendNotification"
---
src/routes/sendNotification.svelte | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/routes/sendNotification.svelte b/src/routes/sendNotification.svelte
index 15196dd..ef55bb2 100644
--- a/src/routes/sendNotification.svelte
+++ b/src/routes/sendNotification.svelte
@@ -30,7 +30,7 @@
}
}
- let currentpath = "";
+ let currentpath;
const unsubscribe = location.subscribe(($location) => {
currentpath = $location;
});
From 69f7e4afdab703bf75ecda6c944dc913ace40281 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8B=AC=20=E5=90=8E=E8=97=A4?= <1823773980@qq.com>
Date: Wed, 24 Jan 2024 14:44:25 +0800
Subject: [PATCH 4/6] feat: add a new page named "sendNotification"
---
src/routes/sendNotification.svelte | 5 -----
1 file changed, 5 deletions(-)
diff --git a/src/routes/sendNotification.svelte b/src/routes/sendNotification.svelte
index ef55bb2..4c77c2d 100644
--- a/src/routes/sendNotification.svelte
+++ b/src/routes/sendNotification.svelte
@@ -30,11 +30,6 @@
}
}
- let currentpath;
- const unsubscribe = location.subscribe(($location) => {
- currentpath = $location;
- });
- onDestroy(unsubscribe);
发布你的第一条通知吧!
From 37cc3b52b4355cdc59eef06ff1eb7d3395483e8c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8B=AC=20=E5=90=8E=E8=97=A4?= <1823773980@qq.com>
Date: Wed, 24 Jan 2024 14:46:18 +0800
Subject: [PATCH 5/6] feat: add a new page named "sendNotification"
---
src/routes/sendNotification.svelte | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/routes/sendNotification.svelte b/src/routes/sendNotification.svelte
index 4c77c2d..d8b22ff 100644
--- a/src/routes/sendNotification.svelte
+++ b/src/routes/sendNotification.svelte
@@ -1,7 +1,6 @@
发布你的第一条通知吧!