Skip to content

Commit 506f1ff

Browse files
Remove: code that is no longer necessary
1 parent caebb9a commit 506f1ff

File tree

15 files changed

+172
-185
lines changed

15 files changed

+172
-185
lines changed

.github/workflows/build_and_deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,18 @@ jobs:
117117
sudo mkdir -p \$APP_DIR
118118
sudo chown \$USER:\$USER \$APP_DIR
119119
git clone -b master https://github.com/hotosm/umap.git \$APP_DIR
120-
echo "Cloned repository"
120+
echo "Cloned repository"
121121
fi
122122
cd \$APP_DIR
123123
# Pull latest changes
124124
git fetch origin master
125125
git reset --hard origin/master
126-
echo "Updated to latest master"
126+
echo "Updated to latest master"
127127
# Pull and deploy
128128
docker compose -f compose.yml pull
129129
docker compose -f compose.yml up -d --force-recreate
130130
# Cleanup
131131
docker image prune -af
132-
echo "Deployment complete"
132+
echo "Deployment complete"
133133
ENDSSH
134134

.github/workflows/build_and_deploy_dev.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,19 +116,19 @@ jobs:
116116
sudo mkdir -p \$APP_DIR
117117
sudo chown \$USER:\$USER \$APP_DIR
118118
git clone -b develop https://github.com/hotosm/umap.git \$APP_DIR
119-
echo "Cloned repository"
119+
echo "Cloned repository"
120120
fi
121121
cd \$APP_DIR
122122
# Pull latest changes
123123
git fetch origin develop
124124
git reset --hard origin/develop
125-
echo "Updated to latest develop"
125+
echo "Updated to latest develop"
126126
# Pull and deploy
127127
sed -i -e 's/umap.hotosm.org/umap-dev.hotosm.org/g' nginx/conf.d/umap.conf
128128
docker compose -f compose.dev.yml pull
129129
docker compose -f compose.dev.yml up -d --force-recreate
130130
# Cleanup
131131
docker image prune -af
132-
echo "Deployment complete"
132+
echo "Deployment complete"
133133
ENDSSH
134134

.github/workflows/issue-label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# We add a label `repo:repo-name` to each new issue,
22
# for easier tracking in external systems
33

4-
name: 🏷️ Issue Label
4+
name: Issue Label
55

66
on:
77
issues:

app/custom/static/umap/js/hanko-auth.esm.js

Lines changed: 101 additions & 101 deletions
Large diffs are not rendered by default.

app/custom/templates/umap/content.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
{% if MAINTENANCE_MODE %}
2323
<div class="wrapper hot-maintenance-banner">
2424
<div>
25-
<p>🚧 We are currently working on this site and you may experience some issues. Thank you for your patience.</p>
25+
<p>We are currently working on this site and you may experience some issues. Thank you for your patience.</p>
2626
</div>
2727
</div>
2828
{% endif %}

app/custom/templates/umap/hanko_auth.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
// Configure Hanko URL
1010
window.HANKO_URL = 'https://login.hotosm.test'
11-
console.log('🔐 Hanko Auth Web Component loaded from:', window.HANKO_URL)
11+
console.log('Hanko Auth Web Component loaded from:', window.HANKO_URL)
1212
</script>
1313

1414
<!-- Container for the auth component -->

app/custom/templates/umap/header.html

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,27 @@
1515

1616
<!-- Matomo -->
1717
<script>
18-
var _paq = (window._paq = window._paq || []);
19-
_paq.push(["disableCookies"]);
20-
_paq.push(["trackPageView"]);
21-
_paq.push(["enableLinkTracking"]);
22-
(function () {
23-
var u = "//matomo.hotosm.org/";
24-
_paq.push(["setTrackerUrl", u + "matomo.php"]);
25-
_paq.push(["setSiteId", "34"]);
26-
var d = document,
27-
g = d.createElement("script"),
28-
s = d.getElementsByTagName("script")[0];
29-
g.async = true;
30-
g.src = u + "matomo.js";
31-
s.parentNode.insertBefore(g, s);
32-
})();
18+
var _paq = window._paq = window._paq || [];
19+
_paq.push(['disableCookies']);
20+
_paq.push(['trackPageView']);
21+
_paq.push(['enableLinkTracking']);
22+
(function () {
23+
var u = "//matomo.hotosm.org/";
24+
_paq.push(['setTrackerUrl', u + 'matomo.php']);
25+
_paq.push(['setSiteId', '34']);
26+
var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0];
27+
g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s);
28+
})();
3329

34-
window.onload = function () {
30+
window.onload = function() {
3531
/* Track download button clicks */
3632
if (U && "MAP" in U && "share" in U.MAP && "download") {
3733
const uMapShareDownload = U.MAP.share.download;
38-
U.MAP.share.download = function (...args) {
39-
_paq.push([
40-
"trackEvent",
41-
"Download",
42-
"Click",
43-
document.title.slice(0, 100),
44-
1,
45-
]);
46-
return uMapShareDownload.apply(this, args);
47-
};
34+
U.MAP.share.download = function(...args) {
35+
_paq.push(['trackEvent', 'Download', 'Click', document.title.slice(0,100), 1]);
36+
return uMapShareDownload.apply(this, args);
37+
}
4838
}
49-
};
39+
}
5040
</script>
5141
<!-- End Matomo Code -->

app/custom/templates/umap/navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
</section>
88

99
<section>
10-
<button class="nav-hamburger" aria-label="Menu" onclick="this.closest('nav').querySelector('.nav-links').classList.toggle('open'); this.textContent = this.textContent.trim() === '' ? '' : '✕'">&#9776;</button>
10+
<button class="nav-hamburger" aria-label="Menu" onclick="this.closest('nav').querySelector('.nav-links').classList.toggle('open'); this.setAttribute('aria-expanded', this.getAttribute('aria-expanded') !== 'true'); this.textContent = this.getAttribute('aria-expanded') === 'true' ? 'X' : 'Menu'" aria-expanded="false">Menu</button>
1111
<ul class="nav-links">
1212
{% if AUTH_PROVIDER != 'hanko' %}
1313
{% if user.is_authenticated %}<li><a href="{% url 'user_dashboard' %}">{% trans "My Dashboard" %} ({{ user }})</a></li><li><a href="{{ user.get_stars_url }}">{% trans "Starred maps" %}</a></li>{% else %}<li><a href="{% url 'login' %}" class="login">{% trans "Log in" %} / {% trans "Sign in" %}</a></li>{% endif %}

app/hotumap/admin_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Admin views for user mapping management.
33
4-
Compatible with fAIr's admin mapping endpoints.
4+
Compatible with uMap's admin mapping endpoints.
55
Uses basic Django views without REST Framework.
66
"""
77

app/hotumap/auth_urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
Authentication module for uMap.
33
4-
Provides OSM OAuth login endpoints compatible with fAIr.
4+
Provides OSM OAuth login endpoints compatible with uMap.
55
"""
66

77
from django.urls import path

0 commit comments

Comments
 (0)