-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: começa usar actions e selectors
- Loading branch information
Showing
28 changed files
with
491 additions
and
265 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
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,14 +1,33 @@ | ||
import {Presentation, SubmittedPresentation} from '@interfaces/presentation' | ||
import {ImageLayer, PresentationLayer} from '../core' | ||
import {Schema} from '@interfaces/schema' | ||
import {action} from '@utils/state' | ||
|
||
export interface Login { | ||
username: string | ||
password: string | ||
} | ||
/** | ||
* Form | ||
*/ | ||
export const updateForm = action<Schema>('form.updated') | ||
|
||
export interface Logged { | ||
accressToken: string | ||
} | ||
/** | ||
* Presentation | ||
*/ | ||
export const submitPresentation = action<SubmittedPresentation>( | ||
'presentation.submitted' | ||
) | ||
|
||
export const login = action<Login>('Login') | ||
export const loginSuccess = action<Logged>('Login Success') | ||
export const loginError = action<DOMException>('Login Error') | ||
export const handlePresentation = action<Presentation>('presentation.handled') | ||
|
||
export const createPresentation = action<PresentationLayer>( | ||
'presentation.created' | ||
) | ||
|
||
export const addPresentation = action<PresentationLayer>('presentation.added') | ||
|
||
/** | ||
* Sponsor | ||
*/ | ||
export const selectSponsor = action<File>('sponsor.selected') | ||
|
||
export const createSponsor = action<ImageLayer>('sponsor.created') | ||
|
||
export const addSponsor = action<ImageLayer>('sponsor.added') |
Oops, something went wrong.