fix swagger ui error & package

This commit is contained in:
Warunee Tamkoo 2025-08-08 15:22:55 +07:00
parent 0c256b6cf6
commit a5f27c342b
3 changed files with 10 additions and 7438 deletions

View file

@ -33,7 +33,7 @@
"quasar": "^2.11.1",
"socket.io-client": "^4.7.4",
"structure-chart": "^0.0.9",
"swagger-ui": "^5.27.1",
"swagger-ui-dist": "^5.27.1",
"v-code-diff": "^1.12.0",
"vue": "^3.4.15",
"vue-currency-input": "^3.0.5",
@ -45,7 +45,7 @@
"@rushstack/eslint-patch": "^1.1.4",
"@types/jsdom": "^20.0.1",
"@types/node": "^18.11.12",
"@types/swagger-ui": "^5.21.1",
"@types/swagger-ui-dist": "^3.30.6",
"@vitejs/plugin-vue": "^4.0.0",
"@vitejs/plugin-vue-jsx": "^3.0.0",
"@vue/eslint-config-prettier": "^7.0.0",
@ -57,7 +57,6 @@
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-vue": "^9.3.0",
"jsdom": "^20.0.3",
"node-sass": "^9.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"quasar-ui-q-draggable-table": "^1.0.1",

7433
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -4,12 +4,18 @@
<script lang="ts" setup>
import { onMounted, ref } from "vue";
import SwaggerUI from "swagger-ui";
import "swagger-ui/dist/swagger-ui.css";
import SwaggerUI from "swagger-ui-dist/swagger-ui-es-bundle.js";
import "swagger-ui-dist/swagger-ui.css";
import http from "@/plugins/http";
import config from "@/app.config";
// TypeScript swagger-ui preset
// ( type definition swagger-ui-dist )
interface SwaggerUIBundle {
presets: any;
[key: string]: any;
}
// URL Swagger JSON API
// const swaggerUrl: string = "https://petstore.swagger.io/v2/swagger.json";
const swaggerJson = ref();