Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added LISENSI/LISENSI GPL/Analisis lisensi.docx
Binary file not shown.
8 changes: 4 additions & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

if __name__ == "__main__":
try:
app.secret_key = os.urandom(12)
app.run(debug=True, port=9000)
except Exception as e:
print(e)
app.secret_key = os.urandom(12) # Generate a random secret key
app.run(debug=True, host="0.0.0.0", port=9000) # Run the Flask app
except Exception as err:
print(f"Terjadi kesalahan: {err}")
1 change: 1 addition & 0 deletions diagrams
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Binary file added docs/-/class diagram .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/uml/class diagram .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/uml/creat item.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/uml/login.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions docs/ums/class_diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions docs/ums/gambar diagram
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
1.png
Add files via upload
6 years ago
11.png
Add files via upload
6 years ago
12.png
Add files via upload
6 years ago
13.png
Add files via upload
6 years ago
15.png
Add files via upload
6 years ago
2.png
Add files via upload
6 years ago
3.png
Add files via upload
6 years ago
4.png
Add files via upload
6 years ago
5.png
Add files via upload
6 years ago
6.png
Add files via upload
6 years ago
7.png
Add files via upload
6 years ago
8.png
Add files via upload
6 years ago
9.png
Add files via upload
6 years ago
dup.jpg
updated readme
5 years ago
main.png
129 changes: 129 additions & 0 deletions evaluasi/blackbox/APLIKASI DIREKTORI .side
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
{
"id": "da171c3b-cf55-4c2d-bafd-0ba2caa452f9",
"version": "2.0",
"name": "APLIKASI DIREKTORI ",
"url": "https://upgraded-chainsaw-r4r7xwpxjvg72pv7v-9000.app.github.dev",
"tests": [{
"id": "01769dd3-c02d-4373-86fd-0403bb43cabb",
"name": "TEST WEBAPP",
"commands": [{
"id": "41779bc6-7818-46d1-9d87-e2055b37b1a4",
"comment": "",
"command": "open",
"target": "/",
"targets": [],
"value": ""
}, {
"id": "dca93a13-3c32-479b-b979-b78e72b2e840",
"comment": "",
"command": "setWindowSize",
"target": "550x672",
"targets": [],
"value": ""
}, {
"id": "74f2cdf7-7d99-4fd6-b27c-60d984d6094f",
"comment": "",
"command": "click",
"target": "css=.btn-primary",
"targets": [
["css=.btn-primary", "css:finder"],
["xpath=//button[@type='submit']", "xpath:attributes"],
["xpath=//button", "xpath:position"],
["xpath=//button[contains(.,'Continue')]", "xpath:innerText"]
],
"value": ""
}, {
"id": "68666406-8335-4594-8a65-18ba0f97f29c",
"comment": "",
"command": "click",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=.control-group:nth-child(1) > .login-field", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": ""
}, {
"id": "5272b2b6-50a8-4075-a687-3f0e330c2be9",
"comment": "",
"command": "type",
"target": "name=username",
"targets": [
["name=username", "name"],
["css=.control-group:nth-child(1) > .login-field", "css:finder"],
["xpath=//input[@name='username']", "xpath:attributes"],
["xpath=//input", "xpath:position"]
],
"value": "muhammadfathoni432@gmail.com"
}, {
"id": "63fb10ce-fbdd-4102-86b2-bd62cda6e0c5",
"comment": "",
"command": "click",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=.control-group:nth-child(2) > .login-field", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[2]/input", "xpath:position"]
],
"value": ""
}, {
"id": "ed5c66f8-e3ad-4786-b86e-4a104d699bce",
"comment": "",
"command": "type",
"target": "name=password",
"targets": [
["name=password", "name"],
["css=.control-group:nth-child(2) > .login-field", "css:finder"],
["xpath=//input[@name='password']", "xpath:attributes"],
["xpath=//div[2]/input", "xpath:position"]
],
"value": "TIARAMAHARANI12345"
}, {
"id": "56e8cbc0-f68b-4bc4-8104-785e9acc1e43",
"comment": "",
"command": "click",
"target": "css=.btn",
"targets": [
["css=.btn", "css:finder"],
["xpath=//input[@value='Sign in']", "xpath:attributes"],
["xpath=//form/div/div/div[2]/input", "xpath:position"]
],
"value": ""
}, {
"id": "7ce17c63-98c2-42a4-96f7-9456bdab6296",
"comment": "",
"command": "click",
"target": "css=#frame-126380674703440 .current",
"targets": [
["css=#frame-126380674703440 .current", "css:finder"],
["xpath=//div[@id='frame-126380674703440']/div/pre[6]", "xpath:idRelative"],
["xpath=//pre[6]", "xpath:position"]
],
"value": ""
}, {
"id": "49216bc5-d770-428c-ba68-3ec38a22c778",
"comment": "",
"command": "click",
"target": "css=.expanded > .line:nth-child(3)",
"targets": [
["css=.expanded > .line:nth-child(3)", "css:finder"],
["xpath=//div[@id='frame-126380674703440']/div/pre[3]", "xpath:idRelative"],
["xpath=//pre[3]", "xpath:position"],
["xpath=//pre[contains(.,' WSGI application. This calls :meth:`wsgi_app`, which can be')]", "xpath:innerText"]
],
"value": ""
}]
}],
"suites": [{
"id": "7d0a5d9c-2a6b-4eaf-912d-e70a9c26abef",
"name": "Default Suite",
"persistSession": false,
"parallel": false,
"timeout": 300,
"tests": ["01769dd3-c02d-4373-86fd-0403bb43cabb"]
}],
"urls": ["https://upgraded-chainsaw-r4r7xwpxjvg72pv7v-9000.app.github.dev/"],
"plugins": []
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added evaluasi/blackbox/UJI COBA .png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 7 additions & 9 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import os
from werkzeug import secure_filename
from werkzeug.utils import secure_filename
from flask import Flask
from flask import flash
from flask import send_from_directory
Expand All @@ -8,7 +8,7 @@
from flask import session
from src.process import Process

application= app = Flask(__name__)
application = app = Flask(__name__)
app.config['UPLOAD_FOLDER'] = 'uploads/'
app.config['ALLOWED_EXTENSIONS'] = set(['pdf'])

Expand All @@ -21,7 +21,7 @@ def allowed_file(filename):
@app.route('/')
def home():
if not session.get('logged_in'):
message="Welcome to our Portal!"
message = "Welcome to our Portal!"
flash(message)
return render_template('login.html')
else:
Expand All @@ -35,7 +35,7 @@ def user_login():
if response['password'] == request.form['password'] and response['email_address'] == request.form['email address']:
session['logged_in'] = True
else:
message="Please enter correct username and password!"
message = "Please enter correct username and password!"
flash(message)
session['logged_in'] = False
except Exception as e:
Expand Down Expand Up @@ -72,11 +72,11 @@ def upload():
if file and allowed_file(file.filename):
filename = secure_filename(file.filename)
list_files = os.listdir('uploads')
f_save=str(len(list_files)+1)+'.pdf'
f_save = str(len(list_files) + 1) + '.pdf'
file.save(os.path.join(app.config['UPLOAD_FOLDER'], f_save))
filenames.append(filename)
key_name='uploads/'+f_save
process_client.storage_process.upload_file(key_name,'pranab1',f_save)
key_name = 'uploads/' + f_save
process_client.storage_process.upload_file(key_name, 'pranab1', f_save)
process_client.database_process.insert_item_into_storage_db(
s3_key_name=key_name,
original_name=filename
Expand All @@ -86,11 +86,9 @@ def upload():
else:
return render_template('upload_file.html', filenames=filenames)


@app.route('/uploads/<filename>')
def uploaded_file(filename):
return send_from_directory(
app.config['UPLOAD_FOLDER'],
filename
)

Binary file added src/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added src/__pycache__/config.cpython-312.pyc
Binary file not shown.
Binary file added src/__pycache__/database.cpython-312.pyc
Binary file not shown.
Binary file added src/__pycache__/email_interface.cpython-312.pyc
Binary file not shown.
Binary file added src/__pycache__/process.cpython-312.pyc
Binary file not shown.
Binary file added src/__pycache__/s3.cpython-312.pyc
Binary file not shown.
Binary file added sus/perhitungan sus/LAPORAN HASIL SUS.docx
Binary file not shown.
Binary file added sus/perhitungan sus/SUS_Score_Chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.