feat(widgets): add phase 4 validation and accessibility

This commit is contained in:
kate522 committed 2026-08-17 19:14:40 +08:00
1 parent 8cad3c2d3d
commit e1723a8f08
117 files changed
+6 -17338

No files matched your search

-40
View File
@@ -1,40 +0,0 @@
import { defineStore } from 'pinia'
import { ref, computed } from 'vue'
/**
* useAdminUiStore — global UI state for the admin panel.
*
* Tracks sidebar collapse, search, and breadcrumb state.
*/
export const useAdminUiStore = defineStore('admin-ui', () => {
/** Sidebar collapsed state */
const sidebarCollapsed = ref(false)
/** Current page search query (for inline page search) */
const pageSearch = ref('')
/** Global notification count (for badge display) */
const notificationCount = ref(0)
/** Whether any form on the current page has unsaved changes */
const hasUnsavedChanges = ref(false)
/** Toggle sidebar */
function toggleSidebar() {
sidebarCollapsed.value = !sidebarCollapsed.value
}
/** Clear page search */
function clearSearch() {
pageSearch.value = ''
}
return {
sidebarCollapsed,
pageSearch,
notificationCount,
hasUnsavedChanges,
toggleSidebar,
clearSearch,
}
})