Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
1 change: 1 addition & 0 deletions src/schema-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export const enum SyncService {
Inoreader,
Miniflux,
Nextcloud,
NewsBlur,
}

export interface ServiceConfigs {
Expand Down
7 changes: 4 additions & 3 deletions src/scripts/models/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { feedbinServiceHooks } from "./services/feedbin";
import { gReaderServiceHooks } from "./services/greader";
import { minifluxServiceHooks } from "./services/miniflux";
import { nextcloudServiceHooks } from "./services/nextcloud";
import { newsblurServiceHooks } from "./services/newsblur";

export interface ServiceHooks {
authenticate?: (configs: ServiceConfigs) => Promise<boolean>;
Expand Down Expand Up @@ -51,6 +52,8 @@ export function getServiceHooksFromType(type: SyncService): ServiceHooks {
return minifluxServiceHooks;
case SyncService.Nextcloud:
return nextcloudServiceHooks;
case SyncService.NewsBlur:
return newsblurServiceHooks;
default:
return {};
}
Expand Down Expand Up @@ -318,9 +321,7 @@ interface SyncLocalItemsAction {
}

export type ServiceActionTypes =
| SaveServiceConfigsAction
| SyncWithServiceAction
| SyncLocalItemsAction;
SaveServiceConfigsAction | SyncWithServiceAction | SyncLocalItemsAction;

export function saveServiceConfigs(configs: ServiceConfigs): AppThunk {
return (dispatch) => {
Expand Down
Loading