mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Merge branch 'extensions-api' into feature/telemetry-extension-improvements
This commit is contained in:
commit
f38055413d
@ -5,6 +5,7 @@ export * from "../lens-renderer-extension"
|
|||||||
import type { WindowManager } from "../../main/window-manager";
|
import type { WindowManager } from "../../main/window-manager";
|
||||||
|
|
||||||
// APIs
|
// APIs
|
||||||
|
import * as App from "./app"
|
||||||
import * as EventBus from "./event-bus"
|
import * as EventBus from "./event-bus"
|
||||||
import * as Store from "./stores"
|
import * as Store from "./stores"
|
||||||
import * as Util from "./utils"
|
import * as Util from "./utils"
|
||||||
@ -15,6 +16,7 @@ import * as ClusterFeature from "./cluster-feature"
|
|||||||
export let windowManager: WindowManager;
|
export let windowManager: WindowManager;
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
App,
|
||||||
EventBus,
|
EventBus,
|
||||||
ClusterFeature,
|
ClusterFeature,
|
||||||
Store,
|
Store,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import { app, BrowserWindow, dialog, Menu, MenuItem, MenuItemConstructorOptions, shell, webContents } from "electron"
|
import { app, BrowserWindow, dialog, Menu, MenuItem, MenuItemConstructorOptions, shell, webContents } from "electron"
|
||||||
import { autorun } from "mobx";
|
import { autorun } from "mobx";
|
||||||
import { WindowManager } from "./window-manager";
|
import { WindowManager } from "./window-manager";
|
||||||
import { appName, isMac, issuesTrackerUrl, isWindows, slackUrl } from "../common/vars";
|
import { appName, isMac, isWindows } from "../common/vars";
|
||||||
import { addClusterURL } from "../renderer/components/+add-cluster/add-cluster.route";
|
import { addClusterURL } from "../renderer/components/+add-cluster/add-cluster.route";
|
||||||
import { preferencesURL } from "../renderer/components/+preferences/preferences.route";
|
import { preferencesURL } from "../renderer/components/+preferences/preferences.route";
|
||||||
import { whatsNewURL } from "../renderer/components/+whats-new/whats-new.route";
|
import { whatsNewURL } from "../renderer/components/+whats-new/whats-new.route";
|
||||||
@ -174,30 +174,18 @@ export function buildMenu(windowManager: WindowManager) {
|
|||||||
const helpMenu: MenuItemConstructorOptions = {
|
const helpMenu: MenuItemConstructorOptions = {
|
||||||
role: 'help',
|
role: 'help',
|
||||||
submenu: [
|
submenu: [
|
||||||
{
|
|
||||||
label: "License",
|
|
||||||
click: async () => {
|
|
||||||
shell.openExternal('https://k8slens.dev/licenses/eula.md');
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Community Slack",
|
|
||||||
click: async () => {
|
|
||||||
shell.openExternal(slackUrl);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: 'Report an Issue',
|
|
||||||
click: async () => {
|
|
||||||
shell.openExternal(issuesTrackerUrl);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: "What's new?",
|
label: "What's new?",
|
||||||
click() {
|
click() {
|
||||||
navigate(whatsNewURL())
|
navigate(whatsNewURL())
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "License",
|
||||||
|
click: async () => {
|
||||||
|
shell.openExternal('https://k8slens.dev/licenses/eula.md');
|
||||||
|
},
|
||||||
|
},
|
||||||
...ignoreOnMac([
|
...ignoreOnMac([
|
||||||
{
|
{
|
||||||
label: "About Lens",
|
label: "About Lens",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user