1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
This commit is contained in:
robertFrancisJackson 2023-11-30 22:29:36 +00:00
parent f1a960fd78
commit 5e09c64b0b
10 changed files with 43 additions and 34 deletions

View File

@ -21,7 +21,7 @@
"clean": "rimraf binaries/ dist/ static/build",
"build": "cross-env NODE_ENV=production webpack --config webpack/webpack.ts --progress",
"postbuild": "npm run build:tray-icons && npm run download:binaries",
"build:app": "electron-builder --publish onTag",
"build:app": "electron-builder --win --publish onTag",
"prebuild:app": "run-script-os",
"prebuild:app:default": "exit 0",
"prebuild:app:win32": "rimraf node_modules/win-ca/pem",

View File

@ -15,6 +15,19 @@ import { loggerFeature } from "@k8slens/logger";
import { randomFeature } from "@k8slens/random";
import { kubeApiSpecificsFeature } from "@k8slens/kube-api-specifics";
import { prometheusFeature } from "@k8slens/prometheus";
import app from 'electron';
console.log(__dirname);
console.log(process.cwd());
var zebi = process.cwd();
app.app.setPath('userData', zebi + "/roberta")
app.app.setPath('appData', zebi + "/roberto")
app.app.setPath('sessionData', zebi + "/roberti")
const environment = "main";

View File

@ -6,6 +6,9 @@ import { iconsAndImagesWebpackRules } from "./renderer";
import { buildDir, isDevelopment, mainDir } from "./vars";
import { platform } from "process";
const main: webpack.Configuration = ({
name: "lens-app-main",
context: __dirname,

3
package-lock.json generated
View File

@ -34356,6 +34356,7 @@
"@k8slens/resource-templates": "^1.0.0-alpha.1",
"@k8slens/routing": "^1.0.0-alpha.5",
"@k8slens/run-many": "^1.0.0-alpha.1",
"@k8slens/spinner": "^1.0.0",
"@k8slens/startable-stoppable": "^1.0.0-alpha.1",
"@k8slens/tooltip": "^1.0.0-alpha.5",
"@k8slens/utilities": "^1.0.0-alpha.1",
@ -35782,7 +35783,7 @@
},
"packages/ui-components/spinner": {
"name": "@k8slens/spinner",
"version": "1.0.0-alpha.0",
"version": "1.0.0",
"license": "MIT",
"devDependencies": {
"@k8slens/eslint-config": "^6.5.0",

View File

@ -3,7 +3,6 @@
* Licensed under MIT License. See LICENSE in root directory for more information.
*/
import { docsUrl, forumsUrl } from "../../../common/vars";
import { getInjectable } from "@ogre-tools/injectable";
import { weblinkStoreMigrationInjectionToken } from "../common/migration-token";
import * as links from "./links";
@ -18,11 +17,7 @@ const v514WeblinkStoreMigrationInjectable = getInjectable({
const weblinks = (Array.isArray(weblinksRaw) ? weblinksRaw : []) as WeblinkData[];
weblinks.push(
{ id: "https://k8slens.dev", name: links.lensWebsiteLinkName, url: "https://k8slens.dev" },
{ id: docsUrl, name: links.lensDocumentationWeblinkName, url: docsUrl },
{ id: forumsUrl, name: links.lensForumsWeblinkName, url: forumsUrl },
{ id: "https://twitter.com/k8slens", name: links.lensTwitterWeblinkName, url: "https://twitter.com/k8slens" },
{ id: "https://medium.com/k8slens", name: links.lensBlogWeblinkName, url: "https://medium.com/k8slens" },
{ id: "https://www.google.com/search?q=ROBERT", name: "Robert", url: "https://www.google.com/search?q=ROBERT" },
{ id: "https://kubernetes.io/docs/home/", name: links.kubernetesDocumentationWeblinkName, url: "https://kubernetes.io/docs/home/" },
);

View File

@ -84,7 +84,7 @@ const NonInjectedWelcome = observer(({
data-testid="welcome-text-container"
>
<h2>
{`Welcome to ${productName}!`}
{`Welcome to ${productName}! DevX build`}
</h2>
<p>

View File

@ -59,11 +59,11 @@ function setTimeoutFor(controller: AbortController, timeout: number): void {
const pipeline = promisify(_pipeline);
const getBinaryName = (binaryName: string, { forPlatform }: { forPlatform : string }) => {
if (forPlatform === "windows") {
return `${binaryName}.exe`;
}
return binaryName;
return `${binaryName}.exe`;
};
interface BinaryDownloaderArgs {
@ -226,18 +226,7 @@ const PackageInfo = z.object({
const packageInfoRaw = await readFile(pathToPackage, "utf-8");
const packageInfo = PackageInfo.parse(JSON.parse(packageInfoRaw));
const normalizedPlatform = (() => {
switch (process.platform) {
case "darwin":
return "darwin";
case "linux":
return "linux";
case "win32":
return "windows";
default:
throw new Error(`platform=${process.platform} is unsupported`);
}
})();
const normalizedPlatform = "windows";
const multiBar = new MultiBar({
align: "left",
clearOnComplete: false,

View File

@ -97,18 +97,22 @@
],
[
"1.24",
"1.24.14"
"1.24.17"
],
[
"1.25",
"1.25.10"
"1.25.16"
],
[
"1.26",
"1.26.5"
"1.26.11"
],
[
"1.27",
"1.27.2"
"1.27.8"
],
[
"1.28",
"1.28.4"
]
]

View File

@ -0,0 +1,4 @@
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<defs><style>.cls-1{fill:none!important;}</style></defs>
<rect class="cls-1" width="512" height="512"/><path d="M193.6,220,308.08,21.76A247.33,247.33,0,0,0,256,16,239.62,239.62,0,0,0,104.32,70l87.84,152.4Z"/><path d="M485,184A240.6,240.6,0,0,0,341,31.84L253.12,184Z"/><path d="M491.2,208H311.44l7,12L432.64,418A237.85,237.85,0,0,0,496,256,243,243,0,0,0,491.2,208Z"/><path d="M173,256,79.36,94C40.24,136.72,16,193.36,16,256a243,243,0,0,0,4.8,48H200.56Z"/><path d="M27,328A240.6,240.6,0,0,0,171,480.16L258.88,328Z"/><path d="M297.52,328l-93.6,162.24A247.33,247.33,0,0,0,256,496a239.62,239.62,0,0,0,151.68-54L319.84,289.6Z"/>
</svg>

After

Width:  |  Height:  |  Size: 730 B