Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 2.0 of User Interface for vehicleinfo.org #2

Merged
merged 48 commits into from
Jan 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
a49981d
add new bss design file
zshafiqu Jan 8, 2020
fadbe1f
add homepage
zshafiqu Jan 8, 2020
fa33ec0
api page done
zshafiqu Jan 8, 2020
081fe8b
done with about page
zshafiqu Jan 8, 2020
1872746
more design updates
zshafiqu Jan 8, 2020
0f0251c
designs are done, ready for export
zshafiqu Jan 8, 2020
f707318
mkdir designs
zshafiqu Jan 8, 2020
f73c9aa
updates
zshafiqu Jan 8, 2020
ffb1d68
rename
zshafiqu Jan 8, 2020
4af3fcc
add html export
zshafiqu Jan 8, 2020
3e9c0db
overwrite old static
zshafiqu Jan 9, 2020
e452f84
overwrite old static
zshafiqu Jan 9, 2020
23fab37
scripts ported to new index
zshafiqu Jan 9, 2020
7cf1ae2
layout done
zshafiqu Jan 9, 2020
13a9aea
homepage up and running
zshafiqu Jan 9, 2020
b6ba13c
report page added
zshafiqu Jan 9, 2020
8d135e8
api page added
zshafiqu Jan 9, 2020
1af87c7
pages added
zshafiqu Jan 9, 2020
c2dd9eb
all pages except report added and working
zshafiqu Jan 9, 2020
275195f
navbar updates
zshafiqu Jan 9, 2020
c73dd89
routes work
zshafiqu Jan 9, 2020
51dedf2
active toggling working
zshafiqu Jan 9, 2020
cee7cff
footer update
zshafiqu Jan 9, 2020
720e929
add header
zshafiqu Jan 9, 2020
04d14cf
remove border from toggler
zshafiqu Jan 9, 2020
fcc08c5
add err page
zshafiqu Jan 9, 2020
06c0564
process report added. no idea if it works
zshafiqu Jan 9, 2020
8fae522
form process added
zshafiqu Jan 9, 2020
d5324ea
more updates
zshafiqu Jan 9, 2020
b8b8b63
begin code cleanup, starting with layout
zshafiqu Jan 9, 2020
627fb0b
cleanup about page
zshafiqu Jan 9, 2020
2f154d1
api page cleanup
zshafiqu Jan 9, 2020
3b6a041
err page cleanup
zshafiqu Jan 9, 2020
5aa2849
done with homepage cleanup
zshafiqu Jan 9, 2020
851be21
versions page cleanup
zshafiqu Jan 9, 2020
07bd53f
update report
zshafiqu Jan 9, 2020
ba96d77
process_report cleaned up
zshafiqu Jan 9, 2020
9ed1a43
server cleanup and update routes
zshafiqu Jan 9, 2020
153ce8a
route updates
zshafiqu Jan 9, 2020
bd0a7f1
api updates, going to test now
zshafiqu Jan 9, 2020
3f907b4
server update
zshafiqu Jan 9, 2020
780c9f3
update report page again
zshafiqu Jan 9, 2020
4171138
remove padding on header
zshafiqu Jan 9, 2020
e0e996c
more updates
zshafiqu Jan 9, 2020
d06acb2
remove design exports
zshafiqu Jan 9, 2020
72c1a9e
mv designs > webservices
zshafiqu Jan 9, 2020
680acc2
add social media to about page
zshafiqu Jan 9, 2020
e1157f6
more updates
zshafiqu Jan 9, 2020
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 modified .DS_Store
Binary file not shown.
35 changes: 11 additions & 24 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,15 @@ def get_by_year_make_and_model(year, make, model):
# ----------------------
@app.route('/')
def index():
page = 'Home'
return render_template('home.html', page=page)

# return render_template('temp.html')
return render_template('home.html')
# ----------------------
@app.route('/report')
def report():
page = 'Vehicle Report'
return render_template('report.html', page=page)
# return render_template('temp.html')
return render_template('report.html')
# ----------------------
@app.route('/handlerequest', methods=['POST'])
@app.route('/view_report', methods=['POST'])
def handle_request():
# print(request)
page = 'Vehicle Report'
try :
try:
year = request.form['year'].strip()
make = request.form['make'].strip()
model = request.form['model'].strip()
Expand All @@ -167,27 +160,21 @@ def handle_request():
recalls = get_recalls_from_NHTSA(year, make, model)
complaints = get_complaints_from_NHTSA(year, make, model)

return render_template('process_report.html', data=data, recalls=recalls, complaints=complaints, page=page)
return render_template('view_report.html', data=data, recalls=recalls, complaints=complaints)
except:
return render_template('error.html', page=page)
return render_template('error.html')
# ----------------------
@app.route('/api')
def api():
page = 'API Documentation'
return render_template('api.html', page=page)
# return render_template('temp.html')
return render_template('api.html')
# ----------------------
@app.route('/versions')
def versions():
page = 'Version History'
return render_template('versions.html', page=page)
# return render_template('temp.html')
@app.route('/changelog')
def changelog():
return render_template('changelog.html')
# ----------------------
@app.route('/about')
def about():
page = 'About This Project'
return render_template('about.html', page=page)
# return render_template('temp.html')
return render_template('about.html')
# ----------------------
if __name__ == '__main__':
app.run()
Binary file modified static/.DS_Store
Binary file not shown.
Binary file modified static/css/.DS_Store
Binary file not shown.
16 changes: 11 additions & 5 deletions static/css/bootstrap.min.css
100755 → 100644

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion static/css/bootstrap.min.css.map

This file was deleted.

Loading