mirror of
https://github.com/zhigang1992/graphql-engine.git
synced 2026-05-24 17:03:37 +08:00
console: disable change schema dropdown (#24)
* console: disable change schema dropdown * console: fix graphiql scroll for document title
This commit is contained in:
25
console/Makefile
Normal file
25
console/Makefile
Normal file
@@ -0,0 +1,25 @@
|
||||
export PATH := node_modules/.bin:$(PATH)
|
||||
DIST_PATH = /console/static/dist
|
||||
CONSOLE_PATH = /console
|
||||
BUCKET_NAME = hasura-graphql-engine
|
||||
|
||||
all: deps build gcloud-cp-stable gcloud-set-metadata
|
||||
|
||||
deps:
|
||||
npm install
|
||||
|
||||
build:
|
||||
npm run build
|
||||
|
||||
test:
|
||||
npm run test
|
||||
|
||||
gcloud-cp-stable:
|
||||
gsutil cp -r $(DIST_PATH)/main.css/* gs://$BUCKET_NAME/console/${VERSION}/main.css
|
||||
gsutil cp -r $(DIST_PATH)/main.js/* gs://$BUCKET_NAME/console/${VERSION}/main.js
|
||||
gsutil cp -r $(DIST_PATH)/vendor.js/* gs://$BUCKET_NAME/console/${VERSION}/vendor.js
|
||||
|
||||
gcloud-set-metadata:
|
||||
gsutil setmeta -h "Content-Type: application/javascript" gs:// + $(BUCKET_NAME) + '/console/' + ${VERSION} + '/*.js'
|
||||
gsutil setmeta -h "Content-Type: text/css" gs:// + $(BUCKET_NAME) + '/console/' + $(VERSION) + '/*.css'
|
||||
gsutil setmeta -h "Content-Encoding: gzip" gs:// + $(BUCKET_NAME) + '/console/' + $(VERSION) + '/*'
|
||||
@@ -1256,7 +1256,7 @@ span.CodeMirror-selectedtext {
|
||||
-ms-flex: 1;
|
||||
flex: 1;
|
||||
font-weight: bold;
|
||||
overflow-x: hidden;
|
||||
overflow-x: initial;
|
||||
padding: 10px 0 10px 10px;
|
||||
text-align: center;
|
||||
text-overflow: ellipsis;
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
import React from 'react';
|
||||
import { Link } from 'react-router';
|
||||
import Helmet from 'react-helmet';
|
||||
import { push } from 'react-router-redux';
|
||||
// import { push } from 'react-router-redux';
|
||||
|
||||
import PageContainer from './PageContainer/PageContainer';
|
||||
|
||||
import { appPrefix } from './push';
|
||||
/*
|
||||
import {
|
||||
UPDATE_CURRENT_SCHEMA,
|
||||
loadSchema,
|
||||
loadUntrackedSchema,
|
||||
} from './DataActions';
|
||||
*/
|
||||
import globals from '../../../Globals';
|
||||
|
||||
const DataHeader = ({
|
||||
schema,
|
||||
schemaList,
|
||||
// schemaList,
|
||||
currentSchema,
|
||||
children,
|
||||
location,
|
||||
@@ -23,6 +25,7 @@ const DataHeader = ({
|
||||
}) => {
|
||||
const styles = require('./TableCommon/Table.scss');
|
||||
const currentLocation = location.pathname;
|
||||
/*
|
||||
const handleSchemaChange = e => {
|
||||
const updatedSchema = e.target.value;
|
||||
dispatch(push(globals.urlPrefix + '/data/schema/' + updatedSchema));
|
||||
@@ -32,6 +35,7 @@ const DataHeader = ({
|
||||
dispatch(loadUntrackedSchema()),
|
||||
]);
|
||||
};
|
||||
*/
|
||||
let migrationSection = null;
|
||||
if (globals.consoleMode === 'cli') {
|
||||
migrationSection = (
|
||||
@@ -70,6 +74,7 @@ const DataHeader = ({
|
||||
</Link>
|
||||
</div>
|
||||
<div className={styles.schemaSidebarSection}>
|
||||
{/* disable dropdown selection for now
|
||||
<select
|
||||
onChange={handleSchemaChange}
|
||||
className={'form-control'}
|
||||
@@ -87,6 +92,7 @@ const DataHeader = ({
|
||||
);
|
||||
})}
|
||||
</select>
|
||||
*/}
|
||||
</div>
|
||||
</div>
|
||||
<PageContainer
|
||||
|
||||
Reference in New Issue
Block a user