Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Project
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Coscine
frontend
apps
Project
Commits
7386327e
Commit
7386327e
authored
4 years ago
by
Marcel Nellesen
Browse files
Options
Downloads
Patches
Plain Diff
New: Included token handling (coscine/issues#1529)
parent
395499fd
Branches
Branches containing commit
Tags
Tags containing commit
2 merge requests
!49
Product/1442 project invite mngmnt
,
!48
Sprint/2021 09
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/ProjectApp.vue
+19
-2
19 additions, 2 deletions
src/ProjectApp.vue
yarn.lock-workspace
+5953
-812
5953 additions, 812 deletions
yarn.lock-workspace
with
5972 additions
and
814 deletions
src/ProjectApp.vue
+
19
−
2
View file @
7386327e
...
...
@@ -47,8 +47,21 @@ export default Vue.extend({
created
()
{
this
.
projectImage
=
LinkUtil
.
getScriptPath
(
pathToAppJs
)
+
projectImagePath
;
this
.
zusatzImage
=
LinkUtil
.
getScriptPath
(
pathToAppJs
)
+
zusatzImagePath
;
ProjectApi
.
getTopLevelProjects
(
(
response
:
any
)
=>
{
for
(
const
datum
of
response
.
data
)
{
this
.
projects
.
push
(
datum
);
}
});
// handle possible invitation token
let
token
=
GuidUtil
.
getUrlParam
(
"
token
"
);
if
(
GuidUtil
.
isValidGuid
(
token
))
{
ProjectApi
.
resolveInvitation
(
token
,
(
response
:
any
)
=>
{
if
(
window
.
history
.
pushState
)
{
let
newurl
=
window
.
location
.
protocol
+
'
//
'
+
window
.
location
.
host
+
window
.
location
.
pathname
;
window
.
history
.
pushState
({
path
:
newurl
},
''
,
newurl
);
}
this
.
getProjects
();
},
(
error
:
any
)
=>
{
this
.
getProjects
();
});
}
else
{
this
.
getProjects
();
}
},
methods
:
{
openCreate
()
{
...
...
@@ -57,6 +70,10 @@ export default Vue.extend({
redirect
(
project
:
any
)
{
return
LinkUtil
.
getExternalProjectLink
(
project
.
slug
.
toLowerCase
());
},
getProjects
(){
ProjectApi
.
getTopLevelProjects
(
(
response
:
any
)
=>
{
for
(
const
datum
of
response
.
data
)
{
this
.
projects
.
push
(
datum
);
}
});
},
},
});
</
script
>
This diff is collapsed.
Click to expand it.
yarn.lock-workspace
+
5953
−
812
View file @
7386327e
This diff is collapsed.
Click to expand it.
CoscineBot
@CoscineBot
mentioned in commit
2cefd10a
·
4 years ago
mentioned in commit
2cefd10a
mentioned in commit 2cefd10a3ad179e49a906acf19fc845f835fa58e
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