diff --git a/frontend/src/components/ReadPaste/ReadPaste.tsx b/frontend/src/components/ReadPaste/ReadPaste.tsx
index bd75f22..b912aaa 100644
--- a/frontend/src/components/ReadPaste/ReadPaste.tsx
+++ b/frontend/src/components/ReadPaste/ReadPaste.tsx
@@ -14,7 +14,7 @@ interface ReadPasteProps {
const ReadPaste: Component
= ({paste, onClonePaste, onDeletePaste}): JSX.Element => {
- const [clearText, setClearText] = createSignal(null);
+ const [clearText, setClearText] = createSignal();
let keyInput: HTMLInputElement;
let content: HTMLPreElement;
diff --git a/frontend/src/components/RecentPastes/RecentPastes.tsx b/frontend/src/components/RecentPastes/RecentPastes.tsx
index 2235cbb..b191b74 100644
--- a/frontend/src/components/RecentPastes/RecentPastes.tsx
+++ b/frontend/src/components/RecentPastes/RecentPastes.tsx
@@ -13,19 +13,19 @@ const RecentPastes: () => JSX.Element = () => {
const appContext = AppContext;
- let refreshTimer;
+ let refetchSchedule;
- function refresh() {
+ function manualRefetch() {
restartSchedule();
refetch();
}
function startSchedule() {
- refreshTimer = window.setInterval(refetch, 60_000);
+ refetchSchedule = window.setInterval(refetch, 60_000);
}
function stopSchedule() {
- window.clearInterval(refreshTimer);
+ window.clearInterval(refetchSchedule);
}
function restartSchedule() {
@@ -51,8 +51,8 @@ const RecentPastes: () => JSX.Element = () => {
});
appContext.onPasteDeleted((paste) => {
- mutate(prev => prev.filter(item => item.id !== paste.id));
restartSchedule();
+ mutate(prev => prev.filter(item => item.id !== paste.id));
});
})
@@ -73,7 +73,7 @@ const RecentPastes: () => JSX.Element = () => {
- ↻
+ ↻
diff --git a/frontend/src/components/RecentPastes/recentPastes.module.css b/frontend/src/components/RecentPastes/recentPastes.module.css
index d3e7926..5a955e7 100644
--- a/frontend/src/components/RecentPastes/recentPastes.module.css
+++ b/frontend/src/components/RecentPastes/recentPastes.module.css
@@ -35,12 +35,12 @@
gap: 3px;
}
-.refresh {
+.refetch {
cursor: pointer;
color: var(--color-link);
}
-.refresh:active {
+.refetch:active {
filter: brightness(var(--hover-brightness));
}
diff --git a/frontend/src/components/SearchPastes/SearchPastes.tsx b/frontend/src/components/SearchPastes/SearchPastes.tsx
index c77db08..7bd6f0c 100644
--- a/frontend/src/components/SearchPastes/SearchPastes.tsx
+++ b/frontend/src/components/SearchPastes/SearchPastes.tsx
@@ -4,7 +4,7 @@ import {PasteListView} from '../../api/model/PasteListView';
const SearchPastes: () => JSX.Element = () => {
- const [search, setSearch] = createSignal(null);
+ const [search, setSearch] = createSignal();
const [results, { refetch }] = createResource(() => search(), () => searchTerm());
diff --git a/pom.xml b/pom.xml
index fdddde7..9560f0c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -12,7 +12,7 @@
com.github.binpastes
app
- ${revision}
+ 0.0.1-SNAPSHOT
pom
BinPastes
@@ -31,7 +31,6 @@
UTF-8
- 1.0.0-SNAPSHOT
17
@@ -91,6 +90,13 @@
UTF-8
+
+ org.apache.maven.plugins
+ maven-deploy-plugin
+
+ true
+
+