Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

#224 move server author over to use the view service #234

Merged
merged 29 commits into from
Sep 1, 2021
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
5af7cb0
#224 move glossary author rest code to a common folder
davidradl Aug 4, 2021
b2c4fe1
#224 correct restCaller import
davidradl Aug 4, 2021
f912f81
#224 correct restCaller import
davidradl Aug 4, 2021
c45142f
#224 move files to standard folders
davidradl Aug 4, 2021
e1bccb2
#224 first rest call moving to restCaller
davidradl Aug 4, 2021
959a9cb
git224 add registration for cohort to server author
davidradl Aug 26, 2021
3788903
git224 fix up the server author styling
davidradl Aug 26, 2021
c5c6888
git224 create separate local repository capability
davidradl Aug 27, 2021
75bb88b
Merge branch 'main' of https://github.com/odpi/egeria-react-ui into g…
davidradl Aug 27, 2021
3bcc4a8
git224 clear out context on new server type selection
davidradl Aug 27, 2021
a99dd5c
#224 basic path working for metadata server
davidradl Aug 31, 2021
dce0548
#224 disable non working server types
davidradl Aug 31, 2021
1e0f660
#224 addres lift style issues
davidradl Aug 31, 2021
539d1e3
#224 amend front page buttons
davidradl Aug 31, 2021
db40dcc
#224 address lift style issue
davidradl Aug 31, 2021
dcac307
#224 address lift warning
davidradl Aug 31, 2021
6b83b52
#224 address lift warning
davidradl Aug 31, 2021
441be2b
#224 address lift warning
davidradl Aug 31, 2021
140a24a
#224 address lift warning
davidradl Aug 31, 2021
913484f
#224 address lift warning
davidradl Aug 31, 2021
0539f27
#224 address lift warning
davidradl Aug 31, 2021
e6410d4
#224 address lift warning
davidradl Aug 31, 2021
55e2874
#224 address lift warning
davidradl Aug 31, 2021
12ea90a
#224 address lift warning
davidradl Aug 31, 2021
a5463f3
#224 address lift warning
davidradl Aug 31, 2021
cb6d80b
#224 address lift warning
davidradl Aug 31, 2021
502c55b
#224 address lift warning
davidradl Aug 31, 2021
904c70a
#224 change AllServers to jsx as a test
davidradl Sep 1, 2021
4fd4042
#224 change Server author js file extension to jsx
davidradl Sep 1, 2021
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
7 changes: 4 additions & 3 deletions cra-client/src/Frame.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import TypeExplorer from "./components/TypeExplorer/TypeExplorer";
import Dino from "./components/Dino/Dino";
import ServerAuthor from "./components/ServerAuthor/ServerAuthor";
import { IdentificationContext } from "./contexts/IdentificationContext";
import ServerAuthorContext from "./contexts/ServerAuthorContext";


import {
Header,
Expand Down Expand Up @@ -106,6 +106,9 @@ export default function Frame() {
expanded={userOpen}
>
<Switcher aria-label="">
<SwitcherItem style={{ textAlign: 'left' }}>
Logged in User: {userId}
</SwitcherItem>
<SwitcherItem
aria-label=""
style={{ textAlign: 'left' }}
Expand Down Expand Up @@ -180,9 +183,7 @@ export default function Frame() {
<TypeExplorer />
</Route>
<Route path={serverUrl}>
<ServerAuthorContext>
<ServerAuthor />
</ServerAuthorContext>
</Route>
<Route path={dinoUrl}>
<Dino />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/* Copyright Contributors to the ODPi Egeria project. */
import React, { useState, useEffect } from "react";
import { Breadcrumb, BreadcrumbItem } from "carbon-components-react";
import { useLocation, withRouter, useHistory, Link } from "react-router-dom";
import { useLocation, withRouter, Link } from "react-router-dom";

function GlossaryAuthorBreadCrumb(props) {
console.log("GlossaryAuthorBreadCrumb ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Add32 from "../../../images/carbon/Egeria_add_32";
import getNodeType from "./properties/NodeTypes.js";
import { Button, Form, FormGroup, TextInput, Loading } from "carbon-components-react";

import { issueRestCreate } from "./RestCaller";
import { issueRestCreate } from "../../common/RestCaller";
import { useHistory, withRouter } from "react-router-dom";

function GlossaryQuickTerms(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import {
TableHeader,
TableBody,
} from "carbon-components-react";
import { issueRestCreate } from "../RestCaller";
import { issueRestUpdate } from "../RestCaller";
import { issueRestDelete } from "../RestCaller";
import { issueRestCreate } from "../../../common/RestCaller";
import { issueRestUpdate } from "../../../common/RestCaller";
import { issueRestDelete } from "../../../common/RestCaller";

/**
* Component to show the input page for a node that is about to be created or updated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ import {
TableHeader,
TableBody,
} from "carbon-components-react";
import { issueRestCreate } from "../RestCaller";
import { issueRestUpdate } from "../RestCaller";
import { issueRestDelete } from "../RestCaller";
import { issueRestCreate } from "../../../common/RestCaller";
import { issueRestUpdate } from "../../../common/RestCaller";
import { issueRestDelete } from "../../../common/RestCaller";

/**
* Component to show the page for a relationship that is about to be created or updated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { parse } from "date-fns";
* where the user can confirm the values that will be used to create the glossary.
*
* This component drives the NodeInput component, which displays the node. There are callbacks to the wizard
* when the user has finsished with entering creation content.
* when the user has finished with entering creation content.
* This component then drives NodeReadOnly which displays the confirmation screen, issues the create and then shows the results
* of the create.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { Pagination, Toggle } from "carbon-components-react";
import NodeTableView from "../views/NodeTableView";

import getNodeType from "../properties/NodeTypes.js";
import { issueRestGet, issueRestDelete } from "../RestCaller";
import { issueRestGet, issueRestDelete } from "../../../common/RestCaller";

import { Link } from "react-router-dom";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import NodeTableView from "../views/NodeTableView";
//import GlossaryImage from "../../../images/Egeria_glossary_32";
import getNodeType from "../properties/NodeTypes.js";
import getPathTypesAndGuids from "../properties/PathAnalyser";
import { issueRestGet, issueRestDelete } from "../RestCaller";
import { issueRestGet, issueRestDelete } from "../../../common/RestCaller";

import { Link } from "react-router-dom";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Term32 from "../../../../images/odpi/Egeria_term_32";
import { LocalNodeCard, NodeCardSection } from "../NodeCard/NodeCard";
import { withRouter } from "react-router-dom";
import getNodeType from "../properties/NodeTypes.js";
import { issueRestGet, issueRestDelete } from "../RestCaller";
import { issueRestGet, issueRestDelete } from "../../../common/RestCaller";
import { Pagination, Toggle } from "carbon-components-react";
import NodeTableView from "../views/NodeTableView";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import ParentChild32 from "../../../../images/carbon/Egeria_parent_child_32";
import GlossaryImage from "../../../../images/odpi/Egeria_glossary_32";

import { LocalNodeCard, NodeCardSection } from "../NodeCard/NodeCard";
import { issueRestGet, issueRestDelete } from "../RestCaller";
import { issueRestGet, issueRestDelete } from "../../../common/RestCaller";
import useDebounce from "../useDebounce";
import NodeTableView from "../views/NodeTableView";
import getNodeType from "../properties/NodeTypes.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
TableBody,
} from "carbon-components-react";
import Info16 from "@carbon/icons-react/lib/information/16";
import { issueRestUpdate, issueRestGet } from "../RestCaller";
import { issueRestUpdate, issueRestGet } from "../../../common/RestCaller";
import { useHistory } from "react-router-dom";

export default function UpdateNode(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
TableBody,
} from "carbon-components-react";
import Info16 from "@carbon/icons-react/lib/information/16";
import { issueRestUpdate } from "../RestCaller";
import { issueRestUpdate } from "../../../common/RestCaller";

export default function UpdateRelationshipInline(props) {
const [updateBody, setUpdateBody] = useState({});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import SearchNodeButtonWidget from "./SearchNodeButtonWidget"

import "../../glove.scss";

import { issueRestGet } from "../../../RestCaller";
import { issueRestGet } from "../../../../../common/RestCaller";


export default function GraphControls(props) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import React, { createContext, useContext, useState, useCallback } from "react";

import PropTypes from "prop-types";
import { issueRestGet } from "../../RestCaller";
import { issueRestGet } from "../../../../common/RestCaller";
import getNodeType from "../../properties/NodeTypes";
import getRelationshipType from "../../properties/RelationshipTypes";
import { useHistory } from "react-router";
Expand Down
Loading