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
cf21ab45
Commit
cf21ab45
authored
Nov 26, 2021
by
Nicolò Maria Mezzopera
Committed by
Olena Horal-Koretska
Nov 26, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the store to new infrastructure registry folder
parent
cf5889bd
Changes
31
Show whitespace changes
Inline
Side-by-side
Showing
31 changed files
with
32 additions
and
80 deletions
+32
-80
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/components/infrastructure_search.vue
...ucture_registry/list/components/infrastructure_search.vue
+2
-2
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/components/packages_list_app.vue
...astructure_registry/list/components/packages_list_app.vue
+1
-1
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/constants.js
..._and_registries/infrastructure_registry/list/constants.js
+1
-49
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/actions.js
...registries/infrastructure_registry/list/stores/actions.js
+0
-0
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/getters.js
...registries/infrastructure_registry/list/stores/getters.js
+1
-1
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/index.js
...d_registries/infrastructure_registry/list/stores/index.js
+0
-0
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/mutation_types.js
...ies/infrastructure_registry/list/stores/mutation_types.js
+0
-0
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/mutations.js
...gistries/infrastructure_registry/list/stores/mutations.js
+0
-0
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/stores/state.js
...d_registries/infrastructure_registry/list/stores/state.js
+0
-0
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/utils.js
...ages_and_registries/infrastructure_registry/list/utils.js
+0
-0
app/assets/javascripts/packages_and_registries/infrastructure_registry/list_app_bundle.js
...and_registries/infrastructure_registry/list_app_bundle.js
+1
-1
locale/gitlab.pot
locale/gitlab.pot
+0
-3
spec/frontend/packages/shared/components/package_tags_spec.js
.../frontend/packages/shared/components/package_tags_spec.js
+1
-1
spec/frontend/packages/shared/components/publish_method_spec.js
...rontend/packages/shared/components/publish_method_spec.js
+1
-1
spec/frontend/packages/shared/utils_spec.js
spec/frontend/packages/shared/utils_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/details/components/app_spec.js
...ucture_registry/components/details/components/app_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/details/components/details_title_spec.js
...istry/components/details/components/details_title_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/details/components/package_files_spec.js
...istry/components/details/components/package_files_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/details/components/package_history_spec.js
...try/components/details/components/package_history_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/details/components/terraform_installation_spec.js
...ponents/details/components/terraform_installation_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/details/store/actions_spec.js
...ructure_registry/components/details/store/actions_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/details/store/getters_spec.js
...ructure_registry/components/details/store/getters_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/details/store/mutations_spec.js
...cture_registry/components/details/store/mutations_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/list/components/packages_list_app_spec.js
...stry/components/list/components/packages_list_app_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/list/components/packages_list_spec.js
...registry/components/list/components/packages_list_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/list/stores/actions_spec.js
...structure_registry/components/list/stores/actions_spec.js
+3
-3
spec/frontend/packages_and_registries/infrastructure_registry/components/list/stores/getters_spec.js
...structure_registry/components/list/stores/getters_spec.js
+1
-1
spec/frontend/packages_and_registries/infrastructure_registry/components/list/stores/mutations_spec.js
...ructure_registry/components/list/stores/mutations_spec.js
+3
-3
spec/frontend/packages_and_registries/infrastructure_registry/components/list/utils_spec.js
...ies/infrastructure_registry/components/list/utils_spec.js
+5
-2
spec/frontend/packages_and_registries/infrastructure_registry/components/mock_data.js
...egistries/infrastructure_registry/components/mock_data.js
+0
-0
spec/frontend/packages_and_registries/infrastructure_registry/components/shared/package_list_row_spec.js
...cture_registry/components/shared/package_list_row_spec.js
+1
-1
No files found.
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/components/infrastructure_search.vue
View file @
cf21ab45
<
script
>
import
{
mapState
,
mapActions
}
from
'
vuex
'
;
import
{
LIST_KEY_PACKAGE_TYPE
}
from
'
~/packages/list/constants
'
;
import
{
sortableFields
}
from
'
~/packages/list/utils
'
;
import
{
LIST_KEY_PACKAGE_TYPE
}
from
'
~/packages
_and_registries/infrastructure_registry
/list/constants
'
;
import
{
sortableFields
}
from
'
~/packages
_and_registries/infrastructure_registry
/list/utils
'
;
import
RegistrySearch
from
'
~/vue_shared/components/registry/registry_search.vue
'
;
import
UrlSync
from
'
~/vue_shared/components/url_sync.vue
'
;
...
...
app/assets/javascripts/packages_and_registries/infrastructure_registry/list/components/packages_list_app.vue
View file @
cf21ab45
...
...
@@ -10,7 +10,7 @@ import { getQueryParams, extractFilterAndSorting } from '~/packages_and_registri
import
InfrastructureTitle
from
'
~/packages_and_registries/infrastructure_registry/list/components/infrastructure_title.vue
'
;
import
InfrastructureSearch
from
'
~/packages_and_registries/infrastructure_registry/list/components/infrastructure_search.vue
'
;
import
PackageList
from
'
~/packages_and_registries/infrastructure_registry/list/components/packages_list.vue
'
;
import
{
DELETE_PACKAGE_SUCCESS_MESSAGE
}
from
'
~/packages/list/constants
'
;
import
{
DELETE_PACKAGE_SUCCESS_MESSAGE
}
from
'
~/packages
_and_registries/infrastructure_registry
/list/constants
'
;
export
default
{
components
:
{
...
...
app/assets/javascripts/packages/list/constants.js
→
app/assets/javascripts/packages
_and_registries/infrastructure_registry
/list/constants.js
View file @
cf21ab45
import
{
__
,
s__
}
from
'
~/locale
'
;
import
{
PackageType
}
from
'
../shared/constants
'
;
import
{
__
}
from
'
~/locale
'
;
export
const
FETCH_PACKAGES_LIST_ERROR_MESSAGE
=
__
(
'
Something went wrong while fetching the packages list.
'
,
);
export
const
FETCH_PACKAGE_ERROR_MESSAGE
=
__
(
'
Something went wrong while fetching the package.
'
);
export
const
DELETE_PACKAGE_SUCCESS_MESSAGE
=
__
(
'
Package deleted successfully
'
);
export
const
DEFAULT_PAGE
=
1
;
...
...
@@ -17,14 +15,12 @@ export const LIST_KEY_PROJECT = 'project_path';
export
const
LIST_KEY_VERSION
=
'
version
'
;
export
const
LIST_KEY_PACKAGE_TYPE
=
'
type
'
;
export
const
LIST_KEY_CREATED_AT
=
'
created_at
'
;
export
const
LIST_KEY_ACTIONS
=
'
actions
'
;
export
const
LIST_LABEL_NAME
=
__
(
'
Name
'
);
export
const
LIST_LABEL_PROJECT
=
__
(
'
Project
'
);
export
const
LIST_LABEL_VERSION
=
__
(
'
Version
'
);
export
const
LIST_LABEL_PACKAGE_TYPE
=
__
(
'
Type
'
);
export
const
LIST_LABEL_CREATED_AT
=
__
(
'
Published
'
);
export
const
LIST_LABEL_ACTIONS
=
''
;
// The following is not translated because it is used to build a JavaScript exception error message
export
const
MISSING_DELETE_PATH_ERROR
=
'
Missing delete_api_path link
'
;
...
...
@@ -52,48 +48,4 @@ export const SORT_FIELDS = [
},
];
export
const
PACKAGE_TYPES
=
[
{
title
:
s__
(
'
PackageRegistry|Composer
'
),
type
:
PackageType
.
COMPOSER
,
},
{
title
:
s__
(
'
PackageRegistry|Conan
'
),
type
:
PackageType
.
CONAN
,
},
{
title
:
s__
(
'
PackageRegistry|Generic
'
),
type
:
PackageType
.
GENERIC
,
},
{
title
:
s__
(
'
PackageRegistry|Maven
'
),
type
:
PackageType
.
MAVEN
,
},
{
title
:
s__
(
'
PackageRegistry|npm
'
),
type
:
PackageType
.
NPM
,
},
{
title
:
s__
(
'
PackageRegistry|NuGet
'
),
type
:
PackageType
.
NUGET
,
},
{
title
:
s__
(
'
PackageRegistry|PyPI
'
),
type
:
PackageType
.
PYPI
,
},
{
title
:
s__
(
'
PackageRegistry|RubyGems
'
),
type
:
PackageType
.
RUBYGEMS
,
},
{
title
:
s__
(
'
PackageRegistry|Debian
'
),
type
:
PackageType
.
DEBIAN
,
},
{
title
:
s__
(
'
PackageRegistry|Helm
'
),
type
:
PackageType
.
HELM
,
},
];
export
const
TERRAFORM_SEARCH_TYPE
=
Object
.
freeze
({
value
:
{
data
:
'
terraform_module
'
}
});
app/assets/javascripts/packages/list/stores/actions.js
→
app/assets/javascripts/packages
_and_registries/infrastructure_registry
/list/stores/actions.js
View file @
cf21ab45
File moved
app/assets/javascripts/packages/list/stores/getters.js
→
app/assets/javascripts/packages
_and_registries/infrastructure_registry
/list/stores/getters.js
View file @
cf21ab45
import
{
beautifyPath
}
from
'
../..
/shared/utils
'
;
import
{
beautifyPath
}
from
'
~/packages
/shared/utils
'
;
import
{
LIST_KEY_PROJECT
}
from
'
../constants
'
;
export
default
(
state
)
=>
...
...
app/assets/javascripts/packages/list/stores/index.js
→
app/assets/javascripts/packages
_and_registries/infrastructure_registry
/list/stores/index.js
View file @
cf21ab45
File moved
app/assets/javascripts/packages/list/stores/mutation_types.js
→
app/assets/javascripts/packages
_and_registries/infrastructure_registry
/list/stores/mutation_types.js
View file @
cf21ab45
File moved
app/assets/javascripts/packages/list/stores/mutations.js
→
app/assets/javascripts/packages
_and_registries/infrastructure_registry
/list/stores/mutations.js
View file @
cf21ab45
File moved
app/assets/javascripts/packages/list/stores/state.js
→
app/assets/javascripts/packages
_and_registries/infrastructure_registry
/list/stores/state.js
View file @
cf21ab45
File moved
app/assets/javascripts/packages/list/utils.js
→
app/assets/javascripts/packages
_and_registries/infrastructure_registry
/list/utils.js
View file @
cf21ab45
File moved
app/assets/javascripts/packages_and_registries/infrastructure_registry/list_app_bundle.js
View file @
cf21ab45
import
Vue
from
'
vue
'
;
import
{
s__
}
from
'
~/locale
'
;
import
PackagesListApp
from
'
~/packages_and_registries/infrastructure_registry/list/components/packages_list_app.vue
'
;
import
{
createStore
}
from
'
~/packages/list/stores
'
;
import
{
createStore
}
from
'
~/packages
_and_registries/infrastructure_registry
/list/stores
'
;
import
Translate
from
'
~/vue_shared/translate
'
;
Vue
.
use
(
Translate
);
...
...
locale/gitlab.pot
View file @
cf21ab45
...
...
@@ -32549,9 +32549,6 @@ msgstr ""
msgid "Something went wrong while fetching the environments for this merge request. Please try again."
msgstr ""
msgid "Something went wrong while fetching the package."
msgstr ""
msgid "Something went wrong while fetching the packages list."
msgstr ""
...
...
spec/frontend/packages/shared/components/package_tags_spec.js
View file @
cf21ab45
import
{
mount
}
from
'
@vue/test-utils
'
;
import
PackageTags
from
'
~/packages/shared/components/package_tags.vue
'
;
import
{
mockTags
}
from
'
../..
/mock_data
'
;
import
{
mockTags
}
from
'
jest/packages_and_registries/infrastructure_registry/components
/mock_data
'
;
describe
(
'
PackageTags
'
,
()
=>
{
let
wrapper
;
...
...
spec/frontend/packages/shared/components/publish_method_spec.js
View file @
cf21ab45
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
import
PublishMethod
from
'
~/packages/shared/components/publish_method.vue
'
;
import
{
packageList
}
from
'
../..
/mock_data
'
;
import
{
packageList
}
from
'
jest/packages_and_registries/infrastructure_registry/components
/mock_data
'
;
describe
(
'
publish_method
'
,
()
=>
{
let
wrapper
;
...
...
spec/frontend/packages/shared/utils_spec.js
View file @
cf21ab45
...
...
@@ -5,7 +5,7 @@ import {
getPackageTypeLabel
,
getCommitLink
,
}
from
'
~/packages/shared/utils
'
;
import
{
packageList
}
from
'
..
/mock_data
'
;
import
{
packageList
}
from
'
jest/packages_and_registries/infrastructure_registry/components
/mock_data
'
;
describe
(
'
Packages shared utils
'
,
()
=>
{
describe
(
'
packageTypeToTrackCategory
'
,
()
=>
{
...
...
spec/frontend/packages_and_registries/infrastructure_registry/components/details/components/app_spec.js
View file @
cf21ab45
...
...
@@ -17,7 +17,7 @@ import TerraformTitle from '~/packages_and_registries/infrastructure_registry/de
import
TerraformInstallation
from
'
~/packages_and_registries/infrastructure_registry/details/components/terraform_installation.vue
'
;
import
Tracking
from
'
~/tracking
'
;
import
{
mavenPackage
,
mavenFiles
,
npmPackage
}
from
'
jest/packages
/mock_data
'
;
import
{
mavenPackage
,
mavenFiles
,
npmPackage
}
from
'
../..
/mock_data
'
;
const
localVue
=
createLocalVue
();
localVue
.
use
(
Vuex
);
...
...
spec/frontend/packages_and_registries/infrastructure_registry/components/details/components/details_title_spec.js
View file @
cf21ab45
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
Vuex
from
'
vuex
'
;
import
{
terraformModule
,
mavenFiles
,
npmPackage
}
from
'
jest/packages/mock_data
'
;
import
component
from
'
~/packages_and_registries/infrastructure_registry/details/components/details_title.vue
'
;
import
TitleArea
from
'
~/vue_shared/components/registry/title_area.vue
'
;
import
{
terraformModule
,
mavenFiles
,
npmPackage
}
from
'
../../mock_data
'
;
const
localVue
=
createLocalVue
();
localVue
.
use
(
Vuex
);
...
...
spec/frontend/packages_and_registries/infrastructure_registry/components/details/components/package_files_spec.js
View file @
cf21ab45
...
...
@@ -6,7 +6,7 @@ import component from '~/packages_and_registries/infrastructure_registry/details
import
FileIcon
from
'
~/vue_shared/components/file_icon.vue
'
;
import
TimeAgoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
{
npmFiles
,
mavenFiles
}
from
'
jest/packages
/mock_data
'
;
import
{
npmFiles
,
mavenFiles
}
from
'
../..
/mock_data
'
;
describe
(
'
Package Files
'
,
()
=>
{
let
wrapper
;
...
...
spec/frontend/packages_and_registries/infrastructure_registry/components/details/components/package_history_spec.js
View file @
cf21ab45
...
...
@@ -6,7 +6,7 @@ import { HISTORY_PIPELINES_LIMIT } from '~/packages_and_registries/shared/consta
import
HistoryItem
from
'
~/vue_shared/components/registry/history_item.vue
'
;
import
TimeAgoTooltip
from
'
~/vue_shared/components/time_ago_tooltip.vue
'
;
import
{
mavenPackage
,
mockPipelineInfo
}
from
'
jest/packages
/mock_data
'
;
import
{
mavenPackage
,
mockPipelineInfo
}
from
'
../..
/mock_data
'
;
describe
(
'
Package History
'
,
()
=>
{
let
wrapper
;
...
...
spec/frontend/packages_and_registries/infrastructure_registry/components/details/components/terraform_installation_spec.js
View file @
cf21ab45
import
{
shallowMount
,
createLocalVue
}
from
'
@vue/test-utils
'
;
import
Vuex
from
'
vuex
'
;
import
{
terraformModule
as
packageEntity
}
from
'
jest/packages/mock_data
'
;
import
TerraformInstallation
from
'
~/packages_and_registries/infrastructure_registry/details/components/terraform_installation.vue
'
;
import
CodeInstructions
from
'
~/vue_shared/components/registry/code_instruction.vue
'
;
import
{
terraformModule
as
packageEntity
}
from
'
../../mock_data
'
;
const
localVue
=
createLocalVue
();
localVue
.
use
(
Vuex
);
...
...
spec/frontend/packages_and_registries/infrastructure_registry/components/details/store/actions_spec.js
View file @
cf21ab45
...
...
@@ -13,7 +13,7 @@ import {
DELETE_PACKAGE_FILE_ERROR_MESSAGE
,
DELETE_PACKAGE_FILE_SUCCESS_MESSAGE
,
}
from
'
~/packages/shared/constants
'
;
import
{
npmPackage
as
packageEntity
}
from
'
../../
../../../packages/
mock_data
'
;
import
{
npmPackage
as
packageEntity
}
from
'
../../mock_data
'
;
jest
.
mock
(
'
~/flash.js
'
);
jest
.
mock
(
'
~/api.js
'
);
...
...
spec/frontend/packages_and_registries/infrastructure_registry/components/details/store/getters_spec.js
View file @
cf21ab45
...
...
@@ -3,7 +3,7 @@ import {
npmPackage
,
mockPipelineInfo
,
mavenPackage
as
packageWithoutBuildInfo
,
}
from
'
jest/packages
/mock_data
'
;
}
from
'
../..
/mock_data
'
;
describe
(
'
Getters PackageDetails Store
'
,
()
=>
{
let
state
;
...
...
spec/frontend/packages_and_registries/infrastructure_registry/components/details/store/mutations_spec.js
View file @
cf21ab45
import
*
as
types
from
'
~/packages_and_registries/infrastructure_registry/details/store/mutation_types
'
;
import
mutations
from
'
~/packages_and_registries/infrastructure_registry/details/store/mutations
'
;
import
{
npmPackage
as
packageEntity
}
from
'
jest/packages
/mock_data
'
;
import
{
npmPackage
as
packageEntity
}
from
'
../..
/mock_data
'
;
describe
(
'
Mutations package details Store
'
,
()
=>
{
let
mockState
;
...
...
spec/frontend/packages_and_registries/infrastructure_registry/components/list/components/packages_list_app_spec.js
View file @
cf21ab45
...
...
@@ -5,7 +5,7 @@ import setWindowLocation from 'helpers/set_window_location_helper';
import
createFlash
from
'
~/flash
'
;
import
*
as
commonUtils
from
'
~/lib/utils/common_utils
'
;
import
PackageListApp
from
'
~/packages_and_registries/infrastructure_registry/list/components/packages_list_app.vue
'
;
import
{
DELETE_PACKAGE_SUCCESS_MESSAGE
}
from
'
~/packages/list/constants
'
;
import
{
DELETE_PACKAGE_SUCCESS_MESSAGE
}
from
'
~/packages
_and_registries/infrastructure_registry
/list/constants
'
;
import
{
SHOW_DELETE_SUCCESS_ALERT
}
from
'
~/packages/shared/constants
'
;
import
{
FILTERED_SEARCH_TERM
}
from
'
~/packages_and_registries/shared/constants
'
;
import
*
as
packageUtils
from
'
~/packages_and_registries/shared/utils
'
;
...
...
spec/frontend/packages_and_registries/infrastructure_registry/components/list/components/packages_list_spec.js
View file @
cf21ab45
...
...
@@ -9,7 +9,7 @@ import PackagesListLoader from '~/packages/shared/components/packages_list_loade
import
{
TrackingActions
}
from
'
~/packages/shared/constants
'
;
import
*
as
SharedUtils
from
'
~/packages/shared/utils
'
;
import
Tracking
from
'
~/tracking
'
;
import
{
packageList
}
from
'
../../
../../../packages/
mock_data
'
;
import
{
packageList
}
from
'
../../mock_data
'
;
const
localVue
=
createLocalVue
();
localVue
.
use
(
Vuex
);
...
...
spec/frontend/packages/list/stores/actions_spec.js
→
spec/frontend/packages
_and_registries/infrastructure_registry/components
/list/stores/actions_spec.js
View file @
cf21ab45
...
...
@@ -3,9 +3,9 @@ import MockAdapter from 'axios-mock-adapter';
import
testAction
from
'
helpers/vuex_action_helper
'
;
import
Api
from
'
~/api
'
;
import
createFlash
from
'
~/flash
'
;
import
{
MISSING_DELETE_PATH_ERROR
}
from
'
~/packages/list/constants
'
;
import
*
as
actions
from
'
~/packages/list/stores/actions
'
;
import
*
as
types
from
'
~/packages/list/stores/mutation_types
'
;
import
{
MISSING_DELETE_PATH_ERROR
}
from
'
~/packages
_and_registries/infrastructure_registry
/list/constants
'
;
import
*
as
actions
from
'
~/packages
_and_registries/infrastructure_registry
/list/stores/actions
'
;
import
*
as
types
from
'
~/packages
_and_registries/infrastructure_registry
/list/stores/mutation_types
'
;
import
{
DELETE_PACKAGE_ERROR_MESSAGE
}
from
'
~/packages/shared/constants
'
;
jest
.
mock
(
'
~/flash.js
'
);
...
...
spec/frontend/packages/list/stores/getters_spec.js
→
spec/frontend/packages
_and_registries/infrastructure_registry/components
/list/stores/getters_spec.js
View file @
cf21ab45
import
getList
from
'
~/packages/list/stores/getters
'
;
import
getList
from
'
~/packages
_and_registries/infrastructure_registry
/list/stores/getters
'
;
import
{
packageList
}
from
'
../../mock_data
'
;
describe
(
'
Getters registry list store
'
,
()
=>
{
...
...
spec/frontend/packages/list/stores/mutations_spec.js
→
spec/frontend/packages
_and_registries/infrastructure_registry/components
/list/stores/mutations_spec.js
View file @
cf21ab45
import
*
as
commonUtils
from
'
~/lib/utils/common_utils
'
;
import
*
as
types
from
'
~/packages/list/stores/mutation_types
'
;
import
mutations
from
'
~/packages/list/stores/mutations
'
;
import
createState
from
'
~/packages/list/stores/state
'
;
import
*
as
types
from
'
~/packages
_and_registries/infrastructure_registry
/list/stores/mutation_types
'
;
import
mutations
from
'
~/packages
_and_registries/infrastructure_registry
/list/stores/mutations
'
;
import
createState
from
'
~/packages
_and_registries/infrastructure_registry
/list/stores/state
'
;
import
{
npmPackage
,
mavenPackage
}
from
'
../../mock_data
'
;
describe
(
'
Mutations Registry Store
'
,
()
=>
{
...
...
spec/frontend/packages/list/utils_spec.js
→
spec/frontend/packages
_and_registries/infrastructure_registry/components
/list/utils_spec.js
View file @
cf21ab45
import
{
SORT_FIELDS
}
from
'
~/packages/list/constants
'
;
import
{
getNewPaginationPage
,
sortableFields
}
from
'
~/packages/list/utils
'
;
import
{
SORT_FIELDS
}
from
'
~/packages_and_registries/infrastructure_registry/list/constants
'
;
import
{
getNewPaginationPage
,
sortableFields
,
}
from
'
~/packages_and_registries/infrastructure_registry/list/utils
'
;
describe
(
'
Packages list utils
'
,
()
=>
{
describe
(
'
sortableFields
'
,
()
=>
{
...
...
spec/frontend/packages/mock_data.js
→
spec/frontend/packages
_and_registries/infrastructure_registry/components
/mock_data.js
View file @
cf21ab45
File moved
spec/frontend/packages_and_registries/infrastructure_registry/components/shared/package_list_row_spec.js
View file @
cf21ab45
...
...
@@ -8,7 +8,7 @@ import PackageTags from '~/packages/shared/components/package_tags.vue';
import
{
PACKAGE_ERROR_STATUS
}
from
'
~/packages/shared/constants
'
;
import
ListItem
from
'
~/vue_shared/components/registry/list_item.vue
'
;
import
{
packageList
}
from
'
../
../../../packages/
mock_data
'
;
import
{
packageList
}
from
'
../mock_data
'
;
describe
(
'
packages_list_row
'
,
()
=>
{
let
wrapper
;
...
...
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