diff --git a/Orchestrator/Demo/HR_officer01/styles.css b/Orchestrator/Demo/HR_officer01/HR_officer01.css similarity index 100% rename from Orchestrator/Demo/HR_officer01/styles.css rename to Orchestrator/Demo/HR_officer01/HR_officer01.css diff --git a/Orchestrator/Demo/HR_officer01/list.js b/Orchestrator/Demo/HR_officer01/HR_officer01.js similarity index 100% rename from Orchestrator/Demo/HR_officer01/list.js rename to Orchestrator/Demo/HR_officer01/HR_officer01.js diff --git a/Orchestrator/Demo/HR_officer01/config.py b/Orchestrator/Demo/HR_officer01/config.py index e7b506cd..c4670e38 100644 --- a/Orchestrator/Demo/HR_officer01/config.py +++ b/Orchestrator/Demo/HR_officer01/config.py @@ -32,7 +32,7 @@ logDescriptionMsg = 'Лог за текущие сутки' dropdownInit = 'Выберите робота...' dropdownRobot1 = 'Робот на вакансию 1' -dropdownRobot2 = 'робот на вакансию 2' +dropdownRobot2 = 'Робот на вакансию 2' @@ -167,5 +167,5 @@ html = f''' ''' -with open('test.html', 'w', encoding='UTF-8') as file: +with open('index.html', 'w', encoding='UTF-8') as file: file.write(html) diff --git a/Orchestrator/Demo/HR_officer01/test.html b/Orchestrator/Demo/HR_officer01/index.html similarity index 100% rename from Orchestrator/Demo/HR_officer01/test.html rename to Orchestrator/Demo/HR_officer01/index.html diff --git a/Orchestrator/config.py b/Orchestrator/config.py index 804e44e5..b31adcd0 100755 --- a/Orchestrator/config.py +++ b/Orchestrator/config.py @@ -34,11 +34,11 @@ def get_file(): @app.get(path="/HR_officer01/scripts",tags=["HR_officer01"]) def get_file(): - return FileResponse(CrossOS.PathStr("Demo\\HR_officer01\\list.js")) + return FileResponse(CrossOS.PathStr("Demo\\HR_officer01\\HR_officer01.js")) @app.get(path="/HR_officer01/styles",tags=["HR_officer01"]) def get_file(): - return FileResponse(CrossOS.PathStr("Demo\\HR_officer01\\styles.css")) + return FileResponse(CrossOS.PathStr("Demo\\HR_officer01\\HR_officer01.css")) # Пример создания функции на сервере (FASTAPI) /test/threads @@ -78,7 +78,7 @@ else: # Autoinit control panels starts with CP_ lPyModules = Orchestrator.OrchestratorPySearchInit(inGlobPatternStr="ControlPanel\\CP_*.py", inDefStr="SettingsUpdate", inDefArgNameGSettingsStr="inGSettings", inAsyncInitBool=True) lCPManager = Orchestrator.Managers.ControlPanel(inControlPanelNameStr="TestControlPanel", - inRefreshHTMLJinja2TemplatePathStr=CrossOS.PathStr("D:\\For work\\RPA\\OpenRPA\\Orchestrator\\Demo\\HR_officer01\\test.html"), inJinja2TemplateRefreshBool = True) + inRefreshHTMLJinja2TemplatePathStr=CrossOS.PathStr("D:\\For work\\RPA\\OpenRPA\\Orchestrator\\Demo\\HR_officer01\\index.html"), inJinja2TemplateRefreshBool = True) # Call the orchestrator def Orchestrator.Orchestrator(inGSettings=gSettings, inDumpRestoreBool=False)