Skip to content

Commit

Permalink
cleanup pwa experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
open-risk committed Jun 17, 2024
1 parent d2e2a31 commit 4664195
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 216 deletions.
48 changes: 1 addition & 47 deletions equinox/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
'markdownfield',
'leaflet',
'django_countries',
'pwa',
'start',
'reference',
'portfolio',
Expand Down Expand Up @@ -363,49 +362,4 @@
"danger": "btn-outline-danger",
"success": "btn-outline-success"
}
}

PWA_APP_NAME = "Equinox PWA App"
PWA_APP_DESCRIPTION = "Equinox PWA Apps"
PWA_APP_THEME_COLOR = "#007bff"
PWA_APP_BACKGROUND_COLOR = "#ffffff"
PWA_APP_DISPLAY = 'standalone'
PWA_APP_SCOPE = '/'
PWA_APP_ORIENTATION = 'any'
PWA_APP_START_URL = '/'
PWA_APP_STATUS_BAR_COLOR = 'default'
PWA_APP_ICONS = [
{
'src': '/static/images/icon.png',
'sizes': '160x160'
}
]
PWA_APP_ICONS_APPLE = [
{
'src': '/static/images/apple-icon.png',
'sizes': '160x160'
}
]
# PWA_SERVICE_WORKER_PATH = os.path.join(BASE_DIR, 'static/start/js', 'serviceworker.js')
PWA_APP_SPLASH_SCREEN = [
{
'src': '/static/images/icons/splash-640x1136.png',
'media': '(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2)'
}
]
PWA_APP_DIR = 'ltr'
PWA_APP_LANG = 'en-US'
PWA_APP_SHORTCUTS = [
{
'name': 'Shortcut',
'url': '/target',
'description': 'Shortcut to a page in my application'
}
]
PWA_APP_SCREENSHOTS = [
{
'src': '/static/images/icons/splash-750x1334.png',
'sizes': '750x1334',
"type": "image/png"
}
]
}
4 changes: 1 addition & 3 deletions equinox/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
from drf_yasg import openapi
from drf_yasg.views import get_schema_view
from rest_framework import permissions
from pwa import views as pwa_views
from django.views.decorators.cache import cache_page


from . import views, settings

Expand All @@ -48,7 +47,6 @@

urlpatterns = [
path('', include('start.urls')), # Equinox Start Page URLS
path('offline/', cache_page(settings.PWA_APP_NAME)(pwa_views.offline)),
path('reporting/', include('reporting.urls')), # Results Explorer URLS
path('policy/', include('policy.urls')), # Results Explorer URLS
path('reference/', include('reference.urls')), # Results Explorer URLS
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ django-treebeard~=4.7.1
django-import-export
django-prettyjson
django-countries
django-pwa
django-extensions
django-htmx
django-debug-toolbar~=4.3.0
Expand Down
38 changes: 28 additions & 10 deletions start/templates/start/front.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,13 @@ <h4>{% trans "About" %}</h4>
<div class="card-body">
<p>Equinox is an open source platform focused on the challenge of Sustainable Portfolio Management</p>

<p>Sustainability (both environmental and social) is a major issue that affects all economies. Developing tools and methodologies that improve the ability of all stakeholders to assess and report risks is an important objective and Equinox aims to help carry out this process as optimally as possible.</p>
<p>Sustainability (both environmental and social) is a major issue that affects all economies. Developing
tools and methodologies that improve the ability of all stakeholders to assess and report risks is an
important objective and Equinox aims to help carry out this process as optimally as possible.</p>

<p>Equinox is a both <i>a database and a web application</i> that works together with a tailored
<i>data schema</i> to provide easy access to sustainability data adhering to both regulatory requirements, protocols and recommendations and financial industry initiatives.
<i>data schema</i> to provide easy access to sustainability data adhering to both regulatory
requirements, protocols and recommendations and financial industry initiatives.
</p>
</div>
</div>
Expand All @@ -49,16 +52,26 @@ <h4>How does it work?</h4>
</div>
<div class="card-body">
<p>Running the application creates a
<i>server</i> that can then be accessed via any regular web browser. NB: For easy installation and testing the current release uses a self-contained sqlite database instead of a production database server
<i>server</i> that can then be accessed via any regular web browser. NB: For easy installation and
testing the current release uses a self-contained sqlite database instead of a production database
server
</p>

<p>The initial functionality of Equinox focuses on integrating the following concepts</p>

<ul>
<li>Implementing the GHG Protocol for accounting for CO2 emissions via inventories, activities and emission factors</li>
<li>The PCAF accounting and reporting framework (currently for Project Finance and Mortgage Finance GHG emissions)</li>
<li>Support for Green Public Procurement through the integration of TED data models and associated ontologies</li>
<li>Holistic risk management with the integration of the European Banking Authority's Criteria (currently Credit Risk Assessment of Project Finance under the Standardized approach for Specialized Lending)
<li>Implementing the GHG Protocol for accounting for CO2 emissions via inventories, activities and
emission factors
</li>
<li>The PCAF accounting and reporting framework (currently for Project Finance and Mortgage Finance GHG
emissions)
</li>
<li>Support for Green Public Procurement through the integration of TED data models and associated
ontologies
</li>
<li>Holistic risk management with the integration of the European Banking Authority's Criteria
(currently Credit Risk Assessment of Project Finance under the Standardized approach for Specialized
Lending)
</li>
<li>Support for monitoring the Equator Principles for Project Finance</li>
</ul>
Expand Down Expand Up @@ -87,10 +100,14 @@ <h4>User Functionality</h4>
<div class="card-body">
<ul>
<li>A user can log in into the application with their credentials</li>
<li>Inspect available data sets (tables or relations) that capture the EBA / EP / PCAF / GHG Protocol Data requirements, including a variety of relevant reference data available as Open Data</li>
<li>Inspect available data sets (tables or relations) that capture the EBA / EP / PCAF / GHG Protocol
Data requirements, including a variety of relevant reference data available as Open Data
</li>
<li>Insert, Update or Delete records (e.g. new Project Data)</li>
<li>Consult the documentation as to the meaning and requirements of each data element</li>
<li>Create Reports about both current Portfolio Status versus environmental impact and assessing the Impact of activities (e.g., investment policies) planned for the future</li>
<li>Create Reports about both current Portfolio Status versus environmental impact and assessing the
Impact of activities (e.g., investment policies) planned for the future
</li>
</ul>
</div>

Expand Down Expand Up @@ -125,7 +142,8 @@ <h3>Developer Functionality</h3>
<h3>Join the Equinox community</h3>
</div>
<div class="card-body">
<p>The project aims to be driven by community needs. We welcome issues, code contributions and feature requests via
<p>The project aims to be driven by community needs. We welcome issues, code contributions and feature
requests via
<a href="https://github.com/open-risk/equinox">github</a>.
</p>
</div>
Expand Down
4 changes: 0 additions & 4 deletions templates/admin/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
{% get_current_language_bidi as LANGUAGE_BIDI %}
{% get_jazzmin_settings request as jazzmin_settings %}
{% get_jazzmin_ui_tweaks as jazzmin_ui %}
{% load pwa %}

<!DOCTYPE html>
<html lang="{{ LANGUAGE_CODE|default:"en-us" }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
Expand Down Expand Up @@ -42,9 +41,6 @@
<link rel="shortcut icon" href="{% static jazzmin_settings.site_icon %}" type="image/png">
<link rel="icon" href="{% static jazzmin_settings.site_icon %}" sizes="32x32" type="image/png">

<!-- PWA -->
{% progressive_web_app_meta %}

{% block extrastyle %} {% endblock %}
{% block extrahead %} {% endblock %}
</head>
Expand Down
18 changes: 0 additions & 18 deletions templates/manifest.json

This file was deleted.

11 changes: 0 additions & 11 deletions templates/offline.html

This file was deleted.

59 changes: 0 additions & 59 deletions templates/pwa.html

This file was deleted.

63 changes: 0 additions & 63 deletions templates/serviceworker.js

This file was deleted.

0 comments on commit 4664195

Please sign in to comment.