-
Notifications
You must be signed in to change notification settings - Fork 16
/
dockstore.model.ts
108 lines (89 loc) · 5.31 KB
/
dockstore.model.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/*
* Copyright 2017 OICR
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Provider } from './enum/provider.enum';
// If you add new properties to this class, you need to also update
// dockstore.model.ts.template at https://github.com/dockstore/compose_setup
export class Dockstore {
static readonly HOSTNAME = window.location.protocol + '//' + window.location.host;
static readonly HOSTNAME_NO_PROTOCOL = window.location.hostname;
static readonly API_URI = Dockstore.HOSTNAME + '/api';
static readonly GALAXY_IMPORT_PATH_PORTION =
'/workflows/trs_import?trs_server=' + Dockstore.HOSTNAME_NO_PROTOCOL + '&trs_id=%23workflow/';
static readonly DNASTACK_IMPORT_PATH_PORTION = '/import?trs_server=' + Dockstore.HOSTNAME_NO_PROTOCOL + '&trs_id=';
// All the following properties will get updated by configuration.service.ts. You do not
// need to update them here. Set them in your dockstore.yml for the web service.
// Discourse URL should not end with a slash (/) but will work fine with one
static DISCOURSE_URL = 'http://localhost';
static DNASTACK_IMPORT_URL = 'https://app.dnastack.com/#/app/workflow/import/dockstore';
static DNANEXUS_IMPORT_URL = 'https://platform.dnanexus.com/panx/tools/import-workflow';
static TERRA_IMPORT_URL = 'https://app.terra.bio/#import-tool/dockstore';
static CGC_IMPORT_URL = 'https://cgc.sbgenomics.com/integration/trs/import';
static ANVIL_IMPORT_URL = 'https://anvil.terra.bio/#import-tool/dockstore';
static BD_CATALYST_SEVEN_BRIDGES_IMPORT_URL = 'https://sb.biodatacatalyst.nhlbi.nih.gov/integration/trs/import';
static BD_CATALYST_TERRA_IMPORT_URL = 'https://terra.biodatacatalyst.nhlbi.nih.gov/#import-tool/dockstore';
static CAVATICA_IMPORT_URL = 'https://cavatica.sbgenomics.com/integration/trs/import';
static SEQERA_IMPORT_URL = 'https://cloud.seqera.io/quicklaunch?pipeline=';
static ELWAZI_IMPORT_URL = 'https://elwazi.terra.bio/#import-tool/dockstore';
static COLAB_IMPORT_URL = 'https://colab.research.google.com/github/';
static MYBINDER_IMPORT_URL = 'https://mybinder.org/v2/gh/';
static GITHUB_CODESPACES_IMPORT_URL = 'https://github.com/codespaces/new';
static GITHUB_CLIENT_ID = 'will be filled in by configuration.service';
static GITHUB_AUTH_URL = 'https://github.com/login/oauth/authorize';
static GITHUB_REDIRECT_URI = Dockstore.HOSTNAME + '/auth/' + Provider.GITHUB;
static GITHUB_SCOPE = 'read:org,user:email';
static QUAYIO_AUTH_URL = 'https://quay.io/oauth/authorize';
static QUAYIO_REDIRECT_URI = Dockstore.HOSTNAME + '/auth/' + Provider.QUAY;
static QUAYIO_SCOPE = 'repo:read,user:read';
static QUAYIO_CLIENT_ID = 'will be filled in by configuration.service';
static BITBUCKET_AUTH_URL = 'https://bitbucket.org/site/oauth2/authorize';
static BITBUCKET_CLIENT_ID = 'will be filled in by configuration.service';
static GITLAB_AUTH_URL = 'https://gitlab.com/oauth/authorize';
static GITLAB_CLIENT_ID = 'will be filled in by configuration.service';
static GITLAB_REDIRECT_URI = Dockstore.HOSTNAME + '/auth/' + Provider.GITLAB;
// getting ready for gitlab scopes, this seems to request a token with the correct scope but it doesn't work to retrieve membership
// static GITLAB_SCOPE = 'read_user openid';
static GITLAB_SCOPE = 'api';
static ZENODO_AUTH_URL = 'https://zenodo.org/oauth/authorize';
static ZENODO_CLIENT_ID = 'will be filled in by configuration.service';
static ZENODO_REDIRECT_URI = Dockstore.HOSTNAME + '/auth/' + Provider.ZENODO;
static ZENODO_SCOPE = 'deposit:write deposit:actions';
static ORCID_AUTH_URL = 'https://orcid.org/oauth/authorize';
static ORCID_CLIENT_ID = 'will be filled in by configuration.service';
static ORCID_SCOPE = '/authenticate';
static ORCID_REDIRECT_URI = Dockstore.HOSTNAME + '/auth/' + Provider.ORCID;
static GOOGLE_CLIENT_ID = 'will be filled in by configuration.service';
static GOOGLE_SCOPE = 'profile email';
static GOOGLE_TAG_MANAGER_ID = 'filled in by configuration service';
static CWL_VISUALIZER_URI = 'https://view.commonwl.org';
static GITHUB_APP_INSTALLATION_URL = 'will be filled in by configuration.service';
static DOCKSTORE_REPO = 'https://github.com/dockstore/dockstore';
static DOCUMENTATION_URL = 'https://docs.dockstore.org/en/stable';
static FEATURED_CONTENT_URL = 'will be filled in by configuration.service';
static FEATURED_NEWS_URL = 'will be filled in by configuration.service';
static DEPLOY_VERSION = '';
static WEBSERVICE_COMMIT_ID = '';
static CWL_PARSING_LAMBDA_VERSION = '';
static WDL_PARSING_LAMBDA_VERSION = '';
static NEXTFLOW_PARSING_LAMBDA_VERSION = '';
static GALAXY_PARSING_PLUGIN_VERSION = '';
static CHECK_URL_LAMBDA_VERSION = '';
static FEATURES = {
enableCwlViewer: true,
enableLaunchWithGalaxy: true,
enableMultiCloudLaunchWithDNAstack: false,
enableOrcidExport: true,
};
}