generated from aboutcode-org/skeleton
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from aboutcode-org/ux-improvements
UI/UX Improvements for Deployment
- Loading branch information
Showing
53 changed files
with
1,218 additions
and
5,630 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
pip-selfcheck.json | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
coverage.xml | ||
*.cover | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
|
||
# Sphinx | ||
docs/_build | ||
docs/bin | ||
docs/build | ||
docs/include | ||
docs/Lib | ||
doc/pyvenv.cfg | ||
pyvenv.cfg | ||
|
||
# PyBuilder | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# pyenv and pip | ||
.python-version | ||
pyvenv.cfg | ||
bin/ | ||
|
||
# Environments | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
|
||
|
||
# mypy | ||
.mypy_cache/ | ||
|
||
|
||
# Database | ||
*.sqlite3* | ||
|
||
# Staticfiles | ||
staticfiles/ | ||
|
||
# virtualenv | ||
bin | ||
include | ||
lib64 | ||
share | ||
Pipfile | ||
|
||
# editors | ||
.vscode | ||
# PyCharm | ||
.idea/ | ||
|
||
# pytest | ||
.pytest_cache | ||
|
||
|
||
# Various junk and temp files | ||
.DS_Store | ||
*~ | ||
.*.sw[po] | ||
.build | ||
.ve | ||
*.bak | ||
/.cache/ | ||
/tmp/ | ||
|
||
# pyenv | ||
/.python-version | ||
/man/ | ||
/.pytest_cache/ | ||
lib64 | ||
tcl | ||
|
||
# Ignore Jupyter Notebook related temp files | ||
.ipynb_checkpoints/ |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# | ||
# Copyright (c) nexB Inc. and others. All rights reserved. | ||
# FederatedCode is a trademark of nexB Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# See http://www.apache.org/licenses/LICENSE-2.0 for the license text. | ||
# See https://github.com/nexB/federatedcode for support or download. | ||
# See https://aboutcode.org for more information about AboutCode.org OSS projects. | ||
# | ||
|
||
import zoneinfo | ||
|
||
from django.utils import timezone | ||
|
||
|
||
class TimezoneMiddleware: | ||
def __init__(self, get_response): | ||
self.get_response = get_response | ||
|
||
def __call__(self, request): | ||
try: | ||
# Activate local timezone for user using cookies | ||
tzname = request.COOKIES.get("user_timezone") | ||
if tzname: | ||
timezone.activate(zoneinfo.ZoneInfo(tzname)) | ||
else: | ||
timezone.deactivate() | ||
except Exception as e: | ||
timezone.deactivate() | ||
|
||
return self.get_response(request) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Generated by Django 5.1.2 on 2024-12-27 17:48 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("fedcode", "0004_alter_vulnerability_unique_together"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="person", | ||
name="avatar", | ||
), | ||
] |
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %} | ||
Permission Denied | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<section class="hero is-large is-link"> | ||
<div class="hero-body"> | ||
<div class="container has-text-centered"> | ||
<h1 class="title is-1 pb-2"> | ||
Permission Denied | ||
</h1> | ||
<p class="subtitle is-4"> | ||
You do not have permission to access this page. | ||
</p> | ||
<a href="{% url 'purl-list' %}" class="button is-dark">Explore available packages</a> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %} | ||
Page Not Found | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<section class="hero is-large is-link"> | ||
<div class="hero-body"> | ||
<div class="container has-text-centered"> | ||
<h1 class="title is-1 pb-2"> | ||
404 - Page Not Found | ||
</h1> | ||
<p class="subtitle is-4"> | ||
Sorry, the page you're looking for does not exist. | ||
</p> | ||
<a href="{% url 'purl-list' %}" class="button is-dark">Explore available packages</a> | ||
</div> | ||
</div> | ||
</section> | ||
{% endblock %} |
Oops, something went wrong.