mirror of
https://github.com/itdoginfo/podkop.git
synced 2025-12-12 14:37:03 +03:00
feat: init new partial modal
This commit is contained in:
5
fe-app-podkop/src/luci.d.ts
vendored
5
fe-app-podkop/src/luci.d.ts
vendored
@@ -35,6 +35,11 @@ declare global {
|
||||
};
|
||||
|
||||
const _ = (_key: string) => string;
|
||||
|
||||
const ui = {
|
||||
showModal: (_title: stirng, _content: HtmlElement) => undefined,
|
||||
hideModal: () => undefined,
|
||||
};
|
||||
}
|
||||
|
||||
export {};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
'require baseclass';
|
||||
'require fs';
|
||||
'require uci';
|
||||
'require ui';
|
||||
|
||||
export * from './validators';
|
||||
export * from './helpers';
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import { styles as ButtonStyles } from './button/styles';
|
||||
import { styles as ModalStyles } from './modal/styles';
|
||||
|
||||
export * from './button/renderButton';
|
||||
export * from './modal/renderModal';
|
||||
|
||||
export const PartialStyles = `
|
||||
${ButtonStyles}
|
||||
${ModalStyles}
|
||||
`;
|
||||
|
||||
1
fe-app-podkop/src/partials/modal/renderModal.ts
Normal file
1
fe-app-podkop/src/partials/modal/renderModal.ts
Normal file
@@ -0,0 +1 @@
|
||||
export function renderModal() {}
|
||||
2
fe-app-podkop/src/partials/modal/styles.ts
Normal file
2
fe-app-podkop/src/partials/modal/styles.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
// language=CSS
|
||||
export const styles = ``;
|
||||
@@ -249,7 +249,7 @@ function renderDiagnosticAvailableActionsWidget() {
|
||||
globalCheck: {
|
||||
loading: diagnosticsActions.globalCheck.loading,
|
||||
visible: true,
|
||||
onClick: () => {},
|
||||
onClick: () => ui.showModal('globalCheck', E('div', {}, 'Example')),
|
||||
disabled: atLeastOneServiceCommandLoading,
|
||||
},
|
||||
viewLogs: {
|
||||
|
||||
Reference in New Issue
Block a user