Compare commits

...

3 Commits

Author SHA1 Message Date
muruichao f9932e3dee update README.md.
Signed-off-by: muruichao <muruichao@kylinos.cn>
2024-04-29 15:39:42 +08:00
dinglili e89bc85cba 添加最小化按钮 2024-04-29 15:39:42 +08:00
dinglili 6bcea09daf 修改readme,添加新增功能介绍 2024-04-29 15:39:42 +08:00
12 changed files with 63 additions and 13 deletions

View File

@ -12,9 +12,25 @@
* [IDE基础平台-仓库链接](https://gitee.com/chriswang521/kylin-ide)
* [IDE基础平台-下载链接](https://gitee.com/chriswang521/kylin-ide/releases)
- [汇总仓库openKylin extensions-repo](https://gitee.com/openkylin/extensions-repo)
* [插件手动下载地址(KylinIDETeam目录)](https://gitee.com/openkylin/extensions-repo/tree/master/KylinIDETeam)
* [用户帮助文档地址(user-guide目录)](https://gitee.com/openkylin/extensions-repo/blob/master/user-guide/%E7%9B%AE%E5%BD%95.md)
* [插件手动下载地址(KylinIDETeam目录)](https://gitee.com/openkylin/extensions-repo/tree/master/KylinIDETeam)
* [用户帮助文档地址(user-guide目录)](https://gitee.com/openkylin/extensions-repo/blob/master/user-guide/%E7%9B%AE%E5%BD%95.md)
- openKylin Framework SIG组月度例会
* 欢迎参加月度例会讨论Kylin-Code及其插件规划和发展思路、讨论IDE发展方向
* 例会时间每个月的第2个周二下午14:00如遇到节假日顺延到下一个周二
* 例会会议号会在openKylin官网公布[点此链接,在主页找到“社区日程”,点击日历的对应日期查看](https://www.openkylin.top/index-cn.html)
## 新增功能介绍
- **安装引导**
* 安装引导功能用于引导用户根据开发场景安装基础功能插件、安装依赖软件、配置基本开发环境。
* 支持在线安装,需要连接互联网下载插件和依赖软件
* 仅支持Openkylin X86操作系统
* 安装使用
- 安装Kylin-Code v0.3.0或0.3.0以上版本
- Kylin-Code首次启动显示安装引导界面非首次启动点击菜单栏中的帮助->打开安装器选项显示安装引导界面
- ![安装引导界面](./imgs/readme-img/instGuide_1.jpg)
- 根据提示选择开发场景,进行插件和依赖软件下载安装,配置基本开发环境
- ![开发场景](./imgs/readme-img/instGuide_2.jpg)
- 详细见[用户帮助文档相关章节](https://gitee.com/openkylin/extensions-repo/blob/master/user-guide/files/新功能.md)
## Kylin-Code支持的平台
- 支持X86架构

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

0
instguide.log Normal file
View File

View File

@ -449,6 +449,7 @@ export class CodeApplication extends Disposable {
this.openInstallWizard(false);
}
else {
this.win.show();
this.win.focus();
}
});
@ -1384,6 +1385,7 @@ export class CodeApplication extends Disposable {
ipcMain.removeAllListeners('kylinide.installWizard.justDownLoad');
ipcMain.removeAllListeners('kylinide.installWizard.removeFileLister');
ipcMain.removeAllListeners('kylinide.installWizard.show');
ipcMain.removeAllListeners('kylinide.installWizard.minw');
//读取selectfile.json中selecdir的值如果值不同则删除当前的时间戳目录
if (updateConfigDir) {
console.log("updateConfig:" + updateConfigDir)
@ -1445,6 +1447,11 @@ export class CodeApplication extends Disposable {
this.win.close();
resolve(void 0);
});
//最小化窗口
ipcMain.on('kylinide.installWizard.minw', async (evevt) => {
if (this.win && this.win != undefined)
this.win.minimize();
});
//渲染进程发送删除文件的命令
ipcMain.on('kylinide.installWizard.cleanDir', async (event, arg) => {

View File

@ -0,0 +1 @@
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8 8.707l3.646 3.647.708-.707L8.707 8l3.647-3.646-.707-.708L8 7.293 4.354 3.646l-.707.708L7.293 8l-3.646 3.646.707.708L8 8.707z"/></svg>

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 133 B

View File

@ -104,9 +104,24 @@
margin: 5px;
}
.minw {
width: 15px;
height: 25px;
float: right;
-webkit-app-region: no-drag;
cursor: pointer;
margin: 5px;
text-align: center;
opacity:0.5;
background: url(../images/minw.png) no-repeat;
display:flex;
justify-content:center;
align-items:center;
background-position:center;
}
.close {
width: 25px;
width: 20px;
height: 25px;
float: right;
-webkit-app-region: no-drag;
@ -114,16 +129,21 @@
margin: 5px;
text-align: center;
opacity:0.5;
background: url(../images/close_gray.png) no-repeat;
background: url(../images/close_white.png) no-repeat;
display:flex;
justify-content:center;
align-items:center;
background-position:center;
}
.close:hover{
.close:hover , .minw:hover{
opacity:1;
transform: scale(1.2);
}
.dark .close {
background: url(../images/close.png);
}
/* .dark .close {
background: url(../images/close.svg);
} */
/*页面中间区域 start {*/

View File

@ -14,6 +14,7 @@
<div class="header">
<div class="title" id="title"></div>
<div class="close" id="closeBtn"></div>
<div class="minw" id="minwBtn"></div>
</div>
<div class="bodycontent">
<div class="content">

View File

@ -51,8 +51,13 @@ document.getElementById('closeBtn').addEventListener('click', () => {
ipcRenderer.send('kylinide.installWizard.closeWizard', { type: "close" });
removeAllListeners();
}
});
/**
* 窗口最小化按钮动作
*/
document.getElementById('minwBtn').addEventListener('click', () => {
ipcRenderer.send('kylinide.installWizard.minw', { type: "minw" });
});
document.getElementById('helpLink').addEventListener('click', (e) => {

View File

@ -2,10 +2,10 @@ const os = require('os');
const fs = require('fs');
const log4js = require('log4js');
log4js.configure({
appenders: { file: { type: 'file', filename: 'instguide.log' } },
categories: { default: { appenders: ['file'], level: 'info' } }
});
// log4js.configure({
// appenders: { file: { type: 'file', filename: 'instguide.log' } },
// categories: { default: { appenders: ['file'], level: 'info' } }
// });
// 获取用户目录
const userHome = os.homedir();