-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
electron 10 und Änderungen am Configstore
- Loading branch information
Showing
6 changed files
with
62 additions
and
54 deletions.
There are no files selected for viewing
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
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,30 +1,32 @@ | ||
import { writable } from 'svelte/store'; | ||
import configFile from './configstore'; | ||
import { writable } from "svelte/store"; | ||
import { ipcRenderer } from 'electron'; | ||
|
||
export const configData = writable(configFile.store); | ||
configData.subscribe(value => { | ||
configFile.set(value) | ||
export const configData = writable(); | ||
ipcRenderer.invoke("get_store").then((res) => { | ||
configData.set(res); | ||
configData.subscribe((value) => { | ||
ipcRenderer.invoke("set_store", value); | ||
}); | ||
}); | ||
|
||
export const klasse = writable() | ||
export const schueler = writable() | ||
export const schueler_sortiert = writable() | ||
export const selected = writable() | ||
export const reload = writable(1) | ||
export const abschnitt = writable() | ||
export const jahr = writable() | ||
export const plugin = writable() | ||
export const plugin_entry = writable() | ||
export const dokument = writable() | ||
export const repo = writable() | ||
export const set_mark = writable(true) | ||
export const set_edit = writable() | ||
export const error = writable() | ||
export const kommentar = writable() | ||
export const pdf_name = writable() | ||
export const generic_pdf = writable() | ||
export const user = writable() | ||
export const component = writable() | ||
export const connected = writable() | ||
export const webview = writable() | ||
export const warten = writable() | ||
export const klasse = writable(); | ||
export const schueler = writable(); | ||
export const schueler_sortiert = writable(); | ||
export const selected = writable(); | ||
export const reload = writable(1); | ||
export const abschnitt = writable(); | ||
export const jahr = writable(); | ||
export const plugin = writable(); | ||
export const plugin_entry = writable(); | ||
export const dokument = writable(); | ||
export const repo = writable(); | ||
export const set_mark = writable(true); | ||
export const set_edit = writable(); | ||
export const error = writable(); | ||
export const kommentar = writable(); | ||
export const pdf_name = writable(); | ||
export const generic_pdf = writable(); | ||
export const user = writable(); | ||
export const component = writable(); | ||
export const connected = writable(); | ||
export const webview = writable(); | ||
export const warten = writable(); |