Skip to content
This repository was archived by the owner on Dec 12, 2020. It is now read-only.

Commit b651a3c

Browse files
add new npm package
1 parent c09d36e commit b651a3c

File tree

14 files changed

+44
-120
lines changed

14 files changed

+44
-120
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"@patternfly/react-core": "3.134.2",
1111
"@patternfly/react-inline-edit-extension": "2.15.6",
1212
"@patternfly/react-table": "2.25.6",
13+
"@projectopenubl/xml-builder-react": "^0.1.4",
1314
"@redhat-cloud-services/frontend-components-notifications": "^0.0.7",
1415
"@types/enzyme": "^3.10.4",
1516
"@types/jest": "24.0.23",
@@ -36,7 +37,6 @@
3637
"redux-thunk": "^2.3.0",
3738
"typesafe-actions": "^5.1.0",
3839
"typescript": "3.7.2",
39-
"xml-builder-react": "0.1.3",
4040
"yup": "^0.28.0"
4141
},
4242
"scripts": {
@@ -69,4 +69,4 @@
6969
"node-sass": "^4.13.0",
7070
"redux-devtools-extension": "^2.13.8"
7171
}
72-
}
72+
}

src/App.tsx

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ import { AppRoutes } from "./Routes";
55
import "./App.css";
66
import "./App.scss";
77

8-
import { LayoutBasicProject } from "xml-builder-react";
8+
import { LayoutBasicProject } from "@projectopenubl/xml-builder-react";
99

1010
import DeleteMessageDialog from "./SmartComponents/DeleteDialog";
1111
import SidebarNav from "./SmartComponents/SidebarNav";
1212

13+
import brandImageSrc from "./logo.png";
14+
import navBrandImageSrc from "./logo-navbar.svg";
15+
1316
import "@redhat-cloud-services/frontend-components-notifications/index.css";
1417
const frontendComponentsNotifications = require("@redhat-cloud-services/frontend-components-notifications");
1518

@@ -21,13 +24,15 @@ const App: React.FC = () => {
2124
<React.Fragment>
2225
<HashRouter>
2326
<LayoutBasicProject
24-
version="1.0.0.Final"
27+
version={process.env.REACT_APP_VERSION || ""}
2528
productName="XML Builder Signer"
2629
swaggerApiURL="https://app.swaggerhub.com/apis-docs/project-openubl/xml-builder-signer"
2730
githubIssuesURL="https://github.com/project-openubl/xml-builder/issues"
2831
documentationURL="https://project-openubl.gitbook.io/xml-builder/"
2932
githubSourceCodeURL="https://github.com/project-openubl/xml-builder"
3033
sidebarNav={<SidebarNav />}
34+
brandImageSrc={brandImageSrc}
35+
navBrandImageSrc={navBrandImageSrc}
3136
>
3237
<AppRoutes />
3338
<DeleteMessageDialog />

src/PresentationalComponents/PageOrganizationDocuments/PageCreateStandardDocument/PageCreateStandardDocument.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { TabsDocument } from "xml-builder-react";
2+
import { TabsDocument } from "@projectopenubl/xml-builder-react";
33
import { XmlBuilderRouterProps } from "../../../models/routerProps";
44
import DocumentCreate from "../../../SmartComponents/DocumentCreate";
55

src/PresentationalComponents/PageOrganizationDocuments/PageCreateVoidedDocument/PageCreateVoidedDocument.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import { TabsDocument } from "xml-builder-react";
2+
import { TabsDocument } from "@projectopenubl/xml-builder-react";
33
import { XmlBuilderRouterProps } from "../../../models/routerProps";
44
import DocumentCreate from "../../../SmartComponents/DocumentCreate";
55

src/Routes.tsx

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import React from "react";
2-
import { Route, Switch, Redirect } from "react-router-dom";
2+
import { Route, Switch, Redirect, Link } from "react-router-dom";
33
import {
44
PageHome,
55
PageForbidden403,
66
PageNotFound404,
77
PageServiceUnavailable503
8-
} from "xml-builder-react";
8+
} from "@projectopenubl/xml-builder-react";
99
import RouterOrganizationContextLoader from "./SmartComponents/RouterOrganizationContextLoader";
1010
import { PageOrganizationList } from "./PresentationalComponents/PageOrganizationList";
1111
import { PageOrganizationEdit } from "./PresentationalComponents/PageOrganizationEdit";
@@ -22,7 +22,17 @@ export const AppRoutes = () => {
2222
<XmlBuilderRoute
2323
path="/home"
2424
render={() => (
25-
<PageHome welcomeMessage="Bienvenido a XML Builder Signer" />
25+
<PageHome
26+
welcomeMessage="Bienvenido a XML Builder Signer"
27+
buttonAdministrarServidor={
28+
<Link
29+
to="/organizations/list"
30+
className="pf-c-button pf-m-primary"
31+
>
32+
Administrar
33+
</Link>
34+
}
35+
/>
2636
)}
2737
/>
2838

src/SmartComponents/DocumentCreate/DocumentCreate.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
StandardDocumentFormData,
1414
FormVoidedDocument,
1515
FormVoidedDocumentData
16-
} from "xml-builder-react";
16+
} from "@projectopenubl/xml-builder-react";
1717
import { DocumentType } from "../../models/xml-builder";
1818
import { XmlBuilderRouterProps } from "../../models/routerProps";
1919
import { extractFilenameFromContentDispositionHeaderValue } from "../../Utilities/Utils";

src/SmartComponents/KeyList/KeyList.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
TableSkeleton,
1616
TableError,
1717
TableEmpty
18-
} from "xml-builder-react";
18+
} from "@projectopenubl/xml-builder-react";
1919
import { FetchStatus } from "../../store/common";
2020
import {
2121
ComponentRepresentation,

src/SmartComponents/KeyProviders/KeyProviders.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import {
2626
} from "../../models/xml-builder";
2727
import { XmlBuilderRouterProps } from "../../models/routerProps";
2828
import { deleteDialogActions } from "../../store/deleteDialog";
29-
import { TableEmpty, TableError, TableSkeleton } from "xml-builder-react";
29+
import { TableEmpty, TableError, TableSkeleton } from "@projectopenubl/xml-builder-react";
3030

3131
interface StateToProps {
3232
serverInfo: ServerInfoRepresentation | undefined;

src/SmartComponents/KeysActive/KeysActive.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
TableSkeleton,
2222
TableError,
2323
TableEmpty
24-
} from "xml-builder-react";
24+
} from "@projectopenubl/xml-builder-react";
2525

2626
interface StateToProps {
2727
organizationKeys: KeysMetadataRepresentation | undefined;

src/SmartComponents/OrganizationList/OrganizationListPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
TableSkeleton,
2525
TableEmpty,
2626
TableError
27-
} from "xml-builder-react";
27+
} from "@projectopenubl/xml-builder-react";
2828
import {
2929
OrganizationRepresentation,
3030
SearchResultsRepresentation

src/api/documents.tsx

-26
This file was deleted.

src/store/document/actions.tsx

-60
This file was deleted.

src/store/document/index.tsx

-3
This file was deleted.

yarn.lock

+15-17
Original file line numberDiff line numberDiff line change
@@ -2180,6 +2180,21 @@
21802180
resolved "https://registry.yarnpkg.com/@patternfly/react-tokens/-/react-tokens-2.7.25.tgz#69b517f635721bedcefa6b4535688a11586be115"
21812181
integrity sha512-04hRDWt07pyjLUO1VN9QbrPpQMJzjd+nQYp8vgoe6+mYBzw+D4banJeudZ1oTFii9hWV+mLEu6aiwPtTigPM1Q==
21822182

2183+
"@projectopenubl/xml-builder-react@^0.1.4":
2184+
version "0.1.4"
2185+
resolved "https://registry.yarnpkg.com/@projectopenubl/xml-builder-react/-/xml-builder-react-0.1.4.tgz#8124d95512be176b515ed96072ade4e0f4b43ba7"
2186+
integrity sha512-jg4/UeTUFR2MI59wXDAwPHPaa3U2AfdMkWgB5NSt7mzqYEdjkQYd8qJknXsteUwNJ+kdGYZmDxEUZ0S9kDddKg==
2187+
dependencies:
2188+
"@testing-library/jest-dom" "^4.2.4"
2189+
"@testing-library/react" "^9.3.2"
2190+
"@testing-library/user-event" "^7.1.2"
2191+
"@types/jest" "^24.0.0"
2192+
"@types/node" "^12.0.0"
2193+
"@types/react" "^16.9.0"
2194+
"@types/react-dom" "^16.9.0"
2195+
react-scripts "3.3.1"
2196+
typescript "~3.7.2"
2197+
21832198
"@redhat-cloud-services/frontend-components-notifications@^0.0.7":
21842199
version "0.0.7"
21852200
resolved "https://registry.yarnpkg.com/@redhat-cloud-services/frontend-components-notifications/-/frontend-components-notifications-0.0.7.tgz#7306af9215e5b0455bdc7e6acdf078db64ef9676"
@@ -14562,23 +14577,6 @@ ws@^7.0.0:
1456214577
dependencies:
1456314578
async-limiter "^1.0.0"
1456414579

14565-
14566-
version "0.1.3"
14567-
resolved "https://registry.yarnpkg.com/xml-builder-react/-/xml-builder-react-0.1.3.tgz#08b9f691dc0b38cadc83f6aa47b743cbd79a16ff"
14568-
integrity sha512-i8xRuRqBe0HmhnkUbV5Cejt8QQOrn1HYRDmlbFfaypJ5NzPPT7sVjoEcpoC5tJoGDtqqbkd4imTtZF85P+f7xA==
14569-
dependencies:
14570-
"@testing-library/jest-dom" "^4.2.4"
14571-
"@testing-library/react" "^9.3.2"
14572-
"@testing-library/user-event" "^7.1.2"
14573-
"@types/jest" "^24.0.0"
14574-
"@types/node" "^12.0.0"
14575-
"@types/react" "^16.9.0"
14576-
"@types/react-dom" "^16.9.0"
14577-
react "^16.12.0"
14578-
react-dom "^16.12.0"
14579-
react-scripts "3.3.1"
14580-
typescript "~3.7.2"
14581-
1458214580
xml-name-validator@^3.0.0:
1458314581
version "3.0.0"
1458414582
resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-3.0.0.tgz#6ae73e06de4d8c6e47f9fb181f78d648ad457c6a"

0 commit comments

Comments
 (0)