@candriajs/karin-plugin-git 1.3.0 → 1.4.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.
Files changed (43) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +23 -2
  3. package/config/defSet/{cnb.yaml → cnbcool.yaml} +0 -2
  4. package/config/defSet/gitcode.yaml +0 -2
  5. package/config/defSet/gitee.yaml +0 -2
  6. package/config/defSet/github.yaml +0 -3
  7. package/config/defSet/proxy.yaml +5 -0
  8. package/config/defSet/token.yaml +11 -0
  9. package/lib/apps/admin.js +1 -1
  10. package/lib/apps/commit.js +3 -0
  11. package/lib/apps/help.js +1 -1
  12. package/lib/apps/push.js +1 -5
  13. package/lib/common-DJ-f21cV.js +250 -0
  14. package/lib/db-DhpZxiAN.js +55 -0
  15. package/lib/index.js +1 -1
  16. package/lib/models-qDLDUVt0.js +3 -0
  17. package/lib/web.config.js +1 -0
  18. package/package.json +6 -26
  19. package/resources/background.webp +0 -0
  20. package/lib/apps/issue.js +0 -1
  21. package/lib/common-Df1uHYOv.js +0 -1
  22. package/lib/db-DZFBXSmG.js +0 -44
  23. package/lib/types-7HeFLBYV.js +0 -1
  24. package/resources/commit/index.css +0 -293
  25. package/resources/commit/index.html +0 -123
  26. package/resources/fonts/DouyinSansBold.woff2 +0 -0
  27. package/resources/fonts/NotoColorEmoji-Regular.woff2 +0 -0
  28. package/resources/fonts/SmileySans-Oblique.woff2 +0 -0
  29. package/resources/help/index.css +0 -124
  30. package/resources/help/index.html +0 -84
  31. package/resources/help/version-info.css +0 -31
  32. package/resources/help/version-info.html +0 -22
  33. package/resources/icons/branch.svg +0 -1
  34. package/resources/icons/cnb.svg +0 -1
  35. package/resources/icons/commit.svg +0 -1
  36. package/resources/icons/gitcode.svg +0 -1
  37. package/resources/icons/gitee.svg +0 -1
  38. package/resources/icons/github.svg +0 -1
  39. package/resources/icons/issue.svg +0 -1
  40. package/resources/issue/index.css +0 -229
  41. package/resources/issue/index.html +0 -79
  42. /package/lib/{root-C9I_RrRd.js → root-q84D5Ojp.js} +0 -0
  43. /package/resources/{icons/repo.svg → repo.svg} +0 -0
@@ -1,124 +0,0 @@
1
- @font-face {
2
- font-family: 'Douyin Sans';
3
- src: url('../fonts/DouyinSansBold.woff2') format('woff2');
4
- font-display: swap;
5
- }
6
-
7
- * {
8
- margin: 0;
9
- padding: 0;
10
- box-sizing: border-box;
11
- }
12
-
13
- body {
14
- font-family:
15
- 'Douyin Sans',
16
- -apple-system,
17
- BlinkMacSystemFont,
18
- 'Segoe UI',
19
- sans-serif;
20
- background: rgba(255, 255, 255, 0.95);
21
- line-height: 1.6;
22
- color: #2d3748;
23
- width: 100%;
24
- }
25
-
26
- .container {
27
- max-width: 800px;
28
- margin: 0 auto;
29
- min-height: 100vh;
30
- min-width: 800px;
31
- display: flex;
32
- flex-direction: column;
33
- }
34
-
35
- .header {
36
- padding-top: 20px;
37
- }
38
-
39
- .header-content {
40
- max-width: 500px;
41
- margin: 0 auto;
42
- text-align: center;
43
- }
44
-
45
- .header-title {
46
- font-size: 56px;
47
- font-weight: 700;
48
- color: #1a202c;
49
- margin-bottom: 16px;
50
- letter-spacing: -1px;
51
- }
52
-
53
- .header-sub-title {
54
- font-size: 18px;
55
- color: #4a5568;
56
- font-weight: 400;
57
- }
58
-
59
- .help-group {
60
- flex: 1;
61
- width: 100%;
62
- margin: 0 auto;
63
- padding: 60px 20px;
64
- }
65
-
66
- .section {
67
- margin-bottom: 60px;
68
- }
69
-
70
- .section-title {
71
- font-size: 32px;
72
- font-weight: 700;
73
- color: #1a202c;
74
- margin-bottom: 32px;
75
- padding-bottom: 16px;
76
- border-bottom: 3px solid #3b82f6;
77
- display: inline-block;
78
- }
79
-
80
- .grid {
81
- display: grid;
82
- grid-template-columns: repeat(2, 1fr);
83
- gap: 28px;
84
- }
85
-
86
- .card {
87
- background: rgba(255, 255, 255, 0.95);
88
- backdrop-filter: blur(20px);
89
- border: 1px solid rgba(0, 0, 0, 0.1);
90
- border-radius: 20px;
91
- padding: 40px 24px;
92
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
93
- }
94
-
95
- .card-content {
96
- display: flex;
97
- align-items: center;
98
- margin-bottom: 16px;
99
- }
100
-
101
- .card-icon {
102
- width: 30px;
103
- height: 30px;
104
- line-height: 1;
105
- display: block;
106
- margin-right: 16px;
107
- flex-shrink: 0;
108
- }
109
-
110
- .card-title {
111
- font-size: 18px;
112
- font-weight: 600;
113
- color: #1a202c;
114
- margin: 0;
115
- text-align: left;
116
- }
117
-
118
- .card span {
119
- color: #4a5568;
120
- font-size: 14px;
121
- line-height: 1.5;
122
- display: block;
123
- text-align: left;
124
- }
@@ -1,84 +0,0 @@
1
- <!doctype html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <link
7
- rel="stylesheet"
8
- type="text/css"
9
- href="{{_res_path}}/help/index.css"
10
- />
11
- </head>
12
- <body>
13
- <div class="container">
14
- <header class="header">
15
- <div class="header-content">
16
- <h1 class="title">Git 帮助</h1>
17
- <span class="header-sub-title">功能说明与使用指南</span>
18
- </div>
19
- </header>
20
-
21
- <div class="help-group">
22
- <div class="section">
23
- <h2 class="section-title">常用操作</h2>
24
- <div class="grid">
25
- <div class="card">
26
- <div class="card-content">
27
- <div class="card-icon">
28
- <img src="{{_res_path}}/icons/repo.svg" alt="icon" />
29
- </div>
30
- <h3 class="card-title">订阅git仓库</h3>
31
- </div>
32
- <span class="card-desc"
33
- >订阅git仓库并推送, 支持github,gitee,gitcode,cnbcool</span
34
- >
35
- </div>
36
- </div>
37
- </div>
38
-
39
- {{ if role == 'master' }}
40
- <div class="section">
41
- <h2 class="section-title">管理命令</h2>
42
- <div class="grid">
43
- <div class="card">
44
- <div class="card-content">
45
- <div class="card-icon">
46
- <img src="{{_res_path}}/icons/subscription.svg" alt="icon" />
47
- </div>
48
- <h3 class="card-title">
49
- #git添加[platform]订阅仓库owner/repo[:branch] [event]
50
- </h3>
51
- </div>
52
- <span class="card-desc"
53
- >添加一个订阅仓库, event可选:push,issue</span
54
- >
55
- </div>
56
-
57
- <div class="card">
58
- <div class="card-content">
59
- <div class="card-icon">
60
- <img src="{{_res_path}}/icons/subscription.svg" alt="icon" />
61
- </div>
62
- <h3 class="card-title">
63
- #git删除[platform]订阅仓库owner/repo[:branch] [event]
64
- </h3>
65
- </div>
66
- <span class="card-desc">删除一个订阅仓库</span>
67
- </div>
68
-
69
- <div class="card">
70
- <div class="card-content">
71
- <div class="card-icon">
72
- <img src="{{_res_path}}/icons/token.svg" alt="icon" />
73
- </div>
74
- <h3 class="card-title">#git设置[platform]token + token</h3>
75
- </div>
76
- <span class="card-desc">设置一个平台的访问令牌</span>
77
- </div>
78
- </div>
79
- </div>
80
- {{/if}}
81
- </div>
82
- </div>
83
- </body>
84
- </html>
@@ -1,31 +0,0 @@
1
- @font-face {
2
- font-family: 'Douyin Sans';
3
- src: url('../fonts/DouyinSansBold.woff2') format('woff2');
4
- font-display: swap;
5
- }
6
-
7
- @font-face {
8
- font-family: 'Noto Color Emoji';
9
- src: url('../fonts/NotoColorEmoji-Regular.woff2') format('woff2');
10
- }
11
-
12
- * {
13
- margin: 0;
14
- padding: 0;
15
- box-sizing: border-box;
16
- }
17
-
18
- .markdown-body {
19
- font-family: 'Douyin Sans', 'Noto Color Emoji', sans-serif;
20
- box-sizing: border-box;
21
- min-width: 200px;
22
- width: 100%;
23
- margin: 0 auto;
24
- padding: 45px;
25
- }
26
-
27
- @media (max-width: 767px) {
28
- .markdown-body {
29
- padding: 15px;
30
- }
31
- }
@@ -1,22 +0,0 @@
1
- <!doctype html>
2
- <html lang="zh-cn">
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <link rel="shortcut icon" href="#" />
7
- <link
8
- rel="stylesheet"
9
- type="text/css"
10
- href="https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/5.8.1/github-markdown-dark.min.css"
11
- />
12
- <link
13
- rel="stylesheet"
14
- type="text/css"
15
- href="{{_res_path}}/help/version-info.css"
16
- />
17
- </head>
18
-
19
- <body>
20
- <div class="markdown-body">{{@Markdown}}</div>
21
- </body>
22
- </html>
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1762609858767" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5261" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M725.333333 85.333333c-70.4 0-128 57.6-128 128 0 55.466667 34.133333 102.4 83.2 119.466667-4.266667 19.2-19.2 38.4-44.8 59.733333-34.133333 25.6-78.933333 49.066667-130.133333 72.533334-10.666667 4.266667-21.333333 10.666667-34.133333 14.933333-38.4 17.066667-76.8 34.133333-108.8 51.2v-198.4c49.066667-17.066667 85.333333-64 85.333333-121.6 0-70.4-57.6-128-128-128s-128 57.6-128 128c0 55.466667 36.266667 102.4 85.333333 121.6v356.266667c-49.066667 17.066667-85.333333 64-85.333333 121.6 0 70.4 57.6 128 128 128s128-57.6 128-128c0-55.466667-36.266667-102.4-85.333333-121.6V640s2.133333-4.266667 6.4-8.533333c6.4-6.4 19.2-14.933333 36.266666-25.6 27.733333-14.933333 59.733333-29.866667 98.133334-46.933334 12.8-4.266667 23.466667-10.666667 38.4-17.066666 51.2-23.466667 106.666667-49.066667 147.2-83.2 38.4-29.866667 74.666667-72.533333 78.933333-125.866667 49.066667-17.066667 85.333333-64 85.333333-121.6C853.333333 142.933333 795.733333 85.333333 725.333333 85.333333zM320 853.333333c-23.466667 0-42.666667-19.2-42.666667-42.666666s19.2-42.666667 42.666667-42.666667 42.666667 19.2 42.666667 42.666667-19.2 42.666667-42.666667 42.666666z m0-597.333333c-23.466667 0-42.666667-19.2-42.666667-42.666667s19.2-42.666667 42.666667-42.666666 42.666667 19.2 42.666667 42.666666-19.2 42.666667-42.666667 42.666667z m405.333333 0c-23.466667 0-42.666667-19.2-42.666666-42.666667s19.2-42.666667 42.666666-42.666666 42.666667 19.2 42.666667 42.666666-19.2 42.666667-42.666667 42.666667z" p-id="5262" fill="#8a8a8a"></path></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" viewBox="0 0 16 16"><g fill="none"><path d="M11.5286 1.87149C11.5769 1.73005 11.5356 1.5733 11.4233 1.47452C11.0472 1.14247 10.0965 0.443125 8.66911 0.339708C7.07054 0.223769 6.08089 0.652279 5.58096 0.969951C5.36531 1.10676 5.35326 1.41748 5.55499 1.57422L9.62723 4.73936C9.98617 5.01807 10.5125 4.8604 10.6591 4.43003L11.5286 1.87149Z" fill="#F76945"/><path d="M1.49017 11.2664C1.32368 11.3781 1.24855 11.584 1.30235 11.7774C1.45724 12.3339 1.91868 13.4919 3.22833 14.5456C4.53797 15.5992 6.08738 15.7128 6.74962 15.6966C6.94764 15.692 7.12016 15.5617 7.17998 15.3724L9.79046 7.11064C9.97875 6.51425 9.31048 6.01386 8.79154 6.3626L1.49017 11.2664Z" fill="#F76945"/><path d="M3.39813 2.54827C3.27013 2.49773 3.12683 2.50607 3.00579 2.57193C2.52256 2.83488 1.28526 3.64506 0.647135 5.30947C0.154627 6.59222 0.328071 8.01085 0.463488 8.70463C0.508009 8.9314 0.747306 9.06218 0.962489 8.97824L8.79485 5.92024C9.35414 5.70181 9.35646 4.91111 8.7981 4.6899L3.39813 2.54827Z" fill="#F76945"/><path d="M15.0167 8.46843C15.243 8.62194 15.5528 8.48652 15.5922 8.21569C15.6961 7.49872 15.7861 6.25076 15.371 5.30933C14.8177 4.05487 13.8786 3.28133 13.433 2.9669C13.292 2.86766 13.1019 2.87786 12.9725 2.99241L10.9959 4.74541C10.6732 5.03154 10.7066 5.54492 11.0636 5.78746L15.0167 8.46936V8.46843Z" fill="#F76945"/><path d="M9.49413 15.1604C9.47372 15.3937 9.67128 15.5866 9.90409 15.5616C10.6531 15.4813 12.1918 15.1841 13.3447 14.0827C14.467 13.0109 14.832 11.7384 14.9382 11.2319C14.9669 11.0951 14.9326 10.9528 14.8445 10.8442L11.3886 6.57909C11.0143 6.11719 10.2681 6.34535 10.2162 6.93757L9.49366 15.1604H9.49413Z" fill="#F76945"/></g></svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1762083986576" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5229" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M874.666667 469.333333h85.333333a64 64 0 0 1 0 128h-85.333333a64 64 0 0 1 0-128z m-810.666667 0h85.333333a64 64 0 0 1 0 128h-85.333333a64 64 0 0 1 0-128z" fill="#000000" opacity=".3" p-id="5230"></path><path d="M512 682.666667a128 128 0 1 0 0-256 128 128 0 0 0 0 256z m0 85.333333a213.333333 213.333333 0 1 1 0-426.666667 213.333333 213.333333 0 0 1 0 426.666667z" fill="#000000" p-id="5231"></path></svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1762441250698" class="icon" viewBox="0 0 1056 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3538" xmlns:xlink="http://www.w3.org/1999/xlink" width="33" height="32"><path d="M479.663158 988.429474c-90.004211-10.24-187.553684-48.505263-247.376842-96.471579-33.953684-26.947368-90.004211-88.387368-111.023158-120.724211-64.134737-99.166316-90.004211-222.046316-70.602105-333.608421 18.863158-107.250526 63.056842-191.326316 141.20421-267.856842 135.814737-133.12 353.010526-175.157895 527.090526-101.861053 57.128421 24.252632 112.101053 58.206316 134.736843 82.997895 44.193684 49.044211 28.025263 128.808421-31.258948 158.450526-25.330526 12.395789-72.218947 12.934737-90.543158 1.077895s-35.031579-44.193684-39.343158-77.069473c-2.155789-15.629474-4.850526-28.564211-5.389473-28.564211-1.077895 0-14.551579 7.545263-29.642106 16.168421-49.583158 29.103158-64.134737 33.414737-140.126315 38.265263-39.882105 2.155789-84.075789 5.928421-97.549474 8.084211-24.791579 3.233684-54.972632-1.077895-102.938947-16.168421l-25.330527-8.084211 1.077895 52.277895c0.538947 50.661053 0 53.355789-21.557895 98.088421-28.025263 58.206316-38.265263 93.237895-42.576842 144.976842-10.24 124.496842 57.667368 217.195789 186.47579 253.844211 83.536842 23.713684 221.507368 18.863158 296.421052-10.778948 71.68-28.564211 134.736842-94.854737 134.736842-142.282105 0-19.402105-24.791579-44.193684-51.738947-50.661053-11.317895-3.233684-54.433684-7.006316-95.393684-8.623158-86.770526-3.772632-147.132632-11.856842-163.84-22.635789s-25.330526-40.96-17.785263-63.59579c7.545263-23.713684 19.402105-33.953684 54.433684-46.888421 23.713684-9.162105 40.96-10.778947 109.945263-10.778947 146.593684 0 215.578947 18.324211 269.473684 72.218947 61.978947 62.517895 68.446316 157.372632 16.168421 241.448421-77.069474 123.418947-168.151579 194.021053-291.570526 225.818948-41.498947 11.317895-151.444211 18.324211-196.176842 12.934737z" fill="#D62240" p-id="3539"></path></svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1762441216031" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2391" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M512 960c-246.4 0-448-201.6-448-448s201.6-448 448-448 448 201.6 448 448-201.6 448-448 448z" fill="#D81E06" p-id="2392"></path><path d="M721.664 467.968h-235.52a22.272 22.272 0 0 0-20.736 20.736v51.776c0 10.368 10.368 20.736 20.736 20.736H628.48c10.368 0 20.736 10.304 20.736 20.672v10.368c0 33.664-28.48 62.08-62.144 62.08H392.896a22.272 22.272 0 0 1-20.672-20.672V436.928c0-33.664 28.48-62.08 62.08-62.08h287.36a22.272 22.272 0 0 0 20.736-20.736v-51.84a22.272 22.272 0 0 0-20.736-20.672h-287.36A152.96 152.96 0 0 0 281.6 434.368v287.36c0 10.304 10.368 20.672 20.736 20.672h302.848c75.072 0 137.216-62.08 137.216-137.216v-116.48a22.272 22.272 0 0 0-20.736-20.736z" fill="#FFFFFF" p-id="2393"></path></svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1762074094306" class="icon" viewBox="0 0 1049 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="1559" width="32.78125" height="32" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M524.979332 0C234.676191 0 0 234.676191 0 524.979332c0 232.068678 150.366597 428.501342 358.967656 498.035028 26.075132 5.215026 35.636014-11.299224 35.636014-25.205961 0-12.168395-0.869171-53.888607-0.869171-97.347161-146.020741 31.290159-176.441729-62.580318-176.441729-62.580318-23.467619-60.841976-58.234462-76.487055-58.234463-76.487055-47.804409-32.15933 3.476684-32.15933 3.476685-32.15933 53.019436 3.476684 80.83291 53.888607 80.83291 53.888607 46.935238 79.963739 122.553122 57.365291 152.97411 43.458554 4.345855-33.897672 18.252593-57.365291 33.028501-70.402857-116.468925-12.168395-239.022047-57.365291-239.022047-259.012982 0-57.365291 20.860106-104.300529 53.888607-140.805715-5.215026-13.037566-23.467619-66.926173 5.215027-139.067372 0 0 44.327725-13.906737 144.282399 53.888607 41.720212-11.299224 86.917108-17.383422 131.244833-17.383422s89.524621 6.084198 131.244833 17.383422C756.178839 203.386032 800.506564 217.29277 800.506564 217.29277c28.682646 72.1412 10.430053 126.029806 5.215026 139.067372 33.897672 36.505185 53.888607 83.440424 53.888607 140.805715 0 201.64769-122.553122 245.975415-239.891218 259.012982 19.121764 16.514251 35.636014 47.804409 35.636015 97.347161 0 70.402857-0.869171 126.898978-0.869172 144.282399 0 13.906737 9.560882 30.420988 35.636015 25.205961 208.601059-69.533686 358.967656-265.96635 358.967655-498.035028C1049.958663 234.676191 814.413301 0 524.979332 0z" fill="#191717" p-id="1560"></path><path d="M199.040177 753.571326c-0.869171 2.607513-5.215026 3.476684-8.691711 1.738342s-6.084198-5.215026-4.345855-7.82254c0.869171-2.607513 5.215026-3.476684 8.691711-1.738342s5.215026 5.215026 4.345855 7.82254z m-6.953369-4.345856M219.900283 777.038945c-2.607513 2.607513-7.82254 0.869171-10.430053-2.607514-3.476684-3.476684-4.345855-8.691711-1.738342-11.299224 2.607513-2.607513 6.953369-0.869171 10.430053 2.607514 3.476684 4.345855 4.345855 9.560882 1.738342 11.299224z m-5.215026-5.215027M240.760389 807.459932c-3.476684 2.607513-8.691711 0-11.299224-4.345855-3.476684-4.345855-3.476684-10.430053 0-12.168395 3.476684-2.607513 8.691711 0 11.299224 4.345855 3.476684 4.345855 3.476684 9.560882 0 12.168395z m0 0M269.443034 837.011749c-2.607513 3.476684-8.691711 2.607513-13.906737-1.738342-4.345855-4.345855-6.084198-10.430053-2.607513-13.037566 2.607513-3.476684 8.691711-2.607513 13.906737 1.738342 4.345855 3.476684 5.215026 9.560882 2.607513 13.037566z m0 0M308.555733 853.526c-0.869171 4.345855-6.953369 6.084198-13.037566 4.345855-6.084198-1.738342-9.560882-6.953369-8.691711-10.430053 0.869171-4.345855 6.953369-6.084198 13.037566-4.345855 6.084198 1.738342 9.560882 6.084198 8.691711 10.430053z m0 0M351.145116 857.002684c0 4.345855-5.215026 7.82254-11.299224 7.82254-6.084198 0-11.299224-3.476684-11.299224-7.82254s5.215026-7.82254 11.299224-7.82254c6.084198 0 11.299224 3.476684 11.299224 7.82254z m0 0M391.126986 850.049315c0.869171 4.345855-3.476684 8.691711-9.560882 9.560882-6.084198 0.869171-11.299224-1.738342-12.168395-6.084197-0.869171-4.345855 3.476684-8.691711 9.560881-9.560882 6.084198-0.869171 11.299224 1.738342 12.168396 6.084197z m0 0" fill="#191717" p-id="1561"></path></svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1762866623315" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2520" xmlns:xlink="http://www.w3.org/1999/xlink" width="32" height="32"><path d="M514.279 64.175c58.892 0 115.944 11.042 171.155 33.127s103.675 54.598 145.39 97.54 74.229 91.405 97.54 145.39c23.311 53.984 33.74 111.65 31.286 172.995 2.454 90.792-22.085 173.609-73.615 248.451s-119.011 129.44-202.441 163.793c-83.43 34.354-169.315 42.942-257.653 25.765-88.338-17.177-165.02-57.665-230.047-121.465S89.765 689.289 72.588 599.725 64 423.662 98.354 340.232s89.565-150.297 165.634-200.601 159.499-75.456 250.291-75.456z m0 828.169c49.077 0 96.926-9.815 143.549-29.446 46.623-19.631 87.725-47.236 123.305-82.817 35.581-35.581 63.186-76.682 82.817-123.305 19.631-46.623 29.446-94.473 29.446-143.549 0-78.523-21.471-149.684-64.413-213.484S728.989 189.32 657.828 159.874 513.665 123.68 438.823 139.63s-139.255 50.917-193.239 104.901-88.952 118.399-104.902 193.241-9.202 147.843 20.244 219.005 76.069 128.213 139.869 171.155 134.961 64.412 213.484 64.412z m-69.935-379.117c0-19.631 6.748-36.194 20.244-49.69 13.496-13.496 29.446-20.244 47.85-20.244s34.354 6.748 47.85 20.244c13.496 13.496 20.244 29.446 20.244 47.85s-6.748 34.354-20.244 47.85c-13.496 13.496-29.446 20.244-47.85 20.244s-34.354-6.748-47.85-20.244c-13.496-13.497-20.244-28.833-20.244-46.01z" p-id="2521"></path></svg>
@@ -1,229 +0,0 @@
1
- @font-face {
2
- font-family: 'Noto Color Emoji';
3
- src: url('../fonts/NotoColorEmoji-Regular.woff2') format('woff2');
4
- }
5
-
6
- @font-face {
7
- font-family: 'Smiley Sans';
8
- src: url('../fonts/SmileySans-Oblique.woff2') format('woff2');
9
- font-display: swap;
10
- }
11
-
12
- @font-face {
13
- font-family: 'Douyin Sans';
14
- src: url('../fonts/DouyinSansBold.woff2') format('woff2');
15
- font-display: swap;
16
- }
17
-
18
- * {
19
- margin: 0;
20
- padding: 0;
21
- box-sizing: border-box;
22
- }
23
-
24
- .container {
25
- font-family: 'Douyin Sans', 'Smiley Sans', 'Noto Color Emoji', sans-serif;
26
- display: flex;
27
- justify-content: center;
28
- align-items: flex-start;
29
- min-height: 100vh;
30
- min-width: 800px;
31
- width: 100%;
32
- padding: 20px;
33
- background: rgba(200, 200, 200, 0.85);
34
- }
35
-
36
- .info-section {
37
- display: flex;
38
- flex-direction: column;
39
- width: 100%;
40
- max-width: 800px;
41
- padding: 50px;
42
- margin: 0 auto;
43
- }
44
-
45
- .platform-name {
46
- display: flex;
47
- align-items: center;
48
- justify-content: center;
49
- gap: 12px;
50
- margin-bottom: 32px;
51
- color: #4b5563;
52
- }
53
-
54
- .header h2 {
55
- font-size: 32px;
56
- font-weight: 700;
57
- letter-spacing: -0.5px;
58
- }
59
-
60
- .issue-card {
61
- width: 100%;
62
- background: rgba(248, 250, 255, 0.8);
63
- border: 1px solid rgba(255, 255, 255, 0.4);
64
- border-radius: 16px;
65
- padding: 24px;
66
- margin-bottom: 24px;
67
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
68
- }
69
-
70
- .repo-header {
71
- display: flex;
72
- align-items: center;
73
- gap: 16px;
74
- width: 100%;
75
- margin-bottom: 20px;
76
- }
77
-
78
- .repo-info {
79
- display: flex;
80
- flex-direction: column;
81
- gap: 8px;
82
- }
83
-
84
- .platform-icon img {
85
- width: 50px;
86
- height: 50px;
87
- padding-left: 5px;
88
- }
89
-
90
- .repo-name {
91
- font-size: 25px;
92
- font-weight: 800;
93
- color: #0f0f23;
94
- letter-spacing: -0.3px;
95
- }
96
-
97
- .issue-info {
98
- background: rgba(59, 130, 246, 0.1);
99
- border: 1px solid rgba(59, 130, 246, 0.2);
100
- border-radius: 12px;
101
- padding: 16px;
102
- margin-top: 16px;
103
- display: flex;
104
- align-items: flex-start;
105
- gap: 12px;
106
- flex-direction: column;
107
- overflow: hidden;
108
- backdrop-filter: blur(10px);
109
- }
110
-
111
- .avatar-info {
112
- display: flex;
113
- align-items: center;
114
- gap: 8px;
115
- flex-wrap: wrap;
116
- width: 100%;
117
- }
118
-
119
- .avatar-info img {
120
- width: 40px;
121
- height: 40px;
122
- border-radius: 50%;
123
- border: 3px solid rgba(255, 255, 255, 0.9);
124
- object-fit: cover;
125
- background-color: #fff;
126
- display: block;
127
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
128
- }
129
-
130
- .author-info span {
131
- white-space: nowrap;
132
- overflow: hidden;
133
- text-overflow: ellipsis;
134
- color: #2d3748;
135
- font-size: 14px;
136
- }
137
-
138
- .status-tag {
139
- display: inline-block;
140
- padding: 6px 20px;
141
- border-radius: 20px;
142
- font-size: 15px;
143
- font-weight: 600;
144
- margin-left: 10px;
145
- white-space: nowrap;
146
- }
147
-
148
- .status-tag.opened {
149
- background-color: rgba(34, 197, 94, 0.2);
150
- color: #16a34a;
151
- border: 1px solid rgba(34, 197, 94, 0.3);
152
- }
153
-
154
- .status-tag.closed {
155
- background-color: rgba(147, 51, 234, 0.2);
156
- color: #9333ea;
157
- border: 1px solid rgba(147, 51, 234, 0.3);
158
- }
159
-
160
- .time-info {
161
- color: #718096;
162
- background: rgba(158, 158, 158, 0.2);
163
- font-size: 13px;
164
- margin-left: auto;
165
- white-space: nowrap;
166
- flex-shrink: 0;
167
- padding: 6px 12px;
168
- border-radius: 15px;
169
- text-align: right;
170
- }
171
-
172
- .issue-icon img {
173
- width: 24px;
174
- height: 24px;
175
- filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
176
- }
177
-
178
- .issue-message {
179
- margin-top: 16px;
180
- background: rgba(34, 197, 94, 0.08);
181
- border-left: 4px solid #22c55e;
182
- border-radius: 12px;
183
- padding: 18px;
184
- backdrop-filter: blur(10px);
185
- border: 1px solid rgba(34, 197, 94, 0.2);
186
- }
187
-
188
- .issue-title {
189
- display: flex;
190
- align-items: center;
191
- gap: 12px;
192
- min-width: 0;
193
- width: 100%;
194
- color: #1f2937;
195
- font-size: 15px;
196
- font-weight: 600;
197
- }
198
-
199
- .commit-title > span:first-child {
200
- flex: 1 1 auto;
201
- min-width: 0;
202
- width: auto;
203
- text-overflow: ellipsis;
204
- padding-right: 16px;
205
- word-break: break-word;
206
- color: #0f0f23;
207
- }
208
-
209
- .issue-icon {
210
- display: inline-flex;
211
- flex-shrink: 0;
212
- }
213
-
214
- .issue-divider {
215
- height: 1px;
216
- background: rgba(0, 0, 0, 0.2);
217
- width: 100%;
218
- margin-top: 12px;
219
- margin-bottom: 12px;
220
- }
221
-
222
- .issue-content {
223
- padding-left: 0;
224
- padding-top: 8px;
225
- white-space: pre-line;
226
- color: #4b5563;
227
- font-size: 14px;
228
- line-height: 1.6;
229
- }
@@ -1,79 +0,0 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <link
7
- href="{{_res_path}}/issue/index.css"
8
- rel="stylesheet"
9
- type="text/css"
10
- />
11
- </head>
12
-
13
- <body>
14
- <div class="container" id="container">
15
- <div class="info-section">
16
- <div class="platform-name">
17
- {{if platform === 'github'}}
18
- <h2>GitHub 议题变更推送</h2>
19
- {{else if platform === 'gitee'}}
20
- <h2>Gitee 议题变更推送</h2>
21
- {{else if platform === 'gitcode'}}
22
- <h2>GitCode 议题变更推送</h2>
23
- {{else if platform === 'cnb'}}
24
- <h2>Cnb 议题变更推送</h2>
25
- {{else}}
26
- <h2>GitHub 议题变更推送</h2>
27
- {{/if}}
28
- </div>
29
-
30
- <div class="issue-card">
31
- <div class="repo-header">
32
- <div class="platform-icon">
33
- {{if platform === 'github'}}
34
- <img src="{{_res_path}}/icons/github.svg" alt="GitHub Logo" />
35
- {{else if platform === 'gitee'}}
36
- <img src="{{_res_path}}/icons/gitee.svg" alt="Gitee Logo" />
37
- {{else if platform === 'gitcode'}}
38
- <img src="{{_res_path}}/icons/gitcode.svg" alt="Gitcode Logo" />
39
- {{else if platform === 'cnb'}}
40
- <img src="{{_res_path}}/icons/cnb.svg" alt="Cnb Logo" />
41
- {{else}}
42
- <img src="{{_res_path}}/icons/github.svg" alt="GitHub Logo" />
43
- {{/if}}
44
- </div>
45
- <div class="repo-info">
46
- <div class="repo-name">{{issue.owner}}/{{issue.repo}}</div>
47
- </div>
48
- </div>
49
-
50
- <div class="issue-info">
51
- <div class="avatar-info">
52
- <img src="{{issue.user.avatarUrl}}" alt="Author Avatar" />
53
- <span>由 {{issue.user.name}} 创建</span>
54
- {{if issue.state === 'Opened'}}
55
- <span class="status-tag opened">已开放</span>
56
- {{else}}
57
- <span cla ss="status-tag closed">已关闭</span>
58
- {{/if}}
59
- <span class="time-info">{{issue.issueDate}}</span>
60
- </div>
61
- </div>
62
-
63
- <div class="issue-message">
64
- <div class="issue-title">
65
- <div class="issue-icon">
66
- <img src="{{_res_path}}/icons/issue.svg" alt="Issue Icon" />
67
- </div>
68
- <span>{{@issue.title}}</span>
69
- </div>
70
- <div class="issue-divider"></div>
71
- {{if issue.body }}
72
- <div class="issue-content">{{@issue.body}}</div>
73
- · {{/if}}
74
- </div>
75
- </div>
76
- </div>
77
- </div>
78
- </body>
79
- </html>
File without changes
File without changes