update, make a favicon and make the storage_dir visable#1
Open
zaourzag wants to merge 15 commits into
Open
Conversation
This commit implements a fully-automated development setup using Gitpod.io, an online IDE for GitLab, GitHub, and Bitbucket that enables Dev-Environments-As-Code. This makes it easy for anyone to get a ready-to-code workspace for any branch, issue or pull request almost instantly with a single click.
Fully automate dev setup with Gitpod
Zaourzag/gitpod setup
the add-user endpoint didnt work and it had a different get methodd then other so i tested it with the other and it works; pushing to repo now
implements it just so it works :)
AndyTempel
requested changes
Aug 16, 2021
| import secrets | ||
| import traceback | ||
| from os.path import splitext | ||
| import datetime import hashlib import os import secrets import traceback from os.path import splitext from |
| def datefromunix(s): | ||
| return datetime.datetime.fromtimestamp(int(s) / 1000).strftime("%Y-%m-%d %H:%M") | ||
|
|
||
| @app.route('/favicon.ico') |
Member
There was a problem hiding this comment.
that should be done with nginx
| activity = [x for x in activity] | ||
| return render_template("my_portal.html", domains=allowed_domains, total=total, images=activity) | ||
|
|
||
| @app.route('/i/<filename>') |
Member
There was a problem hiding this comment.
that should be done with nginx or storage provider
| @app.route('/add-user', methods=['POST']) | ||
| def add_user(): | ||
| token = request.headers.get("Authorization", "unknown") | ||
| token = request.form['Authorization'] |
Member
There was a problem hiding this comment.
it's an admin token, should be used in headers
| @@ -0,0 +1,53 @@ | |||
| <!DOCTYPE html> | |||
| "files": _db.images.count(), | ||
| "domains": len(allowed_domains) | ||
| }) | ||
| @app.route('/nl/') |
| @@ -0,0 +1,96 @@ | |||
| <!DOCTYPE html> | |||
| @@ -0,0 +1,257 @@ | |||
| <!DOCTYPE html> | |||
| @@ -0,0 +1,61 @@ | |||
| <!DOCTYPE html> | |||
| asn1crypto==0.24.0 | ||
| certifi==2018.4.16 | ||
| cffi==1.11.5 | ||
| dnspython |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.