🐛 Fix(custom): fix an issue eslint not worked as expected

This commit is contained in:
Kuingsmile
2025-12-30 13:20:28 +08:00
parent 4fb5a26270
commit b53eccce13
185 changed files with 8014 additions and 7627 deletions

View File

@@ -1,9 +1,9 @@
.shortkey-container {
overflow-y: auto;
padding: 1.5rem;
min-height: 100vh;
background: var(--color-background-secondary);
color: var(--color-text-primary);
overflow-y: auto;
background: var(--color-background-secondary);
scrollbar-width: none;
-ms-overflow-style: none;
}
@@ -17,12 +17,12 @@
display: flex;
justify-content: space-between;
align-items: center;
background: var(--color-surface);
margin-bottom: 1.5rem;
border: 1px solid var(--color-border);
border-radius: 12px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
border: 1px solid var(--color-border);
background: var(--color-surface);
box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
}
.header-content {
@@ -44,17 +44,17 @@
.shortkey-header p {
margin: 0;
color: var(--color-text-secondary);
font-size: 0.875rem;
color: var(--color-text-secondary);
}
/* Card */
.shortkey-card {
background: var(--color-background-primary);
border-radius: 12px;
box-shadow: 0 2px 8px var(--color-border);
border: 1px solid var(--color-border);
overflow: hidden;
border: 1px solid var(--color-border);
border-radius: 12px;
background: var(--color-background-primary);
box-shadow: 0 2px 8px var(--color-border);
}
/* Table */
@@ -69,18 +69,18 @@
}
.shortkey-table th {
background: var(--color-background-tertiary);
color: var(--color-text-primary);
font-weight: 600;
font-size: 0.875rem;
padding: 1rem;
text-align: left;
border-bottom: 1px solid var(--color-border);
padding: 1rem;
font-size: 0.875rem;
font-weight: 600;
text-align: left;
color: var(--color-text-primary);
background: var(--color-background-tertiary);
}
.shortkey-table td {
padding: 1rem;
border-bottom: 1px solid var(--color-border-secondary);
padding: 1rem;
vertical-align: middle;
}
@@ -94,9 +94,9 @@
/* Table Cells */
.name-cell {
width: 25%;
font-weight: 500;
color: var(--color-text-primary);
width: 25%;
}
.key-cell {
@@ -109,20 +109,20 @@
}
.key-display {
background: var(--color-background-tertiary);
border: 1px solid var(--color-border);
border-radius: 6px;
padding: 0.25rem 0.5rem;
font-family: monospace;
font-size: 0.75rem;
font-family: monospace;
color: var(--color-text-primary);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
background: var(--color-background-tertiary);
box-shadow: 0 1px 2px rgb(0 0 0 / 10%);
}
.no-binding {
font-size: 0.875rem;
color: var(--color-text-secondary);
font-style: italic;
font-size: 0.875rem;
}
.status-cell {
@@ -131,22 +131,22 @@
.status-badge {
display: inline-block;
padding: 0.25rem 0.75rem;
border-radius: 12px;
padding: 0.25rem 0.75rem;
font-size: 0.75rem;
font-weight: 500;
}
.status-enabled {
background: rgba(103, 194, 58, 0.1);
border: 1px solid rgb(103 194 58 / 20%);
color: #67c23a;
border: 1px solid rgba(103, 194, 58, 0.2);
background: rgb(103 194 58 / 10%);
}
.status-disabled {
background: rgba(245, 108, 108, 0.1);
border: 1px solid rgb(245 108 108 / 20%);
color: #f56c6c;
border: 1px solid rgba(245, 108, 108, 0.2);
background: rgb(245 108 108 / 10%);
}
.source-cell {
@@ -154,8 +154,8 @@
}
.source-name {
color: var(--color-text-secondary);
font-size: 0.875rem;
color: var(--color-text-secondary);
}
.actions-cell {
@@ -171,18 +171,18 @@
/* Buttons */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.375rem;
padding: 0.5rem 0.875rem;
border-radius: 6px;
align-items: center;
border: none;
border-radius: 6px;
padding: 0.5rem 0.875rem;
min-width: fit-content;
font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
min-width: fit-content;
text-decoration: none;
transition: all 0.2s ease;
gap: 0.375rem;
cursor: pointer;
}
.btn:disabled {
@@ -192,7 +192,7 @@
.btn:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
box-shadow: 0 4px 8px rgb(0 0 0 / 15%);
}
.btn-sm {
@@ -201,8 +201,8 @@
}
.btn-primary {
background: #409eff;
color: white;
background: #409eff;
}
.btn-primary:hover:not(:disabled) {
@@ -210,19 +210,19 @@
}
.btn-secondary {
background: var(--color-background-tertiary);
color: var(--color-text-primary);
border: 1px solid var(--color-border);
color: var(--color-text-primary);
background: var(--color-background-tertiary);
}
.btn-secondary:hover:not(:disabled) {
background: var(--color-background-secondary);
border-color: var(--color-accent);
background: var(--color-background-secondary);
}
.btn-success {
background: #67c23a;
color: white;
background: #67c23a;
}
.btn-success:hover:not(:disabled) {
@@ -230,8 +230,8 @@
}
.btn-danger {
background: #f56c6c;
color: white;
background: #f56c6c;
}
.btn-danger:hover:not(:disabled) {
@@ -241,35 +241,32 @@
/* Modal */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
inset: 0;
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
padding: 1rem;
background: rgb(0 0 0 / 50%);
}
.modal-content {
background: var(--color-background-primary);
border-radius: 12px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
border: 1px solid var(--color-border);
max-width: 500px;
width: 100%;
max-height: 90vh;
overflow: hidden;
border: 1px solid var(--color-border);
border-radius: 12px;
width: 100%;
max-width: 500px;
max-height: 90vh;
background: var(--color-background-primary);
box-shadow: 0 20px 25px -5px rgb(0 0 0 / 10%), 0 10px 10px -5px rgb(0 0 0 / 4%);
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 1.5rem;
align-items: center;
border-bottom: 1px solid var(--color-border-secondary);
padding: 1.5rem;
}
.modal-title {
@@ -281,21 +278,21 @@
.modal-close {
display: flex;
align-items: center;
justify-content: center;
align-items: center;
border: none;
border-radius: 6px;
width: 32px;
height: 32px;
border-radius: 6px;
border: none;
background: var(--color-background-tertiary);
color: var(--color-text-secondary);
cursor: pointer;
background: var(--color-background-tertiary);
transition: all 0.2s ease;
cursor: pointer;
}
.modal-close:hover {
background: var(--color-background-secondary);
color: var(--color-text-primary);
background: var(--color-background-secondary);
}
.modal-body {
@@ -305,10 +302,10 @@
.modal-footer {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
padding: 1rem 1.5rem;
border-top: 1px solid var(--color-border-secondary);
padding: 1rem 1.5rem;
background: var(--color-background-tertiary);
gap: 0.75rem;
}
/* Form Elements */
@@ -325,39 +322,39 @@
}
.form-input {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--color-border);
border-radius: 8px;
background: var(--color-background-primary);
color: var(--color-text-primary);
padding: 0.75rem;
width: 100%;
font-size: 0.875rem;
color: var(--color-text-primary);
background: var(--color-background-primary);
transition: all 0.2s ease;
box-sizing: border-box;
}
.form-input:focus {
outline: none;
border-color: var(--color-blue-common);
box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
outline: none;
box-shadow: 0 0 0 2px rgb(64 158 255 / 20%);
}
.key-input {
font-family: monospace;
text-align: center;
font-weight: 600;
text-align: center;
letter-spacing: 0.5px;
}
.input-hint {
margin-top: 0.5rem;
font-size: 0.75rem;
color: var(--color-text-secondary);
text-align: center;
color: var(--color-text-secondary);
}
/* Responsive Design */
@media (max-width: 768px) {
@media (width <= 768px) {
.shortkey-container {
padding: 1rem;
}
@@ -398,7 +395,7 @@
}
}
@media (max-width: 480px) {
@media (width <= 480px) {
.shortkey-container {
padding: 0.75rem;
}