json-crud-ui-comp-table 1.3.3 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/cli.js +1 -1
- package/bin/v3/commands/TableComp/template/v2/Index/Configs/Create/config.json +64 -64
- package/bin/v3/commands/TableComp/template/v2/Index/Configs/ShowAll/config.json +59 -59
- package/bin/v3/commands/TableComp/template/v2/Index/Configs/WithSearch/config.json +68 -68
- package/bin/v3/commands/TableComp/template/v2/Index/Configs/WithSerial/config.json +62 -62
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/Create/config.json +64 -64
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/ShowAll/config.json +59 -59
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/WithSearch/config.json +68 -68
- package/bin/v3/commands/TableComp/template/v3/Index/Configs/WithSerial/config.json +68 -68
- package/bin/{v2/commands/TableComp/template/v2 → v3/commands/TableComp/template/v4}/Index/Configs/Create/config.json +64 -64
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/ShowAll/config.json +66 -0
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/WithSearch/config.json +75 -0
- package/bin/v3/commands/TableComp/template/v4/Index/Configs/WithSerial/config.json +69 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/EscapeKey/keydownFunc.js +15 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/EscapeKey/start.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +12 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/clickFunc/confirmLogout.js +4 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/clickFunc/index.js +16 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +12 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/api/postLogin.js +15 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getLoginPayload.js +9 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getPassword.js +4 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getUserName.js +4 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/index.js +16 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginFailure/index.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginFailure/showLoginError.js +15 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginSuccess/hideLoginError.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginSuccess/index.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc copy.js +74 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/clickFunc.js +21 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/start.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/start.js +19 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/ApplyMenuFromCookie/index.js +16 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/decodeJwt.js +10 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/deleteKSTokenCookie.js +5 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/getTokenFromCookie.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/getUserCode.js +12 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/LoginModal/hide.js +7 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/applyLoggedInMenu.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/applyLoggedOutMenu.js +11 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/hideLoginMenu.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/hideUserMenu.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/resetUserHeader.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/showLoginMenu.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/showUserMenu.js +8 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/updateUserHeader.js +10 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/CommonFuncs/onReadFail.js +10 -0
- package/bin/v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +14 -0
- package/bin/v3/commands/TableComp/template/v4/Index/headers.json +63 -0
- package/bin/v3/commands/TableComp/template/v4/index.html +117 -0
- package/bin/v3/commands/TableComp/template/v4/script.js +278 -0
- package/bin/{v2 → v4}/commands/TableComp/steps/AlterJson/index.js +0 -3
- package/bin/v4/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v2/Index/Configs/Create/config.json +65 -0
- package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/Configs/ShowAll/config.json +59 -59
- package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/Configs/WithSearch/config.json +68 -68
- package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/Configs/WithSerial/config.json +62 -62
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +13 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +11 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +8 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +27 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +34 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +7 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +7 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +23 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +9 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +4 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +12 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +3 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +13 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +46 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +33 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +13 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/buildHeader.js +12 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v2/Index/FormLoad/start.js +5 -0
- package/bin/v4/commands/TableComp/template/v2/Index/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v2/tailwind-3.css +1 -0
- package/bin/v4/commands/TableComp/template/v3/Index/Configs/Create/config.json +65 -0
- package/bin/v4/commands/TableComp/template/v3/Index/Configs/ShowAll/config.json +60 -0
- package/bin/v4/commands/TableComp/template/v3/Index/Configs/WithSearch/config.json +69 -0
- package/bin/v4/commands/TableComp/template/v3/Index/Configs/WithSerial/config.json +69 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +13 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +8 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +27 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +34 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +23 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +9 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +4 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +12 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +3 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +13 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +46 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +18 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc.js +47 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/clickFunc.js +21 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/AddListeners/start.js +15 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +33 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +13 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/buildHeader.js +12 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +12 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/DomContentLoaded/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/Index/FormLoad/start.js +5 -0
- package/bin/v4/commands/TableComp/template/v3/Index/headers.json +51 -0
- package/bin/v4/commands/TableComp/template/v3/Index/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v3/index.html +132 -0
- package/bin/v4/commands/TableComp/template/v3/script.js +276 -0
- package/bin/v4/commands/TableComp/template/v3/tailwind-3.css +1 -0
- package/bin/v4/commands/TableComp/template/v4/Index/Configs/Create/config.json +65 -0
- package/bin/v4/commands/TableComp/template/v4/Index/Configs/ShowAll/config.json +66 -0
- package/bin/v4/commands/TableComp/template/v4/Index/Configs/WithSearch/config.json +75 -0
- package/bin/v4/commands/TableComp/template/v4/Index/Configs/WithSerial/config.json +69 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +13 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +27 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +34 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +23 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +9 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +4 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +12 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +3 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +13 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +46 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/EscapeKey/keydownFunc.js +15 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/EscapeKey/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +12 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/clickFunc/confirmLogout.js +4 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/clickFunc/index.js +16 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/UserHeaderHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +5 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +12 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/index.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/clickFunc.js +24 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/api/postLogin.js +15 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getLoginPayload.js +9 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getPassword.js +4 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/credentials/getUserName.js +4 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/index.js +16 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginFailure/index.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginFailure/showLoginError.js +15 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginSuccess/hideLoginError.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc/ui/loginSuccess/index.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/clickFunc copy.js +74 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginButtonId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/clickFunc.js +21 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/loginHeaderHtmlId/start.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/start.js +19 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/ApplyMenuFromCookie/index.js +16 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/decodeJwt.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/deleteKSTokenCookie.js +5 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/getTokenFromCookie.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/AuthCookie/getUserCode.js +12 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/LoginModal/hide.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/applyLoggedInMenu.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/applyLoggedOutMenu.js +11 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/hideLoginMenu.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/hideUserMenu.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/resetUserHeader.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/showLoginMenu.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/showUserMenu.js +8 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/Common/MenuState/updateUserHeader.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +33 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/CommonFuncs/onReadFail.js +10 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +13 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/buildHeader.js +12 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +14 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/Index/FormLoad/start.js +5 -0
- package/bin/v4/commands/TableComp/template/v4/Index/headers.json +63 -0
- package/bin/v4/commands/TableComp/template/v4/Index/start.js +7 -0
- package/bin/v4/commands/TableComp/template/v4/index.html +117 -0
- package/bin/v4/commands/TableComp/template/v4/script.js +278 -0
- package/bin/v4/commands/TableComp/template/v4/tailwind-3.css +1 -0
- package/package.json +1 -1
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId → v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId}/BuildTable/index.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId → v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId}/clickFunc.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId → v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId}/BuildTable/index.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId → v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId}/clickFunc.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId → v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId}/BuildTable/index.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId → v3/commands/TableComp/template/v4/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId}/clickFunc.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/buildHeader.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/DomContentLoaded/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/FormLoad/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/Index/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1 → v3/commands/TableComp/template/v4}/tailwind-3.css +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/AlterJson/updateColumnsConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/alterJson.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/announce.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/checks.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/createProject.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/locateDestination.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/steps/locateSource.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/Configs/Create/config.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/Configs/ShowAll/config.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/Configs/WithSearch/config.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/Configs/WithSerial/config.json +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSSubTable.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/formSearchParamsFunc.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/BuildTable/index.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/entryFile.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status200.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status401.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/status409.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/AfterFetch/url.json +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/fetchFuncs.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/getUrl.json +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/FetchAsGet/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/clickFunc.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/AddItemHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId → v4/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId}/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId → v4/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId}/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/clickFunc.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId → v4/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId}/BuildTable/index.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId → v4/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId}/clickFunc.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId → v4/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId}/BuildTable/index.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/AddListeners/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/CommonFuncs/afterHeadSave.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/CommonFuncs/onSuccess.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/buildHeader.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/DomContentLoaded/start.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/FormLoad/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/Index/headers.json +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/Index/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/index.html +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v1/script.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2 → v4/commands/TableComp/template/v1}/tailwind-3.css +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/BuildTable/callKSTable.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId → v4/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId}/BuildTable/index.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/CreateHtmlId/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/ShowAllHtmlId/clickFunc.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSearchHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/WithSerialHtmlId/BuildTable/getKSTableConfig.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/AddListeners/start.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/FormLoad/DomContentLoaded/runAfterDomLoad.js +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/Index/headers.json +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/index.html +0 -0
- /package/bin/{v2 → v4}/commands/TableComp/template/v2/script.js +0 -0
- /package/bin/{v2 → v4}/commands/tableComp.js +0 -0
- /package/bin/{v2 → v4}/core/getAllVersions.js +0 -0
- /package/bin/{v2 → v4}/core/parseInput.js +0 -0
- /package/bin/{v2 → v4}/core/resolveCommand.js +0 -0
- /package/bin/{v2 → v4}/core/showUsage.js +0 -0
- /package/bin/{v2 → v4}/start.js +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
let StartFunc = ({ inResponse }) => {
|
|
2
|
+
// const jVarLocalRedirectUrl = ConfigJson.Protected.RedirectUrl;
|
|
3
|
+
|
|
4
|
+
// window.location.href = jVarLocalRedirectUrl;
|
|
5
|
+
|
|
6
|
+
jFLocalAddUrlParams({ inSuccessUrl: "../ShowAll/AsIs.html" });
|
|
7
|
+
// console.log("aaaaaaa : ", jVarLocalRedirectUrl);
|
|
8
|
+
// http://localhost:9113/V5/StudentNames/pages/ShowAll/AsIs.html#top
|
|
9
|
+
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const jFLocalAddUrlParams = ({ inSuccessUrl }) => {
|
|
13
|
+
const jVarLocalRedirectUrl = ConfigJson.Protected.RedirectUrl;
|
|
14
|
+
|
|
15
|
+
const url = new URL(window.location.href);
|
|
16
|
+
|
|
17
|
+
let NewURl = new URL(jVarLocalRedirectUrl, url);
|
|
18
|
+
|
|
19
|
+
NewURl.searchParams.append('SuccessUrl', inSuccessUrl);
|
|
20
|
+
window.location.href = NewURl.href;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { StartFunc };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import getUrlJson from './getUrl.json' with {type: 'json'};
|
|
2
|
+
|
|
3
|
+
let StartFunc = async ({ inPk }) => {
|
|
4
|
+
let jVarLocalGetEndPoint = `${getUrlJson.GetEndPoint}/${inPk}`;
|
|
5
|
+
|
|
6
|
+
let response = await fetch(jVarLocalGetEndPoint);
|
|
7
|
+
|
|
8
|
+
return await response;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { StartFunc };
|
|
12
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StartFunc as StartFuncFetchFuncs } from './fetchFuncs.js';
|
|
2
|
+
import { StartFunc as StartFuncFromAfterFetch } from './AfterFetch/entryFile.js';
|
|
3
|
+
|
|
4
|
+
const startFunc = async ({ inPk }) => {
|
|
5
|
+
let localResponse = await StartFuncFetchFuncs({ inPk });
|
|
6
|
+
|
|
7
|
+
return await StartFuncFromAfterFetch({
|
|
8
|
+
inResponse: localResponse,
|
|
9
|
+
inPk
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export default startFunc;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import afterHeadSave from "../../CommonFuncs/afterHeadSave.js";
|
|
2
|
+
import fetchAsGet from "./FetchAsGet/start.js";
|
|
3
|
+
|
|
4
|
+
const clickFuncToRun = ({ inCurrentTarget }) => {
|
|
5
|
+
applyActive({ inCurrentTarget });
|
|
6
|
+
|
|
7
|
+
const pk = prompt("Enter PK");
|
|
8
|
+
|
|
9
|
+
if (pk === null || pk.trim() === "") return;
|
|
10
|
+
|
|
11
|
+
jFLocalToInputhtmlId(pk);
|
|
12
|
+
|
|
13
|
+
afterHeadSave(pk).then();
|
|
14
|
+
// debugger;
|
|
15
|
+
let jVarLocaltoTallyId = document.getElementById('toTallyId');
|
|
16
|
+
|
|
17
|
+
jVarLocaltoTallyId.classList.remove("danger");
|
|
18
|
+
|
|
19
|
+
fetchAsGet({ inPk: pk }).then(fromPromise => {
|
|
20
|
+
if (fromPromise?.insertedToTally) jVarLocaltoTallyId.classList.add("danger");
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const applyActive = ({ inCurrentTarget }) => {
|
|
25
|
+
const localCurrentTarget = inCurrentTarget;
|
|
26
|
+
|
|
27
|
+
const menu = localCurrentTarget.closest("#menu");
|
|
28
|
+
|
|
29
|
+
menu.querySelectorAll("li a.active")
|
|
30
|
+
.forEach(a => a.classList.remove("active"));
|
|
31
|
+
|
|
32
|
+
localCurrentTarget.classList.add("active");
|
|
33
|
+
|
|
34
|
+
localCurrentTarget.classList.add("active");
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
let jFLocalToInputhtmlId = (inValue) => {
|
|
38
|
+
let jVarLocalHtmlId = 'htmlId';
|
|
39
|
+
let jVarLocalhtmlId = document.getElementById(jVarLocalHtmlId);
|
|
40
|
+
|
|
41
|
+
if (jVarLocalhtmlId === null === false) {
|
|
42
|
+
jVarLocalhtmlId.innerHTML = inValue;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clickFuncToRun } from "./clickFunc.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('AddItemHtmlId');
|
|
5
|
+
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export { funcToRun };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import hideLoginModal from "../../Common/LoginModal/hide.js";
|
|
2
|
+
|
|
3
|
+
const keydownFunc = event => {
|
|
4
|
+
if (event.key !== "Escape") return;
|
|
5
|
+
|
|
6
|
+
const loginModal = document.getElementById("loginModal");
|
|
7
|
+
|
|
8
|
+
if (loginModal.classList.contains("hidden")) return;
|
|
9
|
+
|
|
10
|
+
event.preventDefault();
|
|
11
|
+
event.stopPropagation();
|
|
12
|
+
hideLoginModal();
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default keydownFunc;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import onReadFail from "../../../CommonFuncs/onReadFail.js";
|
|
2
|
+
|
|
3
|
+
export const getKSTableConfig = async () => {
|
|
4
|
+
|
|
5
|
+
const config = await fetch("./Index/Configs/ShowAll/config.json");
|
|
6
|
+
// debugger;
|
|
7
|
+
const configJson = await config.json();
|
|
8
|
+
|
|
9
|
+
configJson.callbacks.table.onReadFail = onReadFail;
|
|
10
|
+
|
|
11
|
+
return configJson;
|
|
12
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import buildTable from "./BuildTable/index.js";
|
|
2
|
+
|
|
3
|
+
const clickFuncToRun = ({ inCurrentTarget }) => {
|
|
4
|
+
// console.log("inCurrentTarget : ", inCurrentTarget);
|
|
5
|
+
applyActive({ inCurrentTarget });
|
|
6
|
+
// inCurrentTarget.classList.add("active");
|
|
7
|
+
|
|
8
|
+
buildTable().then();
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const applyActive = ({ inCurrentTarget }) => {
|
|
12
|
+
const localCurrentTarget = inCurrentTarget;
|
|
13
|
+
|
|
14
|
+
const menu = localCurrentTarget.closest("#menu");
|
|
15
|
+
|
|
16
|
+
menu.querySelectorAll("li a.active")
|
|
17
|
+
.forEach(a => a.classList.remove("active"));
|
|
18
|
+
|
|
19
|
+
localCurrentTarget.classList.add("active");
|
|
20
|
+
|
|
21
|
+
localCurrentTarget.classList.add("active");
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clickFuncToRun } from "./clickFunc.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('ShowAllHtmlId');
|
|
5
|
+
// debugger;
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default funcToRun;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import deleteKSTokenCookie from "../../../Common/AuthCookie/deleteKSTokenCookie.js";
|
|
2
|
+
import getTokenFromCookie from "../../../Common/AuthCookie/getTokenFromCookie.js";
|
|
3
|
+
import applyLoggedOutMenu from "../../../Common/MenuState/applyLoggedOutMenu.js";
|
|
4
|
+
import confirmLogout from "./confirmLogout.js";
|
|
5
|
+
|
|
6
|
+
const clickFuncToRun = () => {
|
|
7
|
+
const token = getTokenFromCookie();
|
|
8
|
+
|
|
9
|
+
if (!token) return;
|
|
10
|
+
if (!confirmLogout()) return;
|
|
11
|
+
|
|
12
|
+
deleteKSTokenCookie();
|
|
13
|
+
applyLoggedOutMenu();
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default clickFuncToRun;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import onReadFail from "../../../CommonFuncs/onReadFail.js";
|
|
2
|
+
|
|
3
|
+
export const getKSTableConfig = async () => {
|
|
4
|
+
const config = await fetch("./Index/Configs/WithSearch/config.json");
|
|
5
|
+
// debugger;
|
|
6
|
+
const configJson = await config.json();
|
|
7
|
+
|
|
8
|
+
configJson.callbacks.table.onReadFail = onReadFail;
|
|
9
|
+
|
|
10
|
+
return configJson;
|
|
11
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import buildTable from "./BuildTable/index.js";
|
|
2
|
+
|
|
3
|
+
const clickFuncToRun = ({ inCurrentTarget }) => {
|
|
4
|
+
// console.log("inCurrentTarget : ", inCurrentTarget);
|
|
5
|
+
applyActive({ inCurrentTarget });
|
|
6
|
+
// inCurrentTarget.classList.add("active");
|
|
7
|
+
|
|
8
|
+
buildTable().then();
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const applyActive = ({ inCurrentTarget }) => {
|
|
12
|
+
const localCurrentTarget = inCurrentTarget;
|
|
13
|
+
|
|
14
|
+
const menu = localCurrentTarget.closest("#menu");
|
|
15
|
+
|
|
16
|
+
menu.querySelectorAll("li a.active")
|
|
17
|
+
.forEach(a => a.classList.remove("active"));
|
|
18
|
+
|
|
19
|
+
localCurrentTarget.classList.add("active");
|
|
20
|
+
|
|
21
|
+
localCurrentTarget.classList.add("active");
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clickFuncToRun } from "./clickFunc.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('WithSearchHtmlId');
|
|
5
|
+
// debugger;
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default funcToRun;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import onReadFail from "../../../CommonFuncs/onReadFail.js";
|
|
2
|
+
|
|
3
|
+
export const getKSTableConfig = async () => {
|
|
4
|
+
|
|
5
|
+
const config = await fetch("./Index/Configs/WithSerial/config.json");
|
|
6
|
+
// debugger;
|
|
7
|
+
const configJson = await config.json();
|
|
8
|
+
|
|
9
|
+
configJson.callbacks.table.onReadFail = onReadFail;
|
|
10
|
+
|
|
11
|
+
return configJson;
|
|
12
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import buildTable from "./BuildTable/index.js";
|
|
2
|
+
|
|
3
|
+
const clickFuncToRun = ({ inCurrentTarget }) => {
|
|
4
|
+
// console.log("inCurrentTarget : ", inCurrentTarget);
|
|
5
|
+
applyActive({ inCurrentTarget });
|
|
6
|
+
// inCurrentTarget.classList.add("active");
|
|
7
|
+
|
|
8
|
+
buildTable().then();
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const applyActive = ({ inCurrentTarget }) => {
|
|
12
|
+
const localCurrentTarget = inCurrentTarget;
|
|
13
|
+
|
|
14
|
+
const menu = localCurrentTarget.closest("#menu");
|
|
15
|
+
|
|
16
|
+
menu.querySelectorAll("li a.active")
|
|
17
|
+
.forEach(a => a.classList.remove("active"));
|
|
18
|
+
|
|
19
|
+
localCurrentTarget.classList.add("active");
|
|
20
|
+
|
|
21
|
+
localCurrentTarget.classList.add("active");
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clickFuncToRun } from "./clickFunc.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('WithSerialHtmlId');
|
|
5
|
+
// debugger;
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default funcToRun;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import getLoginPayload from "../credentials/getLoginPayload.js";
|
|
2
|
+
|
|
3
|
+
const postLogin = async () => {
|
|
4
|
+
return fetch("/Secured/V1/GenerateToken/ToCookie", {
|
|
5
|
+
method: "POST",
|
|
6
|
+
headers: {
|
|
7
|
+
"Content-Type": "application/json"
|
|
8
|
+
},
|
|
9
|
+
body: JSON.stringify(
|
|
10
|
+
getLoginPayload()
|
|
11
|
+
)
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default postLogin;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import postLogin from "./api/postLogin.js";
|
|
2
|
+
import handleLoginFailure from "./ui/loginFailure/index.js";
|
|
3
|
+
import handleLoginSuccess from "./ui/loginSuccess/index.js";
|
|
4
|
+
|
|
5
|
+
const clickFuncToRun = async () => {
|
|
6
|
+
const response = await postLogin();
|
|
7
|
+
|
|
8
|
+
if (response.status === 200) {
|
|
9
|
+
handleLoginSuccess();
|
|
10
|
+
return;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
handleLoginFailure();
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default clickFuncToRun;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const showLoginError = () => {
|
|
2
|
+
document
|
|
3
|
+
.getElementById("loginError")
|
|
4
|
+
.classList.remove("hidden");
|
|
5
|
+
|
|
6
|
+
document
|
|
7
|
+
.getElementById("loginError")
|
|
8
|
+
.textContent = "Invalid username or password";
|
|
9
|
+
|
|
10
|
+
document
|
|
11
|
+
.getElementById("loginModalContent")
|
|
12
|
+
.classList.add("border-2", "border-red-500");
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export default showLoginError;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import hideLoginError from "./hideLoginError.js";
|
|
2
|
+
import hideLoginModal from "../../../../../Common/LoginModal/hide.js";
|
|
3
|
+
import applyLoggedInMenu from "../../../../../Common/MenuState/applyLoggedInMenu.js";
|
|
4
|
+
|
|
5
|
+
const handleLoginSuccess = () => {
|
|
6
|
+
hideLoginError();
|
|
7
|
+
hideLoginModal();
|
|
8
|
+
applyLoggedInMenu();
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default handleLoginSuccess;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const decodeJwt = (token) => {
|
|
2
|
+
const [header, payload] = token.split(".");
|
|
3
|
+
|
|
4
|
+
return {
|
|
5
|
+
header: JSON.parse(atob(header)),
|
|
6
|
+
payload: atob(payload)
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const clickFuncToRun = async ({ inCurrentTarget }) => {
|
|
11
|
+
const UserName =
|
|
12
|
+
document.getElementById("Username").value;
|
|
13
|
+
|
|
14
|
+
const Password =
|
|
15
|
+
document.getElementById("Password").value;
|
|
16
|
+
|
|
17
|
+
const response = await fetch("/Secured/V1/GenerateToken/ToCookie", {
|
|
18
|
+
method: "POST",
|
|
19
|
+
headers: {
|
|
20
|
+
"Content-Type": "application/json"
|
|
21
|
+
},
|
|
22
|
+
body: JSON.stringify({
|
|
23
|
+
UserName,
|
|
24
|
+
Password
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
if (response.status === 200) {
|
|
29
|
+
document
|
|
30
|
+
.getElementById("loginError")
|
|
31
|
+
.classList.add("hidden");
|
|
32
|
+
|
|
33
|
+
document
|
|
34
|
+
.getElementById("loginModalContent")
|
|
35
|
+
.classList.remove("border-2", "border-red-500");
|
|
36
|
+
|
|
37
|
+
const loginModal =
|
|
38
|
+
document.getElementById("loginModal");
|
|
39
|
+
|
|
40
|
+
loginModal.classList.add("hidden");
|
|
41
|
+
|
|
42
|
+
document
|
|
43
|
+
.getElementById("UserHeaderHtmlId").closest("li")
|
|
44
|
+
.style.display = "";
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
document
|
|
48
|
+
.getElementById("loginHeaderHtmlId").closest("li")
|
|
49
|
+
.style.display = "none";
|
|
50
|
+
|
|
51
|
+
const token = document.cookie
|
|
52
|
+
.split("; ")
|
|
53
|
+
.find(row => row.startsWith("KSToken="))
|
|
54
|
+
?.split("=")[1];
|
|
55
|
+
|
|
56
|
+
const userCode = decodeJwt(token);
|
|
57
|
+
document
|
|
58
|
+
.getElementById("UserHeaderHtmlId").querySelector("span").innerHTML = userCode.payload;
|
|
59
|
+
} else {
|
|
60
|
+
document
|
|
61
|
+
.getElementById("loginError")
|
|
62
|
+
.textContent = "Invalid username or password";
|
|
63
|
+
|
|
64
|
+
document
|
|
65
|
+
.getElementById("loginError")
|
|
66
|
+
.classList.remove("hidden");
|
|
67
|
+
|
|
68
|
+
document
|
|
69
|
+
.getElementById("loginModalContent")
|
|
70
|
+
.classList.add("border-2", "border-red-500");
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import clickFuncToRun from "./clickFunc/index.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('loginButtonId');
|
|
5
|
+
// debugger;
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default funcToRun;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const clickFuncToRun = ({ inCurrentTarget }) => {
|
|
2
|
+
const loginModal =
|
|
3
|
+
document.getElementById("loginModal");
|
|
4
|
+
|
|
5
|
+
loginModal.classList.remove("hidden");
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const applyActive = ({ inCurrentTarget }) => {
|
|
9
|
+
const localCurrentTarget = inCurrentTarget;
|
|
10
|
+
|
|
11
|
+
const menu = localCurrentTarget.closest("#menu");
|
|
12
|
+
|
|
13
|
+
menu.querySelectorAll("li a.active")
|
|
14
|
+
.forEach(a => a.classList.remove("active"));
|
|
15
|
+
|
|
16
|
+
localCurrentTarget.classList.add("active");
|
|
17
|
+
|
|
18
|
+
localCurrentTarget.classList.add("active");
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export { clickFuncToRun };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { clickFuncToRun } from "./clickFunc.js";
|
|
2
|
+
|
|
3
|
+
const funcToRun = () => {
|
|
4
|
+
const htmlElement = document.getElementById('loginHeaderHtmlId');
|
|
5
|
+
// debugger;
|
|
6
|
+
htmlElement.addEventListener("click", (event) =>
|
|
7
|
+
clickFuncToRun({ inCurrentTarget: event.currentTarget })
|
|
8
|
+
);
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default funcToRun;
|