Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ff29d467
Commit
ff29d467
authored
Jun 09, 2020
by
Nick Kipling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added information type constant
Created confirmation type constant Added to utils Added to component
parent
62c7c990
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
ee/app/assets/javascripts/packages/details/components/information.vue
...s/javascripts/packages/details/components/information.vue
+7
-1
ee/app/assets/javascripts/packages/details/constants.js
ee/app/assets/javascripts/packages/details/constants.js
+4
-0
ee/app/assets/javascripts/packages/details/utils.js
ee/app/assets/javascripts/packages/details/utils.js
+3
-3
No files found.
ee/app/assets/javascripts/packages/details/components/information.vue
View file @
ff29d467
...
...
@@ -2,6 +2,7 @@
import
{
s__
}
from
'
~/locale
'
;
import
ClipboardButton
from
'
~/vue_shared/components/clipboard_button.vue
'
;
import
{
GlLink
}
from
'
@gitlab/ui
'
;
import
{
InformationType
}
from
'
../constants
'
;
export
default
{
name
:
'
PackageInformation
'
,
...
...
@@ -26,6 +27,7 @@ export default {
default
:
false
,
},
},
informationType
:
InformationType
,
};
</
script
>
...
...
@@ -39,7 +41,11 @@ export default {
<li
v-for=
"(item, index) in information"
:key=
"index"
>
<span
class=
"text-secondary"
>
{{
item
.
label
}}
</span>
<div
class=
"pull-right w-75 gl-text-right"
>
<gl-link
v-if=
"item.type === 'link'"
:href=
"item.value"
target=
"_blank"
>
<gl-link
v-if=
"item.type === $options.informationType.LINK"
:href=
"item.value"
target=
"_blank"
>
{{
item
.
value
}}
</gl-link>
...
...
ee/app/assets/javascripts/packages/details/constants.js
View file @
ff29d467
...
...
@@ -41,3 +41,7 @@ export const NpmManager = {
export
const
FETCH_PACKAGE_VERSIONS_ERROR
=
s__
(
'
PackageRegistry|Unable to fetch package version information.
'
,
);
export
const
InformationType
=
{
LINK
:
'
link
'
,
};
ee/app/assets/javascripts/packages/details/utils.js
View file @
ff29d467
import
{
__
}
from
'
~/locale
'
;
import
{
formatDate
}
from
'
~/lib/utils/datetime_utility
'
;
import
{
TrackingActions
}
from
'
./constants
'
;
import
{
TrackingActions
,
InformationType
}
from
'
./constants
'
;
import
{
PackageType
}
from
'
../shared/constants
'
;
import
{
orderBy
}
from
'
lodash
'
;
...
...
@@ -53,7 +53,7 @@ export function generatePackageInfo(packageEntity = {}) {
order
:
3
,
label
:
__
(
'
Project URL
'
),
value
:
projectUrl
,
type
:
'
link
'
,
type
:
InformationType
.
LINK
,
});
}
...
...
@@ -62,7 +62,7 @@ export function generatePackageInfo(packageEntity = {}) {
order
:
4
,
label
:
__
(
'
License URL
'
),
value
:
licenseUrl
,
type
:
'
link
'
,
type
:
InformationType
.
LINK
,
});
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment