diff --git a/Procfile b/Procfile deleted file mode 100644 index a1f3d4b..0000000 --- a/Procfile +++ /dev/null @@ -1,2 +0,0 @@ -release: flask db upgrade -web: gunicorn project:app --workers=1 --log-file=- diff --git a/README.md b/README.md index af8b4c9..179c438 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Oveda - Open Event Database +# Open Event Database -![Tests](https://github.com/DanielGrams/gsevpt/workflows/Tests/badge.svg) [![codecov](https://codecov.io/gh/DanielGrams/gsevpt/branch/main/graph/badge.svg?token=66CLLWWV7Y)](https://codecov.io/gh/DanielGrams/gsevpt) [![Oveda](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/32g194/main&style=flat&logo=cypress)](https://dashboard.cypress.io/projects/32g194/runs) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) ![Docker Pulls](https://img.shields.io/docker/pulls/danielgrams/gsevpt) +![Tests](https://github.com/DanielGrams/gsevpt/workflows/Tests/badge.svg) [![codecov](https://codecov.io/gh/DanielGrams/gsevpt/branch/main/graph/badge.svg?token=66CLLWWV7Y)](https://codecov.io/gh/DanielGrams/gsevpt) [![Cypress](https://img.shields.io/endpoint?url=https://dashboard.cypress.io/badge/simple/32g194/main&style=flat&logo=cypress)](https://dashboard.cypress.io/projects/32g194/runs) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) ![Docker Pulls](https://img.shields.io/docker/pulls/danielgrams/gsevpt) Event website using Python, Flask and Postgres. diff --git a/app.json b/app.json deleted file mode 100644 index 412eaca..0000000 --- a/app.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "name": "Oveda - Open Event Database", - "description": "Event website using Python, Flask and Postgres.", - "image": "heroku/python", - "keywords": ["python"], - "repository": "https://github.com/DanielGrams/gsevpt", - "addons": ["heroku-postgresql"], - "env": { - "SECRET_TOKEN": { - "description": "A secret key for verifying the integrity of signed cookies.", - "generator": "secret" - }, - "SECURITY_PASSWORD_SALT": { - "description": "Bcrypt salt for encrypting passwords.", - "generator": "secret" - } - } -} diff --git a/cypress/integration/user.js b/cypress/integration/user.js index 92775f3..6b6304f 100644 --- a/cypress/integration/user.js +++ b/cypress/integration/user.js @@ -30,7 +30,7 @@ describe("User", () => { cy.get("#password").type("short"); cy.assertInvalid("password", "Geben Sie bitte mindestens 8 Zeichen ein."); - cy.get("#password").clear().type("iloveoveda"); + cy.get("#password").clear().type("ilovegsevpt"); cy.assertValid("password"); // Confirm password @@ -40,7 +40,7 @@ describe("User", () => { "Wiederholen Sie bitte denselben Wert." ); - cy.get("#password_confirm").clear().type("iloveoveda"); + cy.get("#password_confirm").clear().type("ilovegsevpt"); cy.assertValid("password_confirm"); // Submit diff --git a/deployment/docker-compose/.env.example b/deployment/docker-compose/.env.example index b6924ac..932af89 100644 --- a/deployment/docker-compose/.env.example +++ b/deployment/docker-compose/.env.example @@ -7,9 +7,9 @@ FLUENTD_LOG_PATH=./tmp/logs/fluentd FLUENTD_CUSTOM_CONFIG_PATH=./tmp/config FLUENTD_DOCKER_CONTAINERS_PATH=/var/lib/docker/containers -POSTGRES_USER=oveda +POSTGRES_USER=gsevpt POSTGRES_PASSWORD= -POSTGRES_DB=oveda +POSTGRES_DB=gsevpt REDIS_PASSWORD= WEB_TAG=latest diff --git a/deployment/docker-compose/docker-compose.yml b/deployment/docker-compose/docker-compose.yml index f2f54d0..fb991ed 100644 --- a/deployment/docker-compose/docker-compose.yml +++ b/deployment/docker-compose/docker-compose.yml @@ -1,5 +1,5 @@ version: "3.9" -name: "oveda" +name: "gsevpt" x-web-env: &default-web-env diff --git a/deployment/docker-compose/init.sh b/deployment/docker-compose/init.sh index 71a3ee4..d1450a9 100755 --- a/deployment/docker-compose/init.sh +++ b/deployment/docker-compose/init.sh @@ -3,6 +3,8 @@ source .env mkdir -p ${POSTGRES_DATA_PATH} mkdir -p ${POSTGRES_BACKUP_PATH} +mkdir -p ${REDIS_DATA_PATH} +chown -R 1001 ${REDIS_DATA_PATH} mkdir -p ${CACHE_PATH} mkdir -p ${STATIC_PATH} mkdir -p ${FLUENTD_LOG_PATH} diff --git a/deployment/docker-compose/nginx.config.example b/deployment/docker-compose/nginx.config.example index fe99696..26ba50f 100644 --- a/deployment/docker-compose/nginx.config.example +++ b/deployment/docker-compose/nginx.config.example @@ -1,5 +1,5 @@ location ^~ /image/ { - root "/var/www/vhosts/oveda.de/cache/img"; + root "/var/www/vhosts/gsevpt.de/cache/img"; expires 1h; location ~ ^/image/(?[0-9]+)/(?[0-9]+) { @@ -17,20 +17,20 @@ location ^~ /image/ { } } location ^~ /static/ { - alias "/var/www/vhosts/oveda.de/static/"; + alias "/var/www/vhosts/gsevpt.de/static/"; expires 1h; } location ^~ /dump/ { - alias "/var/www/vhosts/oveda.de/cache/dump/"; + alias "/var/www/vhosts/gsevpt.de/cache/dump/"; } location ^~ /sitemap.xml { - alias "/var/www/vhosts/oveda.de/cache/sitemap.xml"; + alias "/var/www/vhosts/gsevpt.de/cache/sitemap.xml"; } location ^~ /robots.txt { - alias "/var/www/vhosts/oveda.de/cache/robots.txt"; + alias "/var/www/vhosts/gsevpt.de/cache/robots.txt"; } location ^~ /favicon.ico { - alias "/var/www/vhosts/oveda.de/static/favicon.ico"; + alias "/var/www/vhosts/gsevpt.de/static/favicon.ico"; expires 12h; } location @docker { diff --git a/deployment/docker-compose/update.sh b/deployment/docker-compose/update.sh index 09075b4..f82685d 100755 --- a/deployment/docker-compose/update.sh +++ b/deployment/docker-compose/update.sh @@ -1,6 +1,6 @@ set -e docker compose pull web -docker compose stop web +docker compose stop web worker scheduler docker compose exec db-backup /backup.sh -docker compose up --detach --force-recreate web \ No newline at end of file +docker compose up --detach --force-recreate web worker scheduler \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index 20545f3..861f900 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,5 @@ version: "3.9" -name: "oveda-dev" +name: "gsevpt-dev" x-web-env: &default-web-env diff --git a/messages.pot b/messages.pot index ec0a5b0..daed23f 100644 --- a/messages.pot +++ b/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PROJECT VERSION\n" "Report-Msgid-Bugs-To: EMAIL@ADDRESS\n" -"POT-Creation-Date: 2023-01-12 22:37+0100\n" +"POT-Creation-Date: 2023-03-15 19:10+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -198,25 +198,25 @@ msgstr "" msgid "You have received an invitation" msgstr "" -#: project/forms/admin.py:10 project/templates/layout.html:315 -#: project/views/root.py:37 +#: project/forms/admin.py:10 project/templates/layout.html:317 +#: project/views/root.py:55 msgid "Terms of service" msgstr "" -#: project/forms/admin.py:11 project/templates/layout.html:319 -#: project/views/root.py:45 +#: project/forms/admin.py:11 project/templates/layout.html:321 +#: project/views/root.py:63 msgid "Legal notice" msgstr "" #: project/forms/admin.py:12 project/templates/_macros.html:1395 -#: project/templates/layout.html:323 +#: project/templates/layout.html:325 #: project/templates/widget/event_suggestion/create.html:204 -#: project/views/admin_unit.py:73 project/views/root.py:53 +#: project/views/admin_unit.py:73 project/views/root.py:71 msgid "Contact" msgstr "" -#: project/forms/admin.py:13 project/templates/layout.html:327 -#: project/views/root.py:61 +#: project/forms/admin.py:13 project/templates/layout.html:329 +#: project/views/root.py:79 msgid "Privacy" msgstr "" @@ -1067,7 +1067,7 @@ msgstr "" #: project/templates/_macros.html:489 project/templates/_macros.html:652 #: project/templates/admin_unit/create.html:28 #: project/templates/admin_unit/update.html:29 -#: project/templates/layout.html:263 +#: project/templates/layout.html:265 msgid "Organization" msgstr "" @@ -1225,7 +1225,7 @@ msgstr "" msgid "The event takes place both offline and online." msgstr "" -#: project/templates/_macros.html:585 project/templates/layout.html:189 +#: project/templates/_macros.html:585 project/templates/layout.html:191 #: project/templates/user/favorite_events.html:4 msgid "Favorite events" msgstr "" @@ -1370,7 +1370,7 @@ msgstr "" msgid "Register for free" msgstr "" -#: project/templates/layout.html:175 project/templates/layout.html:221 +#: project/templates/layout.html:175 project/templates/layout.html:223 #: project/templates/manage/events.html:6 #: project/templates/manage/events.html:42 #: project/templates/manage/events_vue.html:4 @@ -1380,7 +1380,7 @@ msgstr "" #: project/templates/admin/admin.html:19 #: project/templates/admin/admin_units.html:4 #: project/templates/admin/admin_units.html:11 -#: project/templates/layout.html:176 project/templates/layout.html:187 +#: project/templates/layout.html:176 project/templates/layout.html:189 #: project/templates/manage/admin_units.html:3 #: project/templates/manage/admin_units.html:25 #: project/templates/organization/main.html:4 @@ -1391,11 +1391,11 @@ msgstr "" msgid "Planing" msgstr "" -#: project/templates/layout.html:178 +#: project/templates/layout.html:181 msgid "Docs" msgstr "" -#: project/templates/layout.html:188 project/templates/layout.html:277 +#: project/templates/layout.html:190 project/templates/layout.html:279 #: project/templates/oauth2_client/list.html:10 #: project/templates/oauth2_client/read.html:10 #: project/templates/oauth2_token/list.html:10 project/templates/profile.html:4 @@ -1405,86 +1405,86 @@ msgstr "" #: project/templates/admin/admin.html:3 project/templates/admin/admin.html:9 #: project/templates/admin/admin_units.html:10 -#: project/templates/admin/users.html:10 project/templates/layout.html:192 +#: project/templates/admin/users.html:10 project/templates/layout.html:194 msgid "Admin" msgstr "" -#: project/templates/layout.html:196 +#: project/templates/layout.html:198 msgid "Logout" msgstr "" -#: project/templates/layout.html:227 +#: project/templates/layout.html:229 msgid "Show events" msgstr "" #: project/templates/event/create.html:5 -#: project/templates/event/create.html:221 project/templates/layout.html:228 +#: project/templates/event/create.html:221 project/templates/layout.html:230 #: project/templates/manage/events.html:45 #: project/templates/manage/organizers.html:21 msgid "Create event" msgstr "" -#: project/templates/layout.html:229 +#: project/templates/layout.html:231 msgid "Import event" msgstr "" -#: project/templates/layout.html:231 +#: project/templates/layout.html:233 #: project/templates/manage/event_lists.html:4 msgid "Event lists" msgstr "" -#: project/templates/layout.html:234 +#: project/templates/layout.html:236 msgid "Review suggestions" msgstr "" -#: project/templates/layout.html:244 +#: project/templates/layout.html:246 #: project/templates/manage/references_incoming.html:5 #: project/templates/manage/references_outgoing.html:5 msgid "References" msgstr "" -#: project/templates/layout.html:250 +#: project/templates/layout.html:252 #: project/templates/manage/references_incoming.html:9 msgid "Incoming references" msgstr "" -#: project/templates/layout.html:251 +#: project/templates/layout.html:253 #: project/templates/manage/references_outgoing.html:9 msgid "Outgoing references" msgstr "" -#: project/templates/layout.html:253 +#: project/templates/layout.html:255 #: project/templates/manage/reference_requests_incoming.html:9 msgid "Incoming reference requests" msgstr "" -#: project/templates/layout.html:258 +#: project/templates/layout.html:260 #: project/templates/manage/reference_requests_outgoing.html:9 msgid "Outgoing reference requests" msgstr "" -#: project/templates/layout.html:266 project/templates/manage/organizers.html:5 +#: project/templates/layout.html:268 project/templates/manage/organizers.html:5 #: project/templates/manage/organizers.html:9 msgid "Organizers" msgstr "" #: project/templates/event_place/list.html:3 -#: project/templates/event_place/list.html:7 project/templates/layout.html:267 +#: project/templates/event_place/list.html:7 project/templates/layout.html:269 #: project/templates/manage/places.html:5 #: project/templates/manage/places.html:9 msgid "Places" msgstr "" -#: project/templates/layout.html:269 project/templates/manage/members.html:5 +#: project/templates/layout.html:271 project/templates/manage/members.html:5 #: project/templates/manage/members.html:28 msgid "Members" msgstr "" -#: project/templates/layout.html:270 project/templates/manage/relations.html:4 +#: project/templates/layout.html:272 project/templates/manage/relations.html:4 msgid "Relations" msgstr "" -#: project/templates/layout.html:272 +#: project/templates/layout.html:274 #: project/templates/manage/admin_units.html:17 #: project/templates/manage/organization_invitations.html:4 #: project/templates/user/organization_invitations.html:4 @@ -1496,27 +1496,27 @@ msgstr "" #: project/templates/admin/settings.html:8 #: project/templates/admin_unit/update.html:6 #: project/templates/admin_unit/update.html:23 -#: project/templates/layout.html:274 project/templates/manage/widgets.html:11 +#: project/templates/layout.html:276 project/templates/manage/widgets.html:11 #: project/templates/manage/widgets.html:15 project/templates/profile.html:19 msgid "Settings" msgstr "" -#: project/templates/layout.html:275 +#: project/templates/layout.html:277 #: project/templates/manage/custom_widgets.html:13 msgid "Custom widgets" msgstr "" -#: project/templates/layout.html:276 project/templates/manage/reviews.html:10 +#: project/templates/layout.html:278 project/templates/manage/reviews.html:10 #: project/templates/manage/widgets.html:5 #: project/templates/manage/widgets.html:9 msgid "Widgets" msgstr "" -#: project/templates/layout.html:287 +#: project/templates/layout.html:289 msgid "Switch organization" msgstr "" -#: project/templates/developer/read.html:4 project/templates/layout.html:337 +#: project/templates/developer/read.html:4 project/templates/layout.html:339 #: project/templates/profile.html:29 msgid "Developer" msgstr "" @@ -1599,7 +1599,8 @@ msgid "Hi there" msgstr "" #: project/templates/email/layout.html:351 -msgid "this is a message from Oveda - Die offene Veranstaltungsdatenbank." +#, python-format +msgid "this is a message from %(site_name)s." msgstr "" #: project/templates/email/organization_invitation_accepted_notice.html:4 @@ -2077,11 +2078,11 @@ msgstr "" msgid "Event successfully deleted" msgstr "" -#: project/views/event.py:410 +#: project/views/event.py:409 msgid "Referenced event changed" msgstr "" -#: project/views/event.py:433 +#: project/views/event.py:432 msgid "New event report" msgstr "" diff --git a/package-lock.json b/package-lock.json index 30c2257..ebfdbc7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "oveda", + "name": "gsevpt", "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "oveda", + "name": "gsevpt", "version": "1.0.0", "license": "ISC", "devDependencies": { diff --git a/package.json b/package.json index 67ea0f2..cbfb544 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "oveda", + "name": "gsevpt", "version": "1.0.0", "description": "![Tests](https://github.com/DanielGrams/gsevpt/workflows/Tests/badge.svg) [![codecov](https://codecov.io/gh/DanielGrams/gsevpt/branch/main/graph/badge.svg?token=66CLLWWV7Y)](https://codecov.io/gh/DanielGrams/gsevpt) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black) ![Docker Pulls](https://img.shields.io/docker/pulls/danielgrams/gsevpt)", "main": "index.js", diff --git a/project/__init__.py b/project/__init__.py index 373bd0d..4d2837b 100644 --- a/project/__init__.py +++ b/project/__init__.py @@ -34,6 +34,7 @@ app.config["SECURITY_RECOVERABLE"] = True app.config["SECURITY_CHANGEABLE"] = True app.config["SECURITY_EMAIL_SENDER"] = os.getenv("MAIL_DEFAULT_SENDER") app.config["LANGUAGES"] = ["en", "de"] +app.config["SITE_NAME"] = os.getenv("SITE_NAME", "gsevpt") app.config["SERVER_NAME"] = os.getenv("SERVER_NAME") app.config["ADMIN_UNIT_CREATE_REQUIRES_ADMIN"] = os.getenv( "ADMIN_UNIT_CREATE_REQUIRES_ADMIN", False @@ -138,7 +139,7 @@ mail_server = os.getenv("MAIL_SERVER") if not mail_server: app.config["MAIL_SUPPRESS_SEND"] = True - app.config["MAIL_DEFAULT_SENDER"] = "test@oveda.de" + app.config["MAIL_DEFAULT_SENDER"] = "test@gsevpt.de" else: # pragma: no cover app.config["MAIL_SUPPRESS_SEND"] = False app.config["MAIL_SERVER"] = mail_server diff --git a/project/api/__init__.py b/project/api/__init__.py index b567109..7278dd6 100644 --- a/project/api/__init__.py +++ b/project/api/__init__.py @@ -136,12 +136,12 @@ marshmallow_plugin = MarshmallowPlugin() app.config.update( { "APISPEC_SPEC": APISpec( - title="Oveda API", + title="Event calendar API", version="0.1.0", plugins=[marshmallow_plugin], openapi_version="2.0", info=dict( - description="This API provides endpoints to interact with the Oveda data." + description="This API provides endpoints to interact with the event calendar data." ), ), } diff --git a/project/cli/test.py b/project/cli/test.py index b95515d..49770ad 100644 --- a/project/cli/test.py +++ b/project/cli/test.py @@ -115,13 +115,13 @@ def seed(): def _verify_admin_unit(admin_unit_id): from project.services.admin_unit import get_admin_unit_by_name - other_admin_unit = get_admin_unit_by_name("Oveda") + other_admin_unit = get_admin_unit_by_name("gsevpt") if other_admin_unit: other_admin_unit_id = other_admin_unit.id else: other_user_id = _create_user("unverified@test.de") - other_admin_unit_id = _create_admin_unit(other_user_id, "Oveda") + other_admin_unit_id = _create_admin_unit(other_user_id, "gsevpt") _create_admin_unit_relation( other_admin_unit_id, diff --git a/project/dateutils.py b/project/dateutils.py index 2a60cd4..aad8853 100644 --- a/project/dateutils.py +++ b/project/dateutils.py @@ -232,7 +232,7 @@ def calculate_occurrences(start_date, date_format, rrule_str, start, batch_size) def create_icalendar() -> icalendar.Calendar: cal = icalendar.Calendar() - cal.add("prodid", "-//Oveda//oveda.de//") + cal.add("prodid", "-//gsevpt//github.com/DanielGrams/gsevpt//") cal.add("version", "2.0") cal.add("x-wr-timezone", berlin_tz.zone) diff --git a/project/static/site.js b/project/static/site.js index 0a31eb6..08eb804 100644 --- a/project/static/site.js +++ b/project/static/site.js @@ -353,7 +353,7 @@ function scroll_to_element(element, complete) { } (function($) { - function OvedaDateDefinition(element, options) { + function GsevptDateDefinition(element, options) { var self = this; var container = $(element); var prefix = container.attr('data-prefix'); @@ -434,22 +434,22 @@ function scroll_to_element(element, complete) { }); } - $.fn.ovedaDateDefinition = function(options) { + $.fn.gsevptDateDefinition = function(options) { var defaults = {}; var settings = $.extend({}, defaults, options); if (this.length > 1) { - this.each(function() { $(this).ovedaDateDefinition(options) }); + this.each(function() { $(this).gsevptDateDefinition(options) }); return this; } - if (this.data('ovedaDateDefinition')) { - return this.data('ovedaDateDefinition'); + if (this.data('gsevptDateDefinition')) { + return this.data('gsevptDateDefinition'); } - var ovedaDateDefinition = new OvedaDateDefinition(this, settings); - this.data('ovedaDateDefinition', ovedaDateDefinition); - return ovedaDateDefinition; + var gsevptDateDefinition = new GsevptDateDefinition(this, settings); + this.data('gsevptDateDefinition', gsevptDateDefinition); + return gsevptDateDefinition; } })(jQuery); diff --git a/project/static/vue/organization/read.vue.js b/project/static/vue/organization/read.vue.js index c341410..43353d2 100644 --- a/project/static/vue/organization/read.vue.js +++ b/project/static/vue/organization/read.vue.js @@ -42,7 +42,7 @@ const OrganizationRead = {
- +
@@ -72,7 +72,7 @@ const OrganizationRead = { .then((response) => { this.organization = response.data; Vue.nextTick(function () { - iFrameResize({ minHeight: 300, onMessage: function(m) {} }, '#oveda-widget'); + iFrameResize({ minHeight: 300, onMessage: function(m) {} }, '#gsevpt-widget'); }); }); }, diff --git a/project/static/vue/widget-configurator/configurator.vue.js b/project/static/vue/widget-configurator/configurator.vue.js index ae9cac8..ee09f86 100644 --- a/project/static/vue/widget-configurator/configurator.vue.js +++ b/project/static/vue/widget-configurator/configurator.vue.js @@ -53,8 +53,8 @@ const WidgetConfigurator = { {{ $t("comp.search.pagination") }} - - {{ $t("comp.search.showOvedaLink") }} + + {{ $t("comp.search.showGsevptLink") }} {{ $t("comp.search.printButton") }} @@ -264,7 +264,7 @@ const WidgetConfigurator = { eventListId: "Event list", view: "Display", showFilter: "Filter", - showOvedaLink: "Oveda link", + showGsevptLink: "Link", layout: "Layout", eventsPerPage: "Events per page", event: "Event", @@ -310,7 +310,7 @@ const WidgetConfigurator = { eventListId: "Veranstaltungsliste", view: "Anzeige", showFilter: "Filter", - showOvedaLink: "Oveda-Link", + showGsevptLink: "Link", layout: "Layout", eventsPerPage: "Events pro Seite", event: "Event", @@ -354,7 +354,7 @@ const WidgetConfigurator = { showFilter: true, showPagination: true, showPrintButton: false, - showOvedaLink: true, + showGsevptLink: true, fontFamily: "", background: "#ffffff", textColor: "#212529", @@ -498,7 +498,7 @@ const WidgetConfigurator = { return; } - resizer.sendMessage({'type': 'OVEDA_WIDGET_SETTINGS_UPDATE_EVENT', 'data': this.settings}); + resizer.sendMessage({'type': 'GSEVPT_WIDGET_SETTINGS_UPDATE_EVENT', 'data': this.settings}); }, resizePreview() { const resizer = this.$refs.previewIframe.iFrameResizer; diff --git a/project/static/vue/widget-configurator/list.vue.js b/project/static/vue/widget-configurator/list.vue.js index e47a195..79fdfda 100644 --- a/project/static/vue/widget-configurator/list.vue.js +++ b/project/static/vue/widget-configurator/list.vue.js @@ -104,10 +104,10 @@ const WidgetConfiguratorList = { return this.$route.params.organization_id; }, installationHeader() { - return "\n\n"; + return "\n\n"; }, installationBody() { - return '
'; + return '
'; } }, mounted() { diff --git a/project/static/widget-loader.js b/project/static/widget-loader.js index d889f7f..f75bd1b 100644 --- a/project/static/widget-loader.js +++ b/project/static/widget-loader.js @@ -15,7 +15,7 @@ }; function initWidgets() { - var elements = d.getElementsByClassName("oveda-widget"); + var elements = d.getElementsByClassName("gsevpt-widget"); for (var i = 0; i < elements.length; i++) { initIframeWidget(elements.item(i), i); } @@ -79,8 +79,8 @@ } var iFrame = d.createElement("iframe"); - iFrame.id = "oveda-widget-iframe-" + index; - iFrame.class = "oveda-widget-iframe"; + iFrame.id = "gsevpt-widget-iframe-" + index; + iFrame.class = "gsevpt-widget-iframe"; iFrame.src = src; iFrame.style = style; iFrame.frameborder = "0"; @@ -172,7 +172,7 @@ (function(data) { config.onInit = function (iFrame) { - iFrame.iFrameResizer.sendMessage({'type': 'OVEDA_WIDGET_SETTINGS_UPDATE_EVENT', 'data': data}); + iFrame.iFrameResizer.sendMessage({'type': 'gsevpt_WIDGET_SETTINGS_UPDATE_EVENT', 'data': data}); } })(container.customWidgetData.settings); } @@ -185,14 +185,14 @@ function onIframeMessage(messageData, googleTagManager) { var message = messageData.message; - if (message.type == "OVEDA_ANALYTICS_EVENT") { + if (message.type == "gsevpt_ANALYTICS_EVENT") { trackAnalyticsEvent(message.data, googleTagManager); } } function trackAnalyticsEvent(data, googleTagManager) { if (googleTagManager) { - data.event = "ovedaWidget." + data.event; + data.event = "gsevptWidget." + data.event; if (window.dataLayer !== null && window.dataLayer !== undefined) { window.dataLayer.push(data); diff --git a/project/static/widget/calendar.html b/project/static/widget/calendar.html index eca97de..fce8b58 100644 --- a/project/static/widget/calendar.html +++ b/project/static/widget/calendar.html @@ -242,7 +242,7 @@ Vue.component('event-warning-pills', { }, trackAnalyticsEvent(data) { if ('parentIFrame' in window) { - parentIFrame.sendMessage({'type': 'OVEDA_ANALYTICS_EVENT', 'data': data}); + parentIFrame.sendMessage({'type': 'GSEVPT_ANALYTICS_EVENT', 'data': data}); } } } @@ -253,7 +253,7 @@ Vue.component('event-warning-pills', { app.trackAnalyticsEvent({'event':'pageView', 'url':document.location.href}); }, onMessage: function(message) { - if (message.type != 'OVEDA_WIDGET_SETTINGS_UPDATE_EVENT') { + if (message.type != 'GSEVPT_WIDGET_SETTINGS_UPDATE_EVENT') { return; } diff --git a/project/static/widget/search.html b/project/static/widget/search.html index 97d4bdd..23fceb8 100644 --- a/project/static/widget/search.html +++ b/project/static/widget/search.html @@ -3,7 +3,7 @@ - Oveda Widget + Event calendar widget @@ -219,8 +219,8 @@ >
-
- Veranstaltungen auf oveda.de anzeigen +
@@ -491,7 +491,7 @@ var app = new Vue({ }, trackAnalyticsEvent(data) { if ('parentIFrame' in window) { - parentIFrame.sendMessage({'type': 'OVEDA_ANALYTICS_EVENT', 'data': data}); + parentIFrame.sendMessage({'type': 'GSEVPT_ANALYTICS_EVENT', 'data': data}); } }, updateSettings(settings) { @@ -511,7 +511,7 @@ window.iFrameResizer = { app.trackAnalyticsEvent({'event':'pageView', 'url':document.location.href}); }, onMessage: function(message) { - if (message.type != 'OVEDA_WIDGET_SETTINGS_UPDATE_EVENT') { + if (message.type != 'GSEVPT_WIDGET_SETTINGS_UPDATE_EVENT') { return; } diff --git a/project/templates/_macros.html b/project/templates/_macros.html index a0dbebf..a567ddc 100644 --- a/project/templates/_macros.html +++ b/project/templates/_macros.html @@ -1658,7 +1658,7 @@ $('#allday').on('change', function() { {% endmacro %} {% macro render_event_date_defintion_code() %} - $('.date-definition-container').ovedaDateDefinition(); + $('.date-definition-container').gsevptDateDefinition(); var min_date_definition_index = $(".date-definition-container").length; if (min_date_definition_index > 1) { $('.date-definition-container button.remove-date-defintion-btn').removeClass("d-none"); @@ -1690,7 +1690,7 @@ $('#allday').on('change', function() { }); last_container.after(new_container); - new_container.ovedaDateDefinition(); + new_container.gsevptDateDefinition(); if ($.find(".date-definition-container").length > 1) { $('.date-definition-container button.remove-date-defintion-btn').removeClass("d-none"); diff --git a/project/templates/email/layout.html b/project/templates/email/layout.html index 2884770..8207950 100644 --- a/project/templates/email/layout.html +++ b/project/templates/email/layout.html @@ -348,7 +348,7 @@

{{ _('Hi there') }},

-

{{ _('this is a message from Oveda - Die offene Veranstaltungsdatenbank.') }}

+

{{ _('this is a message from %(site_name)s.', site_name=config["SITE_NAME"]) }}

{% block content -%} {%- endblock content %} @@ -366,7 +366,7 @@
- Oveda - Die offene Veranstaltungsdatenbank. + {{ config["SITE_NAME"] }}.
diff --git a/project/templates/home.html b/project/templates/home.html index 65e2114..ef19115 100644 --- a/project/templates/home.html +++ b/project/templates/home.html @@ -1,7 +1,7 @@ {% extends "layout.html" %} {% from "_macros.html" import render_place, render_events_sub_menu %} {%- block title -%} -oveda - Offene Veranstaltungsdatenbank +{{ config["SITE_NAME"] }} {%- endblock -%} {% block styles %} diff --git a/project/templates/layout.html b/project/templates/layout.html index 28910ad..e95f2a7 100644 --- a/project/templates/layout.html +++ b/project/templates/layout.html @@ -4,7 +4,7 @@ {%- block html %} {%- block head %} - {%- block title -%}{{ title|default('oveda') }}{% endblock title %} + {%- block title -%}{{ title|default('gsevpt') }}{% endblock title %} @@ -165,7 +165,7 @@ {% block navbar %}