@youtyan/code-viewer 0.7.0 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/dist/code-viewer.js +1206 -352
- package/package.json +8 -2
- package/web/app.js +1428 -860
- package/web/style.css +65 -0
- package/web/vendor/THIRD_PARTY_NOTICES.txt +1181 -83
package/web/style.css
CHANGED
|
@@ -4694,6 +4694,61 @@ body.gdp-file-detail-page #empty {
|
|
|
4694
4694
|
.gdp-dialog-danger:hover {
|
|
4695
4695
|
background: var(--diff-del-bg);
|
|
4696
4696
|
}
|
|
4697
|
+
.db-connection-form {
|
|
4698
|
+
display: grid;
|
|
4699
|
+
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
4700
|
+
gap: 10px 12px;
|
|
4701
|
+
margin-top: 6px;
|
|
4702
|
+
}
|
|
4703
|
+
.db-connection-field[hidden] {
|
|
4704
|
+
display: none !important;
|
|
4705
|
+
}
|
|
4706
|
+
.db-connection-form .db-connection-field {
|
|
4707
|
+
display: flex;
|
|
4708
|
+
min-width: 0;
|
|
4709
|
+
flex-direction: column;
|
|
4710
|
+
color: var(--fg-muted);
|
|
4711
|
+
font-size: 12px;
|
|
4712
|
+
}
|
|
4713
|
+
.db-connection-form .gdp-dialog-input {
|
|
4714
|
+
margin-top: 4px;
|
|
4715
|
+
}
|
|
4716
|
+
.db-connection-form input[type="checkbox"] {
|
|
4717
|
+
width: 18px;
|
|
4718
|
+
height: 18px;
|
|
4719
|
+
margin-top: 8px;
|
|
4720
|
+
padding: 0;
|
|
4721
|
+
}
|
|
4722
|
+
.db-connection-required {
|
|
4723
|
+
color: var(--danger);
|
|
4724
|
+
font-weight: 700;
|
|
4725
|
+
}
|
|
4726
|
+
.db-connection-test-row {
|
|
4727
|
+
display: flex;
|
|
4728
|
+
grid-column: 1 / -1;
|
|
4729
|
+
align-items: center;
|
|
4730
|
+
gap: 10px;
|
|
4731
|
+
min-height: 32px;
|
|
4732
|
+
margin-top: 2px;
|
|
4733
|
+
}
|
|
4734
|
+
.db-connection-test-button {
|
|
4735
|
+
min-width: 120px;
|
|
4736
|
+
}
|
|
4737
|
+
.db-connection-test-status {
|
|
4738
|
+
min-width: 0;
|
|
4739
|
+
color: var(--fg-muted);
|
|
4740
|
+
font-size: 12px;
|
|
4741
|
+
line-height: 18px;
|
|
4742
|
+
}
|
|
4743
|
+
.db-connection-test-status[data-state="success"] {
|
|
4744
|
+
color: var(--success);
|
|
4745
|
+
}
|
|
4746
|
+
.db-connection-test-status[data-state="error"] {
|
|
4747
|
+
color: var(--danger);
|
|
4748
|
+
}
|
|
4749
|
+
.gdp-dialog:has(.db-connection-form) {
|
|
4750
|
+
width: min(640px, calc(100vw - 64px));
|
|
4751
|
+
}
|
|
4697
4752
|
.gdp-repo-empty {
|
|
4698
4753
|
padding: 32px;
|
|
4699
4754
|
color: var(--fg-muted);
|
|
@@ -8244,6 +8299,16 @@ body[data-sidebar-font-size="xlarge"] .db-container {
|
|
|
8244
8299
|
background: var(--bg);
|
|
8245
8300
|
font-weight: 500;
|
|
8246
8301
|
}
|
|
8302
|
+
.db-connection-action {
|
|
8303
|
+
flex: 0 0 30px;
|
|
8304
|
+
width: 30px;
|
|
8305
|
+
min-width: 30px;
|
|
8306
|
+
border: 1px solid var(--border);
|
|
8307
|
+
background: var(--bg);
|
|
8308
|
+
}
|
|
8309
|
+
.db-connection-action[hidden] {
|
|
8310
|
+
display: none !important;
|
|
8311
|
+
}
|
|
8247
8312
|
.db-refresh-btn[disabled] {
|
|
8248
8313
|
cursor: default;
|
|
8249
8314
|
opacity: 0.7;
|