@mysterycode-liwen/dsh-mail 1.0.1 → 1.3.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.
- package/LICENSE +21 -21
- package/README.md +238 -136
- package/bridge.py +1257 -1019
- package/client.js +991 -174
- package/cordis.patch.yml +8 -8
- package/docs/DETAIL.md +1 -1
- package/docs/DETAIL.zh.md +1 -0
- package/docs/preview.svg +50 -20
- package/icon.svg +3 -3
- package/index.js +497 -358
- package/locale/en.json +1 -1
- package/locale/zh.json +2 -2
- package/package.json +64 -64
- package/tools.js +158 -158
package/cordis.patch.yml
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# dsh-mail bundle patch: installs the mail plugin row.
|
|
2
|
-
# agentMailAccess defaults to false; the row is replaced (not deep-merged) when
|
|
3
|
-
# edited here, and the browser Settings page can toggle the volatile field live.
|
|
4
|
-
- insert:
|
|
5
|
-
- id: dsh-mail
|
|
6
|
-
name: '@mysterycode-liwen/dsh-mail'
|
|
7
|
-
config:
|
|
8
|
-
agentMailAccess: false
|
|
1
|
+
# dsh-mail bundle patch: installs the mail plugin row.
|
|
2
|
+
# agentMailAccess defaults to false; the row is replaced (not deep-merged) when
|
|
3
|
+
# edited here, and the browser Settings page can toggle the volatile field live.
|
|
4
|
+
- insert:
|
|
5
|
+
- id: dsh-mail
|
|
6
|
+
name: '@mysterycode-liwen/dsh-mail'
|
|
7
|
+
config:
|
|
8
|
+
agentMailAccess: false
|
package/docs/DETAIL.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-

|
|
@@ -0,0 +1 @@
|
|
|
1
|
+

|
package/docs/preview.svg
CHANGED
|
@@ -1,21 +1,51 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 300" width="640" height="300" role="img" aria-label="Mail panel
|
|
2
|
-
|
|
3
|
-
<rect x="24" y="24" width="592" height="252" rx="
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
<
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
<rect x="
|
|
13
|
-
<
|
|
14
|
-
<
|
|
15
|
-
<rect x="
|
|
16
|
-
<
|
|
17
|
-
<
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 300" width="640" height="300" role="img" aria-label="Mail panel: a sidebar entry with an unread dot, a filter bar, and a mail list with an envelope action">
|
|
2
|
+
<!-- Text-free illustration: neutral mid-tones so it reads on both light and dark themes. -->
|
|
3
|
+
<rect x="24" y="24" width="592" height="252" rx="14" fill="#7c8ba6" fill-opacity="0.08" stroke="#7c8ba6" stroke-opacity="0.45"/>
|
|
4
|
+
|
|
5
|
+
<!-- Sidebar with the plugin entry and its unread dot -->
|
|
6
|
+
<rect x="40" y="54" width="132" height="30" rx="8" fill="#3b82f6" fill-opacity="0.18"/>
|
|
7
|
+
<path d="M54 63h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H54a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2z" fill="none" stroke="#3b82f6" stroke-width="1.8" stroke-linejoin="round"/>
|
|
8
|
+
<path d="M52.6 65.4 60 70l7.4-4.6" fill="none" stroke="#3b82f6" stroke-width="1.8" stroke-linecap="round"/>
|
|
9
|
+
<rect x="74" y="64" width="52" height="7" rx="3.5" fill="#7c8ba6" fill-opacity="0.7"/>
|
|
10
|
+
<circle cx="166" cy="69" r="5" fill="#ef4444"/>
|
|
11
|
+
|
|
12
|
+
<rect x="40" y="94" width="132" height="26" rx="8" fill="#7c8ba6" fill-opacity="0.14"/>
|
|
13
|
+
<rect x="54" y="104" width="46" height="6" rx="3" fill="#7c8ba6" fill-opacity="0.55"/>
|
|
14
|
+
<rect x="40" y="128" width="132" height="26" rx="8" fill="#7c8ba6" fill-opacity="0.14"/>
|
|
15
|
+
<rect x="54" y="138" width="60" height="6" rx="3" fill="#7c8ba6" fill-opacity="0.55"/>
|
|
16
|
+
<rect x="40" y="162" width="132" height="26" rx="8" fill="#7c8ba6" fill-opacity="0.14"/>
|
|
17
|
+
<rect x="54" y="172" width="52" height="6" rx="3" fill="#7c8ba6" fill-opacity="0.55"/>
|
|
18
|
+
|
|
19
|
+
<!-- Filter bar: all / unread / read, unread selected -->
|
|
20
|
+
<rect x="196" y="54" width="70" height="24" rx="12" fill="#7c8ba6" fill-opacity="0.16"/>
|
|
21
|
+
<rect x="210" y="63" width="30" height="6" rx="3" fill="#7c8ba6" fill-opacity="0.6"/>
|
|
22
|
+
<rect x="274" y="54" width="70" height="24" rx="12" fill="#3b82f6" fill-opacity="0.22"/>
|
|
23
|
+
<rect x="288" y="63" width="30" height="6" rx="3" fill="#3b82f6"/>
|
|
24
|
+
<rect x="352" y="54" width="70" height="24" rx="12" fill="#7c8ba6" fill-opacity="0.16"/>
|
|
25
|
+
<rect x="366" y="63" width="26" height="6" rx="3" fill="#7c8ba6" fill-opacity="0.6"/>
|
|
26
|
+
|
|
27
|
+
<!-- Unread row with accent bar -->
|
|
28
|
+
<rect x="196" y="92" width="404" height="46" rx="10" fill="#3b82f6" fill-opacity="0.10" stroke="#3b82f6" stroke-opacity="0.45"/>
|
|
29
|
+
<rect x="196" y="98" width="3" height="34" rx="1.5" fill="#3b82f6"/>
|
|
30
|
+
<circle cx="224" cy="115" r="11" fill="#3b82f6" fill-opacity="0.28"/>
|
|
31
|
+
<rect x="244" y="104" width="96" height="7" rx="3.5" fill="#7c8ba6" fill-opacity="0.8"/>
|
|
32
|
+
<rect x="516" y="104" width="34" height="6" rx="3" fill="#7c8ba6" fill-opacity="0.5"/>
|
|
33
|
+
<rect x="244" y="118" width="180" height="6" rx="3" fill="#7c8ba6" fill-opacity="0.55"/>
|
|
34
|
+
<rect x="244" y="130" width="120" height="5" rx="2.5" fill="#7c8ba6" fill-opacity="0.4"/>
|
|
35
|
+
|
|
36
|
+
<!-- Read rows -->
|
|
37
|
+
<rect x="196" y="148" width="404" height="46" rx="10" fill="#7c8ba6" fill-opacity="0.08" stroke="#7c8ba6" stroke-opacity="0.35"/>
|
|
38
|
+
<circle cx="224" cy="171" r="11" fill="#7c8ba6" fill-opacity="0.22"/>
|
|
39
|
+
<rect x="244" y="160" width="120" height="7" rx="3.5" fill="#7c8ba6" fill-opacity="0.6"/>
|
|
40
|
+
<rect x="516" y="160" width="34" height="6" rx="3" fill="#7c8ba6" fill-opacity="0.4"/>
|
|
41
|
+
<rect x="244" y="174" width="150" height="6" rx="3" fill="#7c8ba6" fill-opacity="0.4"/>
|
|
42
|
+
|
|
43
|
+
<!-- Mail opened with a paperclip action at the right -->
|
|
44
|
+
<rect x="196" y="204" width="404" height="52" rx="10" fill="#7c8ba6" fill-opacity="0.08" stroke="#7c8ba6" stroke-opacity="0.35"/>
|
|
45
|
+
<circle cx="224" cy="230" r="11" fill="#7c8ba6" fill-opacity="0.22"/>
|
|
46
|
+
<rect x="244" y="218" width="88" height="7" rx="3.5" fill="#7c8ba6" fill-opacity="0.6"/>
|
|
47
|
+
<rect x="244" y="232" width="132" height="6" rx="3" fill="#7c8ba6" fill-opacity="0.4"/>
|
|
48
|
+
<!-- paperclip -->
|
|
49
|
+
<path d="M528 224c-4-4-11-4-15 0l-11 11c-6 6-6 15 0 21s15 6 21 0l9-9" fill="none" stroke="#3b82f6" stroke-width="2.4" stroke-linecap="round"/>
|
|
50
|
+
<path d="M519 233l-10 10c-3 3-3 7 0 10s7 3 10 0l8-8c4-4 4-11 0-15" fill="none" stroke="#3b82f6" stroke-width="2.4" stroke-linecap="round"/>
|
|
21
51
|
</svg>
|
package/icon.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36">
|
|
2
|
-
<path fill="#3b82f6" d="M6 9h24a3 3 0 0 1 3 3v15a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V12a3 3 0 0 1 3-3Zm0 3.2v.3l12 8.1 12-8.1v-.3a.8.8 0 0 0-.8-.8H6.8a.8.8 0 0 0-.8.8Zm23.6 3.6L18 22.3 6.4 15.8V27a.8.8 0 0 0 .8.8h21.6a.8.8 0 0 0 .8-.8V15.8Z"/>
|
|
3
|
-
</svg>
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" width="36" height="36">
|
|
2
|
+
<path fill="#3b82f6" d="M6 9h24a3 3 0 0 1 3 3v15a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V12a3 3 0 0 1 3-3Zm0 3.2v.3l12 8.1 12-8.1v-.3a.8.8 0 0 0-.8-.8H6.8a.8.8 0 0 0-.8.8Zm23.6 3.6L18 22.3 6.4 15.8V27a.8.8 0 0 0 .8.8h21.6a.8.8 0 0 0 .8-.8V15.8Z"/>
|
|
3
|
+
</svg>
|