diff --git a/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.d.ts.map b/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.d.ts.map index 3f6538e..66d0203 100644 --- a/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.d.ts.map +++ b/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../../../../src/browser/app/domain/Dashboard.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA6BnD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAiVtB,CAAC;AAEF,eAAe,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"Dashboard.d.ts","sourceRoot":"","sources":["../../../../src/browser/app/domain/Dashboard.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AA4BnD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAsTtB,CAAC;AAEF,eAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.js b/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.js index 9155c06..792c63e 100644 --- a/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.js +++ b/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.js @@ -28,7 +28,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", { value: true }); /* eslint-disable @typescript-eslint/no-explicit-any */ const react_1 = __importStar(require("react")); -const BackendContext_1 = require("../contexts/BackendContext"); const fetchMethods_1 = require("../../../common/fetchMethods"); const Spinner_1 = __importDefault(require("../componets/Spinner")); const Pagination_1 = __importDefault(require("../componets/Pagination/")); @@ -50,9 +49,12 @@ const Dashboard = () => { const [deploymentsSource, setDeploymentsSource] = (0, react_1.useState)([]); const [columnsSource, setColumnsSource] = (0, react_1.useState)([]); const [pagination, setPagination] = (0, react_1.useState)(initialPagination); - const { backend } = (0, BackendContext_1.useBackendContext)(); - const { workspaceService, backendService } = backend; (0, react_1.useEffect)(() => { + (async () => { + const sett = localStorage.getItem('settings'); + const settParsed = await JSON.parse(sett || ''); + settParsed && setSettings(settParsed); + })(); return () => { setLoading(true); setLoadingMetrics(false); @@ -62,24 +64,12 @@ const Dashboard = () => { }; }, []); (0, react_1.useEffect)(() => { - var _a; - if (backendService !== undefined && workspaceService !== undefined) { - const currentPath = ((_a = workspaceService.workspace) === null || _a === void 0 ? void 0 : _a.resource.path.toString()) || ''; - !currentPath && - setMessage('It is necessary to have at least one repository open.'); - if (currentPath) { - backendService - .fileRead(`${currentPath}/.smartclide-settings.json`) - .then((backendRead) => { - !(backendRead === null || backendRead === void 0 ? void 0 : backendRead.errno) - ? setSettings(JSON.parse(JSON.stringify(backendRead))) - : setMessage('It is necessary to have created a new deployment first.'); - }); - } - } - }, [backendService, workspaceService]); + console.log('settings', settings); + settings && setMessage('Welcome to SmartCLIDE Deployment Dashboard'); + }, [settings]); (0, react_1.useEffect)(() => { - message.length !== 0 && setLoading(false); + console.log('message', message); + (message === null || message === void 0 ? void 0 : message.length) !== 0 && setLoading(false); }, [message]); (0, react_1.useEffect)(() => { metrics && setLoadingMetrics(false); @@ -95,11 +85,12 @@ const Dashboard = () => { (async () => { const deploymentFetchData = await (0, fetchMethods_1.getDeploymentList)(deployUrl, stateServiceID, stateKeycloakToken, username, repository_name, pagination === null || pagination === void 0 ? void 0 : pagination.limit.toString(), pagination === null || pagination === void 0 ? void 0 : pagination.skip.toString()); if (deploymentFetchData) { - if (deploymentFetchData.total === 0) { + console.log('deploymentFetchData', deploymentFetchData === null || deploymentFetchData === void 0 ? void 0 : deploymentFetchData.message); + if ((deploymentFetchData === null || deploymentFetchData === void 0 ? void 0 : deploymentFetchData.total) === 0) { setMessage('No deployments found.'); } if (deploymentFetchData === null || deploymentFetchData === void 0 ? void 0 : deploymentFetchData.message) { - setMessage(deploymentFetchData === null || deploymentFetchData === void 0 ? void 0 : deploymentFetchData.message); + setMessage('The error getting the deployments.'); setDeploymentsSource([]); setPagination((prev) => (Object.assign(Object.assign({}, prev), { total: 0 }))); } @@ -113,7 +104,7 @@ const Dashboard = () => { })(); } } - }, [pagination.skip, pagination.limit, settings]); + }, [pagination === null || pagination === void 0 ? void 0 : pagination.skip, pagination === null || pagination === void 0 ? void 0 : pagination.limit, settings]); (0, react_1.useEffect)(() => { deploymentsSource && (deploymentsSource === null || deploymentsSource === void 0 ? void 0 : deploymentsSource.length) !== 0 && @@ -179,11 +170,7 @@ const Dashboard = () => { setCurrentDeployment(currentActive[0].id); }; const handleStop = async (id) => { - var _a, _b; - const currentPath = ((_a = workspaceService.workspace) === null || _a === void 0 ? void 0 : _a.resource.path.toString()) || ''; - const prevSettings = currentPath && - backendService && - JSON.parse(JSON.stringify(await backendService.fileRead(`${currentPath}/.smartclide-settings.json`))); + const prevSettings = JSON.parse(localStorage.getItem('settings') || ''); const { k8sToken, deployUrl, stateServiceID, stateKeycloakToken } = prevSettings; const deploymentDeleted = k8sToken && deployUrl && @@ -191,10 +178,7 @@ const Dashboard = () => { stateKeycloakToken && (await (0, fetchMethods_1.deleteDeployment)(deployUrl, stateServiceID, stateKeycloakToken, id, k8sToken)); if (deploymentDeleted) { - const currentPath = ((_b = workspaceService.workspace) === null || _b === void 0 ? void 0 : _b.resource.path.toString()) || ''; - const prevSettings = currentPath && - backendService && - JSON.parse(JSON.stringify(await backendService.fileRead(`${currentPath}/.smartclide-settings.json`))); + const prevSettings = JSON.parse(localStorage.getItem('settings') || ''); const { gitLabToken, repository_name, username, deployUrl, stateServiceID, stateKeycloakToken, } = prevSettings; const deploymentFetchData = gitLabToken && repository_name && @@ -214,7 +198,7 @@ const Dashboard = () => { return (react_1.default.createElement(react_1.default.Fragment, null, react_1.default.createElement("div", { id: "SmartCLIDE-Deployment-Bar" }, react_1.default.createElement("h3", null, "Last Deployment"), - message ? (react_1.default.createElement("h3", { style: { textAlign: 'center' } }, message)) : deploymentsSource.length !== 0 && !loadingMetrics ? (react_1.default.createElement(react_1.default.Fragment, null, !metrics && (react_1.default.createElement(Button_1.default, { className: "btn-primary small mr-xs", disabled: loadingMetrics, onClick: () => handleGetCurrentDeployment() }, "Get metrics")))) : (react_1.default.createElement(Spinner_1.default, { isVisible: loadingMetrics })), + message ? (react_1.default.createElement("h3", { style: { textAlign: 'center' } }, message)) : (deploymentsSource === null || deploymentsSource === void 0 ? void 0 : deploymentsSource.length) !== 0 && !loadingMetrics ? (react_1.default.createElement(react_1.default.Fragment, null, !metrics && (react_1.default.createElement(Button_1.default, { className: "btn-primary small mr-xs", disabled: loadingMetrics, onClick: () => handleGetCurrentDeployment() }, "Get metrics")))) : (react_1.default.createElement(Spinner_1.default, { isVisible: loadingMetrics })), react_1.default.createElement(react_1.default.Fragment, null, metrics && (react_1.default.createElement(Monitoring_1.default, { containers: metrics === null || metrics === void 0 ? void 0 : metrics.containers, price: metrics === null || metrics === void 0 ? void 0 : metrics.price })))), react_1.default.createElement("div", { id: "SmartCLIDE-Deployment-App" }, react_1.default.createElement("h1", null, "Deployments"), diff --git a/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.js.map b/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.js.map index 72e1bb3..8d9b80f 100644 --- a/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.js.map +++ b/extensions/eclipse-che-theia-deployment/lib/browser/app/domain/Dashboard.js.map @@ -1 +1 @@ -{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../src/browser/app/domain/Dashboard.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,+CAAmD;AAEnD,+DAA+D;AAC/D,+DAIsC;AAEtC,mEAA2C;AAC3C,0EAAkD;AAClD,iEAAyC;AAEzC,2FAAmE;AAQnE,8DAAsC;A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AAC,CACF,8BAAC,iBAAO,IAAC,SAAS,EAAE,cAAc,GAAI,CACvC;YACD,8DACG,OAAO,IAAI,CACV,8BAAC,oBAAU,IACT,UAAU,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,EAC/B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,GACrB,CACH,CACA,CACC;QACN,uCAAK,EAAE,EAAC,2BAA2B;YACjC,wDAAoB;YACnB,CAAC,OAAO,CAAC,CAAC,CAAC,CACV,OAAO,CAAC,CAAC,CAAC,CACR,sCAAI,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAG,OAAO,CAAM,CACnD,CAAC,CAAC,CAAC,CACF;gBACE,8BAAC,0BAAgB,IACf,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,iBAAiB,EAC7B,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,cAAc,GACvB;gBACF,8BAAC,oBAAU,IACT,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,QAAQ,EAAE,aAAa,GACvB;gBACD,OAAO,IAAI,CACV,8BAAC,oBAAU,IACT,UAAU,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,EAC/B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,GACrB,CACH,CACA,CACJ,CACF,CAAC,CAAC,CAAC,CACF,8BAAC,iBAAO,IAAC,SAAS,EAAE,OAAO,GAAI,CAChC,CACG,CACL,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"} \ No newline at end of file +{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../src/browser/app/domain/Dashboard.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,u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AAC,CACR,sCAAI,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAG,OAAO,CAAM,CACnD,CAAC,CAAC,CAAC,CACF;gBACE,8BAAC,0BAAgB,IACf,aAAa,EAAE,aAAa,EAC5B,UAAU,EAAE,iBAAiB,EAC7B,UAAU,EAAE,gBAAgB,EAC5B,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,cAAc,GACvB;gBACF,8BAAC,oBAAU,IACT,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,KAAK,EAAE,UAAU,CAAC,KAAK,EACvB,QAAQ,EAAE,aAAa,GACvB;gBACD,OAAO,IAAI,CACV,8BAAC,oBAAU,IACT,UAAU,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,EAC/B,KAAK,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,KAAK,GACrB,CACH,CACA,CACJ,CACF,CAAC,CAAC,CAAC,CACF,8BAAC,iBAAO,IAAC,SAAS,EAAE,OAAO,GAAI,CAChC,CACG,CACL,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"} \ No newline at end of file diff --git a/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.d.ts.map b/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.d.ts.map index f913539..4263965 100644 --- a/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.d.ts.map +++ b/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"widget-contribution.d.ts","sourceRoot":"","sources":["../../src/browser/widget-contribution.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,OAA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,gBAAgB,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IAgXjD,aAAa,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;IAsB7C,OAAO,IAAI,IAAI;IAqBf,gBAAgB,IAAI,IAAI;CAGzB;AAED,qBAAa,mBAAoB,YAAW,QAAQ;IAEhD,QAAQ,CAAC,EAAE,EAAE,MAAM;aACH,KAAK,EAAE,MAAM;IAC7B,SAAS,CAAC,OAAO,CAAC;gBAFT,EAAE,EAAE,MAAM,EACH,KAAK,EAAE,MAAM,EACnB,OAAO,CAAC,4BAAgB;IAGpC,IAAI,IAAI,IAAI,MAAM,GAAG,SAAS,CAE7B;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;CACF"} \ No newline at end of file diff --git a/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.js b/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.js index e6c8376..6212174 100644 --- a/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.js +++ b/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.js @@ -89,27 +89,44 @@ let SmartCLIDEDeploymentWidgetContribution = class SmartCLIDEDeploymentWidgetCon commands.registerCommand(CommandDeploymentDeploy, { execute: async () => { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r; + console.log('CommandDeploymentDeploy is called'); + //Add even listener to get the Keycloak Token + window.addEventListener('message', this.handleTokenInfo); + //Send a message to inform SmartCLIDE IDE + let message = (0, smartclide_frontend_comm_1.buildMessage)(smartclide_frontend_comm_1.messageTypes.COMM_START); + console.log('Returns message', message); + window.parent.postMessage(message, '*'); const channel = this.outputChannelManager.getChannel('SmartCLIDE'); channel.clear(); - const currentProject = ((_b = (_a = this.workspaceService.workspace) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.split('.')[0]) || undefined; - if (!currentProject) { - this.messageService.error(`It is necessary to have at least one repository open.`); - return; - } - const currentPath = ((_c = this.workspaceService.workspace) === null || _c === void 0 ? void 0 : _c.resource.path.toString()) || ''; + // const currentProject: string | undefined = + // this.workspaceService.workspace?.name?.split('.')[0] || undefined; + // if (!currentProject) { + // this.messageService.error( + // `It is necessary to have at least one repository open.` + // ); + // return; + // } + const currentPath = ((_a = this.workspaceService.workspace) === null || _a === void 0 ? void 0 : _a.resource.path.toString()) || ''; if (!currentPath || currentPath === '') { this.messageService.error(`There have been problems getting the route.`); return; } - const prevSettings = await this.smartCLIDEBackendService.fileRead(`${currentPath}/.smartclide-settings.json`); - if (prevSettings.errno || !prevSettings) { - this.smartCLIDEBackendService.fileWrite(`${currentPath}/.smartclide-settings.json`, JSON.stringify(this.settings)); - const newSettings = await this.smartCLIDEBackendService.fileRead(`${currentPath}/.smartclide-settings.json`); - this.settings = newSettings && Object.assign({}, JSON.parse(newSettings)); + else { + this.messageService.info(`Path: ${currentPath}.`); + } + const prevSettings = localStorage.getItem('settings'); + if (!prevSettings) { + this.messageService.info(`NO Settings found.`); + localStorage.setItem('settings', JSON.stringify(this.settings)); } else { this.settings = Object.assign({}, JSON.parse(prevSettings)); } + const optionsRepository = { + placeHolder: 'Enter Repository Name', + prompt: 'Enter Repository Name:', + ignoreFocusLost: true, + }; const optionsUser = { placeHolder: 'Enter User Name', prompt: 'Enter User Name:', @@ -140,6 +157,11 @@ let SmartCLIDEDeploymentWidgetContribution = class SmartCLIDEDeploymentWidgetCon prompt: 'Enter Kubernetes Token:', ignoreFocusLost: true, }; + const repository_name = !((_b = this.settings) === null || _b === void 0 ? void 0 : _b.repository_name) + ? await this.monacoQuickInputService + .input(optionsRepository) + .then((value) => value || '') + : (_c = this.settings) === null || _c === void 0 ? void 0 : _c.repository_name; const user = !((_d = this.settings) === null || _d === void 0 ? void 0 : _d.username) ? await this.monacoQuickInputService .input(optionsUser) @@ -171,7 +193,7 @@ let SmartCLIDEDeploymentWidgetContribution = class SmartCLIDEDeploymentWidgetCon .then((value) => value || '') : (_q = this.settings) === null || _q === void 0 ? void 0 : _q.gitLabToken; this.settings.username = user; - this.settings.repository_name = currentProject; + this.settings.repository_name = repository_name; this.settings.branch = branchName; this.settings.k8sToken = k8sToken; this.settings.k8s_url = k8s_url; @@ -199,7 +221,7 @@ let SmartCLIDEDeploymentWidgetContribution = class SmartCLIDEDeploymentWidgetCon } } this.settings.lastDeploy = ''; - this.smartCLIDEBackendService.fileWrite(`${currentPath}/.smartclide-settings.json`, JSON.stringify(this.settings)); + localStorage.setItem('settings', JSON.stringify(this.settings)); //// ---------- PREPARE TO BUILD ------------ ///// const actionsConfirmDeploy = ['Deploy now', 'Cancel']; if (this.settings.k8s_url && @@ -213,7 +235,7 @@ let SmartCLIDEDeploymentWidgetContribution = class SmartCLIDEDeploymentWidgetCon .then(async (action) => { if (action === 'Deploy now') { this.settings.lastDeploy = ''; - this.smartCLIDEBackendService.fileWrite(`${currentPath}/.smartclide-settings.json`, JSON.stringify(this.settings)); + localStorage.setItem('settings', JSON.stringify(this.settings)); console.log('PREPARE TO BUILD'); channel.show(); channel.appendLine(`Start deploy ${this.settings.repository_name}...`); @@ -226,7 +248,7 @@ let SmartCLIDEDeploymentWidgetContribution = class SmartCLIDEDeploymentWidgetCon channel.show(); channel.appendLine(`Deployment ${this.settings.repository_name} is already...`); this.settings.lastDeploy = res === null || res === void 0 ? void 0 : res.id; - this.smartCLIDEBackendService.fileWrite(`${currentPath}/.smartclide-settings.json`, JSON.stringify(this.settings)); + localStorage.setItem('settings', JSON.stringify(this.settings)); } else { this.messageService.error('Something is worng restart process'); @@ -242,7 +264,7 @@ let SmartCLIDEDeploymentWidgetContribution = class SmartCLIDEDeploymentWidgetCon .catch((err) => console.log('err', err)); } else { - this.messageService.error('It is necessary to have at leasts one repository open.'); + this.messageService.error('It is necessary to have at least one repository open.'); channel.appendLine('It is necessary to have at least one repository open.', output_channel_1.OutputChannelSeverity.Error); } }, @@ -258,14 +280,13 @@ let SmartCLIDEDeploymentWidgetContribution = class SmartCLIDEDeploymentWidgetCon return; } const currentPath = ((_c = this.workspaceService.workspace) === null || _c === void 0 ? void 0 : _c.resource.path.toString()) || ''; - const prevSettings = await this.smartCLIDEBackendService.fileRead(`${currentPath}/.smartclide-settings.json`); - if (prevSettings.errno) { - this.smartCLIDEBackendService.fileWrite(`${currentPath}/.smartclide-settings.json`, JSON.stringify(this.settings)); - const newSettings = await this.smartCLIDEBackendService.fileRead(`${currentPath}/.smartclide-settings.json`); - this.settings = newSettings && Object.assign({}, JSON.parse(JSON.stringify(newSettings))); + const prevSettings = localStorage.getItem('settings'); + if (!prevSettings) { + this.messageService.info(`NO Settings found.`); + localStorage.setItem('settings', JSON.stringify(this.settings)); } else { - this.settings = Object.assign({}, JSON.parse(JSON.stringify(prevSettings))); + this.settings = Object.assign({}, JSON.parse(prevSettings)); } this.settings.repository_name = currentProject; if (!currentPath || currentPath === '') { @@ -300,7 +321,7 @@ let SmartCLIDEDeploymentWidgetContribution = class SmartCLIDEDeploymentWidgetCon channel.appendLine(`Checking status ${this.settings.repository_name}...`); if (this.settings.lastDeploy && this.settings.k8sToken) { const res = await (0, fetchMethods_1.getDeploymentStatus)(this.settings.deployUrl, this.settings.stateServiceID, this.settings.stateKeycloakToken, this.settings.lastDeploy, this.settings.k8sToken); - this.smartCLIDEBackendService.fileWrite(`${currentPath}/.smartclide-settings.json`, JSON.stringify(this.settings)); + localStorage.setItem('settings', JSON.stringify(this.settings)); if (!res.message) { channel.appendLine(`Status: Deployment are running...`, output_channel_1.OutputChannelSeverity.Warning); } diff --git a/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.js.map b/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.js.map index ef00472..2f4bda1 100644 --- a/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.js.map +++ b/extensions/eclipse-che-theia-deployment/lib/browser/widget-contribution.js.map @@ -1 +1 @@ -{"version":3,"file":"widget-contribution.js","sourceRoot":"","sources":["../../src/browser/widget-contribution.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,u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,kBAAM,EAAC,uBAAc,CAAC;8BAAkC,uBAAc;8EAAC;AAExE;IADC,IAAA,kBAAM,EAAC,qCAAoB,CAAC;8BACU,qCAAoB;oFAAC;AAE5D;IADC,IAAA,kBAAM,EAAC,oDAAuB,CAAC;8BACU,oDAAuB;uFAAC;AAC1C;IAAvB,IAAA,kBAAM,EAAC,wBAAc,CAAC;;8EAAmD;AArB/D,sCAAsC;IADlD,IAAA,sBAAU,GAAE;;GACA,sCAAsC,CAkflD;AAlfY,wFAAsC;AAofnD,MAAa,mBAAmB;IAC9B,YACW,EAAU,EACH,KAAa,EACnB,OAAwB;QAFzB,OAAE,GAAF,EAAE,CAAQ;QACH,UAAK,GAAL,KAAK,CAAQ;QACnB,YAAO,GAAP,OAAO,CAAiB;IACjC,CAAC;IAEJ,IAAI,IAAI;;QACN,OAAO,MAAA,IAAI,CAAC,OAAO,0CAAE,SAAS,CAAC;IACjC,CAAC;IAED,IAAI,UAAU;;QACZ,OAAO,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,KAAK,KAAI,IAAI,CAAC,KAAK,CAAC;IAC3C,CAAC;CACF;AAdD,kDAcC"} \ No newline at end of file +{"version":3,"file":"widget-contribution.js","sourceRoot":"","sources":["../../src/browser/widget-contribution.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uDAAuD;AACvD,4DAAkE;AAElE,mDAA6D;AAC7D,qDAAmE;AAEnE,mGAAqG;AAErG,mDAOgC;AAEhC,6EAGkD;AAGlD,sFAAkF;AAClF,qGAA+F;AAC/F,iDAA8D;AAC9D,4DAAgE;AAEhE,mFAG8C;AAE9C,yDAIgC;AAIhC,MAAM,iCAAiC,GAAY;IACjD,EAAE,EAAE,mCAAmC;IACvC,KAAK,EAAE,uBAAuB;CAC/B,CAAC;AAEF,MAAM,uBAAuB,GAAY;IACvC,EAAE,EAAE,mCAAmC;IACvC,KAAK,EAAE,4BAA4B;CACpC,CAAC;AACF,MAAM,uBAAuB,GAAY;IACvC,EAAE,EA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;;GACA,sCAAsC,CA6elD;AA7eY,wFAAsC;AA+enD,MAAa,mBAAmB;IAC9B,YACW,EAAU,EACH,KAAa,EACnB,OAAwB;QAFzB,OAAE,GAAF,EAAE,CAAQ;QACH,UAAK,GAAL,KAAK,CAAQ;QACnB,YAAO,GAAP,OAAO,CAAiB;IACjC,CAAC;IAEJ,IAAI,IAAI;;QACN,OAAO,MAAA,IAAI,CAAC,OAAO,0CAAE,SAAS,CAAC;IACjC,CAAC;IAED,IAAI,UAAU;;QACZ,OAAO,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,KAAK,KAAI,IAAI,CAAC,KAAK,CAAC;IAC3C,CAAC;CACF;AAdD,kDAcC"} \ No newline at end of file diff --git a/extensions/eclipse-che-theia-deployment/src/browser/app/domain/Dashboard.tsx b/extensions/eclipse-che-theia-deployment/src/browser/app/domain/Dashboard.tsx index e14e1c8..33fc494 100644 --- a/extensions/eclipse-che-theia-deployment/src/browser/app/domain/Dashboard.tsx +++ b/extensions/eclipse-che-theia-deployment/src/browser/app/domain/Dashboard.tsx @@ -1,7 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import React, { useState, useEffect } from 'react'; -import { useBackendContext } from '../contexts/BackendContext'; import { deleteDeployment, getDeploymentList, @@ -41,10 +40,13 @@ const Dashboard: React.FC = () => { const [columnsSource, setColumnsSource] = useState([]); const [pagination, setPagination] = useState(initialPagination); - const { backend } = useBackendContext(); - const { workspaceService, backendService } = backend; useEffect(() => { + (async () => { + const sett: string | null = localStorage.getItem('settings'); + const settParsed = await JSON.parse(sett || '') + settParsed && setSettings(settParsed); + })(); return () => { setLoading(true); setLoadingMetrics(false); @@ -55,27 +57,13 @@ const Dashboard: React.FC = () => { }, []); useEffect(() => { - if (backendService !== undefined && workspaceService !== undefined) { - const currentPath = - workspaceService.workspace?.resource.path.toString() || ''; - !currentPath && - setMessage('It is necessary to have at least one repository open.'); - if (currentPath) { - backendService - .fileRead(`${currentPath}/.smartclide-settings.json`) - .then((backendRead: any) => { - !backendRead?.errno - ? setSettings(JSON.parse(JSON.stringify(backendRead))) - : setMessage( - 'It is necessary to have created a new deployment first.' - ); - }); - } - } - }, [backendService, workspaceService]); + console.log('settings', settings) + settings && setMessage('Welcome to SmartCLIDE Deployment Dashboard'); + }, [settings]); useEffect(() => { - message.length !== 0 && setLoading(false); + console.log('message', message) + message?.length !== 0 && setLoading(false); }, [message]); useEffect(() => { @@ -110,11 +98,12 @@ const Dashboard: React.FC = () => { pagination?.skip.toString() ); if (deploymentFetchData) { - if (deploymentFetchData.total === 0) { + console.log('deploymentFetchData', deploymentFetchData?.message) + if (deploymentFetchData?.total === 0) { setMessage('No deployments found.'); } if (deploymentFetchData?.message) { - setMessage(deploymentFetchData?.message); + setMessage('The error getting the deployments.'); setDeploymentsSource([]); setPagination( (prev: PaginationState): PaginationState => ({ @@ -139,7 +128,7 @@ const Dashboard: React.FC = () => { })(); } } - }, [pagination.skip, pagination.limit, settings]); + }, [pagination?.skip, pagination?.limit, settings]); useEffect(() => { deploymentsSource && @@ -220,18 +209,9 @@ const Dashboard: React.FC = () => { }; const handleStop = async (id: string) => { - const currentPath = - workspaceService.workspace?.resource.path.toString() || ''; - const prevSettings: Settings = - currentPath && - backendService && - JSON.parse( - JSON.stringify( - await backendService.fileRead( - `${currentPath}/.smartclide-settings.json` - ) - ) - ); + const prevSettings: Settings = JSON.parse( + localStorage.getItem('settings') || '' + ); const { k8sToken, deployUrl, stateServiceID, stateKeycloakToken } = prevSettings; const deploymentDeleted = @@ -247,18 +227,10 @@ const Dashboard: React.FC = () => { k8sToken )); if (deploymentDeleted) { - const currentPath = - workspaceService.workspace?.resource.path.toString() || ''; - const prevSettings: Settings = - currentPath && - backendService && - JSON.parse( - JSON.stringify( - await backendService.fileRead( - `${currentPath}/.smartclide-settings.json` - ) - ) - ); + const prevSettings: Settings = JSON.parse( + localStorage.getItem('settings') || '' + ); + const { gitLabToken, repository_name, @@ -307,7 +279,7 @@ const Dashboard: React.FC = () => {

Last Deployment

{message ? (

{message}

- ) : deploymentsSource.length !== 0 && !loadingMetrics ? ( + ) : deploymentsSource?.length !== 0 && !loadingMetrics ? ( <> {!metrics && (