forked from inveniosoftware/invenio-app-rdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overridableRegistry: add global mapping for overriden components
* closes inveniosoftware#2018
- Loading branch information
Showing
8 changed files
with
40 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 0 additions & 7 deletions
7
invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/frontpage/override.js
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
invenio_app_rdm/theme/assets/semantic-ui/js/invenio_app_rdm/overridableRegistry/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// This file is part of InvenioRDM | ||
// Copyright (C) 2023 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. | ||
|
||
import { overridenComponents } from "./mapping"; | ||
|
||
import { overridableRegistry } from "react-invenio-forms"; | ||
|
||
overridableRegistry.addComponents(overridenComponents); |
4 changes: 2 additions & 2 deletions
4
...ui/js/invenio_app_rdm/deposit/override.js → ...io_app_rdm/overridableRegistry/mapping.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
// This file is part of InvenioRDM | ||
// Copyright (C) 2022 CERN. | ||
// Copyright (C) 2023 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 const overriddenComponents = {}; | ||
export const overridenComponents = {}; |
18 changes: 18 additions & 0 deletions
18
invenio_app_rdm/theme/templates/semantic-ui/invenio_app_rdm/page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{# | ||
Copyright (C) 2023 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. | ||
#} | ||
|
||
{%- extends "invenio_theme/page.html" %} | ||
|
||
{%- block body %} | ||
{{ super() }} | ||
|
||
{%- block javascript %} | ||
{{ super() }} | ||
{{ webpack['overridable-registry.js'] }} | ||
{%- endblock javascript %} | ||
|
||
{%- endblock body %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters