[ARVADOS-WORKBENCH2] updated: 1.1.4-599-gf0d5196
Git user
git at public.curoverse.com
Mon Aug 13 14:11:36 EDT 2018
Summary of changes:
.env | 1 +
src/common/config.ts | 9 ++-
src/common/webdav.test.ts | 131 ++++++++++++++++++++++++++++++++++++
src/common/webdav.ts | 90 +++++++++++++++++++++++++
src/index.tsx | 4 +-
src/services/services.ts | 27 +++-----
src/store/auth/auth-action.ts | 17 +++--
src/store/auth/auth-actions.test.ts | 4 +-
src/store/auth/auth-reducer.test.ts | 4 +-
9 files changed, 255 insertions(+), 32 deletions(-)
create mode 100644 src/common/webdav.test.ts
create mode 100644 src/common/webdav.ts
via f0d519637c997df11d5b1a1b32b3d9e4a2872325 (commit)
via d5a3a1f9623e200dd1170e7b9279127e7f4f0936 (commit)
via 3b0011c6f2312bd6517cf470a80b921bd65e86fe (commit)
via 5a7f3f56fc39ab231982435d29b8f15e819748fe (commit)
via 34763d00fc3fad357251a2ba0a0af77ea5a8563e (commit)
via 2c4b5777c5bea7b862e481038566e93194b06aa9 (commit)
via 4b7d15c94685ca3e34ebb905a4803f895367ad09 (commit)
via 1c42304ed00d0055e24070793e0cef08a7c76c97 (commit)
from c6ef6cc481dc56270d8ad80d387115eace618525 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit f0d519637c997df11d5b1a1b32b3d9e4a2872325
Merge: c6ef6cc d5a3a1f
Author: Daniel Kos <daniel.kos at contractors.roche.com>
Date: Mon Aug 13 20:10:58 2018 +0200
refs #13989 Merge branch 'origin/13989-webdav-service'
Arvados-DCO-1.1-Signed-off-by: Daniel Kos <daniel.kos at contractors.roche.com>
diff --cc src/services/services.ts
index 427148b,45d360c..99f802d
--- a/src/services/services.ts
+++ b/src/services/services.ts
@@@ -10,28 -9,22 +10,21 @@@ import { LinkService } from "./link-ser
import { FavoriteService } from "./favorite-service/favorite-service";
import { CollectionService } from "./collection-service/collection-service";
import { TagService } from "./tag-service/tag-service";
-import Axios from "axios";
import { CollectionFilesService } from "./collection-files-service/collection-files-service";
import { KeepService } from "./keep-service/keep-service";
+ import { WebDAV } from "../common/webdav";
+ import { Config } from "../common/config";
- export interface ServiceRepository {
- apiClient: AxiosInstance;
+ export type ServiceRepository = ReturnType<typeof createServices>;
- authService: AuthService;
- keepService: KeepService;
- groupsService: GroupsService;
- projectService: ProjectService;
- linkService: LinkService;
- favoriteService: FavoriteService;
- tagService: TagService;
- collectionService: CollectionService;
- collectionFilesService: CollectionFilesService;
- }
-
- export const createServices = (baseUrl: string): ServiceRepository => {
+ export const createServices = (config: Config) => {
const apiClient = Axios.create();
- apiClient.defaults.baseURL = `${baseUrl}/arvados/v1`;
+ apiClient.defaults.baseURL = `${config.apiHost}/arvados/v1`;
+
+ const webdavClient = new WebDAV();
+ webdavClient.defaults.baseURL = config.keepWebHost;
- const authService = new AuthService(apiClient, baseUrl);
+ const authService = new AuthService(apiClient, config.apiHost);
const keepService = new KeepService(apiClient);
const groupsService = new GroupsService(apiClient);
const projectService = new ProjectService(apiClient);
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list