From 60f24f8bbb40b992e18daa1352ec4c210ae8a63d Mon Sep 17 00:00:00 2001 From: KyMAN <0kyman0@gmail.com> Date: Thu, 14 Nov 2024 11:58:46 +0100 Subject: [PATCH] fix(py): Fixed some Bugs in ErrorsManager methods. Updated HTML and CSS for WMarkDown data. --- HTML/ErrorsManager.base.html | 125 ------------------------------ Public/scss/ErrorsManager.css | 82 ++++++++++++++------ Public/scss/ErrorsManager.css.map | 2 +- Python/ErrorsManager.py | 13 ++-- version | 2 +- 5 files changed, 66 insertions(+), 158 deletions(-) delete mode 100644 HTML/ErrorsManager.base.html diff --git a/HTML/ErrorsManager.base.html b/HTML/ErrorsManager.base.html deleted file mode 100644 index 6f4076f..0000000 --- a/HTML/ErrorsManager.base.html +++ /dev/null @@ -1,125 +0,0 @@ - - - - {title_text} - - - - - - - - - - - - - - - - - - - - - - - - -
-

- - - - - - {{errors_manager}} - -

- -
-
{contents}
- - - \ No newline at end of file diff --git a/Public/scss/ErrorsManager.css b/Public/scss/ErrorsManager.css index f8a9cab..4cb54d2 100644 --- a/Public/scss/ErrorsManager.css +++ b/Public/scss/ErrorsManager.css @@ -4,9 +4,7 @@ left: 0em; width: 100%; height: 100%; - overflow: hidden; - background-color: #EFEFEF; - color: #222; } + overflow: hidden; } .errors-manager, .errors-manager input, .errors-manager button, .errors-manager select { font-family: "Roboto"; } .errors-manager pre, .errors-manager textarea, @@ -20,6 +18,62 @@ font-size: 1em; } .errors-manager [data-visible=false], .errors-manager [data-hidden=true] { display: none; } + .errors-manager[data-gui-mode=light], .errors-manager[data-gui-mode=default][data-dark-mode=false] { + background-color: #EFEFEF; + color: #222; } + .errors-manager[data-gui-mode=light] a[href], .errors-manager[data-gui-mode=light] [onclick], .errors-manager[data-gui-mode=light] [onmouseover], .errors-manager[data-gui-mode=light] [onmousedown], .errors-manager[data-gui-mode=light] button, .errors-manager[data-gui-mode=light] [type=button], .errors-manager[data-gui-mode=light] [type=reset], .errors-manager[data-gui-mode=light] [type=submit], .errors-manager[data-gui-mode=default][data-dark-mode=false] a[href], .errors-manager[data-gui-mode=default][data-dark-mode=false] [onclick], .errors-manager[data-gui-mode=default][data-dark-mode=false] [onmouseover], .errors-manager[data-gui-mode=default][data-dark-mode=false] [onmousedown], .errors-manager[data-gui-mode=default][data-dark-mode=false] button, .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=button], .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=reset], .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=submit] { + color: #812; } + .errors-manager[data-gui-mode=light] a[href]:hover, .errors-manager[data-gui-mode=light] [onclick]:hover, .errors-manager[data-gui-mode=light] [onmouseover]:hover, .errors-manager[data-gui-mode=light] [onmousedown]:hover, .errors-manager[data-gui-mode=light] button:hover, .errors-manager[data-gui-mode=light] [type=button]:hover, .errors-manager[data-gui-mode=light] [type=reset]:hover, .errors-manager[data-gui-mode=light] [type=submit]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] a[href]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [onclick]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [onmouseover]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [onmousedown]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] button:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=button]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=reset]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=submit]:hover { + color: #278; } + .errors-manager[data-gui-mode=light] [onmouseover], .errors-manager[data-gui-mode=light] [onmousedown], .errors-manager[data-gui-mode=default][data-dark-mode=false] [onmouseover], .errors-manager[data-gui-mode=default][data-dark-mode=false] [onmousedown] { + color: #551a22; } + .errors-manager[data-gui-mode=light] [onmouseover]:hover, .errors-manager[data-gui-mode=light] [onmousedown]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [onmouseover]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [onmousedown]:hover { + color: #224d55; } + .errors-manager[data-gui-mode=light] button, .errors-manager[data-gui-mode=light] [type=button], .errors-manager[data-gui-mode=light] [type=reset], .errors-manager[data-gui-mode=light] [type=submit], .errors-manager[data-gui-mode=default][data-dark-mode=false] button, .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=button], .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=reset], .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=submit] { + border-color: 0.1em solid #812; + box-shadow: 0em 0em 0.4em #812; } + .errors-manager[data-gui-mode=light] button:hover, .errors-manager[data-gui-mode=light] [type=button]:hover, .errors-manager[data-gui-mode=light] [type=reset]:hover, .errors-manager[data-gui-mode=light] [type=submit]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] button:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=button]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=reset]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] [type=submit]:hover { + border-color: 0.1em solid #278; + box-shadow: 0em 0em 0.4em #278; } + .errors-manager[data-gui-mode=light] .wmd-dictionary-item, .errors-manager[data-gui-mode=default][data-dark-mode=false] .wmd-dictionary-item { + color: #551a22; } + .errors-manager[data-gui-mode=light] .wmd-dictionary-item:hover, .errors-manager[data-gui-mode=default][data-dark-mode=false] .wmd-dictionary-item:hover { + color: #224d55; } + .errors-manager[data-gui-mode=light] header, .errors-manager[data-gui-mode=light] footer, .errors-manager[data-gui-mode=default][data-dark-mode=false] header, .errors-manager[data-gui-mode=default][data-dark-mode=false] footer { + box-shadow: 0em 0em 0.125em #EFEFEF, 0em 0em 0.25em #EFEFEF, 0em 0em 0.5em #EFEFEF, 0em 0em 1em #EFEFEF, 0em 0em 2em #EFEFEF; } + .errors-manager[data-gui-mode=light] .wmd-dictionary-box, .errors-manager[data-gui-mode=light] .wmd-main-menu, .errors-manager[data-gui-mode=default][data-dark-mode=false] .wmd-dictionary-box, .errors-manager[data-gui-mode=default][data-dark-mode=false] .wmd-main-menu { + background-color: #EFEFEF; + box-shadow: 0.1em 0.1em 0.2em #222; } + .errors-manager[data-gui-mode=light] .wmd-dictionary-box a[href], .errors-manager[data-gui-mode=default][data-dark-mode=false] .wmd-dictionary-box a[href] { + background-color: rgba(0, 0, 0, 0.1); } + .errors-manager[data-gui-mode=dark], .errors-manager[data-gui-mode=default][data-dark-mode=true] { + background-color: #222; + color: #EFEFEF; } + .errors-manager[data-gui-mode=dark] a[href], .errors-manager[data-gui-mode=dark] [onclick], .errors-manager[data-gui-mode=dark] [onmouseover], .errors-manager[data-gui-mode=dark] [onmousedown], .errors-manager[data-gui-mode=dark] button, .errors-manager[data-gui-mode=dark] [type=button], .errors-manager[data-gui-mode=dark] [type=reset], .errors-manager[data-gui-mode=dark] [type=submit], .errors-manager[data-gui-mode=default][data-dark-mode=true] a[href], .errors-manager[data-gui-mode=default][data-dark-mode=true] [onclick], .errors-manager[data-gui-mode=default][data-dark-mode=true] [onmouseover], .errors-manager[data-gui-mode=default][data-dark-mode=true] [onmousedown], .errors-manager[data-gui-mode=default][data-dark-mode=true] button, .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=button], .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=reset], .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=submit] { + color: #9d3d4b; } + .errors-manager[data-gui-mode=dark] a[href]:hover, .errors-manager[data-gui-mode=dark] [onclick]:hover, .errors-manager[data-gui-mode=dark] [onmouseover]:hover, .errors-manager[data-gui-mode=dark] [onmousedown]:hover, .errors-manager[data-gui-mode=dark] button:hover, .errors-manager[data-gui-mode=dark] [type=button]:hover, .errors-manager[data-gui-mode=dark] [type=reset]:hover, .errors-manager[data-gui-mode=dark] [type=submit]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] a[href]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [onclick]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [onmouseover]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [onmousedown]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] button:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=button]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=reset]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=submit]:hover { + color: #4b8f9d; } + .errors-manager[data-gui-mode=dark] [onmouseover], .errors-manager[data-gui-mode=dark] [onmousedown], .errors-manager[data-gui-mode=default][data-dark-mode=true] [onmouseover], .errors-manager[data-gui-mode=default][data-dark-mode=true] [onmousedown] { + color: #c6969d; } + .errors-manager[data-gui-mode=dark] [onmouseover]:hover, .errors-manager[data-gui-mode=dark] [onmousedown]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [onmouseover]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [onmousedown]:hover { + color: #9dbfc6; } + .errors-manager[data-gui-mode=dark] button, .errors-manager[data-gui-mode=dark] [type=button], .errors-manager[data-gui-mode=dark] [type=reset], .errors-manager[data-gui-mode=dark] [type=submit], .errors-manager[data-gui-mode=default][data-dark-mode=true] button, .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=button], .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=reset], .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=submit] { + border-color: 0.1em solid #9d3d4b; + box-shadow: 0em 0em 0.4em #9d3d4b; } + .errors-manager[data-gui-mode=dark] button:hover, .errors-manager[data-gui-mode=dark] [type=button]:hover, .errors-manager[data-gui-mode=dark] [type=reset]:hover, .errors-manager[data-gui-mode=dark] [type=submit]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] button:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=button]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=reset]:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] [type=submit]:hover { + border-color: 0.1em solid #4b8f9d; + box-shadow: 0em 0em 0.4em #4b8f9d; } + .errors-manager[data-gui-mode=dark] .wmd-dictionary-item, .errors-manager[data-gui-mode=default][data-dark-mode=true] .wmd-dictionary-item { + color: #c6969d; } + .errors-manager[data-gui-mode=dark] .wmd-dictionary-item:hover, .errors-manager[data-gui-mode=default][data-dark-mode=true] .wmd-dictionary-item:hover { + color: #9dbfc6; } + .errors-manager[data-gui-mode=dark] header, .errors-manager[data-gui-mode=dark] footer, .errors-manager[data-gui-mode=default][data-dark-mode=true] header, .errors-manager[data-gui-mode=default][data-dark-mode=true] footer { + box-shadow: 0em 0em 0.125em #222, 0em 0em 0.25em #222, 0em 0em 0.5em #222, 0em 0em 1em #222, 0em 0em 2em #222; } + .errors-manager[data-gui-mode=dark] .wmd-dictionary-box, .errors-manager[data-gui-mode=dark] .wmd-main-menu, .errors-manager[data-gui-mode=default][data-dark-mode=true] .wmd-dictionary-box, .errors-manager[data-gui-mode=default][data-dark-mode=true] .wmd-main-menu { + background-color: #222; + box-shadow: 0.1em 0.1em 0.2em #EFEFEF; } + .errors-manager[data-gui-mode=dark] .wmd-dictionary-box a[href], .errors-manager[data-gui-mode=default][data-dark-mode=true] .wmd-dictionary-box a[href] { + background-color: rgba(255, 255, 255, 0.1); } .errors-manager a[href] { text-decoration: none; word-break: break-word; } @@ -29,28 +83,9 @@ .errors-manager a[href]:hover, .errors-manager [onclick]:hover, .errors-manager [onmouseover]:hover, .errors-manager [onmousedown]:hover, .errors-manager button:hover, .errors-manager [type=button]:hover, .errors-manager [type=reset]:hover, .errors-manager [type=submit]:hover { transition-duration: 0.2s; } .errors-manager a[href], .errors-manager [onclick], .errors-manager [onmouseover], .errors-manager [onmousedown], .errors-manager button, .errors-manager [type=button], .errors-manager [type=reset], .errors-manager [type=submit] { - color: #812; - transition-property: color; } - .errors-manager a[href]:hover, .errors-manager [onclick]:hover, .errors-manager [onmouseover]:hover, .errors-manager [onmousedown]:hover, .errors-manager button:hover, .errors-manager [type=button]:hover, .errors-manager [type=reset]:hover, .errors-manager [type=submit]:hover { - color: #278; } - .errors-manager [onmouseover], .errors-manager [onmousedown] { - color: #551a22; - transition-property: color; } - .errors-manager [onmouseover]:hover, .errors-manager [onmousedown]:hover { - color: #224d55; } - .errors-manager a[href], .errors-manager [onclick] { transition-property: color; } .errors-manager button, .errors-manager [type=button], .errors-manager [type=reset], .errors-manager [type=submit] { - border-color: 0.1em solid #812; - box-shadow: 0em 0em 0.4em #812; transition-property: color,border-color,box-shadow; } - .errors-manager button:hover, .errors-manager [type=button]:hover, .errors-manager [type=reset]:hover, .errors-manager [type=submit]:hover { - border-color: 0.1em solid #278; - box-shadow: 0em 0em 0.4em #278; } - .errors-manager .wmd-dictionary-item { - color: #551a22; } - .errors-manager .wmd-dictionary-item:hover { - color: #224d55; } .errors-manager h2 { font-size: 2.6em; } .errors-manager h3 { @@ -70,8 +105,7 @@ .errors-manager header, .errors-manager footer { overflow: hidden; display: flex; - flex-direction: row; - box-shadow: 0em 0em 0.125em #EFEFEF, 0em 0em 0.25em #EFEFEF, 0em 0em 0.5em #EFEFEF, 0em 0em 1em #EFEFEF, 0em 0em 2em #EFEFEF; } + flex-direction: row; } .errors-manager header > *, .errors-manager footer > * { flex: auto; align-self: center; } diff --git a/Public/scss/ErrorsManager.css.map b/Public/scss/ErrorsManager.css.map index 12d0de7..a91c9db 100644 --- a/Public/scss/ErrorsManager.css.map +++ b/Public/scss/ErrorsManager.css.map @@ -1,6 +1,6 @@ { "version": 3, -"mappings": "AAKA,eAAe;ECuBX,QAAQ,EAAG,QAAQ;EACnB,GAAG,EAAG,GAAG;EACT,IAAI,EAAG,GAAG;EACV,KAAK,EAAG,IAAI;EACZ,MAAM,EAAG,IAAI;EACb,QAAQ,EAAG,MAAM;EA4Hb,gBAAgB,ECzJV,OAAO;ED0Jb,KAAK,EC3JC,IAAI;EDgCd,sFAAqB;IAAC,WAAW,ECtBtB,QAAQ;EDuBnB;;;8CAG0B;IAAC,WAAW,ECxB7B,aAAa;EDyBtB,mCAAmB;IAAC,WAAW,ECvBtB,OAAO;EDwBh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,GAAG;IACpB,eAAe,EAAG,MAAM;IACxB,QAAQ,EAAG,QAAQ;IACnB,IAAI,EAAG,GAAG;IACV,MAAM,EAAG,GAAG;IACZ,KAAK,EAAG,IAAI;IACZ,UAAU,EAAG,MAAM;IACnB,OAAO,EAAG,SAAS;IACnB,WAAW,EAAG,GAAG;IACjB,SAAS,EAAG,KAAK;IACjB,UAAU,EAAG,UAAU;EAG3B,wBAAQ;IACJ,OAAO,EAAG,IAAI;IACd,cAAc,EAAG,GAAG;IACpB,UAAU,EAAG,MAAM;IACnB,MAAM,EAAG,QAAQ;IACjB,UAAU,EAAG,MAAM;IACnB,UAAU,EAAG,UAAU;IACvB,6BAAI;MACA,IAAI,EAAG,IAAI;MACX,UAAU,EAAG,MAAM;IAEvB,4BAAG;MAAC,cAAc,EAAG,MAAM;IAC3B,4BAAG;MACC,KAAK,EAAG,IAAI;MACZ,MAAM,EAAG,KAAK;MACd,MAAM,EAAG,SAAS;;AD1P9B,gCAA8B;EAAC,SAAS,EAAG,KAAK", "sources": ["ErrorsManager.scss","../../../AnP/Public/scss/AnP.common.scss","../../../AnP/Public/scss/AnP.settings.scss"], "names": [], "file": "ErrorsManager.css" diff --git a/Python/ErrorsManager.py b/Python/ErrorsManager.py index d4edea5..6e342d2 100644 --- a/Python/ErrorsManager.py +++ b/Python/ErrorsManager.py @@ -2,8 +2,6 @@ # -*- coding: utf-8 -*- from typing import Any, Optional -from re import Pattern as REPattern -from re import compile as RECompile from math import log2 class ErrorsManager: @@ -136,6 +134,9 @@ class ErrorsManager: return 1 if not l or not code[-1] else (l - 1) * 6 + int(log2(code[-1]) + 1) return None + + def get_error(self) -> int: + return self.__error | 0 def to_array_binary(self, code:str|int|list[int]|tuple[int]) -> list[str]: @@ -260,8 +261,6 @@ class ErrorsManager: start:int = int(bits / 6) rest:int = bits % 6 type_method:str = "to_" + ErrorsManager.type(code) - i:int - test:bool = bits == 35 code = self.to_array(code) @@ -274,6 +273,7 @@ class ErrorsManager: r:int = 6 - rest block:int = ~-(1 << rest) + i:int hexa:int code = [(hexa >> rest) | ((code[i + 1] & block) << r) for i, hexa in enumerate(code[:-1])] + [code[-1] >> rest] @@ -282,7 +282,8 @@ class ErrorsManager: code = [0] else: - test and print(["start", start, rest]) + + i:int if rest: @@ -291,8 +292,6 @@ class ErrorsManager: code = [(code[0] << rest) & mask] + [((hexa << rest) & mask) | (code[i - 1] >> r) for i, hexa in enumerate(code[1:])] + [code[-1] >> r] - test and print(code) - for i in range(start): code = [0] + code diff --git a/version b/version index e244c5d..da7a1d1 100644 --- a/version +++ b/version @@ -1 +1 @@ -0.0.1.24 \ No newline at end of file +0.0.1.25 \ No newline at end of file