@gxp-dev/tools 2.0.67 → 2.0.69
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
package/runtime/index.html
CHANGED
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
<html lang="en">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
|
-
<link
|
|
5
|
+
<link
|
|
6
|
+
rel="icon"
|
|
7
|
+
type="image/png"
|
|
8
|
+
href="/node_modules/@gxp-dev/tools/runtime/logo.png"
|
|
9
|
+
/>
|
|
6
10
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
11
|
<title>GxP Plugin Builder</title>
|
|
8
12
|
<script type="module">
|
|
@@ -56,6 +56,7 @@ function getApiConfig() {
|
|
|
56
56
|
// Mock API: use local dev server with random token
|
|
57
57
|
const protocol = useHttps ? "https" : "http"
|
|
58
58
|
return {
|
|
59
|
+
apiDocsBaseUrl: ENVIRONMENT_URLS.production.apiBaseUrl,
|
|
59
60
|
apiBaseUrl: `${protocol}://localhost:${mockPort}/mock-api`,
|
|
60
61
|
authToken: generateMockToken(),
|
|
61
62
|
projectId: "team/project",
|
|
@@ -137,6 +138,7 @@ export const useGxpStore = defineStore("gxp-portal-app", () => {
|
|
|
137
138
|
|
|
138
139
|
// API configuration - initialized from environment
|
|
139
140
|
const apiConfig = getApiConfig()
|
|
141
|
+
const apiDocsBaseUrl = ref(apiConfig.apiDocsBaseUrl ?? apiConfig.apiBaseUrl)
|
|
140
142
|
const apiBaseUrl = ref(apiConfig.apiBaseUrl)
|
|
141
143
|
const authToken = ref(apiConfig.authToken)
|
|
142
144
|
pluginVars.value.projectId = apiConfig.projectId
|
|
@@ -325,9 +327,7 @@ export const useGxpStore = defineStore("gxp-portal-app", () => {
|
|
|
325
327
|
// Operations are built from OpenAPI spec paths
|
|
326
328
|
// Structure: { [operationId]: { method, path, parameters } }
|
|
327
329
|
try {
|
|
328
|
-
const
|
|
329
|
-
apiEnv === "mock" ? "https://api.gramercy.cloud" : apiBaseUrl.value
|
|
330
|
-
const specUrl = `${apiDocsBaseUrl}/api-specs/openapi.json`
|
|
330
|
+
const specUrl = `${apiDocsBaseUrl.value}/api-specs/openapi.json`
|
|
331
331
|
const response = await axios.get(specUrl)
|
|
332
332
|
const spec = response.data
|
|
333
333
|
|