-
Notifications
You must be signed in to change notification settings - Fork 114
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
1 parent
33b4dc4
commit 52e2ecc
Showing
7 changed files
with
133 additions
and
97 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
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,25 @@ | ||
import { type UtilityProcess, utilityProcess } from 'electron'; | ||
import { url, serverPath } from './contract'; | ||
|
||
let serverProcess: null | UtilityProcess = null; | ||
|
||
export function initServerProcess() { | ||
serverProcess = | ||
url || | ||
utilityProcess.fork(serverPath, [], { | ||
stdio: 'pipe', | ||
}); | ||
|
||
serverProcess.on?.('spawn', () => { | ||
serverProcess.stdout?.on('data', (data) => { | ||
console.log(`serverProcess output: ${data}`); | ||
}); | ||
serverProcess.stderr?.on('data', (data) => { | ||
console.error(`serverProcess err: ${data}`); | ||
}); | ||
}); | ||
} | ||
|
||
export function quitServerProcess() { | ||
serverProcess?.kill(); | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,9 @@ | ||
# @pear-rec/web | ||
|
||
## 1.3.6 | ||
|
||
perf: 优化录制全屏 | ||
|
||
## 1.3.5 | ||
|
||
feat: 截图钉图 | ||
|
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
69 changes: 41 additions & 28 deletions
69
packages/web/src/pages/recorderFullScreen/index.module.scss
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,43 +1,56 @@ | ||
.recorderFullScreen { | ||
display: flex; | ||
align-items: center; | ||
border-radius: 5px; | ||
background-color: rgba(#eee, 0.1); | ||
|
||
height: 35px; | ||
:global { | ||
.recordIcon { | ||
font-size: 18px; | ||
width: 32px; | ||
padding: 4px 0; | ||
} | ||
.ant-btn { | ||
padding-top: 5px; | ||
.ant-btn-icon .anticon { | ||
font-size: 18px; | ||
} | ||
} | ||
.singleDigit { | ||
background-color: transparent; | ||
} | ||
.recorderTools { | ||
.recordTool { | ||
display: flex; | ||
align-items: center; | ||
.pauseBtn, | ||
.stopBtn, | ||
.playBtn { | ||
padding-top: 2px; | ||
color: #1677ff; | ||
.ant-btn-icon { | ||
font-size: 26px; | ||
background-color: rgba(#eee, 0.1); | ||
.recordIcon { | ||
font-size: 18px; | ||
width: 32px; | ||
padding: 4px 0; | ||
} | ||
.ant-btn { | ||
padding-top: 5px; | ||
.ant-btn-icon .anticon { | ||
font-size: 18px; | ||
} | ||
} | ||
.stopBtn { | ||
color: red; | ||
.singleDigit { | ||
background-color: transparent; | ||
} | ||
.recorderTools { | ||
display: flex; | ||
align-items: center; | ||
.pauseBtn, | ||
.stopBtn, | ||
.playBtn { | ||
padding-top: 2px; | ||
color: #1677ff; | ||
.ant-btn-icon { | ||
font-size: 26px; | ||
} | ||
} | ||
.stopBtn { | ||
color: red; | ||
} | ||
} | ||
} | ||
.recording { | ||
height: 0px; | ||
overflow: hidden; | ||
border-bottom: 2px solid #eee; | ||
} | ||
} | ||
} | ||
|
||
.recorderFullScreen:hover { | ||
background-color: rgba(#fff, 0.5); | ||
:global { | ||
.recordTool { | ||
height: 35px; | ||
border-bottom: 0; | ||
} | ||
} | ||
} |
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