Skip to content

Commit 8a234d2

Browse files
committed
Code cleanup
1 parent d7936c6 commit 8a234d2

File tree

5 files changed

+7
-14
lines changed

5 files changed

+7
-14
lines changed

main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ app.whenReady().then(async () => {
4141
ipcMain.handle('get-protocol-url', () => decodeURIComponent(process.argv[2]?.split('://')[1] ?? ''));
4242

4343
const move_classification_engine = new Engine((...args) => window.webContents.send('move-classification-evaluation-callback', ...args));
44-
ipcMain.handle('evaluate-for-move-classification', async (event, ...args) => move_classification_engine.evaluate(...args));
44+
ipcMain.handle('evaluate-for-move-classification', async (event, ...args) => await move_classification_engine.evaluate(...args));
4545

4646
const live_analysis_engine = new Engine((...args) => window.webContents.send('live-analysis-evaluation-callback', ...args));
47-
ipcMain.handle('evaluate-for-live-analysis', async (event, ...args) => live_analysis_engine.evaluate(...args));
47+
ipcMain.handle('evaluate-for-live-analysis', async (event, ...args) => await live_analysis_engine.evaluate(...args));
4848

4949
await window.loadFile('index.html');
5050
});

package-lock.json

-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"electron": "^28.1.3",
4040
"electron-context-menu": "^3.6.1",
4141
"electron-store": "^8.1.0",
42-
"lodash-es": "^4.17.21",
4342
"tinycolor2": "^1.6.0",
4443
"vue": "^3.4.19",
4544
"vue-chartjs": "^5.3.0",

preload.cjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ const store = new Store();
77
contextBridge.exposeInMainWorld('electron', {
88
getProtocolUrl: () =>
99
ipcRenderer.invoke('get-protocol-url'),
10-
evaluateForMoveClassification: (...args) =>
11-
ipcRenderer.invoke('evaluate-for-move-classification', ...args),
10+
evaluateForMoveClassification: async (...args) =>
11+
await ipcRenderer.invoke('evaluate-for-move-classification', ...args),
1212
setMoveClassificationEvaluationCallback: callback =>
1313
ipcRenderer.removeAllListeners('move-classification-evaluation-callback').on('move-classification-evaluation-callback', (event, ...args) => callback(...args)),
14-
evaluateForLiveAnalysis: (...args) =>
15-
ipcRenderer.invoke('evaluate-for-live-analysis', ...args),
14+
evaluateForLiveAnalysis: async (...args) =>
15+
await ipcRenderer.invoke('evaluate-for-live-analysis', ...args),
1616
setLiveAnalysisEvaluationCallback: callback =>
1717
ipcRenderer.removeAllListeners('live-analysis-evaluation-callback').on('live-analysis-evaluation-callback', (event, ...args) => callback(...args)),
1818
store: {

src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import ChartPanel from './components/ChartPanel';
4040
import LoadPanel from './components/LoadPanel';
4141
import MaterialDifferencePanel from './components/MaterialDifferencePanel';
42-
import MoveHistoryPanel from './components/MoveHistoryPanel/index';
42+
import MoveHistoryPanel from './components/MoveHistoryPanel';
4343
import ReviewPanel from './components/ReviewPanel';
4444
4545
function provideReactively({ data = {}, computed = {}, methods = {} }) {

0 commit comments

Comments
 (0)