compiled assets and connection module
This commit is contained in:
32
web/admin/src/connection/lib.js
Normal file
32
web/admin/src/connection/lib.js
Normal file
@@ -0,0 +1,32 @@
|
||||
/**
|
||||
* Author: Thilina Hasantha
|
||||
*/
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import ReactModalAdapterBase from '../../../api/ReactModalAdapterBase';
|
||||
import ConnectionTab from './components/ConnectionTab';
|
||||
|
||||
/**
|
||||
* AssetTypeAdapter
|
||||
*/
|
||||
|
||||
class ConnectionAdapter extends ReactModalAdapterBase {
|
||||
constructor(data) {
|
||||
super('', '', '', '');
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
get(callBackData) {
|
||||
const { components } = this.data;
|
||||
ReactDOM.render(
|
||||
<ConnectionTab {...components}/>,
|
||||
document.getElementById('connectionData'),
|
||||
);
|
||||
}
|
||||
|
||||
initSourceMappings() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = { ConnectionAdapter };
|
||||
Reference in New Issue
Block a user