Commit c4bff0ef authored by Natalia Tepluhina's avatar Natalia Tepluhina

Merge branch...

Merge branch '218545-refactor-container-registry-frontend-code-to-ease-community-contribution' into 'master'

Move list page components under dedicated folder

See merge request gitlab-org/gitlab!33825
parents 81d437ab cf241cf2
...@@ -11,7 +11,7 @@ import { ...@@ -11,7 +11,7 @@ import {
COPY_BUILD_TITLE, COPY_BUILD_TITLE,
PUSH_COMMAND_LABEL, PUSH_COMMAND_LABEL,
COPY_PUSH_TITLE, COPY_PUSH_TITLE,
} from '../constants/index'; } from '../../constants/index';
export default { export default {
components: { components: {
......
...@@ -8,7 +8,7 @@ import { ...@@ -8,7 +8,7 @@ import {
LIST_DELETE_BUTTON_DISABLED, LIST_DELETE_BUTTON_DISABLED,
REMOVE_REPOSITORY_LABEL, REMOVE_REPOSITORY_LABEL,
ROW_SCHEDULED_FOR_DELETION, ROW_SCHEDULED_FOR_DELETION,
} from '../constants/index'; } from '../../constants/index';
export default { export default {
name: 'ImageListrow', name: 'ImageListrow',
......
...@@ -8,7 +8,7 @@ import { ...@@ -8,7 +8,7 @@ import {
COPY_BUILD_TITLE, COPY_BUILD_TITLE,
COPY_PUSH_TITLE, COPY_PUSH_TITLE,
QUICK_START, QUICK_START,
} from '../constants/index'; } from '../../constants/index';
export default { export default {
name: 'ProjectEmptyState', name: 'ProjectEmptyState',
......
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
EXPIRATION_POLICY_WILL_RUN_IN, EXPIRATION_POLICY_WILL_RUN_IN,
EXPIRATION_POLICY_DISABLED_TEXT, EXPIRATION_POLICY_DISABLED_TEXT,
EXPIRATION_POLICY_DISABLED_MESSAGE, EXPIRATION_POLICY_DISABLED_MESSAGE,
} from '../constants/index'; } from '../../constants/index';
export default { export default {
components: { components: {
......
...@@ -12,11 +12,11 @@ import { ...@@ -12,11 +12,11 @@ import {
} from '@gitlab/ui'; } from '@gitlab/ui';
import Tracking from '~/tracking'; import Tracking from '~/tracking';
import ProjectEmptyState from '../components/project_empty_state.vue'; import ProjectEmptyState from '../components/list_page/project_empty_state.vue';
import GroupEmptyState from '../components/group_empty_state.vue'; import GroupEmptyState from '../components/list_page/group_empty_state.vue';
import RegistryHeader from '../components/registry_header.vue'; import RegistryHeader from '../components/list_page/registry_header.vue';
import ImageList from '../components/image_list.vue'; import ImageList from '../components/list_page/image_list.vue';
import CliCommands from '../components/cli_commands.vue'; import CliCommands from '../components/list_page/cli_commands.vue';
import { import {
DELETE_IMAGE_SUCCESS_MESSAGE, DELETE_IMAGE_SUCCESS_MESSAGE,
......
...@@ -3,7 +3,7 @@ import { mount, createLocalVue } from '@vue/test-utils'; ...@@ -3,7 +3,7 @@ import { mount, createLocalVue } from '@vue/test-utils';
import { GlDropdown, GlFormGroup, GlFormInputGroup } from '@gitlab/ui'; import { GlDropdown, GlFormGroup, GlFormInputGroup } from '@gitlab/ui';
import Tracking from '~/tracking'; import Tracking from '~/tracking';
import * as getters from '~/registry/explorer/stores/getters'; import * as getters from '~/registry/explorer/stores/getters';
import QuickstartDropdown from '~/registry/explorer/components/cli_commands.vue'; import QuickstartDropdown from '~/registry/explorer/components/list_page/cli_commands.vue';
import ClipboardButton from '~/vue_shared/components/clipboard_button.vue'; import ClipboardButton from '~/vue_shared/components/clipboard_button.vue';
import { import {
......
import Vuex from 'vuex'; import Vuex from 'vuex';
import { shallowMount, createLocalVue } from '@vue/test-utils'; import { shallowMount, createLocalVue } from '@vue/test-utils';
import { GlSprintf } from '@gitlab/ui'; import { GlSprintf } from '@gitlab/ui';
import { GlEmptyState } from '../stubs'; import { GlEmptyState } from '../../stubs';
import groupEmptyState from '~/registry/explorer/components/group_empty_state.vue'; import groupEmptyState from '~/registry/explorer/components/list_page/group_empty_state.vue';
const localVue = createLocalVue(); const localVue = createLocalVue();
localVue.use(Vuex); localVue.use(Vuex);
......
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import { GlIcon, GlSprintf } from '@gitlab/ui'; import { GlIcon, GlSprintf } from '@gitlab/ui';
import { createMockDirective, getBinding } from 'helpers/vue_mock_directive'; import { createMockDirective, getBinding } from 'helpers/vue_mock_directive';
import Component from '~/registry/explorer/components/image_list_row.vue'; import Component from '~/registry/explorer/components/list_page/image_list_row.vue';
import ClipboardButton from '~/vue_shared/components/clipboard_button.vue'; import ClipboardButton from '~/vue_shared/components/clipboard_button.vue';
import { import {
ROW_SCHEDULED_FOR_DELETION, ROW_SCHEDULED_FOR_DELETION,
LIST_DELETE_BUTTON_DISABLED, LIST_DELETE_BUTTON_DISABLED,
} from '~/registry/explorer/constants'; } from '~/registry/explorer/constants';
import { RouterLink } from '../stubs'; import { RouterLink } from '../../stubs';
import { imagesListResponse } from '../mock_data'; import { imagesListResponse } from '../../mock_data';
describe('Image List Row', () => { describe('Image List Row', () => {
let wrapper; let wrapper;
......
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import { GlPagination } from '@gitlab/ui'; import { GlPagination } from '@gitlab/ui';
import Component from '~/registry/explorer/components/image_list.vue'; import Component from '~/registry/explorer/components/list_page/image_list.vue';
import ImageListRow from '~/registry/explorer/components/image_list_row.vue'; import ImageListRow from '~/registry/explorer/components/list_page/image_list_row.vue';
import { imagesListResponse, imagePagination } from '../mock_data'; import { imagesListResponse, imagePagination } from '../../mock_data';
describe('Image List', () => { describe('Image List', () => {
let wrapper; let wrapper;
......
import Vuex from 'vuex'; import Vuex from 'vuex';
import { shallowMount, createLocalVue } from '@vue/test-utils'; import { shallowMount, createLocalVue } from '@vue/test-utils';
import { GlSprintf } from '@gitlab/ui'; import { GlSprintf } from '@gitlab/ui';
import { GlEmptyState } from '../stubs'; import { GlEmptyState } from '../../stubs';
import projectEmptyState from '~/registry/explorer/components/project_empty_state.vue'; import projectEmptyState from '~/registry/explorer/components/list_page/project_empty_state.vue';
import * as getters from '~/registry/explorer/stores/getters'; import * as getters from '~/registry/explorer/stores/getters';
const localVue = createLocalVue(); const localVue = createLocalVue();
......
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import { GlSprintf, GlLink } from '@gitlab/ui'; import { GlSprintf, GlLink } from '@gitlab/ui';
import Component from '~/registry/explorer/components/registry_header.vue'; import Component from '~/registry/explorer/components/list_page/registry_header.vue';
import { import {
CONTAINER_REGISTRY_TITLE, CONTAINER_REGISTRY_TITLE,
LIST_INTRO_TEXT, LIST_INTRO_TEXT,
......
...@@ -3,11 +3,11 @@ import { GlSkeletonLoader, GlSprintf, GlAlert, GlSearchBoxByClick } from '@gitla ...@@ -3,11 +3,11 @@ import { GlSkeletonLoader, GlSprintf, GlAlert, GlSearchBoxByClick } from '@gitla
import Tracking from '~/tracking'; import Tracking from '~/tracking';
import waitForPromises from 'helpers/wait_for_promises'; import waitForPromises from 'helpers/wait_for_promises';
import component from '~/registry/explorer/pages/list.vue'; import component from '~/registry/explorer/pages/list.vue';
import CliCommands from '~/registry/explorer/components/cli_commands.vue'; import CliCommands from '~/registry/explorer/components/list_page/cli_commands.vue';
import GroupEmptyState from '~/registry/explorer/components/group_empty_state.vue'; import GroupEmptyState from '~/registry/explorer/components/list_page/group_empty_state.vue';
import ProjectEmptyState from '~/registry/explorer/components/project_empty_state.vue'; import ProjectEmptyState from '~/registry/explorer/components/list_page/project_empty_state.vue';
import RegistryHeader from '~/registry/explorer/components/registry_header.vue'; import RegistryHeader from '~/registry/explorer/components/list_page/registry_header.vue';
import ImageList from '~/registry/explorer/components/image_list.vue'; import ImageList from '~/registry/explorer/components/list_page/image_list.vue';
import { createStore } from '~/registry/explorer/stores/'; import { createStore } from '~/registry/explorer/stores/';
import { import {
SET_MAIN_LOADING, SET_MAIN_LOADING,
......
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