Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override uploads #1972

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// This file is part of InvenioRDM
// Copyright (C) 2020-2022 CERN.
// Copyright (C) 2020-2021 Northwestern University.
// Copyright (C) 2021 Graz University of Technology.
// Copyright (C) 2021 New York University.
// Copyright (C) 2022 CERN.
//
// Invenio App RDM is free software; you can redistribute it and/or modify it
// under the terms of the MIT License; see LICENSE file for more details.
Expand All @@ -18,12 +15,11 @@ import {
RDMEmptyResults as RDMNoSearchResults,
RDMRecordSearchBarElement,
RDMToggleComponent,
} from "../search/components";
} from "../../search/components";
import { http } from "react-invenio-forms";
import { DashboardResultView, DashboardSearchLayoutHOC } from "./base";
import { createSearchAppInit } from "@js/invenio_search_ui";
import { ComputerTabletUploadsItem } from "./uploads_items/ComputerTabletUploadsItem";
import { MobileUploadsItem } from "./uploads_items/MobileUploadsItem";
import { DashboardResultView, DashboardSearchLayoutHOC } from "../base";
import { ComputerTabletUploadsItem } from "../uploads_items/ComputerTabletUploadsItem";
import { MobileUploadsItem } from "../uploads_items/MobileUploadsItem";
import PropTypes from "prop-types";
import {
ContribSearchAppFacets,
Expand Down Expand Up @@ -174,7 +170,7 @@ export const DashboardUploadsSearchLayout = DashboardSearchLayoutHOC({
),
});

const ContribSearchAppFacetsWithConfig = parametrize(ContribSearchAppFacets, {
export const ContribSearchAppFacetsWithConfig = parametrize(ContribSearchAppFacets, {
toogle: true,
});

Expand All @@ -191,5 +187,3 @@ export const defaultComponents = {
"SearchBar.element": RDMRecordSearchBarElement,
"SearchFilters.Toggle.element": RDMToggleComponent,
};

createSearchAppInit(defaultComponents);
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// This file is part of Invenio App RDM
// Copyright (C) 2022 CERN.
//
// Invenio App RDM is free software; you can redistribute it and/or modify it
// under the terms of the MIT License; see LICENSE file for more details.

export { defaultComponents } from "./defaultComponents";
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// This file is part of InvenioRDM
// Copyright (C) 2020-2022 CERN.
// Copyright (C) 2020-2021 Northwestern University.
// Copyright (C) 2021 Graz University of Technology.
// Copyright (C) 2021 New York University.
//
// Invenio App RDM is free software; you can redistribute it and/or modify it
// under the terms of the MIT License; see LICENSE file for more details.

import { defaultComponents } from "./defaultComponents";

export const overridenComponents = {
...defaultComponents,
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This file is part of InvenioRDM
// Copyright (C) 2020-2022 CERN.
// Copyright (C) 2020-2021 Northwestern University.
// Copyright (C) 2021 Graz University of Technology.
// Copyright (C) 2021 New York University.
//
// Invenio App RDM is free software; you can redistribute it and/or modify it
// under the terms of the MIT License; see LICENSE file for more details.

import { createSearchAppInit } from "@js/invenio_search_ui";
import { overridenComponents } from "./override";

createSearchAppInit(overridenComponents);