@vendure/dashboard 3.5.1-master-202511070232 → 3.6.0-minor-202511061555
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/dashboard",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.6.0-minor-202511061555",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -155,8 +155,8 @@
|
|
|
155
155
|
"@storybook/addon-vitest": "^10.0.0-beta.9",
|
|
156
156
|
"@storybook/react-vite": "^10.0.0-beta.9",
|
|
157
157
|
"@types/node": "^22.13.4",
|
|
158
|
-
"@vendure/common": "^3.
|
|
159
|
-
"@vendure/core": "^3.
|
|
158
|
+
"@vendure/common": "^3.6.0-minor-202511061555",
|
|
159
|
+
"@vendure/core": "^3.6.0-minor-202511061555",
|
|
160
160
|
"@vitest/browser": "^3.2.4",
|
|
161
161
|
"@vitest/coverage-v8": "^3.2.4",
|
|
162
162
|
"eslint": "^9.19.0",
|
|
@@ -173,5 +173,5 @@
|
|
|
173
173
|
"lightningcss-linux-arm64-musl": "^1.29.3",
|
|
174
174
|
"lightningcss-linux-x64-musl": "^1.29.1"
|
|
175
175
|
},
|
|
176
|
-
"gitHead": "
|
|
176
|
+
"gitHead": "65e9f71bcdab9ad062707d63d6d7de99547c8970"
|
|
177
177
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Button } from '@/vdb/components/ui/button.js';
|
|
2
2
|
import { Card, CardContent, CardHeader, CardTitle } from '@/vdb/components/ui/card.js';
|
|
3
3
|
import { Page, PageActionBar, PageTitle } from '@/vdb/framework/layout-engine/page-layout.js';
|
|
4
|
-
import { getApiBaseUrl } from '@/vdb/utils/config-utils.js';
|
|
5
4
|
import { Trans } from '@lingui/react/macro';
|
|
6
5
|
import { useQuery } from '@tanstack/react-query';
|
|
7
6
|
import { createFileRoute } from '@tanstack/react-router';
|
|
8
7
|
import { formatRelative } from 'date-fns';
|
|
9
8
|
import { CheckCircle2Icon, CircleXIcon } from 'lucide-react';
|
|
9
|
+
import { uiConfig } from 'virtual:vendure-ui-config';
|
|
10
10
|
|
|
11
11
|
export const Route = createFileRoute('/_authenticated/_system/healthchecks')({
|
|
12
12
|
component: HealthchecksPage,
|
|
@@ -28,7 +28,8 @@ function HealthchecksPage() {
|
|
|
28
28
|
const { data, refetch, dataUpdatedAt } = useQuery({
|
|
29
29
|
queryKey: ['healthchecks'],
|
|
30
30
|
queryFn: async () => {
|
|
31
|
-
const schemeAndHost =
|
|
31
|
+
const schemeAndHost =
|
|
32
|
+
uiConfig.api.host + (uiConfig.api.port !== 'auto' ? `:${uiConfig.api.port}` : '');
|
|
32
33
|
|
|
33
34
|
const res = await fetch(`${schemeAndHost}/health`);
|
|
34
35
|
return res.json() as Promise<HealthcheckResponse>;
|
package/src/lib/graphql/api.ts
CHANGED
|
@@ -8,9 +8,14 @@ import { AwesomeGraphQLClient } from 'awesome-graphql-client';
|
|
|
8
8
|
import { DocumentNode, print } from 'graphql';
|
|
9
9
|
import { uiConfig } from 'virtual:vendure-ui-config';
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
const host =
|
|
12
|
+
uiConfig.api.host !== 'auto'
|
|
13
|
+
? uiConfig.api.host
|
|
14
|
+
: `${window.location.protocol}//${window.location.hostname}`;
|
|
15
|
+
const API_URL =
|
|
16
|
+
host +
|
|
17
|
+
`:${uiConfig.api.port !== 'auto' ? uiConfig.api.port : window.location.port}` +
|
|
18
|
+
`/${uiConfig.api.adminApiPath}`;
|
|
14
19
|
|
|
15
20
|
export type Variables = object;
|
|
16
21
|
export type RequestDocument = string | DocumentNode;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { uiConfig } from 'virtual:vendure-ui-config';
|
|
2
|
-
|
|
3
|
-
export function getApiBaseUrl(): string {
|
|
4
|
-
const schemeAndHost =
|
|
5
|
-
uiConfig.api.host !== 'auto'
|
|
6
|
-
? uiConfig.api.host
|
|
7
|
-
: `${window.location.protocol}//${window.location.hostname}`;
|
|
8
|
-
const portPart = uiConfig.api.port !== 'auto' ? `:${uiConfig.api.port}` : '';
|
|
9
|
-
|
|
10
|
-
return schemeAndHost + portPart;
|
|
11
|
-
}
|