diff --git a/backend/endpoints/responses/rom.py b/backend/endpoints/responses/rom.py index 445f28472..a8a56c31d 100644 --- a/backend/endpoints/responses/rom.py +++ b/backend/endpoints/responses/rom.py @@ -97,8 +97,8 @@ class RomSchema(BaseModel): class Config: from_attributes = True - @property @computed_field + @property def sort_comparator(self) -> str: return ( re.sub( diff --git a/frontend/package.json b/frontend/package.json index fdbca907e..ef8a7bb69 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -25,7 +25,7 @@ "lint": "eslint . --fix", "postinstall": "cd node_modules/emulatorjs/data/minify/ && npm i && npm run build", "typecheck": "vue-tsc --noEmit", - "generate": "openapi --input http://localhost:5000/openapi.json --output ./src/__generated__ --client axios --useOptions --useUnionTypes --exportServices false --exportSchemas false --exportCore false" + "generate": "openapi --input http://127.0.0.1:5000/openapi.json --output ./src/__generated__ --client axios --useOptions --useUnionTypes --exportServices false --exportSchemas false --exportCore false" }, "dependencies": { "@mdi/font": "7.0.96", diff --git a/frontend/src/__generated__/models/DetailedRomSchema.ts b/frontend/src/__generated__/models/DetailedRomSchema.ts index 7953b8913..206c4fa1f 100644 --- a/frontend/src/__generated__/models/DetailedRomSchema.ts +++ b/frontend/src/__generated__/models/DetailedRomSchema.ts @@ -48,11 +48,11 @@ export type DetailedRomSchema = { multi: boolean; files: Array; full_path: string; - sort_comparator: string; merged_screenshots: Array; sibling_roms?: Array; user_saves?: Array; user_states?: Array; user_screenshots?: Array; user_notes?: Array; + readonly sort_comparator: string; }; diff --git a/frontend/src/__generated__/models/RomSchema.ts b/frontend/src/__generated__/models/RomSchema.ts index 2fba725b6..cf5dea9af 100644 --- a/frontend/src/__generated__/models/RomSchema.ts +++ b/frontend/src/__generated__/models/RomSchema.ts @@ -43,5 +43,5 @@ export type RomSchema = { multi: boolean; files: Array; full_path: string; - sort_comparator: string; + readonly sort_comparator: string; }; diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 6ab95663b..0c3341a36 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -67,18 +67,18 @@ export default defineConfig(({ mode }) => { server: { proxy: { "/api": { - target: `http://localhost:${backendPort}`, + target: `http://127.0.0.1:${backendPort}`, changeOrigin: false, secure: false, rewrite: (path) => path.replace(/^\/api/, ""), }, "/ws": { - target: `http://localhost:${backendPort}`, + target: `http://127.0.0.1:${backendPort}`, changeOrigin: false, ws: true, }, "/openapi.json": { - target: `http://localhost:${backendPort}`, + target: `http://127.0.0.1:${backendPort}`, changeOrigin: false, rewrite: (path) => path.replace(/^\/openapi.json/, "/openapi.json"), },