Skip to content

Commit b18b495

Browse files
committed
feat: v1.3.2
1 parent 4180c07 commit b18b495

File tree

11 files changed

+13
-9
lines changed

11 files changed

+13
-9
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: Update version in manifest file
3939
run: |
40-
sed -i "s/version=1.0.0/version=${{ steps.read_version.outputs.version }}/" app/manifest
40+
sed -i "s/version=0.0.1/version=${{ steps.read_version.outputs.version }}/" app/manifest
4141
4242
- name: Build Package
4343
run: |

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# 更新日志
22

3+
## 1.3.2
4+
5+
- 优化:使用 root 加载,避免资源权限问题
6+
37
## 1.3.1
48

59
- 新增打开不存在文件,编辑后可选择新增并保存

app/app/ui/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"title": "代码编辑器",
55
"icon": "images/icon_{0}.png",
66
"type": "iframe",
7-
"url": "/cgi/ThirdParty/code.editor/api.cgi/",
7+
"url": "/cgi/ThirdParty/code.editor/index.cgi/",
88
"allUsers": true,
99
"noDisplay": false,
1010
"fileTypes": [
File renamed without changes.

app/config/privilege

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"defaults": {
3-
"run-as": "package"
3+
"run-as": "root"
44
}
55
}

app/manifest

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
appname=code.editor
2-
version=1.0.0
2+
version=0.0.1
33
desc=`<div>VS Code 同源库,支持多种编码文件的操作,更有语法高亮、代码补全。</div>
44
<div>text、txt、js、ts、html、htm、css、scss、less、json、md、py、java、c、cpp、cc、cxx、go、rs、php、rb、sh、sql、xml、yaml、yml、vue 后缀文件直接双击文件或右键选择代码编辑器打开。</div><div>非上述后缀文件,右键【详细信息】-【复制原始路径】,点击桌面图标访问后粘贴路径打开。</div>
5-
<div>提示:编辑用户目录中的文件需【系统设置】-【应用】-【代码编辑器】进行文件夹授权,应用文件夹中目录下可直接编辑;</div><div>提示:移动端暂未做 UI 适配,访问可能布局错乱;访问二进制文件将显示乱码,请谨慎操作。</div>`
5+
<div>提示:移动端暂未做 UI 适配,访问可能布局错乱;访问二进制文件将显示乱码,请谨慎操作。</div>`
66
arch=x86_64
77
display_name=代码编辑器
88
maintainer=Flex_7746

backend/src/cgi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ async function getData() {
77
const env = process.env;
88

99
const assets = env.PATH_INFO.replace(
10-
"/cgi/ThirdParty/code.editor/api.cgi",
10+
"/cgi/ThirdParty/code.editor/index.cgi",
1111
""
1212
);
1313

code.editor.fpk

-20.8 MB
Binary file not shown.

frontend/src/utils/env.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export const IS_DEV = import.meta.env.MODE === 'development'
22

3-
export const HOST = IS_DEV ? 'http://127.0.0.1:17746' : '/cgi/ThirdParty/code.editor/api.cgi'
3+
export const HOST = IS_DEV ? 'http://127.0.0.1:17746' : '/cgi/ThirdParty/code.editor/index.cgi'

frontend/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import AutoImport from 'unplugin-auto-import/vite'
1010
import Components from 'unplugin-vue-components/vite'
1111
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'
1212

13-
const CGI_PATH = '/cgi/ThirdParty/code.editor/api.cgi/'
13+
const CGI_PATH = '/cgi/ThirdParty/code.editor/index.cgi/'
1414

1515
export default defineConfig({
1616
base: CGI_PATH,

0 commit comments

Comments
 (0)