django-content-studio 1.0.0b4__py3-none-any.whl → 1.0.0b6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- content_studio/__init__.py +1 -1
- content_studio/admin.py +22 -13
- content_studio/dashboard/activity_log.py +4 -3
- content_studio/form.py +95 -1
- content_studio/static/content_studio/assets/browser-ponyfill-TyWUZ1Oq.js +2 -0
- content_studio/static/content_studio/assets/index.css +1 -1
- content_studio/static/content_studio/assets/index.js +97 -78
- content_studio/static/content_studio/index.html +22 -0
- content_studio/static/content_studio/locales/en/translation.json +3 -0
- content_studio/static/content_studio/locales/nl/translation.json +3 -0
- content_studio/viewsets.py +14 -0
- {django_content_studio-1.0.0b4.dist-info → django_content_studio-1.0.0b6.dist-info}/METADATA +1 -1
- {django_content_studio-1.0.0b4.dist-info → django_content_studio-1.0.0b6.dist-info}/RECORD +15 -13
- {django_content_studio-1.0.0b4.dist-info → django_content_studio-1.0.0b6.dist-info}/LICENSE +0 -0
- {django_content_studio-1.0.0b4.dist-info → django_content_studio-1.0.0b6.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Django Content Studio</title>
|
|
8
|
+
<script>
|
|
9
|
+
window.DCS_STATIC_PREFIX = "/";
|
|
10
|
+
window.DCS_BASENAME = "http://localhost:8000/admin";
|
|
11
|
+
</script>
|
|
12
|
+
<link rel="stylesheet" href="/icons/pi/style.css" />
|
|
13
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
14
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
15
|
+
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=DM+Serif+Text:ital@0;1&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap" rel="stylesheet">
|
|
16
|
+
<script type="module" crossorigin src="/assets/index.js"></script>
|
|
17
|
+
<link rel="stylesheet" crossorigin href="/assets/index.css">
|
|
18
|
+
</head>
|
|
19
|
+
<body>
|
|
20
|
+
<div id="root"></div>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"delete_confirm_title": "Are you sure?",
|
|
14
14
|
"delete_confirm_description": "This action cannot be undone. Are you sure you want to delete?"
|
|
15
15
|
},
|
|
16
|
+
"app": {
|
|
17
|
+
"copied_to_clipboard": "Copied to clipboard!"
|
|
18
|
+
},
|
|
16
19
|
"login": {
|
|
17
20
|
"title": "Welcome back",
|
|
18
21
|
"subtitle": "Sign in to your account",
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"delete_confirm_title": "Weet je het zeker?",
|
|
14
14
|
"delete_confirm_description": "Deze actie kan niet ongedaan gemaakt worden. Weet je zeker dat je dit wilt verwijderen?"
|
|
15
15
|
},
|
|
16
|
+
"app": {
|
|
17
|
+
"copied_to_clipboard": "Gekopieerd naar klembord"
|
|
18
|
+
},
|
|
16
19
|
"login": {
|
|
17
20
|
"title": "Welkom terug",
|
|
18
21
|
"subtitle": "Log in op je account",
|
content_studio/viewsets.py
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import uuid
|
|
2
|
+
|
|
1
3
|
from django.contrib.admin.models import LogEntry, ADDITION, CHANGE, DELETION
|
|
2
4
|
from django.contrib.contenttypes.models import ContentType
|
|
5
|
+
from rest_framework.decorators import action
|
|
3
6
|
from rest_framework.exceptions import NotFound
|
|
4
7
|
from rest_framework.filters import SearchFilter, OrderingFilter
|
|
5
8
|
from rest_framework.parsers import JSONParser
|
|
@@ -98,3 +101,14 @@ class BaseModelViewSet(ModelViewSet):
|
|
|
98
101
|
raise NotFound()
|
|
99
102
|
|
|
100
103
|
return super().get_object()
|
|
104
|
+
|
|
105
|
+
@action(
|
|
106
|
+
methods=["get"], detail=True, url_path="components/(?P<component_id>[^/.]+)"
|
|
107
|
+
)
|
|
108
|
+
def get_component(self, request, id, component_id):
|
|
109
|
+
component = self._admin_model.get_component(uuid.UUID(component_id))
|
|
110
|
+
|
|
111
|
+
if not component:
|
|
112
|
+
raise NotFound()
|
|
113
|
+
|
|
114
|
+
return component.handle_request(obj=self.get_object(), request=request)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
content_studio/__init__.py,sha256=
|
|
2
|
-
content_studio/admin.py,sha256=
|
|
1
|
+
content_studio/__init__.py,sha256=fD4PknrMjvMEgJhMioH8gv8AwnBesqQ7VeAl7Pq6Aks,161
|
|
2
|
+
content_studio/admin.py,sha256=BpPdw4g0uQMPPgNObxQzVGbTNzZWDc1L0L3gI_WA8WI,10260
|
|
3
3
|
content_studio/apps.py,sha256=cfZvEixECgLN0g2zbu_Y94u5k3QBMyr_bgsgj4qYuoA,3503
|
|
4
4
|
content_studio/dashboard/__init__.py,sha256=1GQcAuM5IlTlvqq6aPYA_QfuiEy_It0qx54VqDMQHCQ,1788
|
|
5
|
-
content_studio/dashboard/activity_log.py,sha256=
|
|
5
|
+
content_studio/dashboard/activity_log.py,sha256=Yr5F7wRFBnT7RlvWJb9gdwYZzEuEeQV4dhc6YXDCOPY,859
|
|
6
6
|
content_studio/filters.py,sha256=GyglR2E_wswomW7EnfShEXr14zxuRlLAuxrHVO3QQYg,4335
|
|
7
|
-
content_studio/form.py,sha256=
|
|
7
|
+
content_studio/form.py,sha256=XvUbBVR3QlvyM1l73QWV5TnreQTM8cWNJqgxkACj9dQ,5041
|
|
8
8
|
content_studio/formats.py,sha256=JzOWrDRCVSnjJI0oX5fyFQU8LC634_jeAe84Widy43U,786
|
|
9
9
|
content_studio/login_backends/__init__.py,sha256=hgPJh9hFobubImfhynaeZ_dku3sjqNQvN5B43TVg7Gw,643
|
|
10
10
|
content_studio/login_backends/username_password.py,sha256=JJbF3oWnhOwLs-WaqclCCH6nAnrhlKbyBUzAJKVtq7A,2561
|
|
@@ -16,8 +16,9 @@ content_studio/router.py,sha256=7Up_sipGaUDoY6ElJNRf85ADaYfJCWV4To523L4LGuw,393
|
|
|
16
16
|
content_studio/serializers.py,sha256=k5QLRiaa85jEiyljz2QdyTFcWY4gT8Lb28dBZsdEcsQ,3674
|
|
17
17
|
content_studio/settings.py,sha256=6U0o-DxwpFQo-1LLumr3U4FCVTHiBzySK7M77HWvpf4,4510
|
|
18
18
|
content_studio/static/content_studio/assets/browser-ponyfill-Ct7s-5jI.js,sha256=ka_XS-3zL9SFKN25BR2iVt7ZrWLHsY-13dDUJinsL10,10281
|
|
19
|
-
content_studio/static/content_studio/assets/
|
|
20
|
-
content_studio/static/content_studio/assets/index.
|
|
19
|
+
content_studio/static/content_studio/assets/browser-ponyfill-TyWUZ1Oq.js,sha256=sKLpD8vGwLfnJVLaSGMMi8krArcm2Qj3-igVwDvLMek,10287
|
|
20
|
+
content_studio/static/content_studio/assets/index.css,sha256=yRwQ4UY-maqy802yF04_Uzrmrgl-C4WoUoRA_YE2CJg,84731
|
|
21
|
+
content_studio/static/content_studio/assets/index.js,sha256=-agmNaD8f8lBYnySVLQyKbSBaFCHw5byRBH6Rnwk1UY,1409961
|
|
21
22
|
content_studio/static/content_studio/assets/inter-cyrillic-ext-wght-normal.woff2,sha256=yhVwYzOaxK1BjyFPOr_tEZsHmKtNN3OGzlyeWnpDXr0,25960
|
|
22
23
|
content_studio/static/content_studio/assets/inter-cyrillic-wght-normal.woff2,sha256=cdXuk8wenx1SCjqLZkVt4Yx4edjfCdV_zS6v91_vAHU,18748
|
|
23
24
|
content_studio/static/content_studio/assets/inter-greek-ext-wght-normal.woff2,sha256=bp4CCiX5tW1BjywIWx08CXJaTaI_5pOltGMGRgZzIZA,11232
|
|
@@ -31,8 +32,9 @@ content_studio/static/content_studio/icons/pi/Phosphor-Bold.woff,sha256=3k3MnRjP
|
|
|
31
32
|
content_studio/static/content_studio/icons/pi/Phosphor-Bold.woff2,sha256=IVO1LOqeBvwMyElgSL5IWzgaD4vxMK3qWpdW_I8QC4c,150052
|
|
32
33
|
content_studio/static/content_studio/icons/pi/style.css,sha256=yKMt9n-L1X9wxjceFewjLfJd3ro-uQYNeqpoEBps4kA,85821
|
|
33
34
|
content_studio/static/content_studio/img/media_placeholder.svg,sha256=ZLrfeqvaC5YwuHAg_7YJXLhYzLz2azVcKqCLEGOVTTs,3253
|
|
34
|
-
content_studio/static/content_studio/
|
|
35
|
-
content_studio/static/content_studio/locales/
|
|
35
|
+
content_studio/static/content_studio/index.html,sha256=zdkVxNB7x5odhC0S4GFpbDnIx8qMImj3Dtq_kiWntlw,1059
|
|
36
|
+
content_studio/static/content_studio/locales/en/translation.json,sha256=57r6oc0gX-YTkDraToBWZDCTxLIRzjV7TgL0qE8i0pI,2342
|
|
37
|
+
content_studio/static/content_studio/locales/nl/translation.json,sha256=8hD3dpyE7fPio5dfafqW7fMU2gm65RIHq4RFE19jYgU,2573
|
|
36
38
|
content_studio/static/content_studio/vite.svg,sha256=SnSK_UQ5GLsWWRyDTEAdrjPoeGGrXbrQgRw6O0qSFPs,1497
|
|
37
39
|
content_studio/templates/content_studio/index.html,sha256=zGS8iro3w1HLs5hLbDRTrchB50rAaFqXbTMu7hdVz6E,1193
|
|
38
40
|
content_studio/token_backends/__init__.py,sha256=dO3aWIHXX8He399ZEvlS4fNgyL84OY9TEtkva9b5N5Q,1183
|
|
@@ -40,9 +42,9 @@ content_studio/token_backends/jwt.py,sha256=niGCpRqaUVhhS9haXfH1uFlg2v8NLB5IpsJ4
|
|
|
40
42
|
content_studio/urls.py,sha256=EY7lbzC0Q5vLfvqE3rK_4hmDrXhTuxKzYC55cc5tEEo,701
|
|
41
43
|
content_studio/utils.py,sha256=xOolXd9Zmty6B6_2febvM8TmZhZ0JRc2nCLj3VooHkM,1488
|
|
42
44
|
content_studio/views.py,sha256=GbANmQY_VyzQPD4Hw3MEfWF3pOr2G6a61Ktvu2Bw6d8,5370
|
|
43
|
-
content_studio/viewsets.py,sha256=
|
|
45
|
+
content_studio/viewsets.py,sha256=MdKpW5LsEbCuc1fDvGYQLgOf208aYTbJBYAKKhFzJiU,3813
|
|
44
46
|
content_studio/widgets.py,sha256=OlFKCAYNhkj2Ww9S_hvQTzUjcSnYXocmi04zusKrOTo,1071
|
|
45
|
-
django_content_studio-1.0.
|
|
46
|
-
django_content_studio-1.0.
|
|
47
|
-
django_content_studio-1.0.
|
|
48
|
-
django_content_studio-1.0.
|
|
47
|
+
django_content_studio-1.0.0b6.dist-info/LICENSE,sha256=Wnx2EJhtSNnXE5Qs80i1HTBNFZTi8acEtC5TYqtFlnQ,1075
|
|
48
|
+
django_content_studio-1.0.0b6.dist-info/METADATA,sha256=OaRV6fUH4ibjcTuhwXdhaHB-AtSvwPy42-CFrjeMzFo,2512
|
|
49
|
+
django_content_studio-1.0.0b6.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
50
|
+
django_content_studio-1.0.0b6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|