Commit 2df84ef4 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '277160-add-a-generic-packages-tab-to-the-packages-ui' into 'master'

Add a generic packages tab to the Packages UI

See merge request gitlab-org/gitlab!48121
parents e4ba28c1 89cb4984
...@@ -68,6 +68,10 @@ export const PACKAGE_REGISTRY_TABS = [ ...@@ -68,6 +68,10 @@ export const PACKAGE_REGISTRY_TABS = [
title: s__('PackageRegistry|Conan'), title: s__('PackageRegistry|Conan'),
type: PackageType.CONAN, type: PackageType.CONAN,
}, },
{
title: s__('PackageRegistry|Generic'),
type: PackageType.GENERIC,
},
{ {
title: s__('PackageRegistry|Maven'), title: s__('PackageRegistry|Maven'),
......
...@@ -7,6 +7,7 @@ export const PackageType = { ...@@ -7,6 +7,7 @@ export const PackageType = {
NUGET: 'nuget', NUGET: 'nuget',
PYPI: 'pypi', PYPI: 'pypi',
COMPOSER: 'composer', COMPOSER: 'composer',
GENERIC: 'generic',
}; };
export const TrackingActions = { export const TrackingActions = {
......
...@@ -21,7 +21,8 @@ export const getPackageTypeLabel = packageType => { ...@@ -21,7 +21,8 @@ export const getPackageTypeLabel = packageType => {
return s__('PackageType|PyPI'); return s__('PackageType|PyPI');
case PackageType.COMPOSER: case PackageType.COMPOSER:
return s__('PackageType|Composer'); return s__('PackageType|Composer');
case PackageType.GENERIC:
return s__('PackageType|Generic');
default: default:
return null; return null;
} }
......
---
title: Add a generic packages tab to the Packages UI
merge_request: 48121
author:
type: changed
...@@ -19443,6 +19443,9 @@ msgstr "" ...@@ -19443,6 +19443,9 @@ msgstr ""
msgid "PackageRegistry|For more information on the PyPi registry, %{linkStart}see the documentation%{linkEnd}." msgid "PackageRegistry|For more information on the PyPi registry, %{linkStart}see the documentation%{linkEnd}."
msgstr "" msgstr ""
msgid "PackageRegistry|Generic"
msgstr ""
msgid "PackageRegistry|If you haven't already done so, you will need to add the below to your %{codeStart}.pypirc%{codeEnd} file." msgid "PackageRegistry|If you haven't already done so, you will need to add the below to your %{codeStart}.pypirc%{codeEnd} file."
msgstr "" msgstr ""
...@@ -19557,6 +19560,9 @@ msgstr "" ...@@ -19557,6 +19560,9 @@ msgstr ""
msgid "PackageType|Conan" msgid "PackageType|Conan"
msgstr "" msgstr ""
msgid "PackageType|Generic"
msgstr ""
msgid "PackageType|Maven" msgid "PackageType|Maven"
msgstr "" msgstr ""
......
...@@ -200,6 +200,67 @@ exports[`packages_list_app renders 1`] = ` ...@@ -200,6 +200,67 @@ exports[`packages_list_app renders 1`] = `
</div> </div>
</template> </template>
</b-tab-stub> </b-tab-stub>
<b-tab-stub
tag="div"
title="Generic"
titlelinkclass="gl-tab-nav-item"
>
<template>
<div>
<section
class="row empty-state text-center"
>
<div
class="col-12"
>
<div
class="svg-250 svg-content"
>
<img
alt="There are no Generic packages yet"
class="gl-max-w-full"
src="helpSvg"
/>
</div>
</div>
<div
class="col-12"
>
<div
class="text-content gl-mx-auto gl-my-0 gl-p-5"
>
<h1
class="h4"
>
There are no Generic packages yet
</h1>
<p>
Learn how to
<b-link-stub
class="gl-link"
event="click"
href="helpUrl"
routertag="a"
target="_blank"
>
publish and share your packages
</b-link-stub>
with GitLab.
</p>
<div>
<!---->
<!---->
</div>
</div>
</div>
</section>
</div>
</template>
</b-tab-stub>
<b-tab-stub <b-tab-stub
tag="div" tag="div"
title="Maven" title="Maven"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment