fix(py): Fixed some Bugs in ErrorsManager methods. Updated HTML and CSS for WMarkDown data.
This commit is contained in:
parent
0e333e43e8
commit
60f24f8bbb
@ -1,125 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html lang="{language}">
|
|
||||||
<head>
|
|
||||||
<title data-i18n="{title_i18n}">{title_text}</title>
|
|
||||||
<meta http-equiv="content-type" content="text/html;charset={charset}" />
|
|
||||||
<meta charset="{charset}" />
|
|
||||||
|
|
||||||
<meta name="xdoc:project" content="ErrorsManager" />
|
|
||||||
<meta name="xdoc:link" content="{link}" />
|
|
||||||
<meta name="xdoc:git" content="https://git.k3y.pw/KyMAN/ErrorsManager" />
|
|
||||||
<meta name="xdoc:author" content="KyMAN" />
|
|
||||||
<meta name="xdoc:since" content="20240626" />
|
|
||||||
<meta name="xdoc:version" content="20240626" />
|
|
||||||
<meta name="xdoc:access" content="public" />
|
|
||||||
|
|
||||||
<meta name="xdoc:donate:btc" content="" />
|
|
||||||
<meta name="xdoc:donate:ltc" content="" />
|
|
||||||
<meta name="xdoc:donate:doge" content="" />
|
|
||||||
<meta name="xdoc:donate:dash" content="" />
|
|
||||||
|
|
||||||
<style data-type="text/css;charset=utf-8" data-language="CSS1.2" data-rel="stylesheet" charset="utf-8">
|
|
||||||
|
|
||||||
html,body{
|
|
||||||
height : 100%;
|
|
||||||
margin : 0em;
|
|
||||||
}
|
|
||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<script data-type="text/javascript;charset=utf-8" data-language="ECMAScript 2015" src="https://anp.local/ecma/AnPScriptsLoader.ecma.js" data-crossorigin="anonymous" charset="utf-8"></script>
|
|
||||||
|
|
||||||
<script data-type="text/javascript;charset=utf-8" data-language="ECMAScript 2015" charset="utf-8">
|
|
||||||
|
|
||||||
const domain = /^https?\:\/{2}[^\/]+\.((anprm\.)?local|anprm)/i.test(window.location) ? "local" : "k3y.pw";
|
|
||||||
|
|
||||||
new AnPScriptsLoader({
|
|
||||||
styles : [
|
|
||||||
// "https://cdn." + domain + "/css/Cantarell.v17.remote.css",
|
|
||||||
// "https://cdn." + domain + "/css/Roboto.v30.remote.css",
|
|
||||||
// "https://cdn." + domain + "/css/RobotoMono.v23.remote.css",
|
|
||||||
// "https://cdn." + domain + "/css/FA6F.v6.5.2.remote.css",
|
|
||||||
"https://cdn." + domain + "/css/Roboto.v30.local.css",
|
|
||||||
"https://cdn." + domain + "/css/RobotoMono.v23.local.css",
|
|
||||||
"https://cdn." + domain + "/css/FA6F.v6.5.2.local.css",
|
|
||||||
"/scss/ErrorsManager.scss",
|
|
||||||
"https://wmarkdown." + domain + "/css/WMarkDown.icons.FontAwesome.css",
|
|
||||||
"https://wmarkdown." + domain + "/css/WMarkDown.web.icons.css",
|
|
||||||
"https://wmarkdown." + domain + "/scss/WMarkDown.scss",
|
|
||||||
"https://cdn." + domain + "/data/styles/Highlight.v11.10.0.min.css"
|
|
||||||
],
|
|
||||||
scripts : [[
|
|
||||||
"/ecma/ErrorsManager.ecma.js",
|
|
||||||
"https://cdn." + domain + "/js/Highlight.v11.10.0.min.js",
|
|
||||||
"https://wmarkdown." + domain + "/ecma/WMarkDown.ecma.js",
|
|
||||||
"https://cdn." + domain + "/data/scripts/Highlight.v11.10.0.min.js",
|
|
||||||
"https://cdn." + domain + "/data/scripts/tex-mml-chtml.v3.2.2.js"
|
|
||||||
], [
|
|
||||||
"https://anp." + domain + "/ecma/Application/AnP.ecma.js"
|
|
||||||
], [
|
|
||||||
"https://anp." + domain + "/ecma/Managers/Settings.ecma.js",
|
|
||||||
"https://anp." + domain + "/ecma/Application/URI.ecma.js",
|
|
||||||
"https://anp." + domain + "/ecma/Managers/Globals.ecma.js",
|
|
||||||
"https://anp." + domain + "/ecma/Managers/I18N.ecma.js",
|
|
||||||
"https://anp." + domain + "/ecma/Managers/PrintTypes.ecma.js",
|
|
||||||
"https://anp." + domain + "/ecma/Managers/Threads.ecma.js",
|
|
||||||
"https://anp." + domain + "/ecma/Application/Attributes.ecma.js",
|
|
||||||
"https://anp." + domain + "/ecma/Application/HTMLPreload.ecma.js"
|
|
||||||
], [
|
|
||||||
"https://anp." + domain + "/ecma/Components/Base.ecma.js"
|
|
||||||
]]
|
|
||||||
}, () => {
|
|
||||||
|
|
||||||
wmarkdown = new WMarkDown({dictionary : "https://wmarkdown." + domain + "/json/WMarkDown.dict.es.kyman.json"});
|
|
||||||
anp = new AnP({
|
|
||||||
globals : {
|
|
||||||
anp_root : "https://anp." + domain,
|
|
||||||
errors_manager_root : ""
|
|
||||||
},
|
|
||||||
callback : () => anp.base.set(".errors-manager")
|
|
||||||
});
|
|
||||||
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</head>
|
|
||||||
<body class="anp errors-manager">
|
|
||||||
<header>
|
|
||||||
<h1 data-i18n="errors_manager" data-i18n-without="true" title="{{errors_manager}}">
|
|
||||||
<a href="{link}" target="_blank">
|
|
||||||
<span class="image">
|
|
||||||
<img src="{logo}" />
|
|
||||||
<span style="background-image:url('{logo}');"></span>
|
|
||||||
</span>
|
|
||||||
<span data-i18n="errors_manager">{{errors_manager}}</span>
|
|
||||||
</a>
|
|
||||||
</h1>
|
|
||||||
<nav class="main-menu">
|
|
||||||
<ul>
|
|
||||||
<li data-i18n="web" data-i18n-without="true" title="{{web}}">
|
|
||||||
<a href="/" target="_self">
|
|
||||||
<span data-icon="web"></span>
|
|
||||||
<span data-i18n="web">{{web}}</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
<li data-i18n="git" data-i18n-without="true" title="{{git}}">
|
|
||||||
<a href="https://git.k3y.pw/KyMAN/ErrorsManager" target="_self">
|
|
||||||
<span data-icon="git"></span>
|
|
||||||
<span data-i18n="git">{{git}}</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
||||||
<main>{contents}</main>
|
|
||||||
<footer>
|
|
||||||
<span class="license">
|
|
||||||
<a class="license-image" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" target="_blank" data-i18n="license_cc_by_nc_sa_4" data-i18n-without="true" title="{{license_cc_by_nc_sa_4}}">
|
|
||||||
<span data-i18n="license_cc_by_nc_sa_4">{{license_cc_by_nc_sa_4}}</span>
|
|
||||||
<img src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" data-i18n="license_cc_by_nc_sa_4" data-i18n-without="true" alt="{{license_cc_by_nc_sa_4}}">
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</footer>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -4,9 +4,7 @@
|
|||||||
left: 0em;
|
left: 0em;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden; }
|
||||||
background-color: #EFEFEF;
|
|
||||||
color: #222; }
|
|
||||||
.errors-manager, .errors-manager input, .errors-manager button, .errors-manager select {
|
.errors-manager, .errors-manager input, .errors-manager button, .errors-manager select {
|
||||||
font-family: "Roboto"; }
|
font-family: "Roboto"; }
|
||||||
.errors-manager pre, .errors-manager textarea,
|
.errors-manager pre, .errors-manager textarea,
|
||||||
@ -20,6 +18,62 @@
|
|||||||
font-size: 1em; }
|
font-size: 1em; }
|
||||||
.errors-manager [data-visible=false], .errors-manager [data-hidden=true] {
|
.errors-manager [data-visible=false], .errors-manager [data-hidden=true] {
|
||||||
display: none; }
|
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] {
|
.errors-manager a[href] {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
word-break: break-word; }
|
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 {
|
.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; }
|
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] {
|
.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; }
|
transition-property: color; }
|
||||||
.errors-manager button, .errors-manager [type=button], .errors-manager [type=reset], .errors-manager [type=submit] {
|
.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; }
|
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 {
|
.errors-manager h2 {
|
||||||
font-size: 2.6em; }
|
font-size: 2.6em; }
|
||||||
.errors-manager h3 {
|
.errors-manager h3 {
|
||||||
@ -70,8 +105,7 @@
|
|||||||
.errors-manager header, .errors-manager footer {
|
.errors-manager header, .errors-manager footer {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
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; }
|
|
||||||
.errors-manager header > *, .errors-manager footer > * {
|
.errors-manager header > *, .errors-manager footer > * {
|
||||||
flex: auto;
|
flex: auto;
|
||||||
align-self: center; }
|
align-self: center; }
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"version": 3,
|
"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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AAG;IAEjB,6BAAE;MACE,OAAO,EAAG,YAAY;MACtB,MAAM,EAAG,QAAQ;EAIzB,yBAAS;IACL,OAAO,EAAG,IAAI;IACd,cAAc,EAAG,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"],
|
"sources": ["ErrorsManager.scss","../../../AnP/Public/scss/AnP.common.scss","../../../AnP/Public/scss/AnP.settings.scss"],
|
||||||
"names": [],
|
"names": [],
|
||||||
"file": "ErrorsManager.css"
|
"file": "ErrorsManager.css"
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
from typing import Any, Optional
|
from typing import Any, Optional
|
||||||
from re import Pattern as REPattern
|
|
||||||
from re import compile as RECompile
|
|
||||||
from math import log2
|
from math import log2
|
||||||
|
|
||||||
class ErrorsManager:
|
class ErrorsManager:
|
||||||
@ -137,6 +135,9 @@ class ErrorsManager:
|
|||||||
return 1 if not l or not code[-1] else (l - 1) * 6 + int(log2(code[-1]) + 1)
|
return 1 if not l or not code[-1] else (l - 1) * 6 + int(log2(code[-1]) + 1)
|
||||||
return None
|
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]:
|
def to_array_binary(self, code:str|int|list[int]|tuple[int]) -> list[str]:
|
||||||
|
|
||||||
hexa:int
|
hexa:int
|
||||||
@ -260,8 +261,6 @@ class ErrorsManager:
|
|||||||
start:int = int(bits / 6)
|
start:int = int(bits / 6)
|
||||||
rest:int = bits % 6
|
rest:int = bits % 6
|
||||||
type_method:str = "to_" + ErrorsManager.type(code)
|
type_method:str = "to_" + ErrorsManager.type(code)
|
||||||
i:int
|
|
||||||
test:bool = bits == 35
|
|
||||||
|
|
||||||
code = self.to_array(code)
|
code = self.to_array(code)
|
||||||
|
|
||||||
@ -274,6 +273,7 @@ class ErrorsManager:
|
|||||||
|
|
||||||
r:int = 6 - rest
|
r:int = 6 - rest
|
||||||
block:int = ~-(1 << rest)
|
block:int = ~-(1 << rest)
|
||||||
|
i:int
|
||||||
hexa:int
|
hexa:int
|
||||||
|
|
||||||
code = [(hexa >> rest) | ((code[i + 1] & block) << r) for i, hexa in enumerate(code[:-1])] + [code[-1] >> rest]
|
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]
|
code = [0]
|
||||||
|
|
||||||
else:
|
else:
|
||||||
test and print(["start", start, rest])
|
|
||||||
|
i:int
|
||||||
|
|
||||||
if rest:
|
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]
|
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):
|
for i in range(start):
|
||||||
code = [0] + code
|
code = [0] + code
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user