mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Release/v5.2.4 (#3876)
* Fix long name layout in Cluster Settings (#3854) * Fix long name layout in Cluster Settings Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * Clean up Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com> * fix missing query parameter (#3875) Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * Disable log file writing on renderer (#3874) Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com> * release v5.2.4 Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com> Co-authored-by: Alex Andreev <alex.andreev.email@gmail.com> Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
0485b74cf0
commit
edc7849307
@ -3,7 +3,7 @@
|
|||||||
"productName": "OpenLens",
|
"productName": "OpenLens",
|
||||||
"description": "OpenLens - Open Source IDE for Kubernetes",
|
"description": "OpenLens - Open Source IDE for Kubernetes",
|
||||||
"homepage": "https://github.com/lensapp/lens",
|
"homepage": "https://github.com/lensapp/lens",
|
||||||
"version": "5.2.3",
|
"version": "5.2.4",
|
||||||
"main": "static/build/main.js",
|
"main": "static/build/main.js",
|
||||||
"copyright": "© 2021 OpenLens Authors",
|
"copyright": "© 2021 OpenLens Authors",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|||||||
@ -159,7 +159,7 @@ export abstract class KubeObjectStore<T extends KubeObject> extends ItemStore<T>
|
|||||||
this.loadedNamespaces = namespaces;
|
this.loadedNamespaces = namespaces;
|
||||||
|
|
||||||
return Promise // load resources per namespace
|
return Promise // load resources per namespace
|
||||||
.all(namespaces.map(namespace => api.list({ namespace, reqInit })))
|
.all(namespaces.map(namespace => api.list({ namespace, reqInit }, this.query)))
|
||||||
.then(items => items.flat().filter(Boolean));
|
.then(items => items.flat().filter(Boolean));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -59,24 +59,24 @@ if (ipcMain) {
|
|||||||
),
|
),
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!isTestEnv) {
|
||||||
|
transports.push(
|
||||||
|
new winston.transports.File({
|
||||||
|
handleExceptions: false,
|
||||||
|
level: logLevel,
|
||||||
|
filename: "lens.log",
|
||||||
|
dirname: getPath("logs"),
|
||||||
|
maxsize: 16 * 1024,
|
||||||
|
maxFiles: 16,
|
||||||
|
tailable: true,
|
||||||
|
})
|
||||||
|
);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
transports.push(new BrowserConsole());
|
transports.push(new BrowserConsole());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isTestEnv) {
|
|
||||||
transports.push(
|
|
||||||
new winston.transports.File({
|
|
||||||
handleExceptions: false,
|
|
||||||
level: logLevel,
|
|
||||||
filename: "lens.log",
|
|
||||||
dirname: getPath("logs"),
|
|
||||||
maxsize: 16 * 1024,
|
|
||||||
maxFiles: 16,
|
|
||||||
tailable: true,
|
|
||||||
})
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default winston.createLogger({
|
export default winston.createLogger({
|
||||||
format: format.simple(),
|
format: format.simple(),
|
||||||
transports,
|
transports,
|
||||||
|
|||||||
@ -19,26 +19,12 @@
|
|||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.EntitySettings {
|
.entityName {
|
||||||
$spacing: $padding * 3;
|
@apply font-bold overflow-hidden;
|
||||||
|
word-break: break-word;
|
||||||
|
color: var(--textColorAccent);
|
||||||
// TODO: move sub-component styles to separate files
|
display: -webkit-box;
|
||||||
.admin-note {
|
/* Simulate text-overflow:ellipsis styles but for multiple text lines */
|
||||||
font-size: small;
|
-webkit-line-clamp: 3;
|
||||||
opacity: 0.5;
|
-webkit-box-orient: vertical;
|
||||||
margin-left: $margin;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.button-area {
|
|
||||||
margin-top: $margin * 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.file-loader {
|
|
||||||
margin-top: $margin * 2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.Input, .Select {
|
|
||||||
margin-top: $padding;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -19,7 +19,7 @@
|
|||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "./entity-settings.scss";
|
import styles from "./entity-settings.module.css";
|
||||||
|
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { observable, makeObservable } from "mobx";
|
import { observable, makeObservable } from "mobx";
|
||||||
@ -98,7 +98,9 @@ export class EntitySettings extends React.Component<Props> {
|
|||||||
source={this.entity.metadata.source}
|
source={this.entity.metadata.source}
|
||||||
src={this.entity.spec.icon?.src}
|
src={this.entity.spec.icon?.src}
|
||||||
/>
|
/>
|
||||||
<h2>{this.entity.metadata.name}</h2>
|
<div className={styles.entityName}>
|
||||||
|
{this.entity.metadata.name}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<Tabs className="flex column" scrollable={false} onChange={this.onTabChange} value={this.activeTab}>
|
<Tabs className="flex column" scrollable={false} onChange={this.onTabChange} value={this.activeTab}>
|
||||||
{ groups.map((group, groupIndex) => (
|
{ groups.map((group, groupIndex) => (
|
||||||
@ -138,7 +140,6 @@ export class EntitySettings extends React.Component<Props> {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<SettingLayout
|
<SettingLayout
|
||||||
className="CatalogEntitySettings"
|
|
||||||
navigation={this.renderNavigation()}
|
navigation={this.renderNavigation()}
|
||||||
contentGaps={false}
|
contentGaps={false}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user