This repository has been archived by the owner on Jun 26, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: clean up codes(First Round)
- Loading branch information
Showing
87 changed files
with
757 additions
and
300 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,5 +1,6 @@ | ||
{ | ||
"rules": { | ||
"no-console": 0, | ||
"max-len": [2, { "code": 100}], | ||
"import/order": 0, | ||
"no-underscore-dangle": [ | ||
|
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
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,11 +1,16 @@ | ||
// @flow | ||
|
||
import type { | ||
OpenModal, | ||
CloseModal | ||
} from '../types/actions/common'; | ||
|
||
// eslint-disable-next-line flowtype/no-weak-types | ||
export const openModal = (data: Object) => ({ | ||
export const openModal = (data: Object): OpenModal => ({ | ||
type: 'OPEN_MODAL', | ||
data | ||
}); | ||
|
||
export const closeModal = () => ({ | ||
export const closeModal = (): CloseModal => ({ | ||
type: 'CLOSE_MODAL' | ||
}); |
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,5 +1,7 @@ | ||
// @flow | ||
|
||
export const deleteDB = () => ({ | ||
import type { DeleteDB } from '../types/actions/db'; | ||
|
||
export const deleteDB = (): DeleteDB => ({ | ||
type: 'DELETE_DB' | ||
}); |
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,37 @@ | ||
// @flow | ||
|
||
import type { PushPage } from '../types/actions/page'; | ||
import type { | ||
PushPage, | ||
RoutePage, | ||
GoBackPage, | ||
GoForwardPage, | ||
ControlSubWindow, | ||
UpdateSubWindowStatus | ||
} from '../types/actions/page'; | ||
|
||
export const pushPage = (path: string): PushPage => ({ | ||
type: 'PUSH_PAGE', | ||
path | ||
}); | ||
|
||
// go to login or mylist | ||
export const routePage = () => ({ | ||
export const routePage = (): RoutePage => ({ | ||
type: 'ROUTE_PAGE' | ||
}); | ||
|
||
export const goBackPage = () => ({ | ||
export const goBackPage = (): GoBackPage => ({ | ||
type: 'GO_BACK_PAGE' | ||
}); | ||
|
||
export const goForwardPage = () => ({ | ||
export const goForwardPage = (): GoForwardPage => ({ | ||
type: 'GO_FORWARD_PAGE' | ||
}); | ||
|
||
export const controlSubWindow = () => ({ | ||
export const controlSubWindow = (): ControlSubWindow => ({ | ||
type: 'CONTROL_SUB_WINDOW' | ||
}); | ||
|
||
export const updateSubWindowStatus = (opened: boolean) => ({ | ||
export const updateSubWindowStatus = (opened: boolean): UpdateSubWindowStatus => ({ | ||
type: 'UPDATE_SUB_WINDOW_STATUS', | ||
opened | ||
}); |
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.