Skip to content

Commit

Permalink
feat(logs): Add ability to delete all logs from database
Browse files Browse the repository at this point in the history
  • Loading branch information
false-spring committed Mar 6, 2024
1 parent 41c17fc commit cd1986b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
18 changes: 18 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"@mantine/core": "^7.6.1",
"@mantine/dropzone": "^7.6.1",
"@mantine/hooks": "^7.6.1",
"@mantine/modals": "^7.6.1",
"@phosphor-icons/react": "^2.0.14",
"@tauri-apps/api": "^1.5.2",
"html2canvas": "^1.4.1",
Expand Down
8 changes: 7 additions & 1 deletion src-tauri/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"meter-settings": "Meter Settings",
"settings": "Settings",
"back-btn": "Back",
"delete-btn": "Delete",
"cancel-btn": "Cancel",
"copy-to-clipboard-simple": "Copy to Clipboard (simple)",
"copy-to-clipboard-full": "Copy to Clipboard (full)",
"export-damage-log": "Export Damage Log to File",
Expand All @@ -17,11 +19,15 @@
"saved-count_one": "{{count}} log saved",
"saved-count_other": "{{count}} logs saved",
"delete-selected-btn": "Delete Selected",
"delete-all-btn": "Delete All",
"date": "Date",
"name": "Name",
"duration": "Duration",
"total-damage": "Total Damage",
"damage-per-second": "Damage Per Second"
"damage-per-second": "Damage Per Second",
"delete-all-logs-confirmation": "This will delete all logs from the database. This action cannot be undone.",
"delete-selected-logs-confirmation_one": "This will delete {{count}} log from the database. This action cannot be undone.",
"delete-selected-logs-confirmation_other": "This will delete {{count}} logs from the database. This action cannot be undone."
}
},
"characters": {
Expand Down
5 changes: 4 additions & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import "./styles.css";
import "@fontsource-variable/noto-sans";

import { App } from "./App";
import { ModalsProvider } from "@mantine/modals";

const theme = createTheme({
fontFamily: '"Noto Sans Variable", Inter, Avenir, Helvetica, Arial, sans-serif',
Expand All @@ -20,6 +21,8 @@ const theme = createTheme({

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
<MantineProvider theme={theme} defaultColorScheme="dark">
<App />
<ModalsProvider>
<App />
</ModalsProvider>
</MantineProvider>
);

0 comments on commit cd1986b

Please sign in to comment.