2nd attempt
This commit is contained in:
Generated
+1
-1
@@ -2623,7 +2623,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "reminder-rs"
|
name = "reminder-rs"
|
||||||
version = "1.7.42"
|
version = "1.7.44"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64 0.22.1",
|
"base64 0.22.1",
|
||||||
"chrono",
|
"chrono",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "reminder-rs"
|
name = "reminder-rs"
|
||||||
version = "1.7.42"
|
version = "1.7.44"
|
||||||
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
authors = ["Jude Southworth <judesouthworth@pm.me>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "AGPL-3.0 only"
|
license = "AGPL-3.0 only"
|
||||||
|
|||||||
@@ -8,19 +8,26 @@ fn main() {
|
|||||||
.arg("run")
|
.arg("run")
|
||||||
.arg("build")
|
.arg("build")
|
||||||
.current_dir(Path::new("reminder-dashboard"))
|
.current_dir(Path::new("reminder-dashboard"))
|
||||||
|
.env("VITE_VERSION", env!("CARGO_PKG_VERSION"))
|
||||||
.spawn()
|
.spawn()
|
||||||
.expect("Failed to build NPM");
|
.expect("Failed to build NPM")
|
||||||
|
.wait()
|
||||||
|
.expect("Failed to wait for NPM build");
|
||||||
|
|
||||||
Command::new("cp")
|
Command::new("cp")
|
||||||
.arg("reminder-dashboard/dist/index.html")
|
.arg("reminder-dashboard/dist/index.html")
|
||||||
.arg("static/index.html")
|
.arg("static/index.html")
|
||||||
.spawn()
|
.spawn()
|
||||||
.expect("Failed to copy index.html");
|
.expect("Failed to copy index.html")
|
||||||
|
.wait()
|
||||||
|
.expect("Failed to wait for index.html copy");
|
||||||
|
|
||||||
Command::new("cp")
|
Command::new("cp")
|
||||||
.arg("-r")
|
.arg("-r")
|
||||||
.arg("reminder-dashboard/dist/static/assets")
|
.arg("reminder-dashboard/dist/static/assets")
|
||||||
.arg("static/")
|
.arg("static/")
|
||||||
.spawn()
|
.spawn()
|
||||||
.expect("Failed to copy assets");
|
.expect("Failed to copy assets")
|
||||||
|
.wait()
|
||||||
|
.expect("Failed to wait for assets copy");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ type Template = {
|
|||||||
embed_fields: EmbedField[] | null;
|
embed_fields: EmbedField[] | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
const USER_INFO_STALE_TIME = 120_000;
|
const USER_INFO_STALE_TIME = 86_400_000;
|
||||||
const GUILD_INFO_STALE_TIME = 300_000;
|
const GUILD_INFO_STALE_TIME = 300_000;
|
||||||
const OTHER_STALE_TIME = 120_000;
|
const OTHER_STALE_TIME = 120_000;
|
||||||
|
|
||||||
@@ -236,7 +236,7 @@ export const fetchGuildTodos = (guild: string) => ({
|
|||||||
});
|
});
|
||||||
|
|
||||||
export const patchGuildTodo = (guild: string) => ({
|
export const patchGuildTodo = (guild: string) => ({
|
||||||
mutationFn: ({ id, todo }) => axios.patch(`/dashboard/api/guild/${guild}/todos/${id}`, todo),
|
mutationFn: ({id, todo}) => axios.patch(`/dashboard/api/guild/${guild}/todos/${id}`, todo),
|
||||||
});
|
});
|
||||||
|
|
||||||
export const postGuildTodo = (guild: string) => ({
|
export const postGuildTodo = (guild: string) => ({
|
||||||
|
|||||||
@@ -52,7 +52,6 @@ const InnerApp = () => {
|
|||||||
const queryClient = new QueryClient();
|
const queryClient = new QueryClient();
|
||||||
|
|
||||||
export function App() {
|
export function App() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
<ColorSchemeProvider>
|
<ColorSchemeProvider>
|
||||||
|
|||||||
@@ -14,6 +14,9 @@ export const Welcome = () => (
|
|||||||
<p>
|
<p>
|
||||||
<strong>Please report bugs!</strong> I can't fix issues if I am unaware of them.
|
<strong>Please report bugs!</strong> I can't fix issues if I am unaware of them.
|
||||||
</p>
|
</p>
|
||||||
|
<p>
|
||||||
|
Client version: {import.meta.env.VITE_VERSION}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user