mirror of
https://github.com/dnote/dnote
synced 2026-03-17 16:00:08 +01:00
Upgrade dependencies (#450)
* Upgrade dependencies. * Fix test * Improve name * Update doc * Upgrade deps * Fix lint * Fix lint Co-authored-by: Sung Won Cho <sung@monomax.sh>
This commit is contained in:
parent
cabe02aa71
commit
96d3c50780
40 changed files with 4415 additions and 5342 deletions
|
|
@ -23,7 +23,7 @@ const initialState: AuthState = {
|
|||
sessionKeyExpiry: 0
|
||||
};
|
||||
|
||||
export default function(
|
||||
export default function (
|
||||
state = initialState,
|
||||
action: AuthActionType
|
||||
): AuthState {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const initialState = {
|
|||
error: null
|
||||
};
|
||||
|
||||
export default function(
|
||||
export default function (
|
||||
state = initialState,
|
||||
action: BooksActionType
|
||||
): BooksState {
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ const initialState: ComposerState = {
|
|||
bookLabel: ''
|
||||
};
|
||||
|
||||
export default function(
|
||||
export default function (
|
||||
state = initialState,
|
||||
action: ComposerActionType
|
||||
): ComposerState {
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ const initialState: LocationState = {
|
|||
state: {}
|
||||
};
|
||||
|
||||
export default function(
|
||||
export default function (
|
||||
state = initialState,
|
||||
action: LocationActionType
|
||||
): LocationState {
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const initialState: SettingsState = {
|
|||
webUrl: config.defaultWebUrl
|
||||
};
|
||||
|
||||
export default function(
|
||||
export default function (
|
||||
state = initialState,
|
||||
action: SettingsActionType
|
||||
): SettingsState {
|
||||
|
|
|
|||
|
|
@ -39,9 +39,7 @@ function parseJSON(response) {
|
|||
}
|
||||
|
||||
function request(url, options) {
|
||||
return fetch(url, options)
|
||||
.then(checkStatus)
|
||||
.then(parseJSON);
|
||||
return fetch(url, options).then(checkStatus).then(parseJSON);
|
||||
}
|
||||
|
||||
export function post(url, data, options = {}) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue