diff options
| author | 2024-08-19 17:00:25 +0800 | |
|---|---|---|
| committer | 2024-08-19 17:00:25 +0800 | |
| commit | 3068d229693cebd9daaf90208a21f16932cadf18 (patch) | |
| tree | 64dfac3a950a8b1cb9110f7cc62be2c0585dd591 | |
| parent | 0da88e53322a8dabb404574e3fbed8a0132c31b6 (diff) | |
| download | files-3068d229693cebd9daaf90208a21f16932cadf18.tar.gz files-3068d229693cebd9daaf90208a21f16932cadf18.zip | |
chore: update content
| -rw-r--r-- | .vscode/settings.json | 3 | ||||
| -rw-r--r-- | api/index.py (renamed from app.py) | 10 | ||||
| -rw-r--r-- | data/.gitkeep | 0 | ||||
| -rw-r--r-- | files/.gitkeep | 0 | ||||
| -rw-r--r-- | files/109951167368046405.jpg | bin | 25916 -> 0 bytes | |||
| -rw-r--r-- | files/3B42EE8DE456CDB990D27EAC440A150C.jpg | bin | 238970 -> 0 bytes | |||
| -rw-r--r-- | files/GoodbyeDPI-master.zip | bin | 68677 -> 0 bytes | |||
| -rw-r--r-- | files/security-key.txt | 1 | ||||
| -rw-r--r-- | vercel.json | 3 |
9 files changed, 11 insertions, 6 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..cee4243 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "iis.configDir": "" +}
\ No newline at end of file @@ -33,7 +33,7 @@ def login(): return redirect(url_for('upload_file')) else: flash('Invalid credentials') - return render_template('login.html') + return render_template('templates/login.html') @app.route('/logout') def logout(): @@ -57,14 +57,14 @@ def upload_file(): file.save(os.path.join(app.config['UPLOAD_FOLDER'], filename)) flash('File successfully uploaded') return redirect(url_for('uploaded_files')) - return render_template('upload.html') + return render_template('templates/upload.html') @app.route('/files') def uploaded_files(): if 'username' not in session: return redirect(url_for('login')) files = os.listdir(app.config['UPLOAD_FOLDER']) - return render_template('files.html', files=files) + return render_template('templates/files.html', files=files) @app.route('/files/<filename>') def file_info(filename): @@ -81,10 +81,10 @@ def file_info(filename): file_type = 'zip' with zipfile.ZipFile(file_path, 'r') as zip_ref: zip_contents = zip_ref.namelist() - return render_template('file_info.html', filename=filename, file_type=file_type, zip_contents=zip_contents) + return render_template('templates/file_info.html', filename=filename, file_type=file_type, zip_contents=zip_contents) else: file_type = 'other' - return render_template('file_info.html', filename=filename, file_type=file_type) + return render_template('templates/file_info.html', filename=filename, file_type=file_type) else: flash('File not found') return redirect(url_for('uploaded_files')) diff --git a/data/.gitkeep b/data/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/data/.gitkeep diff --git a/files/.gitkeep b/files/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/files/.gitkeep diff --git a/files/109951167368046405.jpg b/files/109951167368046405.jpg Binary files differdeleted file mode 100644 index 78c5593..0000000 --- a/files/109951167368046405.jpg +++ /dev/null diff --git a/files/3B42EE8DE456CDB990D27EAC440A150C.jpg b/files/3B42EE8DE456CDB990D27EAC440A150C.jpg Binary files differdeleted file mode 100644 index 9a57384..0000000 --- a/files/3B42EE8DE456CDB990D27EAC440A150C.jpg +++ /dev/null diff --git a/files/GoodbyeDPI-master.zip b/files/GoodbyeDPI-master.zip Binary files differdeleted file mode 100644 index 4462fb2..0000000 --- a/files/GoodbyeDPI-master.zip +++ /dev/null diff --git a/files/security-key.txt b/files/security-key.txt deleted file mode 100644 index 4fa34a5..0000000 --- a/files/security-key.txt +++ /dev/null @@ -1 +0,0 @@ -EsTw da7P ZCmG bw2F Mvhd BJHQ TMDf dVT3 vXBp 861C q6P4 PH9q
\ No newline at end of file diff --git a/vercel.json b/vercel.json new file mode 100644 index 0000000..1fccd7b --- /dev/null +++ b/vercel.json @@ -0,0 +1,3 @@ +{ + "redirects": [{ "source": "/", "destination": "/api" }] + }
\ No newline at end of file |
