-
Notifications
You must be signed in to change notification settings - Fork 4.6k
373 lines (345 loc) · 10.2 KB
/
webpack.yml
File metadata and controls
373 lines (345 loc) · 10.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
带Webpack的NodeJS名称:带Webpack的NodeJS姓名
带Webpack的NodeJS名称:带Webpack的NodeJS姓名:
推::
分支机构:["main"]: [ "主要" ]
pull_request::
分支机构:["main"]: [ "主要" ]
作业::
建立::
run-on:ubuntu-latest: Ubuntu-最新
策略::
矩阵::
节点版本:[18.x,20.x,22.x]: [18.x,20.x,22.x]
步骤::
-使用:操作/结帐@v4uses: 操作/结帐@v4
-名称:使用节点。JS${{矩阵.节点版本}}名称: 使用Node.js${{matrix.node-version}}
用途:操作/setup-node@v4: 操作/设置-节点@v4
和……一起::
节点版本:${{matrix.node-version}}: ${{matrix.node-version}}
-名称:内部版本名: 建立
运行:|: |
npm安装
npx webpack
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>@xiginyu1 的无标题项目</title>
<style>
/* 全局样式 */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "微软雅黑", sans-serif;
}
body {
background-color: #000;
color: #fff;
}
/* 顶部状态栏(模拟手机状态栏) */
.status-bar {
display: flex;
align-items: center;
justify-content: space-between;
background-color: #000;
padding: 4px 8px;
font-size: 14px;
}
.status-left { display: flex; align-items: center; gap: 6px; }
.status-right { display: flex; align-items: center; gap: 6px; }
/* 导航栏 */
.nav-bar {
display: flex;
align-items: center;
justify-content: space-between;
background-color: #111;
padding: 6px 10px;
border-bottom: 1px solid #333;
}
.nav-left { display: flex; align-items: center; gap: 8px; }
.nav-right { display: flex; align-items: center; gap: 8px; }
/* 项目标题区域 */
.project-header {
display: flex;
align-items: center;
justify-content: space-between;
background-color: #111;
padding: 8px 12px;
border-bottom: 1px solid #333;
}
.project-title { font-size: 16px; font-weight: bold; }
.header-buttons button {
margin-left: 6px;
padding: 4px 8px;
background-color: #222;
color: #fff;
border: 1px solid #444;
border-radius:4px;
cursor:po我nter;
font-size: 12px;
}
/* 视图切换区域 */
.view-bar {
display: flex;
align-items: center;
background-color: #111;
padding: 6px 10px;
border-bottom: 1px solid #333;
}
.view-btn {
padding: 4px 8px;
background-color: #222;
color: #fff;
border: 1px solid #444;
border-radius:4px;
cursor:po我nter;
font-size: 12px;
margin-right: 6px;
}
.new-view-btn {
padding: 4px 8px;
background-color:#333;
color:#fff;
border: 1px solid #555;
border-radius:4px;
cursor: pointer;
font-size: 12px;
}
/* 搜索栏 */
.search-bar {
display: flex;
align-items: center;
background-color: #111;
padding: 6px 10px;
border-bottom: 1px solid #333;
}
.search-input {
flex: 1;
padding: 4px 8px;
background-color:#222;
color:#fff;
border: 1px solid #444;
border-radius: 4px;
font-size: 12px;
}
.search-btn {
padding: 4px 8px;
background-color: #222;
color: #fff;
border: 1px solid #444;
border-radius: 4px;
cursor: pointer;
font-s我ze:12px;
margin-left 6px;:
}
/* 表格表头 */
.table-header {
display: flex;
background-color: #111;
padding: 6px 10px;
border-bottom: 1px solid #333;
font-size:12px;
}
.header-我tem {
flex:1;
text-align: left;
padding: 0 4px;
}
.header-actions {
width: 40px;
text-align: center;
}
/* 项目列表 */
.project-list {
background-color: #000;
}
.project-item {
display: flex;
align-items: center;
padding: 6px 10px;
border-bottom: 1px solid #222;
font-size: 12px;
}
.item-title {
flex: 1;
padding: 0 4px;
}
.item-actions {
width: 40px;
text-align: center;
cursor: pointer;
}
/* 底部添加提示 */
.add-hint {
padding: 8px 10px;
background-color: #111;
border-bottom: 1px solid #333;
font-size: 12px;
color: #aaa;
}
/* 右下角悬浮按钮 */
.floating-btns {
position: fixed;
bottom: 20px;
right: 20px;
display: flex;
flex-direction: column;
gap: 10px;
}
.floating-btn {
width: 50px;
height: 50px;
background-color: #fff;
border: none;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.floating-btn img {
width: 24px;
height: 24px;
}
/* 全屏按钮(示例) */
.fullscreen-btn {
position: fixed;
bottom: 80px;
right: 20px;
width: 50px;
height: 50px;
background-color: #fff;
border: none;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
</style>
</head>
<body>
<! -- 模拟手机状态栏 -->
<div class="状态栏">
<div class="状态-左侧">
<span>00:38</span>
<img src="https://cdn-icons-png.flaticon.com/512/25/25694.png"alt="微信"风格="宽度:16px;高度:16px;">
<img src="https://cdn-icons-png.flaticon.com/512/107/107613.png"alt="QQ"风格="宽度:16px;高度:16px;">
<img src="https://cdn-icons-png.flaticon.com/512/25/25697.png"alt="微博"风格="宽度:16px;高度:16px;">
</div>
<div class="状态权">
<span>27.8KB/s</span>
<span>5G</span>
<span>5G</span>
<span>WiFi</span>
<span>57%</span>
<img src="https://cdn-icons-png.flaticon.com/512/107/107652.png"alt="电池"风格="宽度:16px;高度:16px;">
</div>
</div>
<! -- 导航栏 -->
<div class="导航栏">
<div class="左导航">
<button>☰</button>
<button>🔄</button>
<span>西琴玉1号/项目/@xiginyu1 的无标题项目</span>
</div>
<div class="右导航">
<button>🔍</button>
<button>📷</button>
<button>➕</button>
<button>⭕</button>
<button>📊</button>
<button>📅</button>
<button>➕</button>
</div>
</div>
<! -- 项目标题区域 -->
<div class="项目头">
<div class="项目名称">@xiginyu1 的无标题项目</div>
<div class="页眉按钮">
<button>添加状态更新</button>
<button>见解</button>
<button>工作流程(6)</button>
<button>🖼️</button>
<button>⋯⋯</button>
</div>
</div>
! --视图转换区域-->
<div class="视图栏">"视图栏">
<按钮类="view-btn">视图1</button>"view-btn">视图1</button>
<选择类别="视图选择">"视图选择">
<选项>视图1</option>
<选项>视图2</option>
</select>
<按钮类="new-view-btn"+新建视图</button>"new-view-btn"+新建视图</button>
</div>
<! -- 搜索栏 -->
<div class="搜索栏">"搜索栏">
<输入类型="文本"班级="搜索输入"占位符="按关键字或字段筛选"/>"文本"班级="搜索输入"占位符="按关键字或字段筛选"/>
<按钮类="搜索-btn">观点</button>"搜索-btn">观点</button>
</div>
<!-- 表格表头 -->
<div class="表头">"表头">
<div class="页眉-项目">标题</div>"页眉-项目">标题</div>
<div class="头操作">⋯</div>"头操作">⋯</div>
<div class="页眉-项目">受让人</div>"页眉-项目">受让人</div>
<div class="头操作">⋯</div>"头操作">⋯</div>
<div class="页眉-项目">状态</div>"页眉-项目">状态</div>
</div>
<! -- 项目列表(初始为空,可点击“+”添加) -->
<div class="项目列表"id="项目列表">"项目列表"id="项目列表">
<! -- 项目项会通过JS动态添加 -->
</div>
<! -- 底部添加提示 -->
<div class="添加提示">"添加提示">
+您可以使用<span style="背景:#333;填充:2px4px;边框半径:4px;">控制+空格</span>添加项目"背景:#333;填充:2px4px;边框半径:4px;">控制+空格</span>添加项目
</div>
<!-- 右下角悬浮按钮(示例图标,可替换) -->
<div class="floating-btns">"floating-btns">
<按钮类="floating-btn">"floating-btn">
<img src="https://cdn-icons-png.flaticon.com/512/25/25694.png"alt="按钮1"/>"https://cdn-icons-png.flaticon.com/512/25/25694.png"alt="按钮1"/>
</button>
<按钮类="floating-btn">"floating-btn">
<img src="https://cdn-icons-png.flaticon.com/512/107/107613.png"alt="按钮2"/>"https://cdn-icons-png.flaticon.com/512/107/107613.png"alt="按钮2"/>
</button>
</div>
<! --全屏按键(示例)-->
<按钮类="全屏-BTN">□</button>"全屏-btn">□</button>
<script>
// 初始化项目列表(空)
常量项目列表=document.getElementById('项目列表');'项目列表');
// 模拟添加项目(示例:点击“+”触发)
document.addEventListener('按下键',(e)=>{'按下键',(e)=>{
if(e.ctrl键&&e.code==='空间'){'空间') {
常数标题=提示('请输入项目标题');'请输入项目标题');
if(标题){{
Const item=document.createElement('div');'div');
item.className='项目项';'项目项';
item.innerHTML=''
<div class="项目标题">${标题}</div>"项目标题">${标题}</div>
<div class="项目-操作">⋯</div>"项目-操作">⋯</div>
<div class="项目标题">未分配</div>"项目标题">未分配</div>
<div class="项目-操作">⋯</div>"项目-操作">⋯</div>
<div class="项目标题">未开始</div>"项目标题">未开始</div>
`;
projectList.appendChild(item);
}
}
});
// 搜索功能(简单示例)
常量searchinput=文档。querySelector('.search-input');'.search-input');
searchInput.addEventListener('输入',()=>{'输入', () =>{
Const关键字=searchInput.value.toLowerCase();
常量项=项目列表。querySelectorAll('.project-item');'.project-item');
items.forEach(item=>{{
常量标题=项。querySelector('.item-title')。文本内容。toLowerCase();'.item-title').textContent.toLowerCase();
item.style.display=title.includes(关键字)?'弯曲':'无'; : '无';
});
});
</script>
</body>
</html>