@platformatic/service 2.0.0-alpha.22 → 2.0.0-alpha.24

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.
@@ -60,6 +60,7 @@ async function setupOpenAPI (app, opts) {
60
60
  ...opts,
61
61
  ...openapi,
62
62
  routePrefix,
63
+ publicPath: './',
63
64
  configuration: {
64
65
  customCss: scalarTheme.theme,
65
66
  },
@@ -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="/images/favicon.ico" />
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
- const currentPath = window.location.pathname
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.22",
3
+ "version": "2.0.0-alpha.24",
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/client": "2.0.0-alpha.22",
80
- "@platformatic/config": "2.0.0-alpha.22",
81
- "@platformatic/scalar-theme": "2.0.0-alpha.22",
82
- "@platformatic/generators": "2.0.0-alpha.22",
83
- "@platformatic/telemetry": "2.0.0-alpha.22",
84
- "@platformatic/ts-compiler": "2.0.0-alpha.22",
85
- "@platformatic/utils": "2.0.0-alpha.22"
79
+ "@platformatic/client": "2.0.0-alpha.24",
80
+ "@platformatic/config": "2.0.0-alpha.24",
81
+ "@platformatic/generators": "2.0.0-alpha.24",
82
+ "@platformatic/scalar-theme": "2.0.0-alpha.24",
83
+ "@platformatic/telemetry": "2.0.0-alpha.24",
84
+ "@platformatic/utils": "2.0.0-alpha.24",
85
+ "@platformatic/ts-compiler": "2.0.0-alpha.24"
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.22.json",
3
- "version": "2.0.0-alpha.22",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/service/2.0.0-alpha.24.json",
3
+ "version": "2.0.0-alpha.24",
4
4
  "title": "Platformatic Service",
5
5
  "type": "object",
6
6
  "properties": {