Skip to content

Commit

Permalink
Fix console log
Browse files Browse the repository at this point in the history
  • Loading branch information
hockyy committed Dec 29, 2022
1 parent 1bdda94 commit 6df80d3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 19 deletions.
4 changes: 0 additions & 4 deletions main/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,6 @@ if (isProd) {
return okSetup;
}

ipcMain.handle('getShunou', async (event, mecab, text) => {
return getFurigana(text, mecab)
})

ipcMain.handle('getMecabCommand', async (event, mecab, text) => {
return mecabCommand
})
Expand Down
1 change: 0 additions & 1 deletion renderer/components/DataStructures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export class Line {
this.timeEnd = end
if (isInJapanese) {
this.content = getFurigana(strContent, mecab)
console.log(this.content)
} else {
this.content = strContent
}
Expand Down
28 changes: 14 additions & 14 deletions renderer/pages/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const initialCheck = {ok: 0, message: 'Check is not run yet'}

function Home() {
const [dicdir, setDicdir] = useState('');
const [mecab, setMecab] = useState('mecab');
const [jmdict, setJmdict] = useState('');
const [mecab, setMecab] = useState('/opt/homebrew/bin/mecab');
const [jmdict, setJmdict] = useState('/Users/hocky/Downloads/jmdict-eng-3.2.0-alpha.1.json');
const [check, setCheck] = useState(initialCheck);
return (
<React.Fragment>
Expand Down Expand Up @@ -122,18 +122,18 @@ function Home() {

Remove JMDict Cache
</button>
<button
type={"button"}
className='bg-green-600 p-3 rounded-sm bg-green-700'
onClick={() => {
const text = '木ぃ切って 月収6万だろ~'
ipcRenderer.invoke('getShunou', mecab, text).then(val => {
console.log(val)
})
}
}>
tmp
</button>
{/*<button*/}
{/* type={"button"}*/}
{/* className='bg-green-600 p-3 rounded-sm bg-green-700'*/}
{/* onClick={() => {*/}
{/* const text = '木ぃ切って 月収6万だろ~'*/}
{/* ipcRenderer.invoke('getShunou', mecab, text).then(val => {*/}
{/* console.log(val)*/}
{/* })*/}
{/* }*/}
{/* }>*/}
{/* tmp*/}
{/*</button>*/}
<Link href='/video'>
<button
type={"button"}
Expand Down

0 comments on commit 6df80d3

Please sign in to comment.