Browse Source

add hints to inputs

Daniel Sheffield 1 year ago
parent
commit
6575f9fdc4
3 changed files with 2 additions and 1 deletions
  1. 1 0
      app/rest/templates/clip-form.tpl
  2. 1 0
      app/rest/templates/goto-form.tpl
  3. 0 1
      app/rest/validate.py

+ 1 - 0
app/rest/templates/clip-form.tpl

@@ -29,6 +29,7 @@ textarea::-webkit-scrollbar-thumb {
     {{!disabled}}
     required="true"
     autofocus="true"
+    placeholder="Paste something here..."
   >{{ content }}</textarea>
 </form>
 <form id="copy" method="post" action="{{ action }}">

+ 1 - 0
app/rest/templates/goto-form.tpl

@@ -28,6 +28,7 @@ input[type="url"]::-webkit-scrollbar-thumb {
     {{!disabled}}
     required="true"
     autofocus="true"
+    placeholder="Paste URL here..."
     value="{{ content }}"
   ></input>
 </form>

+ 0 - 1
app/rest/validate.py

@@ -71,7 +71,6 @@ def validate_parameter(request: LocalRequest, name: str) -> bytes:
     if content_length > CLIP_SIZE_LIMIT + OVERHEAD:
         return abort(418, f"Content-Length can not exceed {CLIP_SIZE_LIMIT*3} bytes")
 
-    print(request.content_type)
     # TODO: add test for both query/form param
     if 'multipart/form-data' in request.content_type:
         # TODO: what about binary data ?