mirror of
https://github.com/fluxscape/fluxscape.git
synced 2026-01-11 14:52:54 +01:00
feat: Portal include Project ID (#47)
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
import { usePluginContext } from '@noodl-contexts/PluginContext';
|
import React, { RefObject } from 'react';
|
||||||
import React, { RefObject, useEffect, useRef } from 'react';
|
|
||||||
|
import { ProjectModel } from '@noodl-models/projectmodel';
|
||||||
|
|
||||||
import { ActivityIndicator } from '@noodl-core-ui/components/common/ActivityIndicator';
|
import { ActivityIndicator } from '@noodl-core-ui/components/common/ActivityIndicator';
|
||||||
import { BaseDialog } from '@noodl-core-ui/components/layout/BaseDialog';
|
import { BaseDialog } from '@noodl-core-ui/components/layout/BaseDialog';
|
||||||
@@ -62,6 +63,19 @@ export function DeployPopup(props: DeployPopupProps) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function FluxscapeDeployTab() {
|
function FluxscapeDeployTab() {
|
||||||
// Preview URL: 'http://192.168.0.33:8574/'
|
const params = {};
|
||||||
return <iframe src="https://portal.fluxscape.io" style={{ width: "100%", height: "50vh", borderStyle: "none" }} />;
|
|
||||||
|
const projectId = ProjectModel.instance.id;
|
||||||
|
if (projectId) {
|
||||||
|
params['projectId'] = projectId;
|
||||||
|
}
|
||||||
|
|
||||||
|
const urlParams = new URLSearchParams(params);
|
||||||
|
|
||||||
|
return (
|
||||||
|
<iframe
|
||||||
|
src={`https://portal.fluxscape.io/?${urlParams.toString()}`}
|
||||||
|
style={{ width: '100%', height: '50vh', borderStyle: 'none' }}
|
||||||
|
/>
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user