File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
packages/libs/wdk-client/src/Views/User Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,33 @@ const ServiceAccessPanel: React.FC<Props> = () => {
1717 let token =
1818 getAuthorizationToken ( ) ||
1919 'Your authorization token is not currently available.' ;
20+ let appPath = document . location . pathname . substring (
21+ 0 ,
22+ document . location . pathname . indexOf ( '/app' ) + 4
23+ ) ;
24+ let serviceHelpUrl =
25+ appPath + '/static-content/content/VEuPathDB/webServices.html' ;
2026 return (
2127 < div >
28+ < h2 > VEuPathDB Web Services Access</ h2 >
29+ < p style = { { maxWidth : '60%' } } >
30+ VEuPathDB provides a REST API enabling users to programmatically query
31+ and analyize data, download results, even create multi-step search
32+ strategies. These HTTP resources require registration and a valid API
33+ Key. Your key is provided below. < a href = { serviceHelpUrl } > Click here</ a > { ' ' }
34+ to learn how to use it to access web services.
35+ </ p >
2236 < h3 > Your Personal API Key</ h3 >
23- < blockquote style = { { overflowWrap : 'break-word' , maxWidth : '40%' } } >
37+ < a onClick = { ( ) => navigator . clipboard . writeText ( token ) } >
38+ Copy key to clipboard
39+ </ a >
40+ < blockquote
41+ style = { {
42+ backgroundColor : 'lightgrey' ,
43+ overflowWrap : 'break-word' ,
44+ maxWidth : '40%' ,
45+ } }
46+ >
2447 { token }
2548 </ blockquote >
2649 </ div >
You can’t perform that action at this time.
0 commit comments