ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
Delete the dead query-runner stylesheet
Juan Denise0e1d271a460
diff --git a/frontend/src/styles/components/_query-runner.scss b/frontend/src/styles/components/_query-runner.scssdeleted file mode 100644index 5b259371..00000000--- a/frontend/src/styles/components/_query-runner.scss+++ /dev/null@@ -1,420 +0,0 @@-// ============================================-// QUERY RUNNER COMPONENT STYLES-// ============================================--// Overlay - full screen modal-.query-runner-overlay {- &.modal-overlay {- padding: 0;- background: rgba(0, 0, 0, 0.8);- }-}--// Main modal container-.query-runner-modal {- width: 100%;- height: 100%;- max-width: 100%;- max-height: 100%;- display: flex;- flex-direction: column;- background: $bg-body;- border-radius: 0;- overflow: hidden;-}--// Header-.query-runner-header {- display: flex;- justify-content: space-between;- align-items: center;- padding: $space-3 $space-4;- background: $bg-sidebar;- border-bottom: 1px solid $border-subtle;- flex-shrink: 0;-}--.query-runner-title {- display: flex;- align-items: center;- gap: $space-3;- font-size: $text-md;- font-weight: $font-weight-semibold;- color: $text-primary;-- svg {- color: $accent-primary;- }-- .db-type-badge {- font-size: $text-xs;- padding: $space-1 $space-2;- border-radius: $radius-badge;- font-weight: $font-weight-medium;-- &.mysql {- background: fade($color-mysql, 15%);- color: $color-mysql;- }-- &.postgresql {- background: fade($color-postgresql, 15%);- color: $color-postgresql-secondary;- }-- &.sqlite {- background: fade($accent-primary-raw, 15%);- color: $accent-primary;- }- }-}--.query-runner-actions {- display: flex;- align-items: center;- gap: $space-3;-- .readonly-toggle {- display: flex;- align-items: center;- gap: $space-2;- font-size: $text-xs;- color: $text-secondary;- cursor: pointer;-- input[type="checkbox"] {- accent-color: $warning;- }- }-- .modal-close {- width: $control-sm;- height: $control-sm;- display: flex;- align-items: center;- justify-content: center;- background: transparent;- border: none;- color: $text-secondary;- font-size: $text-xl;- cursor: pointer;- border-radius: $radius-control;- transition: all $transition-fast;-- &:hover {- background: $bg-hover;- color: $text-primary;- }- }-}--// Body layout-.query-runner-body {- flex: 1;- display: flex;- overflow: hidden;-}--// Sidebar-.query-runner-sidebar {- width: 260px;- flex-shrink: 0;- background: $bg-sidebar;- border-right: 1px solid $border-subtle;- display: flex;- flex-direction: column;- overflow: hidden;-}--.sidebar-section {- display: flex;- flex-direction: column;- overflow: hidden;-- &:first-child {- flex: 1;- min-height: 150px;- }-- &:last-child {- border-top: 1px solid $border-subtle;- max-height: 40%;- }-- h4 {- padding: $space-3 $space-4;- margin: 0;- font-size: $text-xs;- font-weight: $font-weight-semibold;- color: $text-secondary;- background: $bg-card;- border-bottom: 1px solid $border-subtle;- display: flex;- align-items: center;- justify-content: space-between;- flex-shrink: 0;-- .btn-icon {- width: $control-sm;- height: $control-sm;- display: flex;- align-items: center;- justify-content: center;- background: transparent;- border: none;- color: $text-secondary;- cursor: pointer;- border-radius: $radius-badge;- transition: all $transition-fast;-- &:hover {- background: $bg-hover;- color: $accent-primary;- }- }- }-}--.tables-list,-.columns-list {- flex: 1;- overflow-y: auto;- padding: $space-2;-}--.table-item {- display: flex;- align-items: center;- justify-content: space-between;- padding: $space-2 $space-3;- border-radius: $radius-control;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- background: $bg-hover;- }-- &.selected {- background: $accent-glow;- border: 1px solid fade($accent-primary-raw, 30%);- }-- .table-name {- font-size: $text-xs;- color: $text-primary;- overflow: hidden;- text-overflow: ellipsis;- white-space: nowrap;- }-- .table-rows {- font-size: $text-xs;- color: $text-tertiary;- flex-shrink: 0;- margin-left: $space-2;- }-}--.column-item {- display: flex;- align-items: center;- justify-content: space-between;- padding: $space-1 $space-3;- border-radius: $radius-badge;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- background: $bg-hover;- }-- .column-name {- font-size: $text-xs;- font-family: $font-mono;- color: $text-primary;- }-- .column-type {- font-size: $text-xs;- font-family: $font-mono;- color: $text-tertiary;- }-}--// Main query area-.query-runner-main {- flex: 1;- display: flex;- flex-direction: column;- overflow: hidden;- background: $bg-body;-}--// Query editor-.query-editor {- flex-shrink: 0;- padding: $space-4;- border-bottom: 1px solid $border-subtle;-- textarea {- width: 100%;- height: 150px;- padding: $space-3;- font-family: $font-mono;- font-size: $text-xs;- line-height: $line-height-relaxed;- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-control;- color: $text-primary;- resize: vertical;- transition: border-color $transition-fast;-- &:focus {- outline: none;- border-color: $accent-primary;- box-shadow: $focus-ring;- }-- &::placeholder {- color: $text-tertiary;- }- }-}--.query-actions {- display: flex;- justify-content: space-between;- align-items: center;- margin-top: $space-3;-}--.query-hints {- display: flex;- align-items: center;- gap: $space-2;-- .hint {- display: flex;- align-items: center;- gap: $space-1;- font-size: $text-xs;- color: $text-tertiary;-- svg {- color: $warning;- }- }-}--// Error display-.query-error {- display: flex;- align-items: flex-start;- gap: $space-2;- padding: $space-3 $space-4;- background: $danger-bg;- border-bottom: 1px solid $danger-border;- color: $danger;- font-size: $text-xs;-- svg {- flex-shrink: 0;- margin-top: $space-hair;- }-}--// Results area-.query-results {- flex: 1;- display: flex;- flex-direction: column;- overflow: hidden;-}--.results-header {- display: flex;- justify-content: space-between;- align-items: center;- padding: $space-2 $space-4;- background: $bg-card;- border-bottom: 1px solid $border-subtle;- flex-shrink: 0;-- .results-info {- font-size: $text-xs;- color: $text-secondary;- }-}--// History panel-.query-history-panel {- position: absolute;- top: 60px;- right: 0;- width: 400px;- max-height: calc(100% - 80px);- background: $bg-card;- border: 1px solid $border-subtle;- border-radius: $radius-card;- box-shadow: $shadow-overlay;- display: flex;- flex-direction: column;- z-index: $z-modal;- margin: $space-4;- overflow: hidden;-}--.history-header {- display: flex;- justify-content: space-between;- align-items: center;- padding: $space-3 $space-4;- border-bottom: 1px solid $border-subtle;-- h4 {- margin: 0;- font-size: $text-base;- font-weight: $font-weight-semibold;- color: $text-primary;- }-}--.history-list {- flex: 1;- overflow-y: auto;- padding: $space-2;-}--.history-item {- padding: $space-3;- border-radius: $radius-control;- cursor: pointer;- transition: all $transition-fast;-- &:hover {- background: $bg-hover;- }-- code {- display: block;- font-family: $font-mono;- font-size: $text-xs;- color: $text-primary;- white-space: nowrap;- overflow: hidden;- text-overflow: ellipsis;- margin-bottom: $space-1;- }-- .history-time {- font-size: $text-xs;- color: $text-tertiary;- }-}--// SQLite icon color-.db-item-icon.sqlite {- color: $accent-primary;-}diff --git a/frontend/src/styles/main.scss b/frontend/src/styles/main.scssindex 267b2008..db11724a 100644--- a/frontend/src/styles/main.scss+++ b/frontend/src/styles/main.scss@@ -55,7 +55,6 @@@import 'components/_two-factor';@import 'components/_notifications';@import 'components/_notification-center';-@import 'components/_query-runner';@import 'components/_deploy';@import 'components/_git-connect';@import 'components/_docs-link';diff --git a/frontend/src/styles/pages/_file-manager.scss b/frontend/src/styles/pages/_file-manager.scssindex cce432ba..73f82bfb 100644--- a/frontend/src/styles/pages/_file-manager.scss+++ b/frontend/src/styles/pages/_file-manager.scss@@ -4,6 +4,25 @@// 1px borders instead of floating cards.// ============================================+// Sidebar section sizing. This rule used to sit, unscoped, in the stylesheet+// of a long-deleted query runner and applied here by accident; it is kept so+// the rail keeps its layout (first section fills, the last is capped).+.sidebar-section {+ display: flex;+ flex-direction: column;+ overflow: hidden;++ &:first-child {+ flex: 1;+ min-height: 150px;+ }++ &:last-child {+ border-top: 1px solid $border-subtle;+ max-height: 40%;+ }+}+// Type colour palette — categorical icon/card tints (literal hex: these feed// SCSS fade(), which can't take var()). Aligned to the redesign palette.$ft-folder: #f5b945;