Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
luckjiawei committed Dec 1, 2023
2 parents 8619819 + 4c12c80 commit 1f531ee
Show file tree
Hide file tree
Showing 10 changed files with 640 additions and 343 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@
</p>
</div>

## 里程碑
- 2023-12-01: 发布v1.0.1版本
- 2023-11-28: 发布v1.0版本

## 演示

![connect server](https://github.com/luckjiawei/frpc-desktop/blob/main/demo/conn.png?raw=true)
Expand All @@ -31,11 +35,6 @@

![log](https://github.com/luckjiawei/frpc-desktop/blob/main/demo/log.png?raw=true)

[//]: # (## 里程碑)

[//]: # (- 2023-11-28: 发布v1.0版本)


## License

[MIT](LICENSE)
Expand Down
13 changes: 13 additions & 0 deletions electron/api/file.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import {dialog, ipcMain} from "electron";

export const initFileApi = () => {
ipcMain.handle("file.selectFile", async (event, args) => {
const result = dialog.showOpenDialogSync({
properties: ['openFile'],
filters: [
{name: 'Text Files', extensions: args},
]
})
return result;
});
}
Loading

0 comments on commit 1f531ee

Please sign in to comment.