1
0
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:
Jim Ehrismann 2021-09-23 12:33:27 -04:00 committed by GitHub
parent 0485b74cf0
commit edc7849307
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 29 additions and 42 deletions

View File

@ -3,7 +3,7 @@
"productName": "OpenLens",
"description": "OpenLens - Open Source IDE for Kubernetes",
"homepage": "https://github.com/lensapp/lens",
"version": "5.2.3",
"version": "5.2.4",
"main": "static/build/main.js",
"copyright": "© 2021 OpenLens Authors",
"license": "MIT",

View File

@ -159,7 +159,7 @@ export abstract class KubeObjectStore<T extends KubeObject> extends ItemStore<T>
this.loadedNamespaces = namespaces;
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));
}
}

View File

@ -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 {
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({
format: format.simple(),
transports,

View File

@ -19,26 +19,12 @@
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
.EntitySettings {
$spacing: $padding * 3;
// TODO: move sub-component styles to separate files
.admin-note {
font-size: small;
opacity: 0.5;
margin-left: $margin;
}
.button-area {
margin-top: $margin * 2;
}
.file-loader {
margin-top: $margin * 2;
}
.Input, .Select {
margin-top: $padding;
}
}
.entityName {
@apply font-bold overflow-hidden;
word-break: break-word;
color: var(--textColorAccent);
display: -webkit-box;
/* Simulate text-overflow:ellipsis styles but for multiple text lines */
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
}

View File

@ -19,7 +19,7 @@
* 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 { observable, makeObservable } from "mobx";
@ -98,7 +98,9 @@ export class EntitySettings extends React.Component<Props> {
source={this.entity.metadata.source}
src={this.entity.spec.icon?.src}
/>
<h2>{this.entity.metadata.name}</h2>
<div className={styles.entityName}>
{this.entity.metadata.name}
</div>
</div>
<Tabs className="flex column" scrollable={false} onChange={this.onTabChange} value={this.activeTab}>
{ groups.map((group, groupIndex) => (
@ -138,7 +140,6 @@ export class EntitySettings extends React.Component<Props> {
return (
<SettingLayout
className="CatalogEntitySettings"
navigation={this.renderNavigation()}
contentGaps={false}
>