Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
api-client
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coscine
frontend
libraries
api-client
Commits
f0580a6a
Commit
f0580a6a
authored
3 years ago
by
Benedikt Heinrichs
Browse files
Options
Downloads
Patches
Plain Diff
Fix: Add additional filter (coscine/issues#1745)
parent
b058da59
Branches
Issue/1745-coscineConnection
Branches containing commit
Tags
Tags containing commit
2 merge requests
!3
Sprint/2021 23
,
!2
Fix: Add additional filter (coscine/issues#1745)
Changes
5
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
package.json
+1
-1
1 addition, 1 deletion
package.json
src/apis.ts
+1
-1
1 addition, 1 deletion
src/apis.ts
src/axios-basic.ts
+7
-3
7 additions, 3 deletions
src/axios-basic.ts
src/coscine.d.ts
+3
-3
3 additions, 3 deletions
src/coscine.d.ts
yarn.lock-workspace
+1182
-916
1182 additions, 916 deletions
yarn.lock-workspace
with
1194 additions
and
924 deletions
package.json
+
1
−
1
View file @
f0580a6a
...
...
@@ -124,7 +124,7 @@
"
ts-node
"
:
"
^10.2.1
"
,
"
tslib
"
:
"
^2.3.1
"
,
"
typedoc
"
:
"
^0.21.9
"
,
"
typescript
"
:
"
^
4.4.
2
"
"
typescript
"
:
"
~
4.4.
4
"
},
"dependencies"
:
{
"
axios
"
:
"
^0.21.1
"
...
...
This diff is collapsed.
Click to expand it.
src/apis.ts
+
1
−
1
View file @
f0580a6a
...
...
@@ -27,7 +27,7 @@ import { TitleApiFactory } from './Coscine.Api.User/api';
import
{
UserApiFactory
}
from
'
./Coscine.Api.User/api
'
;
let
accessToken
=
''
;
if
(
typeof
coscine
!==
'
undefined
'
)
{
if
(
typeof
coscine
!==
'
undefined
'
&&
typeof
coscine
.
authorization
!==
'
undefined
'
)
{
accessToken
=
coscine
.
authorization
.
bearer
;
}
...
...
This diff is collapsed.
Click to expand it.
src/axios-basic.ts
+
7
−
3
View file @
f0580a6a
...
...
@@ -7,9 +7,13 @@ const clientCorrolationIdKey = 'X-Coscine-Logging-CorrelationId';
function
setHeader
(
request
:
AxiosRequestConfig
)
{
if
(
typeof
coscine
!==
"
undefined
"
)
{
request
.
headers
.
common
[
authHeaderKey
]
=
'
Bearer
'
+
coscine
.
authorization
.
bearer
;
request
.
headers
.
common
[
clientCorrolationIdKey
]
=
coscine
.
clientcorrolation
.
id
;
if
(
typeof
coscine
.
authorization
!==
"
undefined
"
)
{
request
.
headers
.
common
[
authHeaderKey
]
=
'
Bearer
'
+
coscine
.
authorization
.
bearer
;
}
if
(
typeof
coscine
.
clientcorrolation
!==
"
undefined
"
)
{
request
.
headers
.
common
[
clientCorrolationIdKey
]
=
coscine
.
clientcorrolation
.
id
;
}
}
};
...
...
This diff is collapsed.
Click to expand it.
src/coscine.d.ts
+
3
−
3
View file @
f0580a6a
declare
const
coscine
:
{
readonly
authorization
:
{
readonly
bearer
:
string
},
readonly
clientcorrolation
:
{
readonly
id
:
string
},
readonly
loading
:
{
counter
:
number
},
readonly
authorization
?
:
{
readonly
bearer
?
:
string
},
readonly
clientcorrolation
?
:
{
readonly
id
?
:
string
},
readonly
loading
?
:
{
counter
?
:
number
},
};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
yarn.lock-workspace
+
1182
−
916
View file @
f0580a6a
This diff is collapsed.
Click to expand it.
CoscineBot
@CoscineBot
mentioned in commit
b5931d62
·
3 years ago
mentioned in commit
b5931d62
mentioned in commit b5931d6203611493078d908b5f925a7d4669be27
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment