-
Notifications
You must be signed in to change notification settings - Fork 169
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
Showing
16 changed files
with
155 additions
and
115 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
declare namespace Menu { | ||
/** | ||
* Import Electron types | ||
*/ | ||
type _MenuItemConstructorOptions = import('electron').MenuItemConstructorOptions; | ||
type _MenuItem = import('electron').MenuItem; | ||
type _BrowserWindow = import('electron').BrowserWindow; | ||
|
||
type NativeClick = (item: _MenuItem, window: _BrowserWindow, event: Event) => void; | ||
type CutsomClick = (item: _MenuItemConstructorOptions, window: _BrowserWindow, event: Event) => void; | ||
|
||
interface ParamsId { | ||
id: string; | ||
click?: NativeClick | CutsomClick | ||
} | ||
interface ParamsAction { | ||
action: string; | ||
click?: NativeClick | CutsomClick | ||
} | ||
interface ParamsCommand { | ||
command: string; | ||
click?: NativeClick | CutsomClick | ||
} | ||
|
||
/** | ||
* Public types | ||
*/ | ||
type Params = ParamsId | ParamsAction | ParamsCommand; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "figma-linux", | ||
"version": "0.5.1", | ||
"version": "0.5.3", | ||
"description": "Figma is the first interface design tool based in the browser, making it easier for teams to create software.", | ||
"main": "src/main/index.js", | ||
"repository": "[email protected]:ChugunovRoman/figma-linux.git", | ||
|
@@ -12,7 +12,8 @@ | |
"start": "electron dist/main/main.js", | ||
"build": "rm -rf ./dist; electron-webpack app; rm -rf dist/main/dest dist/renderer/dest dist/**/*.map dist/**/*.bak dist/renderer/index.html dist/.renderer-index-template.html dist/package-lock.json", | ||
"builder": "electron-builder --config=config/builder.json -l", | ||
"pack": "rm -rf build/installers && npm run build && npm run builder" | ||
"pack": "rm -rf build/installers && npm run build && npm run builder", | ||
"postinstall": "npm i figma-linux-bindings" | ||
}, | ||
"electronWebpack": { | ||
"main": { | ||
|
@@ -24,8 +25,8 @@ | |
}, | ||
"dependencies": { | ||
"electron-devtools-installer": "^2.2.4", | ||
"electron-settings": "^3.2.0", | ||
"figma-linux-bindings": "^0.1.15", | ||
"electron-settings": "github:ChugunovRoman/electron-settings#figma-linux", | ||
"figma-linux-bindings": "^0.1.18", | ||
"mobx": "^5.6.0", | ||
"mobx-react": "^5.4.2", | ||
"mobx-state-router": "^4.0.3", | ||
|
@@ -53,7 +54,7 @@ | |
"clean-webpack-plugin": "^0.1.19", | ||
"copy-webpack-plugin": "^4.5.2", | ||
"css-loader": "^0.28.11", | ||
"electron": "^4.1.5", | ||
"electron": "^4.2.8", | ||
"electron-builder": "^20.40.2", | ||
"electron-rebuild": "^1.8.2", | ||
"electron-webpack": "^2.6.1", | ||
|
@@ -65,7 +66,7 @@ | |
"sass-loader": "^7.0.3", | ||
"style-loader": "^0.21.0", | ||
"ts-loader": "^4.4.2", | ||
"typescript": "^2.9.2", | ||
"typescript": "^3.5.3", | ||
"webpack": "^4.14.0", | ||
"webpack-cli": "2.1.5" | ||
}, | ||
|
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
Oops, something went wrong.