mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Highlights of this patch include: - Changes will affect SQL Editors in Create dialog boxes, SQL tab of the main screen, Query tool, History entries in the query tool, Query tool opened in New Tab/Window - All the components of SQL editor will refer to single source of preferences which is cached in the Browser object. All other redundant ajax get preference calls are removed. - SQL editor will not refer template JS variables anymore, once all the references are removed the template variables will also be removed. - Code refactoring wherever possible. - Covered JS test cases wherever possible.
38 lines
931 B
JavaScript
38 lines
931 B
JavaScript
//////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2018, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
import PropTypes from 'prop-types';
|
|
|
|
let historyDetail =
|
|
PropTypes.shape({
|
|
query: PropTypes.string,
|
|
start_time: PropTypes.instanceOf(Date),
|
|
status: PropTypes.bool,
|
|
total_time: PropTypes.string,
|
|
row_affected: PropTypes.int,
|
|
message: PropTypes.string,
|
|
});
|
|
|
|
let historyCollectionClass =
|
|
PropTypes.shape({
|
|
historyList: PropTypes.array.isRequired,
|
|
onChange: PropTypes.func.isRequired,
|
|
});
|
|
|
|
let sqlEditorPrefObj =
|
|
PropTypes.shape({
|
|
sql_font_size: PropTypes.string.isRequired,
|
|
});
|
|
|
|
export default {
|
|
historyDetail,
|
|
historyCollectionClass,
|
|
sqlEditorPrefObj,
|
|
};
|