mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 23:35:59 +00:00
macro detail view
This commit is contained in:
15
packages/web/src/appobj/MacroAppObject.js
Normal file
15
packages/web/src/appobj/MacroAppObject.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import _ from 'lodash';
|
||||
import { filterName } from '@dbgate/datalib';
|
||||
import { StartIcon } from '../icons';
|
||||
|
||||
const macroAppObject = () => ({ name, type, title, group }, { setOpenedTabs }) => {
|
||||
const key = name;
|
||||
// const Icon = (props) => <i className="fas fa-archive" />;
|
||||
const Icon = StartIcon;
|
||||
const matcher = (filter) => filterName(filter, name, title);
|
||||
const groupTitle = group;
|
||||
|
||||
return { title, key, Icon, groupTitle, matcher };
|
||||
};
|
||||
|
||||
export default macroAppObject;
|
||||
Reference in New Issue
Block a user