dsh-github-flow 0.1.0

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.
@@ -0,0 +1,190 @@
1
+ export const GITHUB_PANEL_CSS = `
2
+ .dsh-github-icon {
3
+ display: flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ width: 100%;
7
+ height: 100%;
8
+ cursor: pointer;
9
+ color: var(--dsw-alias-label-secondary, #8c8c8c);
10
+ transition: color 0.15s ease;
11
+ }
12
+ .dsh-github-icon:hover {
13
+ color: var(--dsw-alias-label-primary, #ffffff);
14
+ }
15
+ .dsh-github-icon svg {
16
+ width: 18px;
17
+ height: 18px;
18
+ fill: currentColor;
19
+ }
20
+
21
+ /* 主面板容器 */
22
+ .dsh-github-panel {
23
+ display: flex;
24
+ flex-direction: column;
25
+ width: 100%;
26
+ height: 100%;
27
+ overflow-y: auto;
28
+ padding: 24px 32px;
29
+ box-sizing: border-box;
30
+ background: var(--dsw-alias-bg-primary, #1e1e20);
31
+ color: var(--dsw-alias-label-primary, #ececec);
32
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
33
+ }
34
+
35
+ /* 顶部标题与工具栏 */
36
+ .dsh-github-header {
37
+ display: flex;
38
+ align-items: center;
39
+ justify-content: space-between;
40
+ margin-bottom: 24px;
41
+ padding-bottom: 16px;
42
+ border-bottom: 1px solid var(--dsw-alias-border-l1, #333336);
43
+ }
44
+ .dsh-github-title {
45
+ display: flex;
46
+ align-items: center;
47
+ gap: 12px;
48
+ }
49
+ .dsh-github-title h2 {
50
+ margin: 0;
51
+ font-size: 20px;
52
+ font-weight: 600;
53
+ }
54
+ .dsh-github-refresh-btn {
55
+ display: inline-flex;
56
+ align-items: center;
57
+ gap: 6px;
58
+ padding: 6px 14px;
59
+ font-size: 13px;
60
+ border-radius: 6px;
61
+ border: 1px solid var(--dsw-alias-border-l1, #444);
62
+ background: var(--dsw-alias-bg-secondary, #2a2a2e);
63
+ color: var(--dsw-alias-label-primary, #fff);
64
+ cursor: pointer;
65
+ transition: all 0.15s ease;
66
+ }
67
+ .dsh-github-refresh-btn:hover {
68
+ background: var(--dsw-alias-interactive-bg-hover, #3a3a3e);
69
+ }
70
+
71
+ /* 概览卡片区 */
72
+ .dsh-github-overview-cards {
73
+ display: grid;
74
+ grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
75
+ gap: 16px;
76
+ margin-bottom: 24px;
77
+ }
78
+ .dsh-github-card {
79
+ padding: 16px 20px;
80
+ border-radius: 8px;
81
+ border: 1px solid var(--dsw-alias-border-l1, #333336);
82
+ background: var(--dsw-alias-bg-secondary, #252528);
83
+ }
84
+ .dsh-github-card-title {
85
+ font-size: 12px;
86
+ text-transform: uppercase;
87
+ letter-spacing: 0.5px;
88
+ color: var(--dsw-alias-label-tertiary, #888);
89
+ margin-bottom: 8px;
90
+ }
91
+ .dsh-github-card-value {
92
+ font-size: 16px;
93
+ font-weight: 600;
94
+ display: flex;
95
+ align-items: center;
96
+ gap: 8px;
97
+ }
98
+ .dsh-github-badge {
99
+ display: inline-block;
100
+ font-size: 11px;
101
+ padding: 2px 8px;
102
+ border-radius: 12px;
103
+ font-weight: 500;
104
+ }
105
+ .dsh-badge-green { background: rgba(46, 160, 67, 0.2); color: #3fb950; }
106
+ .dsh-badge-red { background: rgba(248, 81, 73, 0.2); color: #f85149; }
107
+ .dsh-badge-yellow { background: rgba(210, 153, 34, 0.2); color: #d29922; }
108
+ .dsh-badge-purple { background: rgba(163, 113, 247, 0.2); color: #a371f7; }
109
+
110
+ /* 模块分栏区 */
111
+ .dsh-github-section {
112
+ margin-bottom: 28px;
113
+ }
114
+ .dsh-github-section-header {
115
+ display: flex;
116
+ align-items: center;
117
+ justify-content: space-between;
118
+ margin-bottom: 12px;
119
+ }
120
+ .dsh-github-section-header h3 {
121
+ margin: 0;
122
+ font-size: 15px;
123
+ font-weight: 600;
124
+ }
125
+
126
+ /* 列表条目 */
127
+ .dsh-github-list {
128
+ display: flex;
129
+ flex-direction: column;
130
+ gap: 8px;
131
+ }
132
+ .dsh-github-item {
133
+ display: flex;
134
+ align-items: center;
135
+ justify-content: space-between;
136
+ padding: 12px 16px;
137
+ border-radius: 6px;
138
+ border: 1px solid var(--dsw-alias-border-l1, #333336);
139
+ background: var(--dsw-alias-bg-secondary, #252528);
140
+ transition: border-color 0.15s ease;
141
+ }
142
+ .dsh-github-item:hover {
143
+ border-color: var(--dsw-alias-border-l2, #555);
144
+ }
145
+ .dsh-github-item-main {
146
+ display: flex;
147
+ flex-direction: column;
148
+ gap: 4px;
149
+ }
150
+ .dsh-github-item-title {
151
+ font-size: 14px;
152
+ font-weight: 500;
153
+ color: var(--dsw-alias-label-primary, #fff);
154
+ text-decoration: none;
155
+ }
156
+ .dsh-github-item-title:hover {
157
+ text-decoration: underline;
158
+ }
159
+ .dsh-github-item-meta {
160
+ font-size: 12px;
161
+ color: var(--dsw-alias-label-secondary, #8c8c8c);
162
+ display: flex;
163
+ gap: 12px;
164
+ }
165
+ .dsh-github-item-actions {
166
+ display: flex;
167
+ align-items: center;
168
+ gap: 8px;
169
+ }
170
+ .dsh-github-btn-sm {
171
+ font-size: 12px;
172
+ padding: 4px 10px;
173
+ border-radius: 4px;
174
+ border: 1px solid var(--dsw-alias-border-l1, #444);
175
+ background: transparent;
176
+ color: var(--dsw-alias-label-primary, #fff);
177
+ cursor: pointer;
178
+ }
179
+ .dsh-github-btn-sm:hover {
180
+ background: var(--dsw-alias-interactive-bg-hover, #333);
181
+ }
182
+ .dsh-github-empty {
183
+ padding: 24px;
184
+ text-align: center;
185
+ font-size: 13px;
186
+ color: var(--dsw-alias-label-tertiary, #666);
187
+ border: 1px dashed var(--dsw-alias-border-l1, #333);
188
+ border-radius: 6px;
189
+ }
190
+ `;
@@ -0,0 +1,11 @@
1
+ declare global {
2
+ interface Window {
3
+ __ModuleLoader__: {
4
+ load(options: {
5
+ id: string;
6
+ factory: (require: any) => any;
7
+ }): void;
8
+ };
9
+ }
10
+ }
11
+ export {};