Skip to content

Commit b84bab7

Browse files
authored
feat: Only partially functional preview removed, CSS and JS refactor (#301)
1 parent 554418c commit b84bab7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+474
-1034
lines changed

.eslintrc.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/codecov.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,13 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: ["3.9", "3.10", "3.11", "3.12"] # latest release minus two
19+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] # latest release minus two
2020
requirements-file: [
2121
dj42_cms311.txt,
2222
dj42_cms41.txt,
2323
dj50_cms41.txt,
2424
dj51_cms41.txt,
25+
dj52_cms50.txt,
2526
]
2627
os: [
2728
ubuntu-latest,
@@ -31,8 +32,14 @@ jobs:
3132
requirements-file: dj50_cms41.txt
3233
- python-version: "3.9"
3334
requirements-file: dj51_cms41.txt
35+
- python-version: "3.9"
36+
requirements-file: dj52_cms50.txt
37+
- python-version: "3.10"
38+
requirements-file: dj52_cms50.txt
3439
- python-version: "3.12"
3540
requirements-file: dj42_cms311.txt
41+
- python-version: "3.13"
42+
requirements-file: dj42_cms311.txt
3643

3744
steps:
3845
- uses: actions/checkout@v4

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16
1+
24

CHANGELOG.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,16 @@
22
Changelog
33
=========
44

5+
2.2.0 (2025-08-16)
6+
==================
7+
8+
* feat: Refactored CSS for faster and more reliable loading by @fsbraun
9+
* feat: Removed link and button preview
10+
* fix: Some UI Components were not discovered by the `{% plugin %}` template tag in django CMS 5
11+
* fix: Restored Python 3.9 compatibility
12+
* chore: Update node version
13+
* chore: Remove bootstrap dependency
14+
515
2.1.4 (2025-07-27)
616
==================
717

LICENSE

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,6 @@ may be used optionally in an installation of the software:
4343
* Weather Icons https://erikflowers.github.io/weather-icons/
4444
(SIL Open Font Licence 1.1 https://openfontlicense.org)
4545

46+
It also uses FontAwesome Free icons for UI interface https://fontawesome.com
47+
(CC BY 4.0 License https://creativecommons.org/licenses/by/4.0/) - attribution within the
48+
individual SVG files in djangocms_frontend/contrib/icon/static/djangocms_frontend/icon/vendor/assets

djangocms_frontend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@
1919
13. Github actions will publish the new package to pypi
2020
"""
2121

22-
__version__ = "2.1.4"
22+
__version__ = "2.2.0"

djangocms_frontend/apps.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ class DjangocmsFrontendConfig(apps.AppConfig):
77
verbose_name = "django CMS Frontend"
88

99
def ready(self):
10-
from . import plugin_tag
11-
from . import component_pool
10+
from . import component_pool, plugin_tag
1211

1312
component_pool.setup()
1413
plugin_tag.setup()

djangocms_frontend/component_base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ def get_short_description(self) -> str:
225225
def save_model(self, request, obj, form: forms.Form, change: bool) -> None:
226226
"""Auto-creates slot plugins upon creation of component plugin instance"""
227227
from cms.api import add_plugin
228+
228229
from .ui_plugin_base import CMSUIComponent
229230

230231
super(CMSUIComponent, self).save_model(request, obj, form, change)

djangocms_frontend/component_pool.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
from collections import defaultdict
2-
from collections.abc import Iterator
31
import importlib
42
import os
53
import warnings
4+
from collections import defaultdict
5+
from collections.abc import Iterator
66

77
from django import forms
88
from django.apps import apps
99
from django.template.loader import get_template
1010
from django.utils.module_loading import autodiscover_modules
11-
1211
from sekizai.context import SekizaiContext
1312

1413
from djangocms_frontend import settings

djangocms_frontend/contrib/card/templates/djangocms_frontend/admin/card_layout.html

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

44
{% block extrahead %}
55
{{ block.super }}
6-
<script src="{% static 'djangocms_frontend/js/bundle.grid.js' %}"></script>
6+
<script src="{% static 'djangocms_frontend/js/grid.js' %}"></script>
77
{% endblock %}
88

99
{% block field_sets %}

0 commit comments

Comments
 (0)