-
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
c3907ee
commit 324354a
Showing
25 changed files
with
137 additions
and
50 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
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# @pear-rec/desktop | ||
|
||
## 1.3.6 | ||
|
||
feat: 修改GIF | ||
|
||
## 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
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,45 @@ | ||
import { BrowserWindow, dialog, shell, DownloadItem, WebContents } from 'electron'; | ||
import { join, dirname } from 'node:path'; | ||
import { ICON, DIST, preload, url, WEB_URL } from '../main/contract'; | ||
|
||
const editGifHtml = join(DIST, './editGif.html'); | ||
let editGifWin: BrowserWindow | null = null; | ||
|
||
function createEditGifWin(search?: any): BrowserWindow { | ||
editGifWin = new BrowserWindow({ | ||
title: 'pear-rec 动图编辑', | ||
icon: ICON, | ||
height: 768, | ||
width: 1024, | ||
autoHideMenuBar: true, // 自动隐藏菜单栏 | ||
webPreferences: { | ||
preload, | ||
}, | ||
}); | ||
|
||
const videoUrl = search?.videoUrl || ''; | ||
|
||
// editGifWin.webContents.openDevTools(); | ||
if (url) { | ||
editGifWin.loadURL(WEB_URL + `editGif.html?videoUrl=${videoUrl}`); | ||
} else { | ||
editGifWin.loadFile(editGifHtml, { | ||
search: `?videoUrl=${videoUrl}`, | ||
}); | ||
} | ||
|
||
return editGifWin; | ||
} | ||
|
||
function openEditGifWin(search?: any) { | ||
if (!editGifWin || editGifWin?.isDestroyed()) { | ||
editGifWin = createEditGifWin(search); | ||
} | ||
editGifWin.show(); | ||
} | ||
|
||
function closeEditGifWin() { | ||
editGifWin?.close(); | ||
} | ||
|
||
export { createEditGifWin, openEditGifWin, closeEditGifWin }; |
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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# @pear-rec/web | ||
|
||
## 1.3.9 | ||
|
||
feat: 修改GIF | ||
|
||
## 1.3.8 | ||
|
||
fix: 修改图片和钉图打不开bug | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.