Browse Source

refactor: 修改文件命名

qufenxi
alan 6 years ago
parent
commit
0c7bc0425d
  1. 157
      private/constants.ts
  2. 6
      src/app/app.ts
  3. 2
      src/app/link_set/left/left.service.ts
  4. 2
      src/app/link_set/left/left.ts
  5. 4
      src/app/link_set/left/left_item/left_item.ts
  6. 2
      src/app/link_set/left/left_item/left_item_icon.ts
  7. 2
      src/app/link_set/link_set.model.ts
  8. 0
      src/app/link_set/link_set.service.ts
  9. 8
      src/app/link_set/link_set.ts
  10. 2
      src/app/link_set/more/more_link.service.ts
  11. 6
      src/app/link_set/more/more_link.ts
  12. 0
      src/app/link_set/more/more_link_item.ts
  13. 0
      src/app/link_set/right/nothing.ts
  14. 6
      src/app/link_set/right/right.ts
  15. 12
      src/app/link_set/right/right_detail/right_detail.service.ts
  16. 4
      src/app/link_set/right/right_detail/right_detail.ts
  17. 0
      src/app/link_set/right/right_edit/right_edit.service.ts
  18. 8
      src/app/link_set/right/right_edit/right_edit.ts
  19. 2
      src/app/link_set/right/right_edit/right_edit_jndi.ts
  20. 8
      src/app/link_set/right/right_edit/right_edit_mysql.ts
  21. 6
      src/app/link_set/right/right_show/right_show.ts
  22. 2
      src/app/link_set/right/right_show/right_show_jndi.ts
  23. 2
      src/app/link_set/right/right_title/right_title.ts
  24. 4
      src/app/link_set/select/select.ts
  25. 2
      src/app/link_status/left/left.service.ts
  26. 0
      src/app/link_status/left/left.ts
  27. 0
      src/app/link_status/left/left_item.ts
  28. 4
      src/app/link_status/link_status.ts
  29. 2
      src/app/link_status/right/right.ts
  30. 0
      src/app/link_status/right/right_card.ts
  31. 2
      src/app/title/title.ts
  32. 0
      src/app/title/title_item/title_item.ts
  33. 2
      src/index.ts
  34. 0
      src/shared/components/both_side.ts
  35. 0
      src/shared/components/form_item.ts
  36. 0
      src/shared/components/title.ts

157
private/constants.ts

@ -12,81 +12,7 @@ export const TAB_LINK_POOL = 'TAB_LINK_POOL';
export const DATA_LINKS = ['APACHE KYLIN', 'DERBY', 'HP Vertica', 'IBM DB2', 'INFORMIX', 'Microsoft SQL Server', 'MySQL', 'Oracle', 'Privotal Greenplum Database', 'Postgresql', 'GaussDB 200', 'JNDI'];
export const DATA_BASE_TYPE = [
{
text: 'APACHE KYLIN',
databaseType: 'apache-kylin',
driver: 'org.apache.kylin.jdbc.Driver',
url: 'jdbc:kylin://<hostname>:<port>/<kylin_project_name>',
},
{
text: 'DERBY',
databaseType: 'derby',
driver: 'org.apache.derby.jdbc.ClientDriver',
url: 'jdbc:derby://localhost:1527/',
},
{
text: 'HP Vertica',
databaseType: 'hp-vertica',
driver: 'com.vertica.jdbc.Driver',
url: 'jdbc:vertica://ip:port/databaseName',
},
{
text: 'IBM DB2',
databaseType: 'ibm-db2',
driver: 'com.ibm.db2.jcc.DB2Driver',
url: 'jdbc:db2://hostname:port/dbname',
},
{
text: 'INFORMIX',
databaseType: 'informix',
driver: 'com.informix.jdbc.IfxDriver',
url: 'jdbc:informix-sqli://{host}:{port}/{database}:INFORMIXSERVER={server}',
},
{
text: 'Microsoft SQL Server',
databaseType: 'sql-server',
driver: 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
url: 'jdbc:sqlserver://localhost:1433;databaseName=',
},
{
text: 'Oracle',
databaseType: 'oracle',
driver: 'oracle.jdbc.driver.OracleDriver',
url: 'jdbc:oracle:thin:@localhost:1521:databaseName',
},
{
text: 'Privotal Greenplum Database',
databaseType: 'pivotal-greenplum-database',
driver: 'org.postgresql.Driver',
url: 'jdbc:postgresql://hostname:port/dbname',
},
{
text: 'Postgresql',
databaseType: 'postgresql',
driver: 'org.postgresql.Driver',
url: 'jdbc:postgresql://hostname:port/dbname',
},
{
text: 'GaussDB 200',
databaseType: 'hw-libr-a',
driver: 'org.postgresql.Driver',
url: 'jdbc:postgresql://hostname:port/dbname',
},
{
text: 'MySQL',
databaseType: 'mysql',
driver: 'com.mysql.jdbc.Driver',
drivers: ['com.mysql.jdbc.Driver', 'org.gjt.mm.mysql.Driver'],
url: 'jdbc:mysql://localhost/dbname',
},
{
text: OTHER_CONNECT,
databaseType: 'other',
driver: 'org.h2.Driver',
drivers: ['org.h2.Driver', 'com.fr.third.org.hsqldb.jdbcDriver', 'org.sqlite.JDBC'],
url: 'jdbc:h2://${ENV_HOME}/../databaseName',
},
export const DATA_BASE_TYPE_OTHER = [
{
text: 'ADS',
databaseType: 'ads',
@ -269,7 +195,86 @@ export const DATA_BASE_TYPE = [
databaseType: 'transwarp-inceptor',
driver: 'org.apache.hive.jdbc.HiveDriver',
url: 'jdbc:hive2://hostname:port/databasename',
}, {
},
];
export const DATA_BASE_TYPE = [
{
text: 'APACHE KYLIN',
databaseType: 'apache-kylin',
driver: 'org.apache.kylin.jdbc.Driver',
url: 'jdbc:kylin://<hostname>:<port>/<kylin_project_name>',
},
{
text: 'DERBY',
databaseType: 'derby',
driver: 'org.apache.derby.jdbc.ClientDriver',
url: 'jdbc:derby://localhost:1527/',
},
{
text: 'HP Vertica',
databaseType: 'hp-vertica',
driver: 'com.vertica.jdbc.Driver',
url: 'jdbc:vertica://ip:port/databaseName',
},
{
text: 'IBM DB2',
databaseType: 'ibm-db2',
driver: 'com.ibm.db2.jcc.DB2Driver',
url: 'jdbc:db2://hostname:port/dbname',
},
{
text: 'INFORMIX',
databaseType: 'informix',
driver: 'com.informix.jdbc.IfxDriver',
url: 'jdbc:informix-sqli://{host}:{port}/{database}:INFORMIXSERVER={server}',
},
{
text: 'Microsoft SQL Server',
databaseType: 'sql-server',
driver: 'com.microsoft.sqlserver.jdbc.SQLServerDriver',
url: 'jdbc:sqlserver://localhost:1433;databaseName=',
},
{
text: 'Oracle',
databaseType: 'oracle',
driver: 'oracle.jdbc.driver.OracleDriver',
url: 'jdbc:oracle:thin:@localhost:1521:databaseName',
},
{
text: 'Privotal Greenplum Database',
databaseType: 'pivotal-greenplum-database',
driver: 'org.postgresql.Driver',
url: 'jdbc:postgresql://hostname:port/dbname',
},
{
text: 'Postgresql',
databaseType: 'postgresql',
driver: 'org.postgresql.Driver',
url: 'jdbc:postgresql://hostname:port/dbname',
},
{
text: 'GaussDB 200',
databaseType: 'hw-libr-a',
driver: 'org.postgresql.Driver',
url: 'jdbc:postgresql://hostname:port/dbname',
},
{
text: 'MySQL',
databaseType: 'mysql',
driver: 'com.mysql.jdbc.Driver',
drivers: ['com.mysql.jdbc.Driver', 'org.gjt.mm.mysql.Driver'],
url: 'jdbc:mysql://localhost/dbname',
},
{
text: OTHER_CONNECT,
databaseType: 'other',
driver: 'org.h2.Driver',
drivers: ['org.h2.Driver', 'com.fr.third.org.hsqldb.jdbcDriver', 'org.sqlite.JDBC'],
url: 'jdbc:h2://${ENV_HOME}/../databaseName',
},
...DATA_BASE_TYPE_OTHER,
{
text: JNDI_CONNECT,
},
];

6
src/app/app.component.ts → src/app/app.ts

@ -1,9 +1,9 @@
import {Vtape} from '../ui/index';
import {LinkType} from '@ui/type';
import appModel from './app.model';
import title from './title/title.component';
import linkSet from './link_set/link-set.component';
import linkStatus from './link_status/link_status.component';
import title from './title/title';
import linkSet from './link_set/link_set';
import linkStatus from './link_status/link_status';
import {fetchLinkList} from '../shared/crud/crud.request';
import './app.component.scss';

2
src/app/link_set/left/left.service.ts

@ -1,5 +1,5 @@
import {LinkType} from '@ui/type';
import LeftItem from './left_item/left.item.component';
import LeftItem from './left_item/left_item';
export const getLinks = (linkList: LinkType[]): any => {
const links: any[] = [];

2
src/app/link_set/left/left.component.ts → src/app/link_set/left/left.ts

@ -1,5 +1,5 @@
import {WidgetType, Vertical} from '@ui';
import Model from '../link-set.model';
import Model from '../link_set.model';
import {LinkType} from '@ui/type';
import {getLinks} from './left.service';
const className = 'fr.component.linkset.left';

4
src/app/link_set/left/left_item/left.item.component.ts → src/app/link_set/left/left_item/left_item.ts

@ -1,6 +1,6 @@
import {WidgetType, Left, Label, Icon, TextButton} from '@ui';
import ItemIcon from './left.item.icon.component';
import Model from '../../link-set.model';
import ItemIcon from './left_item_icon';
import Model from '../../link_set.model';
import {ACTION_COPY, ACTION_TEST, ACTION_DELETE, DEFAULT_INFO} from '@private/constants';
const className = 'fr.component.linkSet.left.item';
const Widget: WidgetType = {

2
src/app/link_set/left/left_item/left.item.icon.component.ts → src/app/link_set/left/left_item/left_item_icon.ts

@ -1,5 +1,5 @@
import {WidgetType, Icon, BubbleCombo, TextBubblePopupBarView, IconButton} from '@ui/index';
import Model from '../../link-set.model';
import Model from '../../link_set.model';
import {ACTION_DELETE} from '@private/constants';
const className = 'fr.component.linkSet.left.item.icon';

2
src/app/link_set/link-set.model.ts → src/app/link_set/link_set.model.ts

@ -4,7 +4,7 @@ import {deleteConnection, testConnection} from '@shared/crud/crud.request';
import {getCnnectionName} from './select/select.service';
import {DATA_BASE_TYPE} from '@private/constants';
import dialog from '@shared/service/dialog.service';
import {saveConnection} from './link-set.service';
import {saveConnection} from './link_set.service';
const className = 'fr.model.linkset';
const Model: ModelType = {

0
src/app/link_set/link-set.service.ts → src/app/link_set/link_set.service.ts

8
src/app/link_set/link-set.component.ts → src/app/link_set/link_set.ts

@ -1,8 +1,8 @@
import {Htape, WidgetType, Vtape, Left} from '@ui';
import LeftList from './left/left.component';
import linkSetModel from './link-set.model';
import Select from './select/select.component';
import Right from './right/right.component';
import LeftList from './left/left';
import linkSetModel from './link_set.model';
import Select from './select/select';
import Right from './right/right';
import {TAB_LINK_SET} from '@private/constants';
const className = 'fr.linkset';
const Widget: WidgetType = {

2
src/app/link_set/more/more.link.service.ts → src/app/link_set/more/more_link.service.ts

@ -1,4 +1,4 @@
import MoreLink from './more.link.component';
import MoreLink from './more_link';
let SubbitButton: any = null;
let selectKey = '';
export const moreLink = (onConfirm?: Function): void => {

6
src/app/link_set/more/more.link.component.ts → src/app/link_set/more/more_link.ts

@ -1,6 +1,6 @@
import {WidgetType, Vertical, SearchEditor, Left, Vtape} from '@ui/index';
import {DATA_BASE_TYPE} from '@private/constants';
import MoreLinkItem from './more.link.item.component';
import {DATA_BASE_TYPE_OTHER} from '@private/constants';
import MoreLinkItem from './more_link_item';
const className = 'fr.component.linkSet.morelink';
let morkLinkItem: any = null;
const Widget: WidgetType = {
@ -34,7 +34,7 @@ const Widget: WidgetType = {
this._renderItems();
},
_renderItems(text = '') {
const databaseLink = DATA_BASE_TYPE.slice(12, 12 + 33);
const databaseLink = DATA_BASE_TYPE_OTHER;
const items: any[] = [];
const that = this;
databaseLink.forEach(item => {

0
src/app/link_set/more/more.link.item.component.ts → src/app/link_set/more/more_link_item.ts

0
src/app/link_set/right/nothing.component.ts → src/app/link_set/right/nothing.ts

6
src/app/link_set/right/right.component.ts → src/app/link_set/right/right.ts

@ -1,8 +1,8 @@
import {WidgetType, Vertical} from '@ui';
import {LinkType} from '@ui/type';
import Nothing from './nothing.component';
import RightDetail from './right_detail/right.detail.component';
import Model from '../link-set.model';
import Nothing from './nothing';
import RightDetail from './right_detail/right_detail';
import Model from '../link_set.model';
let rightContent: any = null;
const className = 'fr.component.right';
const Widget: WidgetType = {

12
src/app/link_set/right/right_detail/right.detail.service.ts → src/app/link_set/right/right_detail/right_detail.service.ts

@ -1,9 +1,9 @@
import Title from '../right_title/right.title.component';
import RightShow from '../right_show/right.show.component';
import RightShowJndi from '../right_show/right.show.jndi.component';
import RightEdit from '../right_edit/right.edit.component';
import RightEditMysql from '../right_edit/right.edit.mysql.component';
import RightEditJndi from '../right_edit/right.edit.jndi.component';
import Title from '../right_title/right_title';
import RightShow from '../right_show/right_show';
import RightShowJndi from '../right_show/right_show_jndi';
import RightEdit from '../right_edit/right_edit';
import RightEditMysql from '../right_edit/right_edit_mysql';
import RightEditJndi from '../right_edit/right_edit_jndi';
import {LinkType} from '@ui/type';
import pluginListConstant from '../../../app.constant';
import {MYSQL_CONNECT, JNDI_CONNECT} from '@private/constants';

4
src/app/link_set/right/right_detail/right.detail.component.ts → src/app/link_set/right/right_detail/right_detail.ts

@ -1,6 +1,6 @@
import {WidgetType, Vertical} from '@ui/index';
import Model from '../../link-set.model';
import {renderEdit} from './right.detail.service';
import Model from '../../link_set.model';
import {renderEdit} from './right_detail.service';
import {LinkType} from '@ui/type';
const className = 'fr.component.right.detail';

0
src/app/link_set/right/right_edit/right.edit.service.ts → src/app/link_set/right/right_edit/right_edit.service.ts

8
src/app/link_set/right/right_edit/right.edit.component.ts → src/app/link_set/right/right_edit/right_edit.ts

@ -1,10 +1,10 @@
import {WidgetType, Vertical, MultiSelectItem, TextAreaEditor, Editor, Button, TextValueCombo} from '@ui/index';
import {LinkType} from '@ui/type';
import {CONNECT_CHARSET} from '@private/constants';
import Model from '../../link-set.model';
import FormItem from '@shared/components/form.item.component';
import Title from '@shared/components/title.component';
import {getDrivers, connectNameChecker} from './right.edit.service';
import Model from '../../link_set.model';
import FormItem from '@shared/components/form_item';
import Title from '@shared/components/title';
import {getDrivers, connectNameChecker} from './right_edit.service';
let ConnectionName: any = null;
const className = 'fr.component.right.edit';
const Widget: WidgetType = {

2
src/app/link_set/right/right_edit/right.edit.jndi.component.ts → src/app/link_set/right/right_edit/right_edit_jndi.ts

@ -1,5 +1,5 @@
import {Vertical, Editor, TextValueCombo, TextButton, Label} from '@ui';
import FormItem from '@shared/components/form.item.component';
import FormItem from '@shared/components/form_item';
import {JNDI_FACTORYS, OTHER_ATTRIBUTES, CONNECT_CHARSET} from '@private/constants';
import {AttributeType} from '../right.typing';

8
src/app/link_set/right/right_edit/right.edit.mysql.component.ts → src/app/link_set/right/right_edit/right_edit_mysql.ts

@ -1,10 +1,10 @@
import {WidgetType, Vertical, MultiSelectItem, TextAreaEditor, Editor, Button, TextValueCombo} from '@ui/index';
import {LinkType} from '@ui/type';
import {CONNECT_CHARSET} from '@private/constants';
import Model from '../../link-set.model';
import FormItem from '@shared/components/form.item.component';
import Title from '@shared/components/title.component';
import {getDrivers, connectNameChecker} from './right.edit.service';
import Model from '../../link_set.model';
import FormItem from '@shared/components/form_item';
import Title from '@shared/components/title';
import {getDrivers, connectNameChecker} from './right_edit.service';
const className = 'fr.component.right.edit.mysql';
const Widget: WidgetType = {
_store() {

6
src/app/link_set/right/right_show/right.show.component.ts → src/app/link_set/right/right_show/right_show.ts

@ -1,7 +1,7 @@
import {WidgetType, Vertical} from '@ui/index';
import RightShowModel from '../../link-set.model';
import BothSide from '@shared/components/both.side.component';
import Title from '@shared/components/title.component';
import RightShowModel from '../../link_set.model';
import BothSide from '@shared/components/both_side';
import Title from '@shared/components/title';
import {LinkType} from '@ui/type';
const className = 'fr.component.right.show';
const Widget: WidgetType = {

2
src/app/link_set/right/right_show/right.show.jndi.component.ts → src/app/link_set/right/right_show/right_show_jndi.ts

@ -1,5 +1,5 @@
import {Vertical, TextButton, Label} from '@ui';
import FormItem from '@shared/components/form.item.component';
import FormItem from '@shared/components/form_item';
import {OTHER_ATTRIBUTES} from '@private/constants';
import {AttributeType} from '../right.typing';

2
src/app/link_set/right/right_title/right.title.component.ts → src/app/link_set/right/right_title/right_title.ts

@ -1,5 +1,5 @@
import {WidgetType, Left, Label, Button} from '@ui/index';
import RightTitleModel from '../../link-set.model';
import RightTitleModel from '../../link_set.model';
import {LinkType} from '@ui/type';
import {OTHER_CONNECT} from '@private/constants';
const className = 'fr.component.right.title';

4
src/app/link_set/select/select.component.ts → src/app/link_set/select/select.ts

@ -1,6 +1,6 @@
import {WidgetType, Combo, ButtonGroup, TextItem, Vertical} from '@ui';
import selectModel from '../link-set.model';
import {moreLink} from '../more/more.link.service';
import selectModel from '../link_set.model';
import {moreLink} from '../more/more_link.service';
import connectList from '../../app.constant';
import {DATA_LINKS} from '@private/constants';
const className = 'fr.linkset.select';

2
src/app/link_status/left/left.service.ts

@ -1,5 +1,5 @@
import {LinkType} from '@ui/type';
import LeftItem from './left.item.component';
import LeftItem from './left_item';
export const getLinks = (linkList: LinkType[], selectTitle = ''): any => {
const links: any[] = [];

0
src/app/link_status/left/left.component.ts → src/app/link_status/left/left.ts

0
src/app/link_status/left/left.item.component.ts → src/app/link_status/left/left_item.ts

4
src/app/link_status/link_status.component.ts → src/app/link_status/link_status.ts

@ -1,7 +1,7 @@
import {WidgetType, Htape, Vtape, Left, Label} from '@ui';
import linkStatusModel from './link_status.model';
import LeftList from './left/left.component';
import Right from './right/right.component';
import LeftList from './left/left';
import Right from './right/right';
import {TAB_LINK_POOL} from '@private/constants';
const className = 'fr.linkstatus';

2
src/app/link_status/right/right.component.ts → src/app/link_status/right/right.ts

@ -1,7 +1,7 @@
import {WidgetType, Vertical, Left, Label} from '@ui/index';
import Model from './right.model';
import {info} from '@shared/crud/crud.request';
import RightCard from './right.card.component';
import RightCard from './right_card';
import {InfoType} from './right.typings';
import {LinkType} from '@ui/type';
import pluginListConstant from '../../app.constant';

0
src/app/link_status/right/right.card.component.ts → src/app/link_status/right/right_card.ts

2
src/app/title/title.component.ts → src/app/title/title.ts

@ -1,5 +1,5 @@
import {Left, WidgetType, IconButton} from '@ui/index';
import TitleItem from './title_item/title_item.component';
import TitleItem from './title_item/title_item';
import {isDesigner, closeWindow} from '@shared/crud/crud.request';
import {TAB_LINK_SET, TAB_LINK_POOL} from '@private/constants';
const className = 'fr.title';

0
src/app/title/title_item/title_item.component.ts → src/app/title/title_item/title_item.ts

2
src/index.ts

@ -1,6 +1,6 @@
import i18n from '../private/i18n';
BI.DOM.ready(() => {
const app = require('./app/app.component').default;
const app = require('./app/app').default;
// TODO: 先采用这种方式方便前端调试
BI.addI18n(i18n);
BI.createWidget({

0
src/shared/components/both.side.component.ts → src/shared/components/both_side.ts

0
src/shared/components/form.item.component.ts → src/shared/components/form_item.ts

0
src/shared/components/title.component.ts → src/shared/components/title.ts

Loading…
Cancel
Save