Skip to content

Commit b2f554f

Browse files
authored
Merge pull request #258 from terminusdb/openAIUI
Open ai UI
2 parents 888555c + c5f7055 commit b2f554f

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

packages/tdb-dashboard/src/App.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,10 @@ pre.CodeMirror-line > span > span.cm-string {
10621062
background-color: transparent !important;
10631063
}
10641064

1065+
.graphiql-un-styled[data-value="settings"]{
1066+
display: none !important;
1067+
}
1068+
10651069
/*
10661070
.graphiql-container .graphiql-chevron-icon{
10671071
color:white;

packages/tdb-dashboard/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<link href='/assets/leaflet.fullscreenv1.0.1.css' rel='stylesheet' />
1212
</style>
1313
</head>
14-
<body class="graphiql-dark">
14+
<body>
1515
<div id="root" class="h-100">
1616
</div>
1717
<style>

packages/tdb-dashboard/src/index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,9 @@ function NavigationComponent(){
1717

1818
let navigate = useNavigate();
1919
const redirect_uri = window.location.origin
20-
21-
22-
// this happen after confirm you password linking in the email url
23-
/* if (window.location.search.includes("supportSignUp=true")) {
24-
// window.location.replace('/')
25-
}*/
20+
localStorage.setItem("graphiql:theme","dark")
2621
// you enter here only if you are log - in
2722
const onRedirectCallback = (appState) => {
28-
2923
navigate(appState && appState.targetUrl ? appState.targetUrl : window.location.pathname);
3024

3125
};
@@ -48,9 +42,6 @@ function NavigationComponent(){
4842
return <LoginModal showModal={true} isCloseble={false}/>
4943
}
5044

51-
52-
53-
5445
return <WOQLClientProvider params={localSettings}>
5546
<App/>
5647
</WOQLClientProvider>

packages/tdb-dashboard/src/pages/GraphIqlEditor.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import { GraphiQL } from "graphiql";
66
import { Layout } from "./Layout";
77
import {WOQLClientObj} from '../init-woql-client'
88
require( "graphiql/graphiql.min.css");
9-
//require('codemirror/lib/codemirror.css');
10-
//require('codemirror/theme/shadowfox.css');
119

1210
export function GraphIqlEditor({}) {
1311
const {woqlClient,currentChangeRequest} = WOQLClientObj()

0 commit comments

Comments
 (0)