A lightweight and simple file download server written in Flask

Changes

Changed files
+21 -4
templates
+1 -1
app.py
··· 150 150 return send_file("./public/favicon.ico") 151 151 152 152 if __name__ == '__main__': 153 - app.run(host=args.ip if args.ip != None else "localhost", port=args.port if args.port != None else 8000, debug=False) 153 + app.run(host=args.ip if args.ip != None else "localhost", port=args.port if args.port != None else 8000, debug=True) 154 154
+20 -3
templates/index.html
··· 10 10 </head> 11 11 <body> 12 12 <style> 13 + body { 14 + font-size: 17px; 15 + } 16 + 13 17 .odd { 14 18 background-color: #f5f5f5; 15 19 } ··· 19 23 } 20 24 21 25 .date { 22 - width: 120px; 26 + width: 140px; 23 27 } 24 28 25 29 table { 26 - width: 100vw; 30 + width: 99vw; 27 31 } 28 32 29 33 .size { ··· 36 40 } 37 41 38 42 img { 39 - max-width: 20px; 43 + max-width: 25px; 44 + } 45 + 46 + .title { 47 + font-size: 21px; 48 + padding: 2px; 49 + padding-bottom: 10px; 40 50 } 41 51 </style> 52 + <div class="title"> 53 + {%if subpath != None%} 54 + <b>Index of /{{subpath}}</b> 55 + {%else%} 56 + <b>Index of /</b> 57 + {%endif%} 58 + </div> 42 59 <table> 43 60 <tbody> 44 61 <tr class="odd">