alan
5 years ago
10 changed files with 74 additions and 50 deletions
@ -0,0 +1,23 @@
|
||||
window.DecCst = { |
||||
ErrorCode: { |
||||
CONNECTION_DELETED: '21300035', |
||||
CONNECTION_UNDER_EDIT: '21300034', |
||||
}, |
||||
Connect: { |
||||
ConnectionType: { |
||||
JDBC: 'jdbc', |
||||
JNDI: 'jndi', |
||||
}, |
||||
EditStatusEvent: { |
||||
OPEN: 'getConnectionStatus', |
||||
SHUTDOWN: 'shutdownConnectionStatus', |
||||
} |
||||
} |
||||
}; |
||||
|
||||
window.Dec = { |
||||
fineServletURL: '/webroot/decision', |
||||
socket: { |
||||
connected: false, |
||||
}, |
||||
} |
@ -1,14 +1,13 @@
|
||||
const fineServletURL = Dec ? Dec.fineServletURL : '/webroot/decision'; |
||||
const fineServletURL = Dec.fineServletURL; |
||||
export const ReqPrefix = `${fineServletURL}/v10/config/connection`; |
||||
export const ImgPrefix = `${fineServletURL}/resources?path=/com/fr/web/resources/dist/images/2x/icon/database/`; |
||||
export const PluginImgPrefix = `${fineServletURL}/resources?path=`; |
||||
|
||||
export const connectionType = DecCst ? DecCst.Connect.ConnectionType : { |
||||
JDBC: 'jdbc', |
||||
JNDI: 'jndi', |
||||
}; |
||||
export const connectionType = DecCst.Connect.ConnectionType; |
||||
|
||||
export const editStatusEvent = DecCst ? DecCst.Connect.EditStatusEvent : { |
||||
OPEN: 'getConnectionStatus', |
||||
SHUTDOWN: 'shutdownConnectionStatus', |
||||
}; |
||||
export const editStatusEvent = DecCst.Connect.EditStatusEvent; |
||||
|
||||
export const errorCode: { |
||||
CONNECTION_DELETED: string; |
||||
CONNECTION_UNDER_EDIT: string; |
||||
} = DecCst.ErrorCode; |
||||
|
Loading…
Reference in new issue