-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 8f6f32a
Showing
33 changed files
with
38,813 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
> 1% | ||
last 2 versions | ||
not dead |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
module.exports = { | ||
root: true, | ||
env: { | ||
node: true, | ||
}, | ||
extends: [ | ||
'plugin:vue/vue3-essential', | ||
'eslint:recommended', | ||
'@vue/typescript/recommended', | ||
'@vue/prettier', | ||
'@vue/prettier/@typescript-eslint', | ||
], | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
}, | ||
rules: { | ||
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', | ||
'no-var': 'off', | ||
'no-unused-vars': 'off', | ||
'no-extra-boolean-cast': 'off', | ||
'no-control-regex': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
'@typescript-eslint/no-inferrable-types': 'off', | ||
'@typescript-eslint/camelcase': 'off', | ||
'@typescript-eslint/no-var-requires': 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
'@typescript-eslint/no-this-alias': 'off', | ||
'@typescript-eslint/ban-ts-ignore': 'off', | ||
'@typescript-eslint/no-use-before-define': 'off', | ||
'@typescript-eslint/explicit-module-boundary-types': 'off', | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
endOfLine: 'auto', | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
.DS_Store | ||
node_modules | ||
/dist | ||
|
||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
#Electron-builder output | ||
/dist_electron |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": true, | ||
"arrowParens": "always", | ||
"useTabs": false, | ||
"tslintIntegration": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# MCPL Editor | ||
|
||
A workaround to support UTF-8 comments in MultiCharts's PL Editor. | ||
|
||
## WARNING | ||
* Use at your own risk! | ||
* Make sure you backup/export all your scripts before using this app! | ||
|
||
## Download | ||
[Go to release page to download](https://github.com/vigorox/mcpl-editor/releases) | ||
|
||
## Known Issues | ||
* The opened script in PL Editor will not automatically reload/refresh after saving in MCPL Editor. It is required to manually close and re-open the script in PL Editor to update. | ||
* A simple app takes about 200MB space of the disk. | ||
* Only tested on Windows 11. | ||
* Limited keyword highlighting support. | ||
* Unable to compile or debug the script in MCPL Editor. | ||
* Other potential issues. | ||
|
||
|
||
## Project setup | ||
|
||
``` | ||
npm install | ||
``` | ||
|
||
### Debug in Electron | ||
|
||
``` | ||
npm run electron:serve | ||
``` | ||
|
||
### Build Electron | ||
|
||
``` | ||
npm run electron:build | ||
``` | ||
|
||
|
||
# 中文說明 | ||
|
||
MultiCharts的PL Editor無法使用中文註解的折衷方案 | ||
|
||
![image](https://raw.githubusercontent.com/vigorox/mcpl-editor/master/images/mcpl-editor-demo.png) | ||
|
||
## 警告 | ||
***使用此軟體風險請自負,建議使用前先備份匯出所有的程式!*** | ||
|
||
## 安裝 | ||
請到[Release頁面](https://github.com/vigorox/mcpl-editor/releases)下載MCPL-Editor.exe並點擊即會安裝 | ||
|
||
## 說明 | ||
中文註解在PL Editor中會顯示為編碼過的文字,如 "報價" 會顯示為以下文字 | ||
``` | ||
\u{e5a0b1}\u{e583b9} | ||
``` | ||
|
||
## 已知問題 | ||
* 若PL Editor已開啟某一程式碼A,並在MCPL-Editor中讀出並修改儲存該程式碼A,在PL-Editor視窗中的程式碼A並不會自動更新,需手動關閉後重新開啟,才會更新。 | ||
* 此程式佔用約200MB的硬碟空間。 | ||
* 只在Windows 11上測試過。 | ||
* 有限的關鍵字高亮度支援。 | ||
* 無法在MCPL Editor中編譯或除錯程式碼。 | ||
* 可能會被防毒軟體誤判為惡意程式。 | ||
* 其他潛在問題。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
presets: ["@vue/cli-plugin-babel/preset"], | ||
}; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.