@jfvilas/plugin-kwirth-frontend 0.13.0 → 0.13.1
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.
|
@@ -6,14 +6,15 @@ const KwirthNews = (props) => {
|
|
|
6
6
|
let news = [];
|
|
7
7
|
try {
|
|
8
8
|
if (props.latestVersions) {
|
|
9
|
-
if (versionGreaterThan(props.latestVersions["plugin-kwirth-backend"], props.backendVersion)) news.push(`New version of 'plugin-kwirth-backend':
|
|
9
|
+
if (versionGreaterThan(props.latestVersions["plugin-kwirth-backend"], props.backendVersion)) news.push(`New version of 'plugin-kwirth-backend': you have ${props.backendVersion} and latest is ${props.latestVersions["plugin-kwirth-backend"]}`);
|
|
10
|
+
if (versionGreaterThan(props.latestVersions["plugin-kwirth-log"], props.ownVersion)) news.push(`New version of 'plugin-kwirth-log': you have ${props.ownVersion} and latest is ${props.latestVersions["plugin-kwirth-log"]}`);
|
|
10
11
|
}
|
|
11
12
|
} catch {
|
|
12
13
|
}
|
|
13
14
|
if (news.length === 0) return /* @__PURE__ */ React.createElement(React.Fragment, null);
|
|
14
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(CardHeader, { title: "Kwirth news" }), /* @__PURE__ */ React.createElement(Divider,
|
|
15
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(CardHeader, { title: "Kwirth news", style: { backgroundColor: "#e0e0e0" } }), /* @__PURE__ */ React.createElement(Divider, null), /* @__PURE__ */ React.createElement(Grid, { container: true, direction: "column", spacing: 0, style: { backgroundColor: "lightgray" } }, /* @__PURE__ */ React.createElement(Grid, { item: true, style: { padding: 4 } }, news.map((n) => {
|
|
15
16
|
return /* @__PURE__ */ React.createElement(Typography, { style: { fontSize: 11, marginBottom: 6 } }, n);
|
|
16
|
-
})
|
|
17
|
+
}))));
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export { KwirthNews };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KwirthNews.esm.js","sources":["../../src/KwirthNews/KwirthNews.tsx"],"sourcesContent":["/*\r\nCopyright 2025 Julio Fernandez\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.\r\n*/\r\nimport React from 'react'\r\nimport { CardHeader, Divider, Grid, Typography } from '@material-ui/core'\r\nimport { IBackendInfo } from '@jfvilas/plugin-kwirth-common'\r\nimport { versionGreaterThan } from '@jfvilas/kwirth-common'\r\n\r\ninterface IProps {\r\n backendVersion: string\r\n latestVersions?: IBackendInfo\r\n}\r\n\r\nconst KwirthNews = (props: IProps) => {\r\n\r\n let news:string[] = []\r\n try {\r\n if (props.latestVersions) {\r\n if (versionGreaterThan(props.latestVersions['plugin-kwirth-backend'], props.backendVersion)) news.push(`New version of 'plugin-kwirth-backend':
|
|
1
|
+
{"version":3,"file":"KwirthNews.esm.js","sources":["../../src/KwirthNews/KwirthNews.tsx"],"sourcesContent":["/*\r\nCopyright 2025 Julio Fernandez\r\n\r\nLicensed under the Apache License, Version 2.0 (the \"License\");\r\nyou may not use this file except in compliance with the License.\r\nYou may obtain a copy of the License at\r\n\r\n http://www.apache.org/licenses/LICENSE-2.0\r\n\r\nUnless required by applicable law or agreed to in writing, software\r\ndistributed under the License is distributed on an \"AS IS\" BASIS,\r\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\nSee the License for the specific language governing permissions and\r\nlimitations under the License.\r\n*/\r\nimport React from 'react'\r\nimport { CardHeader, Divider, Grid, Typography } from '@material-ui/core'\r\nimport { IBackendInfo } from '@jfvilas/plugin-kwirth-common'\r\nimport { versionGreaterThan } from '@jfvilas/kwirth-common'\r\n\r\ninterface IProps {\r\n backendVersion: string\r\n latestVersions?: IBackendInfo\r\n ownVersion: string\r\n}\r\n\r\nconst KwirthNews: React.FC<IProps> = (props: IProps) => {\r\n\r\n let news:string[] = []\r\n try {\r\n if (props.latestVersions) {\r\n if (versionGreaterThan(props.latestVersions['plugin-kwirth-backend'], props.backendVersion)) news.push(`New version of 'plugin-kwirth-backend': you have ${props.backendVersion} and latest is ${props.latestVersions['plugin-kwirth-backend']}`)\r\n if (versionGreaterThan(props.latestVersions['plugin-kwirth-log'], props.ownVersion)) news.push(`New version of 'plugin-kwirth-log': you have ${props.ownVersion} and latest is ${props.latestVersions['plugin-kwirth-log']}`)\r\n }\r\n }\r\n catch {\r\n }\r\n\r\n if (news.length===0) return <></>\r\n \r\n return (<>\r\n <CardHeader title={'Kwirth news'} style={{backgroundColor: '#e0e0e0'}}/>\r\n <Divider/>\r\n <Grid container direction='column' spacing={0} style={{backgroundColor:'lightgray'}}>\r\n <Grid item style={{padding:4}}>\r\n {\r\n news.map(n => {\r\n return <Typography style={{fontSize:11, marginBottom:6}}>{n}</Typography>\r\n })\r\n }\r\n </Grid>\r\n </Grid>\r\n </>)\r\n}\r\n\r\nexport { KwirthNews }"],"names":[],"mappings":";;;;AA0BA,MAAM,UAAA,GAA+B,CAAC,KAAA,KAAkB;AAEpD,EAAA,IAAI,OAAgB,EAAC;AACrB,EAAA,IAAI;AACA,IAAA,IAAI,MAAM,cAAA,EAAgB;AACtB,MAAA,IAAI,mBAAmB,KAAA,CAAM,cAAA,CAAe,uBAAuB,CAAA,EAAG,KAAA,CAAM,cAAc,CAAA,EAAG,IAAA,CAAK,IAAA,CAAK,CAAA,iDAAA,EAAoD,MAAM,cAAc,CAAA,eAAA,EAAkB,MAAM,cAAA,CAAe,uBAAuB,CAAC,CAAA,CAAE,CAAA;AAChP,MAAA,IAAI,mBAAmB,KAAA,CAAM,cAAA,CAAe,mBAAmB,CAAA,EAAG,KAAA,CAAM,UAAU,CAAA,EAAG,IAAA,CAAK,IAAA,CAAK,CAAA,6CAAA,EAAgD,MAAM,UAAU,CAAA,eAAA,EAAkB,MAAM,cAAA,CAAe,mBAAmB,CAAC,CAAA,CAAE,CAAA;AAAA,IAChO;AAAA,EACJ,CAAA,CAAA,MACM;AAAA,EACN;AAEA,EAAA,IAAI,IAAA,CAAK,MAAA,KAAS,CAAA,EAAG,uBAAO,KAAA,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAE,CAAA;AAE9B,EAAA,iFACI,KAAA,CAAA,aAAA,CAAC,UAAA,EAAA,EAAW,KAAA,EAAO,aAAA,EAAe,OAAO,EAAC,eAAA,EAAiB,SAAA,EAAS,EAAE,mBACtE,KAAA,CAAA,aAAA,CAAC,OAAA,EAAA,IAAO,mBACR,KAAA,CAAA,aAAA,CAAC,IAAA,EAAA,EAAK,WAAS,IAAA,EAAC,SAAA,EAAU,QAAA,EAAS,OAAA,EAAS,GAAG,KAAA,EAAO,EAAC,eAAA,EAAgB,WAAA,sBACnE,KAAA,CAAA,aAAA,CAAC,IAAA,EAAA,EAAK,IAAA,EAAI,IAAA,EAAC,OAAO,EAAC,OAAA,EAAQ,GAAC,EAAA,EAEpB,IAAA,CAAK,IAAI,CAAA,CAAA,KAAK;AACV,IAAA,uBAAO,KAAA,CAAA,aAAA,CAAC,cAAW,KAAA,EAAO,EAAC,UAAS,EAAA,EAAI,YAAA,EAAa,CAAA,EAAC,EAAA,EAAI,CAAE,CAAA;AAAA,EAChE,CAAC,CAET,CACJ,CACJ,CAAA;AACJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jfvilas/plugin-kwirth-frontend",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "Frontend common artifacts for viewing real-time Kubernetes logs in Backstage",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Backstage",
|
|
7
7
|
"Kubernetes",
|
|
8
|
-
"log",
|
|
9
|
-
"observability",
|
|
10
8
|
"Kwirth",
|
|
9
|
+
"observability",
|
|
10
|
+
"log",
|
|
11
11
|
"plugin",
|
|
12
12
|
"metrics"
|
|
13
13
|
],
|