-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ch1ny/feat/app-modify-image
feat(app): 支持用户对置信度不高的图片进行手动修正
- Loading branch information
Showing
17 changed files
with
334 additions
and
60 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"cSpell.words": [ | ||
"cropperjs", | ||
"Deque", | ||
"fullscreen", | ||
"imgcodecs", | ||
|
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 |
---|---|---|
@@ -1,36 +1,38 @@ | ||
{ | ||
"name": "omr-img-corrector", | ||
"private": true, | ||
"version": "0.9.1", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"preview": "vite preview", | ||
"tauri": "tauri", | ||
"iss": "./setup/Compiler/Compiler.exe /cc ./setup/setup.iss", | ||
"preiss": "git submodule update --remote", | ||
"dist": "tauri build&&yarn iss" | ||
}, | ||
"dependencies": { | ||
"@emotion/react": "^11.10.6", | ||
"@emotion/styled": "^11.10.6", | ||
"@mui/material": "^5.11.16", | ||
"@tauri-apps/api": "^1.2.0", | ||
"classnames": "^2.3.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.8.1" | ||
}, | ||
"devDependencies": { | ||
"@tauri-apps/cli": "^1.2.2", | ||
"@types/node": "^18.7.10", | ||
"@types/react": "^18.0.15", | ||
"@types/react-dom": "^18.0.6", | ||
"@vitejs/plugin-react": "^3.0.0", | ||
"@vitejs/plugin-react-swc": "^3.2.0", | ||
"less": "^4.1.3", | ||
"typescript": "^4.6.4", | ||
"vite": "^4.0.0" | ||
} | ||
} | ||
{ | ||
"name": "omr-img-corrector", | ||
"private": true, | ||
"version": "1.0.0", | ||
"type": "module", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc && vite build", | ||
"preview": "vite preview", | ||
"tauri": "tauri", | ||
"iss": "node ./setup/setup.cjs", | ||
"preiss": "git submodule update --init --remote --recursive", | ||
"dist": "tauri build&&pnpm iss" | ||
}, | ||
"dependencies": { | ||
"@emotion/react": "^11.10.6", | ||
"@emotion/styled": "^11.10.6", | ||
"@mui/material": "^5.11.16", | ||
"@tauri-apps/api": "^1.2.0", | ||
"classnames": "^2.3.2", | ||
"cropperjs": "^1.5.13", | ||
"react": "^18.2.0", | ||
"react-cropper": "^2.3.3", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.8.1" | ||
}, | ||
"devDependencies": { | ||
"@tauri-apps/cli": "^1.2.2", | ||
"@types/node": "^18.7.10", | ||
"@types/react": "^18.0.15", | ||
"@types/react-dom": "^18.0.6", | ||
"@vitejs/plugin-react": "^3.0.0", | ||
"@vitejs/plugin-react-swc": "^3.2.0", | ||
"less": "^4.1.3", | ||
"typescript": "^4.6.4", | ||
"vite": "^4.0.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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,13 @@ | ||
import { WebviewWindow } from '@tauri-apps/api/window'; | ||
|
||
export default async function (taskId: number, src: string) { | ||
const webview = new WebviewWindow(`modify-${taskId}`, { | ||
title: `人工审查 - ${src}`, | ||
url: `views/modify.html?src=${encodeURIComponent(src)}`, | ||
width: 600, | ||
height: 650, | ||
center: true, | ||
resizable: false, | ||
}); | ||
webview.setFocus(); | ||
} |
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,34 @@ | ||
.app { | ||
width: 100vw; | ||
height: 100vh; | ||
overflow: hidden; | ||
display: flex; | ||
flex-direction: column; | ||
|
||
.editorWrapper { | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
justify-content: center; | ||
} | ||
|
||
.panel { | ||
width: 100%; | ||
height: 15rem; | ||
padding: 0.15rem 1.5rem; | ||
box-sizing: border-box; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
|
||
.rotate { | ||
display: flex; | ||
} | ||
|
||
.buttons { | ||
width: 100%; | ||
display: flex; | ||
justify-content: space-evenly; | ||
} | ||
} | ||
} |
Oops, something went wrong.