clean build for version 1.4.5 with fixes of security funtionalities, logic branches, etc. Already tested and working fine

This commit is contained in:
dwindown
2026-01-07 15:10:47 +07:00
parent 31b3398c2f
commit 0ba62b435a
26 changed files with 8962 additions and 2804 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,6 @@
#checker_preview.postbox {
display:none;
/* Preview metabox is now visible */
#dw_checker_preview.postbox {
display: block;
}
li#menu-posts-checker img {
width: 18px;
@@ -12,15 +13,17 @@ li#menu-posts-checker img {
margin-top: 0;
}
label#title-prompt-text {
padding: 3px 8px!important;
padding: 3px 8px !important;
}
.inset {
box-shadow: inset 3px 3px 15px #33333350, inset -3px -3px 5px #ffffff!important;
border-radius: .5rem;
padding: 1rem!important;
box-shadow:
inset 3px 3px 15px #33333350,
inset -3px -3px 5px #ffffff !important;
border-radius: 0.5rem;
padding: 1rem !important;
}
.inset .card:first-child {
margin-top: 0!important;
margin-top: 0 !important;
}
/* .repeater-form-field .card:first-child .delete-form-card {
display:none;
@@ -52,43 +55,44 @@ table.checker-setting th {
/* box-shadow: 0px 5px 15px -5px #333333; */
}
.dw-checker-title {
font-size:24px;
font-size: 24px;
font-weight: bold;
}
.dw-checker-field {
display: flex;
flex-direction: column;
margin: .5em 0;
margin: 0.5em 0;
}
.dw-checker-field > label {
font-weight: 600;
}
.dw-checker-field > input, .dw-checker-field > select {
.dw-checker-field > input,
.dw-checker-field > select {
height: 38px;
border-radius: .5em;
border-radius: 0.5em;
border: 1px solid #ccc;
padding-left: 1em;
padding-right: 1em;
}
.dw-checker-buttons {
display: flex;
gap: .5em;
gap: 0.5em;
flex: 0 1 fit-content;
}
.dw-checker-wrapper button {
padding: .65em .75em;
padding: 0.65em 0.75em;
border: none;
border-radius: 0.5em;
}
.dw-checker-result-div-item {
border-bottom-style: solid;
padding: .5em 0;
padding: 0.5em 0;
}
.card-buttons {
top: 1em;
right: -1em;
}
input[type=color] {
input[type="color"] {
height: 34px;
}
li.list-group-item.option-nav-menu.mb-0.pointer.active {
@@ -101,9 +105,9 @@ li.list-group-item.option-nav-menu.mb-0.pointer {
color: white;
}
.form-check {
display: flex!important;
display: flex !important;
align-items: center;
gap: .5em;
gap: 0.5em;
}
.form-check-input:checked {
@@ -119,20 +123,20 @@ table.dw-checker-result-table {
width: 100%;
}
.dw-checker-results table,
.dw-checker-results th,
.dw-checker-results table,
.dw-checker-results th,
.dw-checker-results td {
border-style: solid;
}
.dw-checker-results th,
.dw-checker-results td {
padding: .75em .5em;
padding: 0.75em 0.5em;
}
.dw-checker-value-button {
border: none;
border-radius: .5em;
padding: .5em 1em;
border-radius: 0.5em;
padding: 0.5em 1em;
text-decoration: none;
}
.result-header {
@@ -142,10 +146,10 @@ table.dw-checker-result-table {
border-bottom-style: solid;
display: flex;
flex-direction: column;
gap: .5em;
padding: .75em 0;
gap: 0.5em;
padding: 0.75em 0;
}
.dw-checker-result-div:last-child{
.dw-checker-result-div:last-child {
border: none;
}
@@ -153,20 +157,27 @@ table.dw-checker-result-table {
.dw-checker-container {
flex-direction: column;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) {
display: flex;
flex-direction: row;
flex-wrap: wrap;
gap: 10px;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) > *:is(:first-child, :nth-child(2)) {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
> *:is(:first-child, :nth-child(2)) {
flex: 0 0 100%;
margin-bottom: 10px;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) > .dw-checker-divider {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
> .dw-checker-divider {
display: none;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) .dw-checker-form-fields {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
.dw-checker-form-fields {
display: flex;
gap: 9px;
flex-direction: row;
@@ -174,19 +185,29 @@ table.dw-checker-result-table {
flex: 1 1 calc(100% - 110px);
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) .dw-checker-title {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
.dw-checker-title {
margin-bottom: 0;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) .dw-checker-buttons.dw-checker-form-button button {
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
.dw-checker-buttons.dw-checker-form-button
button {
height: 100%;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) .dw-checker-field {
margin: 0!important;
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
.dw-checker-field {
margin: 0 !important;
flex: -1 0 calc(25% - 3px);
width: 100%;
}
#dw-checker-form > .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type) .dw-checker-form-fields *:is(select, input) {
min-width: unset!important;
#dw-checker-form
> .dw-checker-wrapper:is(.standard-table-output-type, .cards-output-type)
.dw-checker-form-fields
*:is(select, input) {
min-width: unset !important;
max-width: 100%;
width: 100%;
}
@@ -223,7 +244,8 @@ table.dw-checker-result-table {
color: #333;
}
.dw-card-title, .dw-card-value {
.dw-card-title,
.dw-card-value {
word-break: break-all;
}
@@ -278,28 +300,314 @@ table.dw-standard-table {
min-width: max-content; /* Ensure table expands to fit content */
border-collapse: collapse; /* Remove gaps between borders */
display: block; /* Ensure proper rendering */
table-layout: fixed; /* Prevent misalignment */
table-layout: fixed; /* Use fixed layout for better width control */
max-width: 100%; /* Prevent table from exceeding container */
}
th, td {
white-space: nowrap; /* Prevent text wrapping */
padding: 8px; /* Add padding for readability */
border: 1px solid #ddd; /* Add borders for clarity */
/* DataTables specific styling */
table.dataTable {
width: 100% !important;
table-layout: fixed !important;
border-collapse: collapse;
border-spacing: 0;
}
table.dataTable thead th {
text-align: left !important;
background-color: #f8f9fa;
border-bottom: 2px solid #dee2e6;
padding: 12px 15px;
font-weight: 600;
white-space: nowrap;
width: auto !important;
overflow: hidden;
text-overflow: ellipsis;
}
table.dataTable tbody td {
text-align: left !important;
padding: 12px 15px;
border-bottom: 1px solid #dee2e6;
white-space: nowrap;
width: auto !important;
overflow: hidden;
text-overflow: ellipsis;
}
/* Ensure proper table container width */
.dw-checker-results-container,
#dw-checker-outside-results {
overflow-x: auto; /* Enable horizontal scrolling when needed */
-webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
padding: 0;
margin: 0;
width: 100%;
max-width: 100%;
}
#dw-checker-outside-results {
max-width: 100%;
padding: 1em;
}
/* DataTables container styling */
.dt-container {
width: 100%;
overflow: hidden;
border-collapse: collapse;
}
/* Table wrapper styling */
.dw-checker-container:has(.dt-container) .dw-checker-wrapper {
overflow: visible;
padding: 0 !important;
background-color: unset;
width: 100%;
}
/* Fix for column alignment issues */
table.dataTable th.dt-center,
table.dataTable td.dt-center {
text-align: center !important;
}
table.dataTable th.dt-left,
table.dataTable td.dt-left {
text-align: left !important;
}
table.dataTable th.dt-right,
/* Fix for column alignment issues */
table.dataTable th.dt-center,
table.dataTable td.dt-center {
text-align: center !important;
}
table.dataTable th.dt-left,
table.dataTable td.dt-left {
text-align: left !important;
}
table.dataTable th.dt-right,
table.dataTable td.dt-right {
text-align: right !important;
}
/* Row styling */
table.dataTable tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
table.dataTable tbody tr:hover {
background-color: #e9ecef;
}
/* Empty state styling */
table.dataTable td.dataTables_empty {
text-align: center;
padding: 1em;
color: #6c757d;
font-style: italic;
}
/* Responsive adjustments */
@media screen and (max-width: 768px) {
table.dataTable thead th,
table.dataTable tbody td {
padding: 8px 10px;
font-size: 14px;
}
.dt-container {
width: 100%;
overflow-x: auto;
}
}
/* Ensure proper table container width */
.dw-checker-container:has(.dt-container) .dw-checker-wrapper {
overflow: visible;
padding: 0 !important;
background-color: unset;
}
/* Fix for DataTables layout */
.dt-container {
width: 100%;
overflow: hidden;
}
/* Ensure proper width distribution for columns */
table.dataTable thead th {
width: auto !important;
}
table.dataTable tbody td {
width: auto !important;
}
min-width: 100%;
}
/* Ensure table fits within container */
.dw-checker-container:has(.dt-container) .dw-checker-wrapper {
overflow: visible;
padding: 0 !important;
background-color: unset;
}
/* Fix for DataTables layout */
.dt-container {
width: 100%;
overflow: hidden;
}
/* Ensure proper width distribution for columns */
table.dataTable thead th {
width: auto !important;
}
table.dataTable tbody td {
width: auto !important;
}
/* Make sure the table doesn't overflow its container */
.dw-checker-container:has(.dt-container) .dw-checker-wrapper {
overflow: visible;
padding: 0 !important;
background-color: unset;
}
/* Fix for DataTables layout */
.dt-container {
width: 100%;
overflow: hidden;
}
/* Ensure proper width distribution for columns */
table.dataTable thead th {
width: auto !important;
}
table.dataTable tbody td {
width: auto !important;
}
table.dataTable tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
table.dataTable tbody tr:hover {
background-color: #e9ecef;
}
table.dataTable td.dataTables_empty {
text-align: center;
padding: 1em;
color: #6c757d;
}
/* Ensure proper width distribution */
table.dataTable {
width: 100% !important;
table-layout: auto !important;
}
table.dataTable thead th {
white-space: nowrap;
}
table.dataTable tbody td {
white-space: nowrap;
}
/* Fix for column alignment issues */
table.dataTable th.dt-center,
table.dataTable td.dt-center {
text-align: center !important;
}
table.dataTable th.dt-left,
table.dataTable td.dt-left {
text-align: left !important;
}
table.dataTable th.dt-right,
table.dataTable td.dt-right {
text-align: right !important;
}
/* DataTables specific styling */
table.dataTable thead th {
text-align: left !important;
background-color: #f8f9fa;
border-bottom: 2px solid #dee2e6;
padding: 12px 8px;
font-weight: 600;
}
table.dataTable tbody td {
text-align: left !important;
padding: 8px 8px;
border-bottom: 1px solid #dee2e6;
}
table.dataTable tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
table.dataTable tbody tr:hover {
background-color: #e9ecef;
}
table.dataTable td.dataTables_empty {
text-align: center;
padding: 1em;
color: #6c757d;
}
/* Ensure proper width distribution */
table.dataTable {
width: 100% !important;
table-layout: auto !important;
}
table.dataTable thead th {
white-space: nowrap;
}
table.dataTable tbody td {
white-space: nowrap;
}
/* Fix for column alignment issues */
table.dataTable th.dt-center,
table.dataTable td.dt-center {
text-align: center !important;
}
table.dataTable th.dt-left,
table.dataTable td.dt-left {
text-align: left !important;
}
table.dataTable th.dt-right,
table.dataTable td.dt-right {
text-align: right !important;
}
.dw-checker-container:has(.dt-container) .dw-checker-wrapper {
padding: 0!important;
padding: 0 !important;
background-color: unset;
}
.dw-checker-container:has(.dt-container) select#dt-length-2 {
width: 50px;
margin-right: 10px;
border-radius: 8px!important;
border-radius: 8px !important;
}
.dw-checker-container:has(.dt-container) button.dt-paging-button {
border-radius: 8px!important;
border-radius: 8px !important;
}
.dw-cards-container > .result-page {
@@ -314,4 +622,4 @@ th, td {
.dw-cards-container > .result-page {
grid-template-columns: var(--card-output-grid-column-mobile);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -21,38 +21,185 @@
margin-bottom: 2em;
}
.dw-checker-title {
font-size:24px;
font-size: 24px;
font-weight: bold;
}
.dw-checker-field {
display: flex;
flex-direction: column;
margin: .5em 0;
margin: 0.5em 0;
}
.dw-checker-field > label {
font-weight: 600;
}
.dw-checker-field > input, .dw-checker-field > select {
.dw-checker-field > input,
.dw-checker-field > select {
height: 48px;
border-radius: .5em;
border-radius: 0.5em;
border: 1px solid #ccc;
padding-left: 1em;
padding-right: 1em;
}
.dw-checker-buttons {
display: flex;
gap: .5em;
gap: 0.5em;
}
.dw-checker-buttons button {
padding: .65em .75em;
padding: 0.65em 0.75em;
border: none;
border-radius: 0.5em;
}
/* DataTables specific styling for frontend */
table.dataTable {
width: 100% !important;
table-layout: fixed !important;
border-collapse: collapse;
border-spacing: 0;
background-color: #ffffff;
}
/* Table headers */
table.dataTable thead th {
text-align: left !important;
background-color: #f8f9fa;
border-bottom: 2px solid #dee2e6;
padding: 12px 15px;
font-weight: 600;
color: #374151;
white-space: nowrap;
width: auto !important;
min-width: 120px;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
}
/* Table body cells */
table.dataTable tbody td {
text-align: left !important;
padding: 12px 15px;
border-bottom: 1px solid #dee2e6;
color: #495057;
white-space: nowrap;
width: auto !important;
overflow: hidden;
text-overflow: ellipsis;
box-sizing: border-box;
}
/* Table container overflow handling */
.dw-checker-results-container,
.dw-checker-results {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
padding: 0;
margin: 0;
width: 100%;
max-width: 100%;
box-sizing: border-box;
}
/* DataTables container styling */
.dt-container {
width: 100%;
overflow: hidden;
border-collapse: collapse;
}
/* Column alignment classes */
table.dataTable th.dt-left,
table.dataTable td.dt-left {
text-align: left !important;
}
table.dataTable th.dt-center,
table.dataTable td.dt-center {
text-align: center !important;
}
table.dataTable th.dt-right,
table.dataTable td.dt-right {
text-align: right !important;
}
/* Row styling */
table.dataTable tbody tr:nth-child(even) {
background-color: #f8f9fa;
}
table.dataTable tbody tr:hover {
background-color: #e9ecef;
}
/* Empty state styling */
table.dataTable td.dataTables_empty {
text-align: center;
padding: 1em;
color: #6c757d;
font-style: italic;
}
/* Responsive adjustments */
@media screen and (max-width: 768px) {
table.dataTable thead th,
table.dataTable tbody td {
padding: 8px 10px;
font-size: 14px;
}
.dt-container {
width: 100%;
overflow-x: auto;
}
}
/* Table pagination styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
padding: 0.5em 1em;
margin: 0 2px;
border: 1px solid #dee2e6;
border-radius: 4px;
background-color: #f8f9fa;
color: #495057;
cursor: pointer;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
background-color: #e9ecef;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
background-color: #007bff;
border-color: #007bff;
color: white;
}
/* Table search input styling */
.dataTables_wrapper .dataTables_filter input {
padding: 0.5em;
border: 1px solid #dee2e6;
border-radius: 4px;
margin-left: 0.5em;
}
/* Table length menu styling */
.dataTables_wrapper .dataTables_length select {
padding: 0.5em;
border: 1px solid #dee2e6;
border-radius: 4px;
}
/* Table info styling */
.dataTables_wrapper .dataTables_info {
padding: 0.5em;
color: #6c757d;
}
.card-buttons {
top: 1em;
right: -1em;
}
input[type=color] {
input[type="color"] {
height: 34px;
}
li.list-group-item.option-nav-menu.mb-0.pointer.active {
@@ -65,9 +212,9 @@ li.list-group-item.option-nav-menu.mb-0.pointer {
color: white;
}
.form-check {
display: flex!important;
display: flex !important;
align-items: center;
gap: .5em;
gap: 0.5em;
}
.form-check-input:checked {
@@ -87,19 +234,19 @@ li.list-group-item.option-nav-menu.mb-0.pointer {
table.dw-checker-result-table {
width: 100%;
}
.dw-checker-results table,
.dw-checker-results th,
.dw-checker-results table,
.dw-checker-results th,
.dw-checker-results td {
border-style: solid;
}
.dw-checker-results th,
.dw-checker-results td {
padding: .75em .5em;
padding: 0.75em 0.5em;
}
.dw-checker-value-button {
border: none;
border-radius: .5em;
padding: .5em 1em;
border-radius: 0.5em;
padding: 0.5em 1em;
text-decoration: none;
}
.result-header {
@@ -109,10 +256,10 @@ table.dw-checker-result-table {
border-bottom-style: solid;
display: flex;
flex-direction: column;
gap: .5em;
padding: .75em 0;
gap: 0.5em;
padding: 0.75em 0;
}
.dw-checker-result-div:last-child{
.dw-checker-result-div:last-child {
border: none;
}
button.dw-checker-result-pagination-button {
@@ -122,14 +269,14 @@ button.dw-checker-result-pagination-button {
padding: 1em 1.25em;
border: 1px solid #ddd;
box-shadow: 0px 3px 7px -5px grey;
border-radius: .5em;
border-radius: 0.5em;
}
.dw-checker-result-pagination {
display: flex;
flex-wrap: nowrap;
max-width: 100%;
overflow-x: auto;
gap: .5em;
gap: 0.5em;
padding-bottom: 1em;
}
button.dw-checker-result-pagination-button.active {
@@ -137,7 +284,7 @@ button.dw-checker-result-pagination-button.active {
}
.dw-checker-card-container {
display: grid;
gap: .5em;
gap: 0.5em;
}
.dw-checker-single-card {
min-width: 200px;
@@ -146,12 +293,14 @@ button.dw-checker-result-pagination-button.active {
justify-content: center;
align-items: center;
padding: 1em;
border-radius: .5em;
transition: transform 0.2s, box-shadow 0.2s;
border-radius: 0.5em;
transition:
transform 0.2s,
box-shadow 0.2s;
}
.dw-checker-single-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.dw-checker-single-card > *:first-child {
font-size: smaller;
@@ -207,38 +356,38 @@ button.dw-checker-result-pagination-button.active {
.dw-checker-result-table {
font-size: 14px;
}
.dw-checker-result-table th {
width: 40%;
}
.dw-checker-result-table td {
width: 60%;
}
.dw-checker-card-container {
gap: 0.5rem;
}
.pagination-btn {
padding: 0.4rem 0.8rem;
font-size: 0.9rem;
}
}
.dw-checker-bottom-results {
padding: .5em;
max-width: 100%!important;
padding: 0.5em;
max-width: 100% !important;
}
table.dw-checker-result-container,
table.dw-checker-result-container th,
table.dw-checker-result-container td{
border: 1px solid #ccc!important;
table.dw-checker-result-container,
table.dw-checker-result-container th,
table.dw-checker-result-container td {
border: 1px solid #ccc !important;
border-collapse: collapse;
}
.dw-checker-results th {
width: fit-content!important;
max-width: 50%!important;
width: fit-content !important;
max-width: 50% !important;
}
.has-not-found-message {
@@ -246,6 +395,7 @@ table.dw-checker-result-container td{
margin-bottom: 1em;
}
span.dw-checker-result-header, span.dw-checker-result-value {
span.dw-checker-result-header,
span.dw-checker-result-value {
float: left;
}
}

File diff suppressed because it is too large Load Diff