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
188b1a89
Commit
188b1a89
authored
Jun 23, 2021
by
Nicolò Maria Mezzopera
Committed by
David O'Regan
Jun 23, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve "Display Debian packages in the UI"
parent
8ee19b92
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
0 deletions
+11
-0
app/assets/javascripts/packages/list/constants.js
app/assets/javascripts/packages/list/constants.js
+4
-0
app/assets/javascripts/packages/shared/constants.js
app/assets/javascripts/packages/shared/constants.js
+1
-0
app/assets/javascripts/packages/shared/utils.js
app/assets/javascripts/packages/shared/utils.js
+2
-0
locale/gitlab.pot
locale/gitlab.pot
+3
-0
spec/frontend/packages/shared/utils_spec.js
spec/frontend/packages/shared/utils_spec.js
+1
-0
No files found.
app/assets/javascripts/packages/list/constants.js
View file @
188b1a89
...
...
@@ -86,6 +86,10 @@ export const PACKAGE_TYPES = [
title
:
s__
(
'
PackageRegistry|RubyGems
'
),
type
:
PackageType
.
RUBYGEMS
,
},
{
title
:
s__
(
'
PackageRegistry|Debian
'
),
type
:
PackageType
.
DEBIAN
,
},
];
export
const
LIST_TITLE_TEXT
=
s__
(
'
PackageRegistry|Package Registry
'
);
...
...
app/assets/javascripts/packages/shared/constants.js
View file @
188b1a89
...
...
@@ -9,6 +9,7 @@ export const PackageType = {
COMPOSER
:
'
composer
'
,
RUBYGEMS
:
'
rubygems
'
,
GENERIC
:
'
generic
'
,
DEBIAN
:
'
debian
'
,
};
// we want this separated from the main dictionary to avoid it being pulled in the search of package
...
...
app/assets/javascripts/packages/shared/utils.js
View file @
188b1a89
...
...
@@ -25,6 +25,8 @@ export const getPackageTypeLabel = (packageType) => {
return
s__
(
'
PackageRegistry|Composer
'
);
case
PackageType
.
GENERIC
:
return
s__
(
'
PackageRegistry|Generic
'
);
case
PackageType
.
DEBIAN
:
return
s__
(
'
PackageRegistry|Debian
'
);
default
:
return
null
;
}
...
...
locale/gitlab.pot
View file @
188b1a89
...
...
@@ -23204,6 +23204,9 @@ msgstr ""
msgid "PackageRegistry|Created by commit %{link} on branch %{branch}"
msgstr ""
msgid "PackageRegistry|Debian"
msgstr ""
msgid "PackageRegistry|Delete Package File"
msgstr ""
...
...
spec/frontend/packages/shared/utils_spec.js
View file @
188b1a89
...
...
@@ -40,6 +40,7 @@ describe('Packages shared utils', () => {
${
'
pypi
'
}
|
${
'
PyPI
'
}
${
'
rubygems
'
}
|
${
'
RubyGems
'
}
${
'
composer
'
}
|
${
'
Composer
'
}
${
'
debian
'
}
|
${
'
Debian
'
}
${
'
foo
'
}
|
${
null
}
`
(
`package type`
,
({
packageType
,
expectedResult
})
=>
{
it
(
`
${
packageType
}
should show as
${
expectedResult
}
`
,
()
=>
{
...
...
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