console: disable change schema dropdown (#24)

* console: disable change schema dropdown

* console: fix graphiql scroll for document title
This commit is contained in:
Praveen Durairaj
2018-06-29 17:21:00 +05:30
committed by GitHub
parent 128ed2388b
commit a979efa6ef
3 changed files with 34 additions and 3 deletions

25
console/Makefile Normal file
View 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) + '/*'

View File

@@ -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;

View File

@@ -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