This repository has been archived by the owner on Jun 27, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore(pkg): updated pkg.json with more build & general settings * refactor(ui): moved main html output out to seperate module * refactor(actions): moved actions to seperate folder * refactor(state): extracted export file path determination to simple function * initial output format now determined correctly * feat(error display): added basic display of errors & updated internal plumbing accordingly * fix(design loading): * seperated setting design path from design loading * moved file system interaction to fsWrapper side effect * modified fileWatcher to return the file contents * added potential fix for fileWatcher issues thanks to the above * modified actions & state accordingly * refactor(loadScript): moved out fs.readFileSync, now takes script content & path as input * chore(pkg): added dev launch command for window * chore(ui): modified export message * chore(experiments): added experiments for other useful side effects * closes #14 * closes #13 * closes #11 * closes #10
- Loading branch information
1 parent
7581451
commit d25c349
Showing
13 changed files
with
214 additions
and
123 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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
const i18next = require('i18next') | ||
|
||
const {create} = require('@most/create') | ||
|
||
module.exports = getTranslations = (translationPaths) => { | ||
return create((add, end, error) => { | ||
i18next.init({ | ||
lng: 'en', | ||
resources: translationPaths | ||
}, (err, t) => { | ||
if (err) { | ||
error(err) | ||
} else { | ||
add(t) | ||
} | ||
}) | ||
}) | ||
} |
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,12 @@ | ||
const {ipcRenderer} = require('electron') | ||
var data = ipcRenderer.sendSync('get-file-data') | ||
if (data === null) { | ||
console.log('There is no file') | ||
} else { | ||
// Do something with the file. | ||
console.log(data) | ||
} | ||
ipcRenderer.send('asynchronous-message', 'ping') | ||
ipcRenderer.on('asynchronous-reply', (event, arg) => { | ||
console.log(arg) // prints "pong" | ||
}) |
Oops, something went wrong.