1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Merge branch 'master' into cluster-icon-settings-injectables

This commit is contained in:
Alex Andreev 2023-03-15 09:53:21 +03:00
commit da8c11fdb6
31 changed files with 1038 additions and 886 deletions

View File

@ -1,45 +0,0 @@
name: Bump Version on master
on:
pull_request:
types:
- closed
branches:
- master
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release') }}
steps:
- name: Checkout Release from lens
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Bump version to first alpha of next minor version
id: bump
run: |
CURRENT_VERSION=$(cat lerna.json | jq .version --raw-output)
if ! [[ "${CURRENT_VERSION}" =~ ^\d+\.\d+\.0$ ]]; then
echo "Not a minor release"
echo "status=skip" >> $GITHUB_OUTPUT
exit 0
fi
yarn bump-version preminor
echo "status=create" >> $GITHUB_OUTPUT
- uses: peter-evans/create-pull-request@v4
if: ${{ steps.bump.outputs.status == 'create' }}
with:
add-paths: lerna.json,packages/*/package.json
commit-message: Update package.json version to next preminor because of recent release
signoff: true
delete-branch: true
title: Update version to next preminor
labels: skip-changelog

View File

@ -29,7 +29,7 @@ jobs:
- name: Bump version - name: Bump version
id: version id: version
run: | run: |
node packages/bump-version-for-cron/dist/index.js --path lerna.json node packages/bump-version-for-cron/dist/index.js --path packages/core/package.json
- name: Check if branch already exists - name: Check if branch already exists
id: check-branch id: check-branch
run: git ls-remote --exit-code --tags origin v${{ steps.version.outputs.VERSION }} run: git ls-remote --exit-code --tags origin v${{ steps.version.outputs.VERSION }}

View File

@ -38,7 +38,7 @@ jobs:
- name: Publish NPM packages - name: Publish NPM packages
run: | run: |
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
VERSION=$(cat lerna.json | jq '.version' --raw-output) VERSION=$(cat packages/core/package.json | jq '.version' --raw-output)
echo ${VERSION} echo ${VERSION}
DIST_TAG=$(node packages/semver/dist/index.js --prerelease 0 ${VERSION}) DIST_TAG=$(node packages/semver/dist/index.js --prerelease 0 ${VERSION})
npx lerna \ npx lerna \

View File

@ -1,7 +1,7 @@
{ {
"$schema": "node_modules/lerna/schemas/lerna-schema.json", "$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useWorkspaces": true, "useWorkspaces": true,
"version": "6.5.0-alpha.0", "version": "independent",
"npmClient": "npm", "npmClient": "npm",
"npmClientArgs": [ "npmClientArgs": [
"--network-timeout=100000" "--network-timeout=100000"

1767
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "@k8slens/bump-version-for-cron", "name": "@k8slens/bump-version-for-cron",
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "CLI to bump the version to during a cron daily alpha release", "description": "CLI to bump the version to during a cron daily alpha release",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {

View File

@ -3,7 +3,7 @@
"productName": "", "productName": "",
"description": "Lens Desktop Core", "description": "Lens Desktop Core",
"homepage": "https://github.com/lensapp/lens", "homepage": "https://github.com/lensapp/lens",
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.2",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/lensapp/lens.git" "url": "git+https://github.com/lensapp/lens.git"
@ -127,7 +127,7 @@
"@astronautlabs/jsonpath": "^1.1.0", "@astronautlabs/jsonpath": "^1.1.0",
"@hapi/call": "^9.0.1", "@hapi/call": "^9.0.1",
"@hapi/subtext": "^7.1.0", "@hapi/subtext": "^7.1.0",
"@k8slens/node-fetch": "^6.5.0-alpha.0", "@k8slens/node-fetch": "^6.5.0-alpha.1",
"@kubernetes/client-node": "^0.18.1", "@kubernetes/client-node": "^0.18.1",
"@material-ui/styles": "^4.11.5", "@material-ui/styles": "^4.11.5",
"@ogre-tools/fp": "^15.1.2", "@ogre-tools/fp": "^15.1.2",
@ -331,9 +331,9 @@
"peerDependencies": { "peerDependencies": {
"@k8slens/application": "^6.5.0-alpha.0", "@k8slens/application": "^6.5.0-alpha.0",
"@k8slens/application-for-electron-main": "^6.5.0-alpha.0", "@k8slens/application-for-electron-main": "^6.5.0-alpha.0",
"@k8slens/run-many": "^1.0.0", "@k8slens/run-many": "^1.0.0-alpha.1",
"@k8slens/test-utils": "^1.0.0", "@k8slens/test-utils": "^1.0.0-alpha.1",
"@k8slens/utilities": "^1.0.0", "@k8slens/utilities": "^1.0.0-alpha.1",
"@types/byline": "^4.2.33", "@types/byline": "^4.2.33",
"@types/chart.js": "^2.9.36", "@types/chart.js": "^2.9.36",
"@types/color": "^3.0.3", "@types/color": "^3.0.3",

View File

@ -118,7 +118,7 @@ class ClusterConnection {
this.bindEvents(); this.bindEvents();
} }
if (this.cluster.disconnected || !this.cluster.accessible.get()) { if (this.cluster.disconnected.get() || !this.cluster.accessible.get()) {
try { try {
this.dependencies.broadcastConnectionUpdate({ this.dependencies.broadcastConnectionUpdate({
level: "info", level: "info",
@ -184,7 +184,7 @@ class ClusterConnection {
} }
disconnect() { disconnect() {
if (this.cluster.disconnected) { if (this.cluster.disconnected.get()) {
return this.dependencies.logger.debug("[CLUSTER]: already disconnected", { id: this.cluster.id }); return this.dependencies.logger.debug("[CLUSTER]: already disconnected", { id: this.cluster.id });
} }

View File

@ -53,6 +53,7 @@
&.hidden { &.hidden {
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
visibility: hidden;
} }
} }
} }

View File

@ -6,7 +6,7 @@
.HotbarIcon { .HotbarIcon {
--corner: 0px 0px 0px 1px var(--clusterMenuBackground); --corner: 0px 0px 0px 1px var(--clusterMenuBackground);
--iconActiveShadow: var(--corner), var(--corner), 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px var(--textColorAccent); --iconActiveShadow: var(--corner), var(--corner), 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px var(--textColorAccent);
--iconHoverShadow: 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px #ffffff50; --iconHoverShadow: 0 0 0px 3px var(--clusterMenuBackground), 0 0 0px 6px var(--clusterMenuCellOutline);
display: flex; display: flex;
cursor: pointer; cursor: pointer;

View File

@ -16,7 +16,7 @@ exports[`<Tooltip /> renders to DOM when forced to by visibile prop 1`] = `
<body> <body>
<div> <div>
<div <div
class="Tooltip visible" class="Tooltip right visible"
role="tooltip" role="tooltip"
style="left: 10px; top: 0px;" style="left: 10px; top: 0px;"
> >
@ -35,7 +35,7 @@ exports[`<Tooltip /> renders to DOM when hovering over target 1`] = `
<body> <body>
<div> <div>
<div <div
class="Tooltip visible" class="Tooltip right visible"
role="tooltip" role="tooltip"
style="left: 10px; top: 0px;" style="left: 10px; top: 0px;"
> >

View File

@ -97,6 +97,7 @@ const lensDarkThemeInjectable = getInjectable({
clusterMenuBackground: "#252729", clusterMenuBackground: "#252729",
clusterMenuBorderColor: "#252729", clusterMenuBorderColor: "#252729",
clusterMenuCellBackground: "#2e3136", clusterMenuCellBackground: "#2e3136",
clusterMenuCellOutline: "#ffffff66",
clusterSettingsBackground: "#1e2124", clusterSettingsBackground: "#1e2124",
addClusterIconColor: "#252729", addClusterIconColor: "#252729",
boxShadow: "#0000003a", boxShadow: "#0000003a",

View File

@ -94,9 +94,10 @@ const lensLightThemeInjectable = getInjectable({
drawerSubtitleBackground: "#f1f1f1", drawerSubtitleBackground: "#f1f1f1",
drawerItemNameColor: "#727272", drawerItemNameColor: "#727272",
drawerItemValueColor: "#555555", drawerItemValueColor: "#555555",
clusterMenuBackground: "#d7d8da", clusterMenuBackground: "#e2e2e2",
clusterMenuBorderColor: "#c9cfd3", clusterMenuBorderColor: "#c9cfd3",
clusterMenuCellBackground: "#bbbbbb", clusterMenuCellBackground: "#d2d2d2",
clusterMenuCellOutline: "#22222266",
clusterSettingsBackground: "#ffffff", clusterSettingsBackground: "#ffffff",
addClusterIconColor: "#8d8d8d", addClusterIconColor: "#8d8d8d",
boxShadow: "#0000003a", boxShadow: "#0000003a",

View File

@ -1,6 +1,6 @@
{ {
"name": "@k8slens/ensure-binaries", "name": "@k8slens/ensure-binaries",
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "CLI for downloading configured versions of the bundled versions of CLIs", "description": "CLI for downloading configured versions of the bundled versions of CLIs",
"main": "dist/index.js", "main": "dist/index.js",
"license": "MIT", "license": "MIT",

View File

@ -2,7 +2,7 @@
"name": "@k8slens/extensions", "name": "@k8slens/extensions",
"productName": "OpenLens extensions", "productName": "OpenLens extensions",
"description": "OpenLens - Open Source Kubernetes IDE: extensions", "description": "OpenLens - Open Source Kubernetes IDE: extensions",
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.2",
"copyright": "© 2022 OpenLens Authors", "copyright": "© 2022 OpenLens Authors",
"license": "MIT", "license": "MIT",
"main": "dist/extension-api.js", "main": "dist/extension-api.js",
@ -26,7 +26,7 @@
"prepare:dev": "npm run build" "prepare:dev": "npm run build"
}, },
"dependencies": { "dependencies": {
"@k8slens/core": "^6.5.0-alpha.0" "@k8slens/core": "^6.5.0-alpha.2"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^16.18.6", "@types/node": "^16.18.6",

View File

@ -1,6 +1,6 @@
{ {
"name": "@k8slens/generate-tray-icons", "name": "@k8slens/generate-tray-icons",
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "CLI generating tray icons for building a lens-like application", "description": "CLI generating tray icons for building a lens-like application",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@k8slens/eslint-config", "name": "@k8slens/eslint-config",
"version": "^6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "Lens eslint and prettier configurations", "description": "Lens eslint and prettier configurations",
"author": { "author": {
"name": "OpenLens Authors", "name": "OpenLens Authors",

View File

@ -1,7 +1,7 @@
{ {
"name": "@k8slens/jest", "name": "@k8slens/jest",
"private": false, "private": false,
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "Jest configuration and scripts for Lens packages.", "description": "Jest configuration and scripts for Lens packages.",
"type": "commonjs", "type": "commonjs",
"publishConfig": { "publishConfig": {

View File

@ -1,7 +1,7 @@
{ {
"name": "@k8slens/typescript", "name": "@k8slens/typescript",
"private": false, "private": false,
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "Typescript configuration for Lens packages.", "description": "Typescript configuration for Lens packages.",
"type": "commonjs", "type": "commonjs",
"publishConfig": { "publishConfig": {

View File

@ -1,7 +1,7 @@
{ {
"name": "@k8slens/webpack", "name": "@k8slens/webpack",
"private": false, "private": false,
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "Webpack configurations and scripts for Lens packages.", "description": "Webpack configurations and scripts for Lens packages.",
"type": "commonjs", "type": "commonjs",
"publishConfig": { "publishConfig": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@k8slens/node-fetch", "name": "@k8slens/node-fetch",
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "Node fetch for Lens", "description": "Node fetch for Lens",
"license": "MIT", "license": "MIT",
"private": false, "private": false,

View File

@ -4,7 +4,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": "6.5.0-alpha.0", "version": "6.5.0-alpha.2",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/lensapp/lens.git" "url": "git+https://github.com/lensapp/lens.git"
@ -195,15 +195,15 @@
} }
}, },
"dependencies": { "dependencies": {
"@k8slens/application": "^6.5.0-alpha.0", "@k8slens/application": "^6.5.0-alpha.1",
"@k8slens/feature-core": "^6.5.0-alpha.0", "@k8slens/application-for-electron-main": "^6.5.0-alpha.1",
"@k8slens/application-for-electron-main": "^6.5.0-alpha.0", "@k8slens/core": "^6.5.0-alpha.2",
"@k8slens/core": "^6.5.0-alpha.0", "@k8slens/ensure-binaries": "^6.5.0-alpha.1",
"@k8slens/ensure-binaries": "^6.5.0-alpha.0", "@k8slens/feature-core": "^6.5.0-alpha.1",
"@k8slens/generate-tray-icons": "^6.5.0-alpha.0", "@k8slens/generate-tray-icons": "^6.5.0-alpha.1",
"@k8slens/run-many": "^1.0.0", "@k8slens/run-many": "^1.0.0-alpha.1",
"@k8slens/test-utils": "^1.0.0", "@k8slens/test-utils": "^1.0.0-alpha.1",
"@k8slens/utilities": "^1.0.0", "@k8slens/utilities": "^1.0.0-alpha.1",
"@ogre-tools/fp": "^15.1.2", "@ogre-tools/fp": "^15.1.2",
"@ogre-tools/injectable": "^15.1.2", "@ogre-tools/injectable": "^15.1.2",
"@ogre-tools/injectable-extension-for-auto-registration": "^15.1.2", "@ogre-tools/injectable-extension-for-auto-registration": "^15.1.2",
@ -214,7 +214,7 @@
}, },
"devDependencies": { "devDependencies": {
"@electron/rebuild": "^3.2.10", "@electron/rebuild": "^3.2.10",
"@k8slens/node-fetch": "^6.5.0-alpha.0", "@k8slens/node-fetch": "^6.5.0-alpha.1",
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
"@swc/cli": "^0.1.61", "@swc/cli": "^0.1.61",
"@swc/core": "^1.3.37", "@swc/core": "^1.3.37",

View File

@ -1,6 +1,6 @@
{ {
"name": "@k8slens/release-tool", "name": "@k8slens/release-tool",
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.2",
"description": "Release tool for lens monorepo", "description": "Release tool for lens monorepo",
"main": "dist/index.mjs", "main": "dist/index.mjs",
"license": "MIT", "license": "MIT",

View File

@ -158,7 +158,7 @@ async function createReleaseBranchAndCommit(prBase: string, version: SemVer, prB
const prBranch = `release/v${version.format()}`; const prBranch = `release/v${version.format()}`;
await pipeExecFile("git", ["checkout", "-b", prBranch]); await pipeExecFile("git", ["checkout", "-b", prBranch]);
await pipeExecFile("git", ["add", "lerna.json", "packages/*/package.json"]); await pipeExecFile("git", ["add", "packages/*/package.json"]);
await pipeExecFile("git", ["commit", "-sm", `Release ${version.format()}`]); await pipeExecFile("git", ["commit", "-sm", `Release ${version.format()}`]);
await pipeExecFile("git", ["push", "--set-upstream", "origin", prBranch]); await pipeExecFile("git", ["push", "--set-upstream", "origin", prBranch]);

View File

@ -1,6 +1,6 @@
{ {
"name": "@k8slens/semver", "name": "@k8slens/semver",
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "CLI over semver package for picking parts of a version", "description": "CLI over semver package for picking parts of a version",
"license": "MIT", "license": "MIT",
"private": true, "private": true,

View File

@ -1,7 +1,7 @@
{ {
"name": "@k8slens/application", "name": "@k8slens/application",
"private": false, "private": false,
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "Package for creating Lens applications", "description": "Package for creating Lens applications",
"type": "commonjs", "type": "commonjs",
"files": [ "files": [
@ -37,9 +37,8 @@
"@ogre-tools/injectable-extension-for-auto-registration": "^15.1.2", "@ogre-tools/injectable-extension-for-auto-registration": "^15.1.2",
"lodash": "^4.17.15" "lodash": "^4.17.15"
}, },
"devDependencies": { "devDependencies": {
"@async-fn/jest": "^1.6.4", "@async-fn/jest": "^1.6.4",
"@k8slens/eslint-config": "*" "@k8slens/eslint-config": "6.5.0-alpha.1"
} }
} }

View File

@ -1,7 +1,7 @@
{ {
"name": "@k8slens/application-for-electron-main", "name": "@k8slens/application-for-electron-main",
"private": false, "private": false,
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "Electron's main specifics for creating Lens applications", "description": "Electron's main specifics for creating Lens applications",
"type": "commonjs", "type": "commonjs",
"files": [ "files": [
@ -31,16 +31,15 @@
"lint:fix": "lens-lint --fix" "lint:fix": "lens-lint --fix"
}, },
"peerDependencies": { "peerDependencies": {
"@k8slens/feature-core": "^6.5.0-alpha.0",
"@k8slens/application": "^6.5.0-alpha.0", "@k8slens/application": "^6.5.0-alpha.0",
"@k8slens/feature-core": "^6.5.0-alpha.0",
"@ogre-tools/injectable": "^15.1.2", "@ogre-tools/injectable": "^15.1.2",
"@ogre-tools/injectable-extension-for-auto-registration": "^15.1.2", "@ogre-tools/injectable-extension-for-auto-registration": "^15.1.2",
"electron": "^19.1.9" "electron": "^19.1.9"
}, },
"devDependencies": { "devDependencies": {
"@async-fn/jest": "^1.6.4", "@async-fn/jest": "^1.6.4",
"@ogre-tools/test-utils": "^15.1.2", "@k8slens/eslint-config": "6.5.0-alpha.1",
"@k8slens/eslint-config": "*" "@ogre-tools/test-utils": "^15.1.2"
} }
} }

View File

@ -1,15 +1,13 @@
{ {
"name": "@k8slens/feature-core", "name": "@k8slens/feature-core",
"private": false, "private": false,
"version": "6.5.0-alpha.0", "version": "6.5.0-alpha.1",
"description": "Code that is common to all Features and those registering them.", "description": "Code that is common to all Features and those registering them.",
"type": "commonjs", "type": "commonjs",
"publishConfig": { "publishConfig": {
"access": "public", "access": "public",
"registry": "https://registry.npmjs.org/" "registry": "https://registry.npmjs.org/"
}, },
"files": [ "files": [
"dist" "dist"
], ],
@ -35,8 +33,7 @@
"peerDependencies": { "peerDependencies": {
"@ogre-tools/injectable": "^15.1.2" "@ogre-tools/injectable": "^15.1.2"
}, },
"devDependencies": { "devDependencies": {
"@k8slens/eslint-config": "*" "@k8slens/eslint-config": "6.5.0-alpha.1"
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@k8slens/run-many", "name": "@k8slens/run-many",
"version": "1.0.0", "version": "1.0.0-alpha.1",
"type": "commonjs", "type": "commonjs",
"description": "A package containing runMany and runManySync", "description": "A package containing runMany and runManySync",
"publishConfig": { "publishConfig": {
@ -25,8 +25,8 @@
"test": "jest --coverage --runInBand" "test": "jest --coverage --runInBand"
}, },
"peerDependencies": { "peerDependencies": {
"@k8slens/test-utils": "^1.0.0", "@k8slens/test-utils": "^1.0.0-alpha.1",
"@k8slens/utilities": "^1.0.0", "@k8slens/utilities": "^1.0.0-alpha.1",
"@ogre-tools/fp": "^15.1.1", "@ogre-tools/fp": "^15.1.1",
"@ogre-tools/injectable": "^15.1.1" "@ogre-tools/injectable": "^15.1.1"
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "@k8slens/test-utils", "name": "@k8slens/test-utils",
"version": "1.0.0", "version": "1.0.0-alpha.1",
"description": "A collection of utilities for testing", "description": "A collection of utilities for testing",
"type": "commonjs", "type": "commonjs",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -1,7 +1,7 @@
{ {
"name": "@k8slens/utilities", "name": "@k8slens/utilities",
"description": "A collection of useful types", "description": "A collection of useful types",
"version": "1.0.0", "version": "1.0.0-alpha.1",
"type": "commonjs", "type": "commonjs",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",