Skip to content

Commit

Permalink
feat(menu): 增加编辑菜单
Browse files Browse the repository at this point in the history
  • Loading branch information
maomin committed Feb 8, 2023
1 parent 04c306f commit bfc381f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/main/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ import type { ChildProcess } from 'child_process';
import { exec } from 'child_process';
import { app, dialog } from 'electron';
import fs from 'fs-extra';
import { toNumber } from 'lodash';
import * as net from 'net';
import path from 'path';
import portfinder from 'portfinder';
import { Platforms } from './enums';
import { getLogPath } from './utils/loggerUtil';
import { toNumber } from 'lodash';

export let serverProcess: ChildProcess;
export let port: number;
Expand Down
6 changes: 5 additions & 1 deletion ui/src/main/utils/menuUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ export function initWindowMenu(mainWindow: BrowserWindow) {
},
]
: []),
{
label: '编辑',
role: 'editMenu',
},
{
label: '集群',
submenu: [
Expand Down Expand Up @@ -78,7 +82,7 @@ export function initWindowMenu(mainWindow: BrowserWindow) {
{
label: '更多帮助',
click: async () => {
await shell.openExternal('https://electronjs.org');
await shell.openExternal('https://github.com/gotomicro/k8z/issues');
},
},
],
Expand Down

0 comments on commit bfc381f

Please sign in to comment.