File tree 4 files changed +10
-18
lines changed
4 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ $ yarn delete-paste <name-of-paste>
92
92
List pastes:
93
93
94
94
``` console
95
- $ yarn -s wrangler kv: key list --binding PB > kv_list.json
95
+ $ yarn -s wrangler kv key list --binding PB > kv_list.json
96
96
```
97
97
98
98
## Development
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export default tseslint.config(
34
34
} ,
35
35
} ,
36
36
{
37
- files : [ "*.config.js" ] , // TODO: make them work
37
+ files : [ "*.config.js" ] ,
38
38
extends : [ tseslint . configs . disableTypeChecked ] ,
39
39
} ,
40
40
)
Original file line number Diff line number Diff line change 7
7
content ="width=device-width, initial-scale=1, shrink-to-fit=no "
8
8
/>
9
9
< link rel ="icon " href ="{{FAVICON}} " type ="image/png " />
10
- < style media ="screen ">
11
- {{CSS}}
12
- </ style >
10
+ {{CSS}}
13
11
</ head >
14
12
< html lang ="en ">
15
13
< body >
@@ -61,9 +59,7 @@ <h1>Yet Another Pastebin</h1>
61
59
< h2 > Settings</ h2 >
62
60
< div id ="paste-expiration-panel " class ="paste-setting-subitem-panel ">
63
61
< input
64
- list ="expiration-choices "
65
62
type ="text "
66
- min ="60 "
67
63
step ="1 "
68
64
name ="paste-expiration "
69
65
id ="paste-expiration-input "
@@ -177,7 +173,7 @@ <h2>Uploaded paste</h2>
177
173
/>
178
174
< button class ="copy-button "> Copy</ button >
179
175
</ div >
180
- < label for ="suggested -url " class ="small-label "> Manage URL</ label >
176
+ < label for ="uploaded-manage -url " class ="small-label "> Manage URL</ label >
181
177
< div class ="uploaded-entry ">
182
178
< input
183
179
id ="uploaded-suggested-url "
@@ -187,7 +183,9 @@ <h2>Uploaded paste</h2>
187
183
/>
188
184
< button class ="copy-button "> Copy</ button >
189
185
</ div >
190
- < label for ="uploaded-manage-url " class ="small-label "> Suggest URL</ label >
186
+ < label for ="uploaded-suggested-url " class ="small-label "
187
+ > Suggest URL</ label
188
+ >
191
189
< p id ="expiration-message "> </ p >
192
190
</ div >
193
191
< div >
@@ -208,12 +206,6 @@ <h2>Uploaded paste</h2>
208
206
</ p >
209
207
</ footer >
210
208
< script src ="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js "> </ script >
211
- < script >
212
- {
213
- {
214
- INDEX_JS
215
- }
216
- }
217
- </ script >
209
+ {{INDEX_JS}}
218
210
</ body >
219
211
</ html >
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ import apiMd from "../../doc/api.md"
9
9
10
10
function indexPage ( env : Env ) : string {
11
11
return indexHtml
12
- . replace ( "{{CSS}}" , styleCss + githubCss )
13
- . replace ( "{{INDEX_JS}}" , indexJsIn )
12
+ . replace ( "{{CSS}}" , `<style media="screen"> ${ styleCss + githubCss } </style>` )
13
+ . replace ( "{{INDEX_JS}}" , `<script> ${ indexJsIn } </script>` )
14
14
. replaceAll ( "{{BASE_URL}}" , env . BASE_URL )
15
15
. replaceAll ( "{{REPO}}" , env . REPO )
16
16
. replaceAll ( "{{FAVICON}}" , env . FAVICON )
You can’t perform that action at this time.
0 commit comments