@platformatic/service 2.0.0-alpha.23 → 2.0.0-alpha.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/plugins/openapi.js +1 -0
- package/lib/root-endpoint/public/index.html +10 -6
- package/package.json +8 -8
- package/schema.json +2 -2
package/lib/plugins/openapi.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
|
-
<link rel="icon" type="image/svg+xml" href="
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="./images/favicon.ico" />
|
|
6
6
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800&display=swap" rel="stylesheet">
|
|
7
7
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
8
|
<title>Platformatic Service</title>
|
|
@@ -204,7 +204,11 @@
|
|
|
204
204
|
</div>
|
|
205
205
|
|
|
206
206
|
<script>
|
|
207
|
-
|
|
207
|
+
let currentPath = window.location.pathname
|
|
208
|
+
|
|
209
|
+
if (!currentPath.endsWith('/')) {
|
|
210
|
+
currentPath += '/'
|
|
211
|
+
}
|
|
208
212
|
|
|
209
213
|
const openApiLink = document.getElementById('openapi-link')
|
|
210
214
|
openApiLink.href = currentPath + 'documentation'
|
|
@@ -215,18 +219,18 @@
|
|
|
215
219
|
const prefersLightScheme = window.matchMedia('(prefers-color-scheme: light)');
|
|
216
220
|
if (prefersLightScheme.matches) {
|
|
217
221
|
document.body.classList.add('light-theme');
|
|
218
|
-
document.getElementById('logo').src = 'images/platformatic-logo-light.svg'
|
|
222
|
+
document.getElementById('logo').src = currentPath + 'images/platformatic-logo-light.svg'
|
|
219
223
|
} else {
|
|
220
224
|
document.body.classList.remove('light-theme');
|
|
221
|
-
document.getElementById('logo').src = 'images/platformatic-logo-dark.svg'
|
|
225
|
+
document.getElementById('logo').src = currentPath + 'images/platformatic-logo-dark.svg'
|
|
222
226
|
}
|
|
223
227
|
|
|
224
228
|
const toggleLightMode = function() {
|
|
225
229
|
document.body.classList.toggle('light-theme');
|
|
226
230
|
if (document.body.classList.contains('light-theme')) {
|
|
227
|
-
document.getElementById('logo').src = 'images/platformatic-logo-light.svg'
|
|
231
|
+
document.getElementById('logo').src = currentPath + 'images/platformatic-logo-light.svg'
|
|
228
232
|
} else {
|
|
229
|
-
document.getElementById('logo').src = 'images/platformatic-logo-dark.svg'
|
|
233
|
+
document.getElementById('logo').src = currentPath + 'images/platformatic-logo-dark.svg'
|
|
230
234
|
}
|
|
231
235
|
}
|
|
232
236
|
</script>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/service",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.25",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -76,13 +76,13 @@
|
|
|
76
76
|
"rfdc": "^1.3.1",
|
|
77
77
|
"semgrator": "^0.3.0",
|
|
78
78
|
"undici": "^6.9.0",
|
|
79
|
-
"@platformatic/
|
|
80
|
-
"@platformatic/generators": "2.0.0-alpha.
|
|
81
|
-
"@platformatic/scalar-theme": "2.0.0-alpha.
|
|
82
|
-
"@platformatic/
|
|
83
|
-
"@platformatic/
|
|
84
|
-
"@platformatic/
|
|
85
|
-
"@platformatic/
|
|
79
|
+
"@platformatic/config": "2.0.0-alpha.25",
|
|
80
|
+
"@platformatic/generators": "2.0.0-alpha.25",
|
|
81
|
+
"@platformatic/scalar-theme": "2.0.0-alpha.25",
|
|
82
|
+
"@platformatic/client": "2.0.0-alpha.25",
|
|
83
|
+
"@platformatic/utils": "2.0.0-alpha.25",
|
|
84
|
+
"@platformatic/telemetry": "2.0.0-alpha.25",
|
|
85
|
+
"@platformatic/ts-compiler": "2.0.0-alpha.25"
|
|
86
86
|
},
|
|
87
87
|
"scripts": {
|
|
88
88
|
"test": "pnpm run lint && borp -T --concurrency=1 --timeout=180000 && tsd",
|
package/schema.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/service/2.0.0-alpha.
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/service/2.0.0-alpha.25.json",
|
|
3
|
+
"version": "2.0.0-alpha.25",
|
|
4
4
|
"title": "Platformatic Service",
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|