Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
189 lines (189 loc) · 5.16 KB
/
Copy pathpackage.json
File metadata and controls
189 lines (189 loc) · 5.16 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
{
"name": "yozora",
"version": "0.2.1",
"private": true,
"packageManager": "npm@12.2.0",
"description": "Bringing dark mode to PDFs in VS Code.",
"engines": {
"node": ">=24 <25",
"vscode": "^1.140.0"
},
"overrides": {
"@vscode/test-cli": {
"mocha": "$mocha"
}
},
"devDependencies": {
"@playwright/test": "1.63.0",
"@types/mocha": "10.0.10",
"@types/node": "24.19.1",
"@types/vscode": "1.140.0",
"@vscode/test-cli": "0.0.15",
"@vscode/test-electron": "3.1.0",
"@vscode/vsce": "4.0.0",
"esbuild": "0.28.2",
"fflate": "0.8.3",
"mocha": "12.0.3",
"oxfmt": "0.71.0",
"oxlint": "1.86.0",
"oxlint-tsgolint": "7.0.2003",
"typescript": "7.0.2"
},
"allowScripts": {
"esbuild@0.28.2": true,
"@vscode/vsce-sign@2.1.0": true
},
"displayName": "Yozora — PDF Dark Mode",
"publisher": "local",
"license": "MIT",
"main": "./dist/extension.cjs",
"categories": [
"Visualization"
],
"keywords": [
"pdf",
"dark mode",
"research",
"reader"
],
"activationEvents": [],
"capabilities": {
"virtualWorkspaces": true,
"untrustedWorkspaces": {
"supported": true
}
},
"scripts": {
"vendor:pdfjs": "node scripts/vendor-pdfjs.mjs",
"build": "node scripts/build.mjs",
"watch": "node scripts/build.mjs --watch",
"lint": "oxlint --max-warnings=0 --report-unused-disable-directives",
"lint:fix": "npm run lint -- --fix",
"format": "oxfmt --write .",
"format:check": "oxfmt --check .",
"check": "npm run format:check && npm run lint && npm test",
"typecheck": "tsc --noEmit && tsc -p tsconfig.host.json && tsc -p tsconfig.webview.json",
"test": "npm run typecheck && npm run test:corpus && npm run build && npm run test:unit",
"test:corpus": "node scripts/verify-corpus.mjs",
"test:papers": "node scripts/test-papers.mjs",
"test:papers:visual": "node scripts/test-papers.mjs --visual",
"test:papers:baseline": "node scripts/test-papers.mjs --baseline",
"test:unit": "mocha \"dist/test/unit/**/*.test.cjs\"",
"pretest:integration": "npm run build",
"test:integration": "node scripts/test-extension.mjs",
"vscode:prepublish": "npm run build",
"package": "vsce package --no-dependencies --allow-missing-repository --no-rewrite-relative-links"
},
"contributes": {
"customEditors": [
{
"viewType": "yozora.pdf",
"displayName": "Yozora PDF Viewer",
"selector": [
{
"filenamePattern": "*.pdf"
},
{
"filenamePattern": "*.PDF"
}
],
"priority": "option"
}
],
"commands": [
{
"command": "yozora.open",
"title": "Open PDF",
"category": "Yozora"
},
{
"command": "yozora.toggleDarkMode",
"title": "Toggle PDF Dark Mode",
"category": "Yozora",
"icon": "$(color-mode)"
},
{
"command": "yozora.chooseTheme",
"title": "Choose PDF Theme",
"category": "Yozora",
"icon": "$(symbol-color)"
},
{
"command": "yozora.reload",
"title": "Reload PDF Viewer",
"category": "Yozora",
"icon": "$(refresh)"
}
],
"menus": {
"explorer/context": [
{
"command": "yozora.open",
"when": "resourceExtname =~ /\\.pdf$/i",
"group": "navigation"
}
],
"editor/title": [
{
"command": "yozora.toggleDarkMode",
"when": "activeCustomEditorId == yozora.pdf",
"group": "navigation@1"
},
{
"command": "yozora.chooseTheme",
"when": "activeCustomEditorId == yozora.pdf",
"group": "navigation@2"
},
{
"command": "yozora.reload",
"when": "activeCustomEditorId == yozora.pdf",
"group": "navigation@3"
}
]
},
"configuration": {
"title": "Yozora",
"properties": {
"yozora.defaultTheme": {
"type": "string",
"enum": [
"graphite",
"midnight",
"dracula"
],
"enumItemLabels": [
"Graphite — Balanced",
"Midnight — High contrast",
"Dracula — VS Code palette"
],
"enumDescriptions": [
"Light gray text on charcoal.",
"Bright text against a moonless sky.",
"Off-white text on a blue-gray background, using Dracula’s VS Code colors."
],
"default": "midnight",
"description": "Set the default theme.",
"scope": "resource"
},
"yozora.defaultMode": {
"type": "string",
"enum": [
"dark",
"original"
],
"default": "dark",
"description": "Set the default display mode.",
"scope": "resource"
},
"yozora.maxFileSizeMiB": {
"type": "number",
"minimum": 1,
"maximum": 512,
"default": 100,
"description": "Set the maximum PDF size Yozora can open, in MiB.",
"scope": "resource"
}
}
}
}
}