- **refactor(main):** migrate static HTML to React components
- **feat(ui):** implement `AcknowledgeButton` component for acknowledging images - **feat(stats):** add dashboard stats for total images, pending updates, and acknowledged status - **chore(deps):** introduce `bun` dependency management and add required libraries - **style(ui):** enhance UI with Tailwind-based components and modularity improvements - **chore:** add drag-and-drop tag assignment using `@dnd-kit/core`
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
package diunwebhook
|
||||
|
||||
func GetUpdatesMap() map[string]DiunEvent {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
return updates
|
||||
func GetUpdatesMap() map[string]UpdateEntry {
|
||||
m, _ := GetUpdates()
|
||||
return m
|
||||
}
|
||||
|
||||
func UpdatesReset() {
|
||||
mu.Lock()
|
||||
defer mu.Unlock()
|
||||
updates = make(map[string]DiunEvent)
|
||||
InitDB(":memory:")
|
||||
}
|
||||
|
||||
func ResetTags() {
|
||||
db.Exec(`DELETE FROM tag_assignments`)
|
||||
db.Exec(`DELETE FROM tags`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user