8000 feat: Headless readiness by fsbraun · Pull Request #7850 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

feat: Headless readiness #7850

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 43 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
cf26a48
Feat: Move data bridge data to script tags for easier extraction.
fsbraun Mar 21, 2024
600f85a
Fix linting
fsbraun Mar 21, 2024
d0574ed
Move json script before script reading it to avoid race conditions
fsbraun Mar 21, 2024
798829e
lean template
fsbraun Mar 21, 2024
29b7e74
Merge branch 'develop-4' into feat/data-bridge
fsbraun Mar 28, 2024
3c01d6a
Merge branch 'develop-4' into feat/data-bridge
fsbraun Apr 5, 2024
50680e9
Move wizard urls to admin namespace
fsbraun May 7, 2024
73cad7b
Merge branch 'develop-4' into feat/data-bridge
fsbraun May 7, 8000 2024
eaa4edd
Fix linting errors
fsbraun May 7, 2024
c73dc50
Update appresolver and fix page middleware (though no need to use in…
fsbraun May 7, 2024
d733f59
fix: use admin_reverse instead of reverse('admin: ...
fsbraun May 7, 2024
fd2e9be
Update preview condition for toolbar
fsbraun May 8, 2024
6c60e12
Self-contained structure mode css
fsbraun May 8, 2024
23c4d9c
Stay in 4.1.x
fsbraun May 8, 2024
e0edb6f
Merge branch 'develop-4' into feat/data-bridge
fsbraun May 9, 2024
baff66e
Alles structure endpoint for read-only objects
fsbraun May 10, 2024
2872478
fix: linting
fsbraun May 10, 2024
6c65df1
more linting
fsbraun May 10, 2024
851796f
Merge branch 'develop-4' into feat/data-bridge
May 20, 2024
700e537
feat: Allow running without templates
fsbraun May 22, 2024
0cb5fed
Merge branch 'feat/data-bridge' of github.com:fsbraun/django-cms into…
fsbraun May 22, 2024
c50e1a4
Merge branch 'develop-4' into feat/data-bridge
fsbraun May 22, 2024
d5170a4
Add unformatted preview for headless mode
fsbraun May 23, 2024
b73febb
Merge branch 'feat/data-bridge' of github.com:fsbraun/django-cms into…
fsbraun May 23, 2024
3ebffaa
Fix: Advanced placeholder config
fsbraun May 23, 2024
5dbd7ef
Fix: tests
fsbraun May 23, 2024
deff31c
Fix {% render_placeholder %} tag
fsbraun May 23, 2024
46d3da1
Merge branch 'develop-4' into feat/data-bridge
fsbraun May 25, 2024
fc6bee8
Merge branch 'develop-4' into feat/data-bridge
fsbraun May 30, 2024
f35a9d3
Merge branch 'develop-4' into feat/data-bridge
fsbraun Jun 11, 2024
1c61cb7
Add docs
fsbraun Jun 15, 2024
5721225
Merge branch 'feat/data-bridge' of github.com:fsbraun/django-cms into…
fsbraun Jun 15, 2024
cbdae33
Fix typos
fsbraun Jun 15, 2024
f6d8854
Merge branch 'develop-4' into feat/data-bridge
fsbraun Jun 18, 2024
8b5750f
fix typos
fsbraun Jun 22, 2024
5794f18
Update docs for better clarity
fsbraun Jun 25, 2024
91aad91
Merge branch 'develop-4' into feat/data-bridge
fsbraun Jun 25, 2024
ec2219e
Merge branch 'develop-4' into feat/data-bridge
fsbraun Jul 22, 2024
aaf44c0
Merge branch 'develop-4' into feat/data-bridge
fsbraun Jul 25, 2024
583ceb2
Fix: Use user language for headless plugin list
fsbraun Jul 26, 2024
d81c9c3
Fix docs typo
fsbraun Jul 26, 2024
cd025f9
Update docs after review
fsbraun Jul 29, 2024
e2af484
Merge branch 'develop-4' into feat/data-bridge
fsbraun Jul 29, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix linting
  • Loading branch information
fsbraun committed Mar 21, 2024
commit 600f85a72b741e46a4a5e816f778f0e4c9d884bc
2 changes: 1 addition & 1 deletion cms/plugin_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
from cms import operations
from cms.exceptions import SubClassNeededError
from cms.models import CMSPlugin
from cms.toolbar.utils import get_plugin_toolbar_info, get_plugin_tree_as_json, get_plugin_tree
from cms.toolbar.utils import get_plugin_toolbar_info, get_plugin_tree, get_plugin_tree_as_json
from cms.utils.conf import get_cms_setting


Expand Down
7 changes: 6 additions & 1 deletion cms/toolbar/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from cms.constants import PLACEHOLDER_TOOLBAR_JS, PLUGIN_TOOLBAR_JS
from cms.models import PageContent
from cms.utils import get_language_list
from cms.utils.compat.warnings import RemovedInDjangoCMS43Warning
from cms.utils.conf import get_cms_setting
from cms.utils.urlutils import admin_reverse

Expand Down Expand Up @@ -64,9 +65,13 @@ def get_plugin_toolbar_js(plugin, children=None, parents=None):


def get_plugin_tree_as_json(request, plugins):
assert False, ("This function is deprecated. Use get_plugin_tree instead.")
import warnings

warnings.warn("get_plugin_tree_as_json is deprecated. Use get_plugin_tree instead.",
RemovedInDjangoCMS43Warning, stacklevel=2)
return json.dumps(get_plugin_tree(request, plugins))


def get_plugin_tree(request, plugins):
from cms.utils.plugins import downcast_plugins, get_plugin_restrictions

Expand Down
0