File tree Expand file tree Collapse file tree 4 files changed +10
-18
lines changed
Expand file tree Collapse file tree 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>
9292List pastes:
9393
9494``` 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
9696```
9797
9898## Development
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ export default tseslint.config(
3434 } ,
3535 } ,
3636 {
37- files : [ "*.config.js" ] , // TODO: make them work
37+ files : [ "*.config.js" ] ,
3838 extends : [ tseslint . configs . disableTypeChecked ] ,
3939 } ,
4040)
Original file line number Diff line number Diff line change 77 content ="width=device-width, initial-scale=1, shrink-to-fit=no "
88 />
99 < link rel ="icon " href ="{{FAVICON}} " type ="image/png " />
10- < style media ="screen ">
11- {{CSS}}
12- </ style >
10+ {{CSS}}
1311</ head >
1412< html lang ="en ">
1513 < body >
@@ -61,9 +59,7 @@ <h1>Yet Another Pastebin</h1>
6159 < h2 > Settings</ h2 >
6260 < div id ="paste-expiration-panel " class ="paste-setting-subitem-panel ">
6361 < input
64- list ="expiration-choices "
6562 type ="text "
66- min ="60 "
6763 step ="1 "
6864 name ="paste-expiration "
6965 id ="paste-expiration-input "
@@ -177,7 +173,7 @@ <h2>Uploaded paste</h2>
177173 />
178174 < button class ="copy-button "> Copy</ button >
179175 </ div >
180- < label for ="suggested -url " class ="small-label "> Manage URL</ label >
176+ < label for ="uploaded-manage -url " class ="small-label "> Manage URL</ label >
181177 < div class ="uploaded-entry ">
182178 < input
183179 id ="uploaded-suggested-url "
@@ -187,7 +183,9 @@ <h2>Uploaded paste</h2>
187183 />
188184 < button class ="copy-button "> Copy</ button >
189185 </ 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+ >
191189 < p id ="expiration-message "> </ p >
192190 </ div >
193191 < div >
@@ -208,12 +206,6 @@ <h2>Uploaded paste</h2>
208206 </ p >
209207 </ footer >
210208 < 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}}
218210 </ body >
219211</ html >
Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ import apiMd from "../../doc/api.md"
99
1010function indexPage ( env : Env ) : string {
1111 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>` )
1414 . replaceAll ( "{{BASE_URL}}" , env . BASE_URL )
1515 . replaceAll ( "{{REPO}}" , env . REPO )
1616 . replaceAll ( "{{FAVICON}}" , env . FAVICON )
You can’t perform that action at this time.
0 commit comments