This repository has been archived by the owner on Apr 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 137
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
12 changed files
with
194 additions
and
117 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 |
---|---|---|
@@ -1,7 +1,32 @@ | ||
export default { | ||
// Settings | ||
SETTING_SET_SETTINGS: 'setting.set.settings', | ||
SETTING_SHOW_ERROR: 'setting.show.error', | ||
SETTING_SWITCH_TO_FORM: 'setting.switch.to.form', | ||
SETTING_SWITCH_TO_JSON: 'setting.switch.to.json', | ||
}; | ||
// Settings | ||
export const SETTING_SET_SETTINGS = 'setting.set.settings'; | ||
export const SETTING_SHOW_ERROR = 'setting.show.error'; | ||
export const SETTING_SWITCH_TO_FORM = 'setting.switch.to.form'; | ||
export const SETTING_SWITCH_TO_JSON = 'setting.switch.to.json'; | ||
|
||
interface SettingSetSettingsAcion { | ||
type: typeof SETTING_SET_SETTINGS; | ||
source: string; | ||
json: string; | ||
form: any; | ||
} | ||
|
||
interface SettingShowErrorAction { | ||
type: typeof SETTING_SHOW_ERROR; | ||
error: string; | ||
json: string; | ||
} | ||
|
||
interface SettingSwitchToFormAction { | ||
type: typeof SETTING_SWITCH_TO_FORM; | ||
form: any; | ||
} | ||
|
||
interface SettingSwitchToJsonAction { | ||
type: typeof SETTING_SWITCH_TO_JSON; | ||
json: string; | ||
} | ||
|
||
export type SettingAction = | ||
SettingSetSettingsAcion | SettingShowErrorAction | | ||
SettingSwitchToFormAction | SettingSwitchToJsonAction; |
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
Oops, something went wrong.