@ash-qw/dsh-theme-prts 1.1.0 → 1.2.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/CHANGELOG.md +19 -8
- package/README.en.md +10 -8
- package/README.md +10 -8
- package/THIRD_PARTY_NOTICES.md +4 -2
- package/THIRD_PARTY_NOTICES.zh-CN.md +4 -2
- package/lib/client.js +402 -145
- package/package.json +2 -2
- package/src/assets/cursors/animation.json +56 -0
- package/src/assets/cursors/prts-grab.png +0 -0
- package/src/assets/cursors/prts-grabbing.png +0 -0
- package/src/assets/cursors/prts-not-allowed.png +0 -0
- package/src/client/cursor-adapter.js +2 -2
- package/src/client/custom-emblem.js +390 -55
- package/src/client/operations-shell-v2.js +0 -8
- package/src/client/theme-settings-workbench.js +25 -16
- package/src/index.js +1 -1
- package/src/server/api.js +3 -3
- package/src/server/emblems.js +51 -18
- package/src/server/image-worker.js +30 -13
- package/src/server/tools.js +19 -8
- package/src/styles/cursor.css +7 -1
- package/src/styles/prts.css +0 -8
- package/src/styles/refinement.css +2 -2
- package/src/styles/theme-settings-workbench.css +560 -676
- package/src/client/resize-shield-adapter.js +0 -69
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ash-qw/dsh-theme-prts",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "Unofficial Arknights P.R.T.S.-inspired UI theme for DeepSeek Harness Web",
|
|
6
|
+
"description": "Unofficial Arknights P.R.T.S.-inspired UI theme for DeepSeek Harness Web and the official desktop client",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"deepseek-harness",
|
|
9
9
|
"dsh",
|
|
@@ -506,5 +506,61 @@
|
|
|
506
506
|
"duration": 60000.0
|
|
507
507
|
}
|
|
508
508
|
]
|
|
509
|
+
},
|
|
510
|
+
"states": {
|
|
511
|
+
"grab": {
|
|
512
|
+
"file": "prts-grab.png",
|
|
513
|
+
"source": "PRTS-Replica-v8-96x-grab_enter_0011.cur",
|
|
514
|
+
"crop": [
|
|
515
|
+
18,
|
|
516
|
+
40,
|
|
517
|
+
86,
|
|
518
|
+
96
|
|
519
|
+
],
|
|
520
|
+
"size": [
|
|
521
|
+
45,
|
|
522
|
+
37
|
|
523
|
+
],
|
|
524
|
+
"hotspot": [
|
|
525
|
+
22,
|
|
526
|
+
19
|
|
527
|
+
]
|
|
528
|
+
},
|
|
529
|
+
"grabbing": {
|
|
530
|
+
"file": "prts-grabbing.png",
|
|
531
|
+
"source": "PRTS-Replica-v8-96x-grab_loop_0000.cur",
|
|
532
|
+
"crop": [
|
|
533
|
+
18,
|
|
534
|
+
40,
|
|
535
|
+
86,
|
|
536
|
+
96
|
|
537
|
+
],
|
|
538
|
+
"size": [
|
|
539
|
+
45,
|
|
540
|
+
37
|
|
541
|
+
],
|
|
542
|
+
"hotspot": [
|
|
543
|
+
22,
|
|
544
|
+
19
|
|
545
|
+
]
|
|
546
|
+
},
|
|
547
|
+
"not-allowed": {
|
|
548
|
+
"file": "prts-not-allowed.png",
|
|
549
|
+
"source": "PRTS-Replica-v8-96x-unavail1_static.cur",
|
|
550
|
+
"crop": [
|
|
551
|
+
18,
|
|
552
|
+
10,
|
|
553
|
+
96,
|
|
554
|
+
96
|
|
555
|
+
],
|
|
556
|
+
"size": [
|
|
557
|
+
51,
|
|
558
|
+
56
|
|
559
|
+
],
|
|
560
|
+
"hotspot": [
|
|
561
|
+
7,
|
|
562
|
+
7
|
|
563
|
+
]
|
|
564
|
+
}
|
|
509
565
|
}
|
|
510
566
|
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -107,7 +107,7 @@ export function createCursorAdapter({ document, window, assets }) {
|
|
|
107
107
|
restoreHandTarget()
|
|
108
108
|
if (!canAnimate(target) || !handCursor || target === textTarget) return
|
|
109
109
|
const cursor = window.getComputedStyle(target).cursor
|
|
110
|
-
if (!cursor.includes('data:image/png') || /(?:,\s*text|resize)$/.test(cursor)) return
|
|
110
|
+
if (!cursor.includes('data:image/png') || /(?:,\s*(?:text|grab|grabbing|not-allowed|no-drop)|resize)$/.test(cursor)) return
|
|
111
111
|
handTarget = target
|
|
112
112
|
originalCursor = target.style.getPropertyValue('cursor')
|
|
113
113
|
originalPriority = target.style.getPropertyPriority('cursor')
|
|
@@ -160,7 +160,7 @@ export function createCursorAdapter({ document, window, assets }) {
|
|
|
160
160
|
reset()
|
|
161
161
|
const cursor = target ? window.getComputedStyle(target).cursor : ''
|
|
162
162
|
if (!cursor.includes('data:image/png')) return
|
|
163
|
-
if (/(?:,\s*text|resize)$/.test(cursor) || !canAnimate(target)) return
|
|
163
|
+
if (/(?:,\s*(?:text|grab|grabbing|not-allowed|no-drop)|resize)$/.test(cursor) || !canAnimate(target)) return
|
|
164
164
|
gestureAssets = /,\s*pointer$/.test(cursor) && assets.link ? assets.link : assets
|
|
165
165
|
pointerId = event.pointerId
|
|
166
166
|
handCursor = cursor
|