-
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #5 from Xpirix/frontend_update
Frontend update
- Loading branch information
Showing
2,279 changed files
with
51,215 additions
and
11,791 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
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 |
---|---|---|
|
@@ -33,6 +33,15 @@ ADD dockerize/docker/REQUIREMENTS.txt /REQUIREMENTS.txt | |
|
||
RUN pip install --upgrade pip && pip install -r /REQUIREMENTS.txt | ||
|
||
# Install NodeJS and bulma css webpack | ||
RUN apt-get -qq update && apt-get -qq install -y --no-install-recommends wget && \ | ||
wget --no-check-certificate https://deb.nodesource.com/setup_20.x -O /tmp/node.sh && bash /tmp/node.sh && \ | ||
apt-get -qq update && apt-get -qq install -y nodejs build-essential | ||
|
||
WORKDIR /home/web/django_project | ||
COPY qgis-app/package.json /home/web/django_project/package.json | ||
RUN npm install -g [email protected] && npm install -g [email protected] && npm install -g [email protected] && npm install | ||
|
||
RUN mkdir -p /var/log/uwsgi | ||
|
||
WORKDIR /home/web/django_project | ||
|
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
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
Binary file not shown.
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,33 @@ | ||
from django.contrib.flatpages.models import FlatPage | ||
from django.shortcuts import render | ||
from django.utils.translation import gettext_lazy as _ | ||
from styles.models import Style | ||
from geopackages.models import Geopackage | ||
from layerdefinitions.models import LayerDefinition | ||
from wavefronts.models import Wavefront | ||
from models.models import Model | ||
|
||
|
||
|
||
def homepage(request): | ||
""" | ||
Renders the home page | ||
""" | ||
latest_styles = Style.objects.filter(approved=True).order_by("-upload_date")[:3] | ||
latest_geopackages = Geopackage.objects.filter(approved=True).order_by("-upload_date")[:3] | ||
latest_layerdefinitions = LayerDefinition.objects.filter(approved=True).order_by("-upload_date")[:3] | ||
latest_wavefronts = Wavefront.objects.filter(approved=True).order_by("-upload_date")[:3] | ||
latest_models = Model.objects.filter(approved=True).order_by("-upload_date")[:3] | ||
|
||
return render( | ||
request, | ||
"flatpages/homepage.html", | ||
{ | ||
"latest_styles": latest_styles, | ||
"latest_geopackages": latest_geopackages, | ||
"latest_layerdefinitions": latest_layerdefinitions, | ||
"latest_wavefronts": latest_wavefronts, | ||
"latest_models": latest_models, | ||
"title": "QGIS resources hub web portal" | ||
}, | ||
) |
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
Oops, something went wrong.