]> git.ipfire.org Git - ipfire.org.git/blobdiff - Makefile.am
analytics: Add page about docs analytics
[ipfire.org.git] / Makefile.am
index 3d6ade42014c08dd8919e672525fab9e75f909d0..2df8b3a0598b31e9f5785a77d0df39ef419624a0 100644 (file)
@@ -49,16 +49,21 @@ CLEANFILES += \
 backend_PYTHON = \
        src/backend/__init__.py \
        src/backend/accounts.py \
+       src/backend/analytics.py \
+       src/backend/asterisk.py \
        src/backend/base.py \
        src/backend/blog.py \
+       src/backend/bugzilla.py \
+       src/backend/cache.py \
        src/backend/campaigns.py \
        src/backend/countries.py \
        src/backend/database.py \
        src/backend/decorators.py \
        src/backend/fireinfo.py \
+       src/backend/httpclient.py \
        src/backend/hwdata.py \
        src/backend/iuse.py \
-       src/backend/memcached.py \
+       src/backend/lists.py \
        src/backend/messages.py \
        src/backend/mirrors.py \
        src/backend/misc.py \
@@ -68,8 +73,7 @@ backend_PYTHON = \
        src/backend/releases.py \
        src/backend/resolver.py \
        src/backend/settings.py \
-       src/backend/talk.py \
-       src/backend/tweets.py \
+       src/backend/toots.py \
        src/backend/util.py \
        src/backend/wiki.py \
        src/backend/zeiterfassung.py
@@ -80,6 +84,7 @@ backenddir = $(pythondir)/ipfire
 
 web_PYTHON = \
        src/web/__init__.py \
+       src/web/analytics.py \
        src/web/auth.py \
        src/web/base.py \
        src/web/blog.py \
@@ -90,12 +95,12 @@ web_PYTHON = \
        src/web/fireinfo.py \
        src/web/handlers.py \
        src/web/iuse.py \
+       src/web/lists.py \
        src/web/location.py \
        src/web/nopaste.py \
-       src/web/people.py \
        src/web/ui_modules.py \
        src/web/users.py \
-       src/web/wiki.py
+       src/web/voip.py
 
 webdir = $(backenddir)/web
 
@@ -110,45 +115,57 @@ templates_DATA = \
 
 templatesdir = $(datadir)/templates
 
+templates_analytics_DATA = \
+       src/templates/analytics/docs.html \
+       src/templates/analytics/index.html
+
+templates_analyticsdir = $(templatesdir)/analytics
+
+templates_analytics_modules_DATA = \
+       src/templates/analytics/modules/summary.html
+
+templates_analytics_modulesdir = $(templates_analyticsdir)/modules
+
 templates_auth_DATA = \
        src/templates/auth/activate.html \
        src/templates/auth/activated.html \
+       src/templates/auth/join.html \
+       src/templates/auth/join-success.html \
        src/templates/auth/login.html \
        src/templates/auth/password-reset.html \
        src/templates/auth/password-reset-initiation.html \
-       src/templates/auth/password-reset-successful.html \
-       src/templates/auth/register.html \
-       src/templates/auth/register-spam.html \
-       src/templates/auth/register-success.html
+       src/templates/auth/password-reset-successful.html
 
 templates_authdir = $(templatesdir)/auth
 
 templates_auth_messages_DATA = \
        src/templates/auth/messages/donation-reminder.html \
        src/templates/auth/messages/donation-reminder.txt \
+       src/templates/auth/messages/join.html \
+       src/templates/auth/messages/join.txt \
        src/templates/auth/messages/password-reset.html \
        src/templates/auth/messages/password-reset.txt \
        src/templates/auth/messages/profile-setup.html \
        src/templates/auth/messages/profile-setup.txt \
        src/templates/auth/messages/profile-setup-2.html \
-       src/templates/auth/messages/profile-setup-2.txt \
-       src/templates/auth/messages/register.html \
-       src/templates/auth/messages/register.txt
+       src/templates/auth/messages/profile-setup-2.txt
 
 templates_auth_messagesdir = $(templates_authdir)/messages
 
+templates_auth_modules_DATA = \
+       src/templates/auth/modules/password.html \
+       src/templates/auth/modules/password.js
+
+templates_auth_modulesdir = $(templates_authdir)/modules
+
 templates_blog_DATA = \
-       src/templates/blog/author.html \
-       src/templates/blog/base.html \
-       src/templates/blog/compose.html \
        src/templates/blog/delete.html \
        src/templates/blog/drafts.html \
        src/templates/blog/feed.xml \
        src/templates/blog/index.html \
        src/templates/blog/post.html \
        src/templates/blog/publish.html \
-       src/templates/blog/search-results.html \
-       src/templates/blog/tag.html \
+       src/templates/blog/write.html \
        src/templates/blog/year.html
 
 templates_blogdir = $(templatesdir)/blog
@@ -161,8 +178,7 @@ templates_blog_messagesdir = $(templates_blogdir)/messages
 
 templates_blog_modules_DATA = \
        src/templates/blog/modules/history-navigation.html \
-       src/templates/blog/modules/list.html \
-       src/templates/blog/modules/post.html
+       src/templates/blog/modules/list.html
 
 templates_blog_modulesdir = $(templates_blogdir)/modules
 
@@ -190,17 +206,36 @@ templates_donate_messages_DATA = \
 templates_donate_messagesdir = $(templates_donatedir)/messages
 
 templates_docs_DATA = \
+       src/templates/docs/404.html \
        src/templates/docs/base.html \
-       src/templates/docs/page.html
+       src/templates/docs/confirm-delete.html \
+       src/templates/docs/confirm-restore.html \
+       src/templates/docs/diff.html \
+       src/templates/docs/edit.html \
+       src/templates/docs/page.html \
+       src/templates/docs/recent-changes.html \
+       src/templates/docs/revisions.html \
+       src/templates/docs/search-results.html \
+       src/templates/docs/tree.html \
+       src/templates/docs/watchlist.html
 
 templates_docsdir = $(templatesdir)/docs
 
+templates_docs_files_DATA = \
+       src/templates/docs/files/detail.html \
+       src/templates/docs/files/index.html
+
+templates_docs_filesdir = $(templates_docsdir)/files
+
 templates_docs_modules_DATA = \
-       src/templates/docs/modules/header.html
+       src/templates/docs/modules/diff.html \
+       src/templates/docs/modules/header.html \
+       src/templates/docs/modules/list.html
 
 templates_docs_modulesdir = $(templates_docsdir)/modules
 
 templates_downloads_DATA = \
+       src/templates/downloads/cloud.html \
        src/templates/downloads/mirrors.html \
        src/templates/downloads/release.html \
        src/templates/downloads/thank-you.html
@@ -228,7 +263,6 @@ templates_fireinfo_modulesdir = $(templates_fireinfodir)/modules
 
 templates_location_DATA = \
        src/templates/location/base.html \
-       src/templates/location/blacklists.html \
        src/templates/location/download.html \
        src/templates/location/how-to-use.html \
        src/templates/location/index.html \
@@ -236,15 +270,21 @@ templates_location_DATA = \
 
 templates_locationdir = $(templatesdir)/location
 
+templates_lists_DATA = \
+       src/templates/lists/index.html
+
+templates_listsdir = $(templatesdir)/lists
+
 templates_messages_DATA = \
        src/templates/messages/base.html \
        src/templates/messages/base-promo.html \
+       src/templates/messages/fonts.css \
        src/templates/messages/main.css
 
 templates_messagesdir = $(templatesdir)/messages
 
 templates_modules_DATA = \
-       src/templates/modules/christmas-banner.html \
+       src/templates/modules/ipfire-logo.html \
        src/templates/modules/map.html \
        src/templates/modules/progress-bar.html
 
@@ -270,46 +310,30 @@ templates_nopaste_modules_DATA = \
 
 templates_nopaste_modulesdir = $(templates_nopastedir)/modules
 
-templates_people_DATA = \
-       src/templates/people/conferences.html \
-       src/templates/people/call.html \
-       src/templates/people/calls.html \
-       src/templates/people/index.html \
-       src/templates/people/sip.html \
-       src/templates/people/subscribed.html \
-       src/templates/people/unsubscribe.html \
-       src/templates/people/unsubscribed.html
-
-templates_peopledir = $(templatesdir)/people
-
 templates_people_messages_DATA = \
        src/templates/people/messages/new-account.txt
 
 templates_people_messagesdir = $(templates_peopledir)/messages
 
-templates_people_modules_DATA = \
-       src/templates/people/modules/agent.html \
-       src/templates/people/modules/cdr.html \
-       src/templates/people/modules/channels.html \
-       src/templates/people/modules/mos.html \
-       src/templates/people/modules/password.html \
-       src/templates/people/modules/password.js \
-       src/templates/people/modules/registrations.html
-
-templates_people_modulesdir = $(templates_peopledir)/modules
-
 templates_static_DATA = \
        src/templates/static/about.html \
        src/templates/static/legal.html \
-       src/templates/static/help.html
+       src/templates/static/help.html \
+       src/templates/static/sitemap.html
 
 templates_staticdir = $(templatesdir)/static
 
 templates_users_DATA = \
+       src/templates/users/delete.html \
+       src/templates/users/deleted.html \
        src/templates/users/edit.html \
        src/templates/users/index.html \
        src/templates/users/passwd.html \
-       src/templates/users/show.html
+       src/templates/users/show.html \
+       src/templates/users/subscribe.html \
+       src/templates/users/subscribed.html \
+       src/templates/users/unsubscribe.html \
+       src/templates/users/unsubscribed.html
 
 templates_usersdir = $(templatesdir)/users
 
@@ -324,37 +348,26 @@ templates_users_modules_DATA = \
 
 templates_users_modulesdir = $(templates_usersdir)/modules
 
-templates_wiki_DATA = \
-       src/templates/wiki/404.html \
-       src/templates/wiki/confirm-delete.html \
-       src/templates/wiki/confirm-restore.html \
-       src/templates/wiki/diff.html \
-       src/templates/wiki/edit.html \
-       src/templates/wiki/recent-changes.html \
-       src/templates/wiki/revisions.html \
-       src/templates/wiki/search-results.html \
-       src/templates/wiki/tree.html \
-       src/templates/wiki/watchlist.html
+templates_voip_DATA = \
+       src/templates/voip/index.html
 
-templates_wikidir = $(templatesdir)/wiki
+templates_voipdir = $(templatesdir)/voip
 
-templates_wiki_files_DATA = \
-       src/templates/wiki/files/detail.html \
-       src/templates/wiki/files/index.html
+templates_voip_modules_DATA = \
+       src/templates/voip/modules/conferences.html \
+       src/templates/voip/modules/outbound-registrations.html \
+       src/templates/voip/modules/queues.html \
+       src/templates/voip/modules/registrations.html
 
-templates_wiki_filesdir = $(templates_wikidir)/files
+templates_voip_modulesdir = $(templates_voipdir)/modules
+
+templates_wikidir = $(templatesdir)/wiki
 
 templates_wiki_messages_DATA = \
        src/templates/wiki/messages/page-changed.txt
 
 templates_wiki_messagesdir = $(templates_wikidir)/messages
 
-templates_wiki_modules_DATA = \
-       src/templates/wiki/modules/diff.html \
-       src/templates/wiki/modules/list.html
-
-templates_wiki_modulesdir = $(templates_wikidir)/modules
-
 # ------------------------------------------------------------------------------
 
 SASS_FILES = \
@@ -365,9 +378,11 @@ SASS_FILES = \
 
 EXTRA_DIST += \
        src/sass/listing.sass \
+       src/templates/messages/fonts.sass \
        src/templates/messages/main.sass
 
 CLEANFILES += \
+       src/templates/messages/fonts.css \
        src/templates/messages/main.css
 
 static_DATA = \
@@ -970,6 +985,28 @@ static_img_DATA = \
 
 static_imgdir = $(staticdir)/img
 
+# From https://www.pexels.com/photo/123-let-s-go-imaginary-text-704767/
+
+dist_static_img_auth_DATA = \
+       src/static/img/auth/join.jpg
+
+static_img_auth_DATA = \
+       src/static/img/auth/join@600.jpg
+
+CLEANFILES += \
+       src/static/img/auth/join@600.jpg
+
+static_img_authdir = $(static_imgdir)/auth
+
+static_img_downloadsdir = $(static_imgdir)/downloads
+
+dist_static_img_downloads_cloud_DATA = \
+       src/static/img/downloads/cloud/aws.svg \
+       src/static/img/downloads/cloud/exoscale.svg \
+       src/static/img/downloads/cloud/hetzner.svg
+
+static_img_downloads_clouddir = $(static_img_downloadsdir)/cloud
+
 static_images_tux_DATA = \
        src/static/img/tux/ipfire_tux_16x16.png \
        src/static/img/tux/ipfire_tux_20x20.png \
@@ -1093,6 +1130,11 @@ src/static/img/apple-touch-icon-%-precomposed.png: src/static/img/ipfire-tux.png
                -extent $(patsubst src/static/img/apple-touch-icon-%-precomposed.png,%,$@)x$(patsubst src/static/img/apple-touch-icon-%-precomposed.png,%,$@) \
                $< $@
 
+# Resizes images for being used in messages which are 600px wide
+%@600.jpg: %.jpg
+       $(AM_V_GEN)$(MKDIR_P) $(dir $@) && \
+       $(CONVERT) -units PixelsPerInch $< -resize 600x -strip -quality 85 $@
+
 # Video Stuff
 
 FFMPEG += \
@@ -1106,8 +1148,8 @@ src/static/videos/firewall@%.av1.mp4: src/static/videos/firewall.mp4
                -map_metadata -1 \
                -an \
                -c:v libsvtav1 \
-               -crf 30 \
-               -preset veryslow \
+               -crf 31 \
+               -preset 5 \
                -pix_fmt yuv420p \
                -movflags +faststart \
                -vf scale=$(patsubst src/static/videos/firewall@%.av1.mp4,%,$@):-2,fps=25 \
@@ -1121,7 +1163,7 @@ src/static/videos/firewall@%.hevc.mp4: src/static/videos/firewall.mp4
                -map_metadata -1 \
                -an \
                -c:v libx265 \
-               -crf 22 \
+               -crf 25 \
                -preset veryslow \
                -pix_fmt yuv420p \
                -movflags +faststart \
@@ -1137,7 +1179,7 @@ src/static/videos/firewall@%.h264.mp4: src/static/videos/firewall.mp4
                -map_metadata -1 \
                -an \
                -c:v libx264 \
-               -crf 24 \
+               -crf 27 \
                -preset veryslow \
                -profile:v main \
                -pix_fmt yuv420p \