diff --git a/.htaccess b/.htaccess index 965b5e0..c6fd7eb 100644 --- a/.htaccess +++ b/.htaccess @@ -16,14 +16,23 @@ RewriteRule ^api/v1/(.*)$ http://localhost:8080/api/v1/$1 [P,L] # Handle root API endpoint RewriteRule ^api/v1/?$ http://localhost:8080/api/v1/ [P,L] -# Serve Swagger UI static files (no proxy needed) -# Static files will be served directly by web server +# ============================================================================= +# SWAGGER UI STATIC FILES CONFIGURATION +# ============================================================================= + + # Serve Swagger UI + RewriteRule ^swagger/?$ /dist/index.html [L] + RewriteRule ^swagger/(.*)$ /dist/$1 [L] + + # Serve docs directory (swagger.json, swagger.yaml, swagger.html) + RewriteRule ^docs/(.*)$ /docs/$1 [L] + # Handle docs route for Vue documentation site RewriteRule ^docs/?$ /index.html [L] -# Optional: API documentation redirect -RewriteRule ^api/?$ /api/v1/health [R=302,L] +# Redirect /api/ to Swagger UI documentation +RewriteRule ^api/?$ /swagger/ [R=302,L] # ============================================================================= # CORS HEADERS CONFIGURATION diff --git a/package.json b/package.json index 92b8de3..15df75d 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "author": "", "license": "ISC", "type": "module", - "packageManager": "pnpm@10.13.1", + "packageManager": "pnpm@10.15.1+sha512.34e538c329b5553014ca8e8f4535997f96180a1d0f614339357449935350d924e22f8614682191264ec33d1462ac21561aff97f6bb18065351c162c7e8f6de67", "devDependencies": { "@tailwindcss/postcss": "^4.1.13", "@tailwindcss/typography": "^0.5.16", @@ -26,10 +26,13 @@ "vue-tsc": "^3.0.6" }, "dependencies": { + "@types/prismjs": "^1.26.5", "aos": "^2.3.4", "katex": "^0.16.22", + "prismjs": "^1.30.0", "vue": "^3.5.21", "vue-i18n": "9", + "vue-prism-component": "^2.0.0", "vue-router": "^4.5.1" } } diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 0000000..d7aedff --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +overrides: + vite@>=7.1.0 <=7.1.4: '>=7.1.5' diff --git a/src/components/CodeBlock.vue b/src/components/CodeBlock.vue new file mode 100644 index 0000000..ce02e8c --- /dev/null +++ b/src/components/CodeBlock.vue @@ -0,0 +1,195 @@ + + + + + \ No newline at end of file diff --git a/src/components/documentation/ErrorHandlingSection.vue b/src/components/documentation/ErrorHandlingSection.vue index 35eb7ca..ea23c4a 100644 --- a/src/components/documentation/ErrorHandlingSection.vue +++ b/src/components/documentation/ErrorHandlingSection.vue @@ -65,20 +65,11 @@

{{ t('documentation.errorHandling.errorResponse') }}

-
-
{
-
-
"status": "error",
-
"error": {
-
-
"code": 400,
-
"message": "Invalid page parameter",
-
"details": "Page must be a positive integer"
-
-
}
-
-
}
-
+
@@ -112,6 +103,7 @@ diff --git a/src/components/documentation/GlossarySection.vue b/src/components/documentation/GlossarySection.vue index 9262fb1..fd32423 100644 --- a/src/components/documentation/GlossarySection.vue +++ b/src/components/documentation/GlossarySection.vue @@ -1,41 +1,41 @@