geo-activity-playground 0.31.0__py3-none-any.whl → 0.34.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- geo_activity_playground/__main__.py +1 -1
- geo_activity_playground/core/activities.py +1 -1
- geo_activity_playground/core/config.py +5 -1
- geo_activity_playground/core/heatmap.py +61 -15
- geo_activity_playground/core/tiles.py +8 -5
- geo_activity_playground/explorer/video.py +2 -1
- geo_activity_playground/importers/directory.py +6 -2
- geo_activity_playground/importers/strava_checkout.py +8 -2
- geo_activity_playground/webui/activity/blueprint.py +7 -0
- geo_activity_playground/webui/activity/controller.py +127 -43
- geo_activity_playground/webui/activity/templates/activity/day.html.j2 +6 -2
- geo_activity_playground/webui/activity/templates/activity/lines.html.j2 +1 -1
- geo_activity_playground/webui/activity/templates/activity/name.html.j2 +3 -2
- geo_activity_playground/webui/activity/templates/activity/show.html.j2 +2 -2
- geo_activity_playground/webui/app.py +15 -3
- geo_activity_playground/webui/entry_controller.py +1 -1
- geo_activity_playground/webui/equipment/controller.py +1 -1
- geo_activity_playground/webui/explorer/templates/explorer/index.html.j2 +20 -44
- geo_activity_playground/webui/heatmap/blueprint.py +5 -2
- geo_activity_playground/webui/heatmap/heatmap_controller.py +14 -4
- geo_activity_playground/webui/heatmap/templates/heatmap/index.html.j2 +1 -1
- geo_activity_playground/webui/settings/blueprint.py +44 -33
- geo_activity_playground/webui/settings/templates/settings/color-schemes.html.j2 +11 -2
- geo_activity_playground/webui/settings/templates/settings/privacy-zones.html.j2 +1 -1
- geo_activity_playground/webui/square_planner/templates/square_planner/index.html.j2 +1 -1
- geo_activity_playground/webui/static/Leaflet.fullscreen.min.js +1 -0
- geo_activity_playground/webui/static/MarkerCluster.Default.css +60 -0
- geo_activity_playground/webui/static/MarkerCluster.css +14 -0
- geo_activity_playground/webui/static/bootstrap.min.css +6 -0
- geo_activity_playground/webui/static/fullscreen.png +0 -0
- geo_activity_playground/webui/static/fullscreen@2x.png +0 -0
- geo_activity_playground/webui/static/leaflet.css +661 -0
- geo_activity_playground/webui/static/leaflet.fullscreen.css +40 -0
- geo_activity_playground/webui/static/leaflet.js +6 -0
- geo_activity_playground/webui/static/leaflet.markercluster.js +3 -0
- geo_activity_playground/webui/static/table-sort.min.js +8 -0
- geo_activity_playground/webui/static/vega-embed@6 +7 -0
- geo_activity_playground/webui/static/vega-lite@4 +2 -0
- geo_activity_playground/webui/static/vega@5 +2 -0
- geo_activity_playground/webui/summary/controller.py +20 -25
- geo_activity_playground/webui/summary/templates/summary/index.html.j2 +18 -5
- geo_activity_playground/webui/templates/home.html.j2 +4 -3
- geo_activity_playground/webui/templates/page.html.j2 +14 -16
- geo_activity_playground/webui/tile/blueprint.py +3 -2
- geo_activity_playground/webui/tile/controller.py +7 -3
- geo_activity_playground/webui/{upload/controller.py → upload_blueprint.py} +41 -35
- {geo_activity_playground-0.31.0.dist-info → geo_activity_playground-0.34.1.dist-info}/METADATA +5 -6
- {geo_activity_playground-0.31.0.dist-info → geo_activity_playground-0.34.1.dist-info}/RECORD +53 -41
- geo_activity_playground/webui/upload/__init__.py +0 -0
- geo_activity_playground/webui/upload/blueprint.py +0 -44
- /geo_activity_playground/webui/{upload/templates → templates}/upload/index.html.j2 +0 -0
- /geo_activity_playground/webui/{upload/templates → templates}/upload/reload.html.j2 +0 -0
- {geo_activity_playground-0.31.0.dist-info → geo_activity_playground-0.34.1.dist-info}/LICENSE +0 -0
- {geo_activity_playground-0.31.0.dist-info → geo_activity_playground-0.34.1.dist-info}/WHEEL +0 -0
- {geo_activity_playground-0.31.0.dist-info → geo_activity_playground-0.34.1.dist-info}/entry_points.txt +0 -0
@@ -1,44 +0,0 @@
|
|
1
|
-
from flask import Blueprint
|
2
|
-
from flask import render_template
|
3
|
-
|
4
|
-
from ...core.activities import ActivityRepository
|
5
|
-
from ...explorer.tile_visits import TileVisitAccessor
|
6
|
-
from .controller import UploadController
|
7
|
-
from geo_activity_playground.core.config import Config
|
8
|
-
from geo_activity_playground.webui.authenticator import Authenticator
|
9
|
-
from geo_activity_playground.webui.authenticator import needs_authentication
|
10
|
-
|
11
|
-
|
12
|
-
def make_upload_blueprint(
|
13
|
-
repository: ActivityRepository,
|
14
|
-
tile_visit_accessor: TileVisitAccessor,
|
15
|
-
config: Config,
|
16
|
-
authenticator: Authenticator,
|
17
|
-
) -> Blueprint:
|
18
|
-
blueprint = Blueprint("upload", __name__, template_folder="templates")
|
19
|
-
|
20
|
-
upload_controller = UploadController(repository, tile_visit_accessor, config)
|
21
|
-
|
22
|
-
@blueprint.route("/")
|
23
|
-
@needs_authentication(authenticator)
|
24
|
-
def index():
|
25
|
-
return render_template(
|
26
|
-
"upload/index.html.j2", **upload_controller.render_form()
|
27
|
-
)
|
28
|
-
|
29
|
-
@blueprint.route("/receive", methods=["POST"])
|
30
|
-
@needs_authentication(authenticator)
|
31
|
-
def receive():
|
32
|
-
return upload_controller.receive()
|
33
|
-
|
34
|
-
@blueprint.route("/refresh")
|
35
|
-
@needs_authentication(authenticator)
|
36
|
-
def reload():
|
37
|
-
return render_template("upload/reload.html.j2")
|
38
|
-
|
39
|
-
@blueprint.route("/execute-reload")
|
40
|
-
@needs_authentication(authenticator)
|
41
|
-
def execute_reload():
|
42
|
-
return upload_controller.execute_reload()
|
43
|
-
|
44
|
-
return blueprint
|
File without changes
|
File without changes
|
{geo_activity_playground-0.31.0.dist-info → geo_activity_playground-0.34.1.dist-info}/LICENSE
RENAMED
File without changes
|
File without changes
|
File without changes
|