refactor(web): align resource APIs and forms with the starter conventions
Centralize typed resource functions under common/apis and return complete JSON envelopes while preserving raw responses, bearer session isolation, and single-owner errors. Keep settings state and queues inside the setup store. Use Element Plus forms and dialogs for login, settings, imports, moves, and images; preserve editor interactions and themes. Update callers, tests, generated declarations, and request import constraints together.
This commit is contained in:
1 parent
cef0298c34
commit
6b537c03e0
114 files changed
+2876
-2217
No files matched your search
@@ -1,6 +1,7 @@
|
||||
import type { CustomFont } from '@@/apis/preferences/type'
|
||||
import { fontResourceRoot, prepareResources } from '@@/apis/auth/resources'
|
||||
import { preferencesApi } from '@@/apis/preferences'
|
||||
import type { CustomFont } from '@@/apis/fonts/type'
|
||||
import { getFontsApi } from '@@/apis/fonts'
|
||||
import { fontResourceRoot, prepareResources } from '@@/utils/resource-tickets'
|
||||
|
||||
import { shallowRef } from 'vue'
|
||||
|
||||
export const customFonts = shallowRef<CustomFont[]>([])
|
||||
@@ -23,5 +24,5 @@ export function parseFontCatalog(value: unknown): CustomFont[] {
|
||||
|
||||
export async function loadFonts() {
|
||||
await prepareResources()
|
||||
applyFontCatalog(parseFontCatalog(await preferencesApi.fonts()))
|
||||
applyFontCatalog(parseFontCatalog((await getFontsApi()).data.fonts))
|
||||
}
|
||||
Reference in new issue
Block a user