mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
server connections handling
This commit is contained in:
@@ -27,7 +27,7 @@ export function FontIcon({ icon, ...props }) {
|
||||
let className = props.className || '';
|
||||
|
||||
// if (_.startsWith(name, 'bs-')) className += ` glyphicon glyphicon-${name.substr(3)}`;
|
||||
if (type == 'fas' || type == 'far') className += ` ${type} ${name}`;
|
||||
if (type == 'fas' || type == 'far') className += ` ${type} ${name} ${parts.join(' ')}`;
|
||||
|
||||
if (_.includes(parts, 'spin')) className += ' fa-spin';
|
||||
|
||||
@@ -41,67 +41,73 @@ export function FontIcon({ icon, ...props }) {
|
||||
return <i {...props} className={className} style={style} title={props.title} />;
|
||||
}
|
||||
|
||||
export function ExpandIcon({ isBlank = false, isExpanded = false, isSelected = false, ...other }) {
|
||||
export function ExpandIcon({
|
||||
isBlank = false,
|
||||
isExpanded = false,
|
||||
isSelected = false,
|
||||
blankColor = 'white',
|
||||
...other
|
||||
}) {
|
||||
if (isBlank) {
|
||||
return <FontIcon icon={`fas fa-square ${isSelected ? 'lightblue' : 'white'}`} {...other} />;
|
||||
return <FontIcon icon={`fas fa-square ${isSelected ? 'lightblue' : blankColor}`} {...other} />;
|
||||
}
|
||||
return <FontIcon icon={`far ${isExpanded ? 'fa-minus-square' : 'fa-plus-square'} `} {...other} />;
|
||||
}
|
||||
|
||||
export const TableIcon = props => getIconImage('table2.svg', props);
|
||||
export const ViewIcon = props => getIconImage('view2.svg', props);
|
||||
export const DatabaseIcon = props => getIconImage('database.svg', props);
|
||||
export const ServerIcon = props => getIconImage('server.svg', props);
|
||||
export const TableIcon = (props) => getIconImage('table2.svg', props);
|
||||
export const ViewIcon = (props) => getIconImage('view2.svg', props);
|
||||
export const DatabaseIcon = (props) => getIconImage('database.svg', props);
|
||||
export const ServerIcon = (props) => getIconImage('server.svg', props);
|
||||
|
||||
export const MicrosoftIcon = props => getIconImage('microsoft.svg', props);
|
||||
export const MySqlIcon = props => getIconImage('mysql.svg', props);
|
||||
export const PostgreSqlIcon = props => getIconImage('postgresql.svg', props);
|
||||
export const SqliteIcon = props => getIconImage('sqlite.svg', props);
|
||||
export const MicrosoftIcon = (props) => getIconImage('microsoft.svg', props);
|
||||
export const MySqlIcon = (props) => getIconImage('mysql.svg', props);
|
||||
export const PostgreSqlIcon = (props) => getIconImage('postgresql.svg', props);
|
||||
export const SqliteIcon = (props) => getIconImage('sqlite.svg', props);
|
||||
|
||||
export const ProcedureIcon = props => getIconImage('procedure2.svg', props);
|
||||
export const FunctionIcon = props => getIconImage('function.svg', props);
|
||||
export const TriggerIcon = props => getIconImage('trigger.svg', props);
|
||||
export const ProcedureIcon = (props) => getIconImage('procedure2.svg', props);
|
||||
export const FunctionIcon = (props) => getIconImage('function.svg', props);
|
||||
export const TriggerIcon = (props) => getIconImage('trigger.svg', props);
|
||||
|
||||
export const HomeIcon = props => getIconImage('home.svg', props);
|
||||
export const PrimaryKeyIcon = props => getIconImage('primarykey.svg', props);
|
||||
export const ForeignKeyIcon = props => getIconImage('foreignkey.svg', props);
|
||||
export const ComplexKeyIcon = props => getIconImage('complexkey.svg', props);
|
||||
export const VariableIcon = props => getIconImage('variable.svg', props);
|
||||
export const UniqueIcon = props => getIconImage('unique.svg', props);
|
||||
export const IndexIcon = props => getIconImage('index.svg', props);
|
||||
export const HomeIcon = (props) => getIconImage('home.svg', props);
|
||||
export const PrimaryKeyIcon = (props) => getIconImage('primarykey.svg', props);
|
||||
export const ForeignKeyIcon = (props) => getIconImage('foreignkey.svg', props);
|
||||
export const ComplexKeyIcon = (props) => getIconImage('complexkey.svg', props);
|
||||
export const VariableIcon = (props) => getIconImage('variable.svg', props);
|
||||
export const UniqueIcon = (props) => getIconImage('unique.svg', props);
|
||||
export const IndexIcon = (props) => getIconImage('index.svg', props);
|
||||
|
||||
export const StartIcon = props => getIconImage('start.svg', props);
|
||||
export const DownCircleIcon = props => getIconImage('down_circle.svg', props);
|
||||
export const StartIcon = (props) => getIconImage('start.svg', props);
|
||||
export const DownCircleIcon = (props) => getIconImage('down_circle.svg', props);
|
||||
|
||||
export const ColumnIcon = props => getIconImage('column.svg', props);
|
||||
export const ColumnIcon = (props) => getIconImage('column.svg', props);
|
||||
|
||||
export const SqlIcon = props => getIconImage('sql.svg', props);
|
||||
export const ExcelIcon = props => getIconImage('excel.svg', props);
|
||||
export const DiagramIcon = props => getIconImage('diagram.svg', props);
|
||||
export const QueryDesignIcon = props => getIconImage('querydesign.svg', props);
|
||||
export const LocalDbIcon = props => getIconImage('localdb.svg', props);
|
||||
export const CsvIcon = props => getIconImage('csv.svg', props);
|
||||
export const ChangeSetIcon = props => getIconImage('changeset.svg', props);
|
||||
export const BinaryFileIcon = props => getIconImage('binaryfile.svg', props);
|
||||
export const SqlIcon = (props) => getIconImage('sql.svg', props);
|
||||
export const ExcelIcon = (props) => getIconImage('excel.svg', props);
|
||||
export const DiagramIcon = (props) => getIconImage('diagram.svg', props);
|
||||
export const QueryDesignIcon = (props) => getIconImage('querydesign.svg', props);
|
||||
export const LocalDbIcon = (props) => getIconImage('localdb.svg', props);
|
||||
export const CsvIcon = (props) => getIconImage('csv.svg', props);
|
||||
export const ChangeSetIcon = (props) => getIconImage('changeset.svg', props);
|
||||
export const BinaryFileIcon = (props) => getIconImage('binaryfile.svg', props);
|
||||
|
||||
export const ReferenceIcon = props => getIconImage('reference.svg', props);
|
||||
export const LinkIcon = props => getIconImage('link.svg', props);
|
||||
export const ReferenceIcon = (props) => getIconImage('reference.svg', props);
|
||||
export const LinkIcon = (props) => getIconImage('link.svg', props);
|
||||
|
||||
export const SequenceIcon = props => getIconImage('sequence.svg', props);
|
||||
export const CheckIcon = props => getIconImage('check.svg', props);
|
||||
export const SequenceIcon = (props) => getIconImage('sequence.svg', props);
|
||||
export const CheckIcon = (props) => getIconImage('check.svg', props);
|
||||
|
||||
export const LinkedServerIcon = props => getIconImage('linkedserver.svg', props);
|
||||
export const LinkedServerIcon = (props) => getIconImage('linkedserver.svg', props);
|
||||
|
||||
export const EmptyIcon = props => getIconImage('data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=', props);
|
||||
export const EmptyIcon = (props) => getIconImage('data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=', props);
|
||||
|
||||
export const TimesRedIcon = props => <FontIcon name="fas fa-times red" {...props} />;
|
||||
export const TimesGreenCircleIcon = props => <FontIcon icon="fas fa-times-circle green" {...props} />;
|
||||
export const GrayFilterIcon = props => <FontIcon icon="fas fa-filter lightgray" {...props} />;
|
||||
export const ExclamationTriangleIcon = props => <FontIcon icon="fas fa-exclamation-triangle" {...props} />;
|
||||
export const HourGlassIcon = props => <FontIcon icon="fas fa-hourglass" {...props} />;
|
||||
export const InfoBlueCircleIcon = props => <FontIcon icon="fas fa-info-circle blue" {...props} />;
|
||||
export const TimesRedIcon = (props) => <FontIcon name="fas fa-times red" {...props} />;
|
||||
export const TimesGreenCircleIcon = (props) => <FontIcon icon="fas fa-times-circle green" {...props} />;
|
||||
export const GrayFilterIcon = (props) => <FontIcon icon="fas fa-filter lightgray" {...props} />;
|
||||
export const ExclamationTriangleIcon = (props) => <FontIcon icon="fas fa-exclamation-triangle" {...props} />;
|
||||
export const HourGlassIcon = (props) => <FontIcon icon="fas fa-hourglass" {...props} />;
|
||||
export const InfoBlueCircleIcon = (props) => <FontIcon icon="fas fa-info-circle blue" {...props} />;
|
||||
|
||||
export const SpinnerIcon = props => <FontIcon icon="fas fa-spinner spin" {...props} />;
|
||||
export const SpinnerIcon = (props) => <FontIcon icon="fas fa-spinner spin" {...props} />;
|
||||
|
||||
export function getEngineIcon(engine) {
|
||||
switch (engine) {
|
||||
|
||||
Reference in New Issue
Block a user