diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9fe1318 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "cSpell.words": [ + "fxevent", + "gorm", + "wildmatch" + ] +} \ No newline at end of file diff --git a/README.md b/README.md index 49ac109..3996224 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,8 @@ password: guest ## Configuration File +Prepare a `bunker.yaml` file + ```yaml server: listen: ":8080" diff --git a/app.go b/app.go index 60c02b3..1b384eb 100644 --- a/app.go +++ b/app.go @@ -441,7 +441,7 @@ func (a *App) routeGrantedItems(c ufx.Context) { } } - var grantedItems []grantedItem + grantedItems := []grantedItem{} for serverID, serverUsers := range m { grantedItems = append(grantedItems, grantedItem{ diff --git a/ui/nuxt.config.ts b/ui/nuxt.config.ts index 4ddb91a..e9127fc 100644 --- a/ui/nuxt.config.ts +++ b/ui/nuxt.config.ts @@ -4,10 +4,14 @@ export default defineNuxtConfig({ ssr: false, modules: ["@nuxt/ui", "@vueuse/nuxt"], plugins: ["~/plugins/i18n"], + ui: { icons: ["heroicons", "simple-icons", "mdi", "noto-v1"], }, + colorMode: { preference: "dark", }, -}); + + compatibilityDate: "2024-07-23", +}); \ No newline at end of file