From 2cbab5d806ab3d66903b1de1ad1df6f1a1a392b1 Mon Sep 17 00:00:00 2001 From: KyMAN <0kyman0@gmail.com> Date: Mon, 16 Dec 2024 17:53:57 +0100 Subject: [PATCH] fix(py): Static variables fixed and documentation ECMA imports moduled. --- ...PythonMapper.py.projects.secrets copy.json | 76 +++++++++++++++++++ Public/scss/PythonMapper.css | 67 ++++++++++------ Public/scss/PythonMapper.css.map | 2 +- Python/PythonMapper.py | 2 +- version | 2 +- 5 files changed, 123 insertions(+), 26 deletions(-) create mode 100644 JSON/PythonMapper.py.projects.secrets copy.json diff --git a/JSON/PythonMapper.py.projects.secrets copy.json b/JSON/PythonMapper.py.projects.secrets copy.json new file mode 100644 index 0000000..f7125ef --- /dev/null +++ b/JSON/PythonMapper.py.projects.secrets copy.json @@ -0,0 +1,76 @@ +{ + "anp" : { + "path" : "/media/kyman/SSD2TB/git/AnP/Python", + "files" : [ + "Models/HTTP.py", + "Models/RoutesResponse.py", + "Abstracts/Applications.py", + "Models/Routes.py", + "Modules/ErrorsManager.py", + "Abstracts/Managers.py", + "Abstracts/OwnSettings.py", + "Abstracts/HTTP.py", + "Application/Events.py", + "Models/Threads.py", + "Models/Commands.py", + "Abstracts/Connections.py", + "Abstracts/Controllers.py", + "Managers/PrintTypes.py", + "Application/Path.py", + "Managers/Settings.py", + "Managers/I18N.py", + "Modules/WMarkDown.py", + "Models/Licenses.py", + "Managers/Licenses.py", + "Application/Threads.py", + "Application/Terminal.py", + "Managers/MimeExtensions.py", + "Managers/Connections.py", + "Managers/Views.py", + "Managers/Controllers.py", + "Managers/Routes.py", + "Managers/Servers.py", + "Managers/ApplicationsFragments.py", + "Managers/Applications.py", + "Models/Shell.py", + "Models/Proxy.py", + "Drivers/UnixDomainSocketWebServer.py", + "Drivers/Shell.py", + "Drivers/Curl.py", + "Drivers/CSV.py", + "Drivers/Selenium.py", + "Drivers/ProxiesList.py", + "Application/AnP.py" + ], + "map" : "Abstracts/AnPMap.py", + "dependences" : [ + ["typing", ["Any", "Optional", "Callable"]], + ["socket", "socket", "Socket"], + "datetime", + ["re", "Pattern", "REPattern"], + ["re", "Match", "REMatch"], + ["threading", "Thread"] + ], + "definitions" : [ + "Self", "WebDriver", "WebElement", "AnP", "class ObjectSetter:pass" + ] + }, + "irx" : { + "path" : "/media/kyman/SSD2TB/git/IRX/Python", + "files" : [ + "Managers/Settings.py", + "Application/IRX.py" + ], + "map" : "Abstracts/IRXMap.py", + "dependences" : [ + ["typing", ["Any", "Optional", "Callable", "Final", "Self"]], + ["re", "Pattern", "REPattern"], + ["re", "Match", "REMatch"], + ["threading", "Thread"], + "datetime" + ], + "definitions" : [ + "IRX" + ] + } +} \ No newline at end of file diff --git a/Public/scss/PythonMapper.css b/Public/scss/PythonMapper.css index 953252a..1e748b6 100644 --- a/Public/scss/PythonMapper.css +++ b/Public/scss/PythonMapper.css @@ -21,19 +21,19 @@ .python-mapper[data-gui-mode=light], .python-mapper[data-gui-mode=default][data-dark-mode=false] { background-color: #EFEFEF; color: #222; } - .python-mapper[data-gui-mode=light] a[href], .python-mapper[data-gui-mode=light] [onclick], .python-mapper[data-gui-mode=light] [onmouseover], .python-mapper[data-gui-mode=light] [onmousedown], .python-mapper[data-gui-mode=light] button, .python-mapper[data-gui-mode=light] [type=button], .python-mapper[data-gui-mode=light] [type=reset], .python-mapper[data-gui-mode=light] [type=submit], .python-mapper[data-gui-mode=default][data-dark-mode=false] a[href], .python-mapper[data-gui-mode=default][data-dark-mode=false] [onclick], .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmouseover], .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmousedown], .python-mapper[data-gui-mode=default][data-dark-mode=false] button, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=button], .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=reset], .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=submit] { + .python-mapper[data-gui-mode=light] a[href], .python-mapper[data-gui-mode=light] [onclick], .python-mapper[data-gui-mode=light] [onmouseover], .python-mapper[data-gui-mode=light] [onmousedown], .python-mapper[data-gui-mode=light] button, .python-mapper[data-gui-mode=light] [type=button], .python-mapper[data-gui-mode=light] [type=reset], .python-mapper[data-gui-mode=light] [type=submit], .python-mapper[data-gui-mode=light] [data-role=link], .python-mapper[data-gui-mode=light] [data-role=button], .python-mapper[data-gui-mode=default][data-dark-mode=false] a[href], .python-mapper[data-gui-mode=default][data-dark-mode=false] [onclick], .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmouseover], .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmousedown], .python-mapper[data-gui-mode=default][data-dark-mode=false] button, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=button], .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=reset], .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=submit], .python-mapper[data-gui-mode=default][data-dark-mode=false] [data-role=link], .python-mapper[data-gui-mode=default][data-dark-mode=false] [data-role=button] { color: #459; } - .python-mapper[data-gui-mode=light] a[href]:hover, .python-mapper[data-gui-mode=light] [onclick]:hover, .python-mapper[data-gui-mode=light] [onmouseover]:hover, .python-mapper[data-gui-mode=light] [onmousedown]:hover, .python-mapper[data-gui-mode=light] button:hover, .python-mapper[data-gui-mode=light] [type=button]:hover, .python-mapper[data-gui-mode=light] [type=reset]:hover, .python-mapper[data-gui-mode=light] [type=submit]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] a[href]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [onclick]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmouseover]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmousedown]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] button:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=reset]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=submit]:hover { + .python-mapper[data-gui-mode=light] a[href]:hover, .python-mapper[data-gui-mode=light] [onclick]:hover, .python-mapper[data-gui-mode=light] [onmouseover]:hover, .python-mapper[data-gui-mode=light] [onmousedown]:hover, .python-mapper[data-gui-mode=light] button:hover, .python-mapper[data-gui-mode=light] [type=button]:hover, .python-mapper[data-gui-mode=light] [type=reset]:hover, .python-mapper[data-gui-mode=light] [type=submit]:hover, .python-mapper[data-gui-mode=light] [data-role=link]:hover, .python-mapper[data-gui-mode=light] [data-role=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] a[href]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [onclick]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmouseover]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmousedown]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] button:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=reset]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=submit]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [data-role=link]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [data-role=button]:hover { color: #BA5; } .python-mapper[data-gui-mode=light] [onmouseover], .python-mapper[data-gui-mode=light] [onmousedown], .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmouseover], .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmousedown] { color: #333c5e; } .python-mapper[data-gui-mode=light] [onmouseover]:hover, .python-mapper[data-gui-mode=light] [onmousedown]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmouseover]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [onmousedown]:hover { color: #6f663c; } - .python-mapper[data-gui-mode=light] button, .python-mapper[data-gui-mode=light] [type=button], .python-mapper[data-gui-mode=light] [type=reset], .python-mapper[data-gui-mode=light] [type=submit], .python-mapper[data-gui-mode=default][data-dark-mode=false] button, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=button], .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=reset], .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=submit] { - border-color: 0.1em solid #459; + .python-mapper[data-gui-mode=light] button, .python-mapper[data-gui-mode=light] [type=button], .python-mapper[data-gui-mode=light] [type=reset], .python-mapper[data-gui-mode=light] [type=submit], .python-mapper[data-gui-mode=light] [data-role=button], .python-mapper[data-gui-mode=default][data-dark-mode=false] button, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=button], .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=reset], .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=submit], .python-mapper[data-gui-mode=default][data-dark-mode=false] [data-role=button] { + border: 0.1em solid #459; box-shadow: 0em 0em 0.4em #459; } - .python-mapper[data-gui-mode=light] button:hover, .python-mapper[data-gui-mode=light] [type=button]:hover, .python-mapper[data-gui-mode=light] [type=reset]:hover, .python-mapper[data-gui-mode=light] [type=submit]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] button:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=reset]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=submit]:hover { - border-color: 0.1em solid #BA5; + .python-mapper[data-gui-mode=light] button:hover, .python-mapper[data-gui-mode=light] [type=button]:hover, .python-mapper[data-gui-mode=light] [type=reset]:hover, .python-mapper[data-gui-mode=light] [type=submit]:hover, .python-mapper[data-gui-mode=light] [data-role=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] button:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=reset]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [type=submit]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=false] [data-role=button]:hover { + border-color: #BA5; box-shadow: 0em 0em 0.4em #BA5; } .python-mapper[data-gui-mode=light] .wmd-dictionary-item, .python-mapper[data-gui-mode=default][data-dark-mode=false] .wmd-dictionary-item { color: #333c5e; } @@ -49,19 +49,19 @@ .python-mapper[data-gui-mode=dark], .python-mapper[data-gui-mode=default][data-dark-mode=true] { background-color: #222; color: #EFEFEF; } - .python-mapper[data-gui-mode=dark] a[href], .python-mapper[data-gui-mode=dark] [onclick], .python-mapper[data-gui-mode=dark] [onmouseover], .python-mapper[data-gui-mode=dark] [onmousedown], .python-mapper[data-gui-mode=dark] button, .python-mapper[data-gui-mode=dark] [type=button], .python-mapper[data-gui-mode=dark] [type=reset], .python-mapper[data-gui-mode=dark] [type=submit], .python-mapper[data-gui-mode=default][data-dark-mode=true] a[href], .python-mapper[data-gui-mode=default][data-dark-mode=true] [onclick], .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmouseover], .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmousedown], .python-mapper[data-gui-mode=default][data-dark-mode=true] button, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=button], .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=reset], .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=submit] { + .python-mapper[data-gui-mode=dark] a[href], .python-mapper[data-gui-mode=dark] [onclick], .python-mapper[data-gui-mode=dark] [onmouseover], .python-mapper[data-gui-mode=dark] [onmousedown], .python-mapper[data-gui-mode=dark] button, .python-mapper[data-gui-mode=dark] [type=button], .python-mapper[data-gui-mode=dark] [type=reset], .python-mapper[data-gui-mode=dark] [type=submit], .python-mapper[data-gui-mode=dark] [data-role=link], .python-mapper[data-gui-mode=dark] [data-role=button], .python-mapper[data-gui-mode=default][data-dark-mode=true] a[href], .python-mapper[data-gui-mode=default][data-dark-mode=true] [onclick], .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmouseover], .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmousedown], .python-mapper[data-gui-mode=default][data-dark-mode=true] button, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=button], .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=reset], .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=submit], .python-mapper[data-gui-mode=default][data-dark-mode=true] [data-role=link], .python-mapper[data-gui-mode=default][data-dark-mode=true] [data-role=button] { color: #6674aa; } - .python-mapper[data-gui-mode=dark] a[href]:hover, .python-mapper[data-gui-mode=dark] [onclick]:hover, .python-mapper[data-gui-mode=dark] [onmouseover]:hover, .python-mapper[data-gui-mode=dark] [onmousedown]:hover, .python-mapper[data-gui-mode=dark] button:hover, .python-mapper[data-gui-mode=dark] [type=button]:hover, .python-mapper[data-gui-mode=dark] [type=reset]:hover, .python-mapper[data-gui-mode=dark] [type=submit]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] a[href]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [onclick]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmouseover]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmousedown]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] button:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=reset]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=submit]:hover { + .python-mapper[data-gui-mode=dark] a[href]:hover, .python-mapper[data-gui-mode=dark] [onclick]:hover, .python-mapper[data-gui-mode=dark] [onmouseover]:hover, .python-mapper[data-gui-mode=dark] [onmousedown]:hover, .python-mapper[data-gui-mode=dark] button:hover, .python-mapper[data-gui-mode=dark] [type=button]:hover, .python-mapper[data-gui-mode=dark] [type=reset]:hover, .python-mapper[data-gui-mode=dark] [type=submit]:hover, .python-mapper[data-gui-mode=dark] [data-role=link]:hover, .python-mapper[data-gui-mode=dark] [data-role=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] a[href]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [onclick]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmouseover]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmousedown]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] button:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=reset]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=submit]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [data-role=link]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [data-role=button]:hover { color: #c5b874; } .python-mapper[data-gui-mode=dark] [onmouseover], .python-mapper[data-gui-mode=dark] [onmousedown], .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmouseover], .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmousedown] { color: #abb2cd; } .python-mapper[data-gui-mode=dark] [onmouseover]:hover, .python-mapper[data-gui-mode=dark] [onmousedown]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmouseover]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [onmousedown]:hover { color: #dad4b2; } - .python-mapper[data-gui-mode=dark] button, .python-mapper[data-gui-mode=dark] [type=button], .python-mapper[data-gui-mode=dark] [type=reset], .python-mapper[data-gui-mode=dark] [type=submit], .python-mapper[data-gui-mode=default][data-dark-mode=true] button, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=button], .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=reset], .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=submit] { - border-color: 0.1em solid #6674aa; + .python-mapper[data-gui-mode=dark] button, .python-mapper[data-gui-mode=dark] [type=button], .python-mapper[data-gui-mode=dark] [type=reset], .python-mapper[data-gui-mode=dark] [type=submit], .python-mapper[data-gui-mode=dark] [data-role=button], .python-mapper[data-gui-mode=default][data-dark-mode=true] button, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=button], .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=reset], .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=submit], .python-mapper[data-gui-mode=default][data-dark-mode=true] [data-role=button] { + border: 0.1em solid #6674aa; box-shadow: 0em 0em 0.4em #6674aa; } - .python-mapper[data-gui-mode=dark] button:hover, .python-mapper[data-gui-mode=dark] [type=button]:hover, .python-mapper[data-gui-mode=dark] [type=reset]:hover, .python-mapper[data-gui-mode=dark] [type=submit]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] button:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=reset]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=submit]:hover { - border-color: 0.1em solid #c5b874; + .python-mapper[data-gui-mode=dark] button:hover, .python-mapper[data-gui-mode=dark] [type=button]:hover, .python-mapper[data-gui-mode=dark] [type=reset]:hover, .python-mapper[data-gui-mode=dark] [type=submit]:hover, .python-mapper[data-gui-mode=dark] [data-role=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] button:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=button]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=reset]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [type=submit]:hover, .python-mapper[data-gui-mode=default][data-dark-mode=true] [data-role=button]:hover { + border-color: #c5b874; box-shadow: 0em 0em 0.4em #c5b874; } .python-mapper[data-gui-mode=dark] .wmd-dictionary-item, .python-mapper[data-gui-mode=default][data-dark-mode=true] .wmd-dictionary-item { color: #abb2cd; } @@ -74,17 +74,17 @@ box-shadow: 0.1em 0.1em 0.2em #EFEFEF; } .python-mapper[data-gui-mode=dark] .wmd-dictionary-box a[href], .python-mapper[data-gui-mode=default][data-dark-mode=true] .wmd-dictionary-box a[href] { background-color: rgba(255, 255, 255, 0.1); } - .python-mapper a[href] { + .python-mapper a[href], .python-mapper [data-role=link] { text-decoration: none; word-break: break-word; } - .python-mapper a[href], .python-mapper [onclick], .python-mapper [onmouseover], .python-mapper [onmousedown], .python-mapper button, .python-mapper [type=button], .python-mapper [type=reset], .python-mapper [type=submit] { + .python-mapper a[href], .python-mapper [onclick], .python-mapper [onmouseover], .python-mapper [onmousedown], .python-mapper button, .python-mapper [type=button], .python-mapper [type=reset], .python-mapper [type=submit], .python-mapper [data-role=link], .python-mapper [data-role=button] { cursor: pointer; transition-duration: 1s; } - .python-mapper a[href]:hover, .python-mapper [onclick]:hover, .python-mapper [onmouseover]:hover, .python-mapper [onmousedown]:hover, .python-mapper button:hover, .python-mapper [type=button]:hover, .python-mapper [type=reset]:hover, .python-mapper [type=submit]:hover { + .python-mapper a[href]:hover, .python-mapper [onclick]:hover, .python-mapper [onmouseover]:hover, .python-mapper [onmousedown]:hover, .python-mapper button:hover, .python-mapper [type=button]:hover, .python-mapper [type=reset]:hover, .python-mapper [type=submit]:hover, .python-mapper [data-role=link]:hover, .python-mapper [data-role=button]:hover { transition-duration: 0.2s; } - .python-mapper a[href], .python-mapper [onclick], .python-mapper [onmouseover], .python-mapper [onmousedown], .python-mapper button, .python-mapper [type=button], .python-mapper [type=reset], .python-mapper [type=submit] { + .python-mapper a[href], .python-mapper [onclick], .python-mapper [onmouseover], .python-mapper [onmousedown], .python-mapper button, .python-mapper [type=button], .python-mapper [type=reset], .python-mapper [type=submit], .python-mapper [data-role=link], .python-mapper [data-role=button] { transition-property: color; } - .python-mapper button, .python-mapper [type=button], .python-mapper [type=reset], .python-mapper [type=submit] { + .python-mapper button, .python-mapper [type=button], .python-mapper [type=reset], .python-mapper [type=submit], .python-mapper [data-role=button] { transition-property: color,border-color,box-shadow; } .python-mapper h2 { font-size: 2.6em; } @@ -139,6 +139,9 @@ overflow: auto; box-sizing: border-box; } .python-mapper footer { + display: flex; + flex-direction: row; + justify-items: center; bottom: 0em; height: 2.5em; z-index: 30; } @@ -156,14 +159,11 @@ display: flex; flex-direction: row; justify-content: center; - position: absolute; - left: 0em; - bottom: 0em; - width: 100%; + flex: auto; text-align: center; padding: .1em .2em; font-weight: 900; - font-size: .85em; + font-size: .65em; box-sizing: border-box; } .python-mapper .license { display: flex; @@ -179,8 +179,29 @@ vertical-align: middle; } .python-mapper .license img { width: auto; - height: 2.5em; + height: 3em; margin: .2em .2em; } + .python-mapper .gui-controls { + display: flex; + flex-direction: row; + justify-items: center; + align-items: stretch; + flex-grow: 0; + order: -1; + border: none; + font-size: .85em; } + .python-mapper .gui-controls button[data-i18n=zoom_less], .python-mapper .gui-controls button[data-i18n=zoom_reset], .python-mapper .gui-controls button[data-i18n=zoom_more], .python-mapper .gui-controls span[data-i18n], .python-mapper .gui-controls legend { + display: none; } + .python-mapper .gui-controls [data-icon]::before { + margin: 0em; } + .python-mapper .gui-controls [type=number] { + display: none; + width: 3em; + font-family: "Roboto Mono"; } + .python-mapper .gui-controls button[data-i18n=zoom_mode] { + border-radius: 0.3em 0em 0em 0.3em; } + .python-mapper .gui-controls > :last-child { + border-radius: 0em 0.3em 0.3em 0em; } .python-mapper h1 .image + span { font-size: 3.1em; } diff --git a/Public/scss/PythonMapper.css.map b/Public/scss/PythonMapper.css.map index b9004b1..d491e8c 100644 --- a/Public/scss/PythonMapper.css.map +++ b/Public/scss/PythonMapper.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings": "AAKA,cAAc;ECuCV,QAAQ,EAAG,QAAQ;EACnB,GAAG,EAAG,GAAG;EACT,IAAI,EAAG,GAAG;EACV,KAAK,EAAG,IAAI;EACZ,MAAM,EAAG,IAAI;EACb,QAAQ,EAAG,MAAM;EAEjB,kFAAqB;IAAC,WAAW,ECtCtB,QAAQ;EDuCnB;;;6CAG0B;IAAC,WAAW,ECxC7B,aAAa;EDyCtB,kCAAmB;IAAC,WAAW,ECvCtB,OAAO;EDwChB,2FAA4B;IAAC,SAAS,EAAG,GAAG;EAE5C,sEAAuC;IAAC,OAAO,EAAG,IAAI;EAEtD,gGAAqE;IAmC7D,gBAAgB,EAzDL,OAAW;IA0DtB,KAAK,EAzDM,IAAW;IAsB1B,08BAA6F;MACzF,KAAK,EA3BU,IAAc;MA4B7B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AG,GAAG;IACpB,aAAa,EAAG,MAAM;IACtB,WAAW,EAAG,OAAO;IACrB,SAAS,EAAG,CAAC;IACb,KAAK,EAAG,EAAE;IACV,MAAM,EAAG,IAAI;IACb,SAAS,EAAG,KAAK;IACjB,gQAA2G;MAAC,OAAO,EAAG,IAAI;IAC1H,gDAAmB;MAAC,MAAM,EAAG,GAAG;IAChC,0CAAa;MACT,OAAO,EAAG,IAAI;MACd,KAAK,EAAG,GAAG;MACX,WAAW,EC1QV,aAAa;ID6QlB,wDAA2B;MAAC,aAAa,EAAG,mBAAmC;IAC/E,0CAAa;MAAC,aAAa,EAAG,mBAAmC;;ADpRzE,+BAA6B;EAAC,SAAS,EAAG,KAAK", "sources": ["PythonMapper.scss","../../../AnP/Public/scss/AnP.common.scss","../../../AnP/Public/scss/AnP.settings.scss"], "names": [], "file": "PythonMapper.css" diff --git a/Python/PythonMapper.py b/Python/PythonMapper.py index ee795e2..3acef67 100644 --- a/Python/PythonMapper.py +++ b/Python/PythonMapper.py @@ -63,7 +63,7 @@ class PythonMapper: "class_item" : RECompile(r'^([ \t]*)class[ \t]+([a-zA-Z0-9_]+)(#[^\:]+)?(?=\:)', RE_MULTILINE), "method" : RECompile(r'^([ \t]*\@[^\r\n]+(\n|\r\n))*([ \t]*)def[ \t]+(_?[^_][a-zA-Z0-9_]*|__init__)(#[^\:]+)(?=\:)', RE_MULTILINE), "object_variable" : RECompile(r'^[ \t]+(self[ \t]*\.[ \t]*(_?[^_][a-zA-Z0-9_]*)([ \t]*\:[^\=\r\n]+)?)([ \t]*=|[\r\n]|$)', RE_MULTILINE), - "static_variable" : RECompile(r'^([ \t]*)(_?[^_][a-zA-Z0-9]*)([ \t]*\:[^\r\n\=]+)?(?=[ \t]*\=)(?!\=)', RE_MULTILINE) + "static_variable" : RECompile(r'^([ \t]*)(_?[^_][a-zA-Z0-9_]*)([ \t]*\:[^\r\n\=]+)?(?=[ \t]*\=)(?!\=)', RE_MULTILINE) } re_unclean_code:REPattern = RECompile(r'(?