Skip to content

Commit b1104ef

Browse files
committed
feat: ydb em
1 parent d02a62a commit b1104ef

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"dev": "DISABLE_ESLINT_PLUGIN=true TSC_COMPILE_ON_ERROR=true REACT_APP_BACKEND=http://localhost:8765 REACT_APP_META_BACKEND=undefined npm start",
6565
"build": "rm -rf build && DISABLE_ESLINT_PLUGIN=true CI=true react-app-rewired build",
6666
"//build:embedded": "echo 'PUBLIC_URL is a setting for create-react-app. Embedded version is built and hosted as is on ydb servers, with no way of knowing the final URL pattern. PUBLIC_URL=. keeps paths to all static relative, allowing servers to handle them as needed'",
67-
"build:embedded": "GENERATE_SOURCEMAP=false PUBLIC_URL=. REACT_APP_BACKEND=http://localhost:8765 REACT_APP_META_BACKEND=undefined npm run build",
67+
"build:embedded": "GENERATE_SOURCEMAP=false PUBLIC_URL=. REACT_APP_BACKEND=undefined REACT_APP_META_BACKEND= npm run build",
6868
"build:embedded:archive": "npm run build:embedded && mv build embedded-ui && zip -r embedded-ui.zip embedded-ui && rm -rf embedded-ui",
6969
"lint": "run-p lint:*",
7070
"lint:js": "eslint --ext .js,.jsx,.ts,.tsx .",

src/components/TenantNameWrapper/TenantNameWrapper.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,13 @@ export function TenantNameWrapper({tenant, additionalTenantsProps}: TenantNameWr
6666
withLeftTrim={true}
6767
status={tenant.Overall}
6868
hasClipboardButton
69-
path={getTenantPath({
70-
database: tenant.Name,
71-
backend,
72-
})}
69+
path={
70+
'/ui' +
71+
getTenantPath({
72+
database: tenant.Name,
73+
backend,
74+
})
75+
}
7376
/>
7477
</CellWithPopover>
7578
);

src/containers/Clusters/columns.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const CLUSTERS_COLUMNS: Column<PreparedCluster>[] = [
3434
const clusterPath =
3535
useEmbeddedUi && backend
3636
? createDeveloperUIMonitoringPageHref(backend)
37-
: getClusterPath(undefined, {backend, clusterName});
37+
: '/ui' + getClusterPath(undefined, {backend, clusterName});
3838

3939
const clusterStatus = row.cluster?.Overall;
4040

src/store/configureStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function _configureStore<
4343
return store;
4444
}
4545

46-
export const webVersion = window.web_version;
46+
export const webVersion = true;
4747
export const customBackend = window.custom_backend;
4848
export const metaBackend = window.meta_backend;
4949
export const codeAssistBackend = window.code_assist_backend;

src/store/getUrlData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const getUrlData = ({
1212
const backend = urlSearchParams.get('backend') ?? undefined;
1313
const clusterName = urlSearchParams.get('clusterName') ?? undefined;
1414
return {
15-
basename: '/',
15+
basename: 'ui',
1616
backend,
1717
clusterName,
1818
};

0 commit comments

Comments
 (0)