focomy 0.1.118__py3-none-any.whl → 0.1.119__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.
- core/admin/routes.py +7 -0
- core/engine/routes.py +1 -0
- core/templates/admin/base.html +3 -0
- {focomy-0.1.118.dist-info → focomy-0.1.119.dist-info}/METADATA +1 -1
- {focomy-0.1.118.dist-info → focomy-0.1.119.dist-info}/RECORD +9 -9
- themes/default/templates/base.html +1 -0
- {focomy-0.1.118.dist-info → focomy-0.1.119.dist-info}/WHEEL +0 -0
- {focomy-0.1.118.dist-info → focomy-0.1.119.dist-info}/entry_points.txt +0 -0
- {focomy-0.1.118.dist-info → focomy-0.1.119.dist-info}/licenses/LICENSE +0 -0
core/admin/routes.py
CHANGED
|
@@ -198,6 +198,12 @@ async def get_context(
|
|
|
198
198
|
except Exception:
|
|
199
199
|
pass # Post content type may not exist
|
|
200
200
|
|
|
201
|
+
# Get active theme for customize link
|
|
202
|
+
from ..services.settings import SettingsService
|
|
203
|
+
settings_svc = SettingsService(db)
|
|
204
|
+
theme_settings = await settings_svc.get_by_category("theme")
|
|
205
|
+
active_theme = theme_settings.get("active", "default")
|
|
206
|
+
|
|
201
207
|
return {
|
|
202
208
|
"request": request,
|
|
203
209
|
"content_types": content_types,
|
|
@@ -208,6 +214,7 @@ async def get_context(
|
|
|
208
214
|
"user_role": user_role,
|
|
209
215
|
"channels": channels,
|
|
210
216
|
"orphan_post_count": orphan_post_count,
|
|
217
|
+
"active_theme": active_theme,
|
|
211
218
|
}
|
|
212
219
|
|
|
213
220
|
|
core/engine/routes.py
CHANGED
|
@@ -160,6 +160,7 @@ async def render_theme(
|
|
|
160
160
|
if admin_info:
|
|
161
161
|
context["is_admin"] = True
|
|
162
162
|
context["admin_user"] = admin_info["user_data"]
|
|
163
|
+
context["active_theme"] = active_theme # For customize link
|
|
163
164
|
# Build edit URL if entity provided
|
|
164
165
|
if entity and content_type:
|
|
165
166
|
context["edit_url"] = f"/admin/{content_type}/{entity.id}/edit"
|
core/templates/admin/base.html
CHANGED
|
@@ -551,6 +551,9 @@
|
|
|
551
551
|
</a>
|
|
552
552
|
|
|
553
553
|
<div class="nav-section">外観</div>
|
|
554
|
+
<a href="/admin/themes/{{ active_theme }}/customize" class="nav-item {% if current_page == 'customize' %}active{% endif %}">
|
|
555
|
+
カスタマイズ
|
|
556
|
+
</a>
|
|
554
557
|
<a href="/admin/themes" class="nav-item {% if current_page == 'themes' %}active{% endif %}">
|
|
555
558
|
テーマ
|
|
556
559
|
</a>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: focomy
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.119
|
|
4
4
|
Summary: The Most Beautiful CMS - A metadata-driven, zero-duplicate-code content management system
|
|
5
5
|
Project-URL: Homepage, https://github.com/focomy/focomy
|
|
6
6
|
Project-URL: Documentation, https://focomy.dev/docs
|
|
@@ -7,7 +7,7 @@ core/rate_limit.py,sha256=CX5UjmsU03aFWKXSKjweoHvH2xn0v4NBHNN5ynJC8LE,180
|
|
|
7
7
|
core/relations.yaml,sha256=7GUCrphKaouEXNkyd8Ht99e6TcUPERhc4m36RGcc41U,2128
|
|
8
8
|
core/utils.py,sha256=Rqs1WStB0JjTb8-750jL-xJ_kaPH3ddupvqt46BXIBc,2754
|
|
9
9
|
core/admin/__init__.py,sha256=IXrr-z-IDXmYodaZ-cVDou6wr_vsVhyWmXHdSNKkQsk,94
|
|
10
|
-
core/admin/routes.py,sha256=
|
|
10
|
+
core/admin/routes.py,sha256=6l24uI8gNiwBTa6YzOstMYik8DzBZaBcqsuCPzST4oU,150908
|
|
11
11
|
core/admin/url.py,sha256=FlusKnSz3bZgPSBmRu-dI3W-bQo7lKBDZ3zN8cFHwQc,2243
|
|
12
12
|
core/api/__init__.py,sha256=H1StbYGDVRS6g-Jk3UUf17ibAz1K8IUa27NfPMkaNrA,19
|
|
13
13
|
core/api/auth.py,sha256=Zb37IHcUSjf8_hXiVzhoZPQw6WAiOOS_AoMqE96yat8,11565
|
|
@@ -44,7 +44,7 @@ core/content_types/user.yaml,sha256=y3SwqzIc9_6C7R1GULk7AwYJPxcTT38ZmZe4_wekfyU,
|
|
|
44
44
|
core/content_types/widget.yaml,sha256=Jotbts5QQtHaF2bJWQL3rkEoCkp_aq_A3gN-58eJwv8,1454
|
|
45
45
|
core/content_types/workflow_history.yaml,sha256=3wi58LNLYbk7t6Z2QDRi9whQSedJCXKVKuyBhixNUK0,518
|
|
46
46
|
core/engine/__init__.py,sha256=ycR0Kdn6buwdCH6QFG8bV69wFciFSKEg9Ro26cHpa2U,83
|
|
47
|
-
core/engine/routes.py,sha256=
|
|
47
|
+
core/engine/routes.py,sha256=r81cRjXcSpCMqr4CZDrfmGQnupPE7_yVAMLJL9psRiA,43922
|
|
48
48
|
core/migrations/env.py,sha256=1dLI8qcGojLDR_--MdgwP5q-V0p2Z-32klSPjokXx4M,1389
|
|
49
49
|
core/migrations/script.py.mako,sha256=LyYLSC7HzBBGwHZ8s2SguBPMXsWCph0FJp49kPsGhU8,590
|
|
50
50
|
core/migrations/versions/2038bdf6693b_add_import_jobs_table.py,sha256=v8lPC5WmwpUfHUG_YgQn6jepPtfKWFn0JIj9XvD9224,2325
|
|
@@ -150,7 +150,7 @@ core/services/wordpress_import/rollback.py,sha256=NomM71QsBI3nt1Y_Hpod2nw-E9kpXQ
|
|
|
150
150
|
core/services/wordpress_import/verification.py,sha256=efaTdah8oc63MsqJv-OWuse81ukxuLxl1xSwMYybJNY,19701
|
|
151
151
|
core/services/wordpress_import/wxr_parser.py,sha256=GrfiMoSj75hp3beHx9aLe-lxXtoWmq5eP_Jzx8UajKE,15982
|
|
152
152
|
core/templates/admin/backup.html,sha256=Di93BRvmyxdvF-eOAMKTYFB7qubH1Fms7ppYbJ3YHiA,3165
|
|
153
|
-
core/templates/admin/base.html,sha256=
|
|
153
|
+
core/templates/admin/base.html,sha256=jsOz2mG2HzDhTriZ3Pi6Z3MjsxGnoGvMqDzlSJz737Q,24127
|
|
154
154
|
core/templates/admin/comments.html,sha256=AEzCMYu1-EdFC1yUa9oIObtRS-U9RlMTe_5P3O5alb8,10012
|
|
155
155
|
core/templates/admin/customize.html,sha256=UohKyxBDmKhtbOiipyRkFJlrD_5u0JIc8b7--U5EuUk,18631
|
|
156
156
|
core/templates/admin/dashboard.html,sha256=WzURfANu1k9AIjdP82fwJE1o3sRhNVr77iUCRfUoBm8,3439
|
|
@@ -189,7 +189,7 @@ themes/default/theme.yaml,sha256=tgcUP1YFptyXVNL2a8DBiPrP7zTjWNH62Cy9D_w6Chk,187
|
|
|
189
189
|
themes/default/templates/404.html,sha256=6pYUz7zg5hx3nikgxiZWSkwYnv2nENCSV3KjdIF0_lE,1105
|
|
190
190
|
themes/default/templates/500.html,sha256=CtU3gEsHsxAh-vbcnx5McH8V8ruKtdP8usj8hPuu8zY,1174
|
|
191
191
|
themes/default/templates/archive.html,sha256=ZHBxPYewvc2TbrsB745LYO2uM5SJbTFQQR6savWUzYg,2385
|
|
192
|
-
themes/default/templates/base.html,sha256=
|
|
192
|
+
themes/default/templates/base.html,sha256=7M0D8J5SX-Y4V8_GYVO22Rk7BOx7Ob_OFfcjpNYBuBo,12635
|
|
193
193
|
themes/default/templates/category.html,sha256=k-yN0vFoOpgxgg6DlGin5X4IzVDBG9xRZ0FOD7OJtU8,3061
|
|
194
194
|
themes/default/templates/channel.html,sha256=1i1zkAWmvpcqyoEfaeQNDc2zrMao2xSXCkjRuwzxOUU,3213
|
|
195
195
|
themes/default/templates/form.html,sha256=KFrFS6qxHELPrpRB0B_BNU-uqM3k11oMYwd6oY3qoPQ,8685
|
|
@@ -204,8 +204,8 @@ themes/minimal/templates/base.html,sha256=LFkx-XLDMGH7oFHHa0e6KPB0DJITOBvr6GtPkD
|
|
|
204
204
|
themes/minimal/templates/home.html,sha256=ygYQgYj1OGCiKwmfsxwkPselVKT8vDH3jLLbfphpqKI,1577
|
|
205
205
|
themes/minimal/templates/page.html,sha256=7Xcoq-ryaxlp913H2S1ishrAro2wsqqGmvsm1osXxd4,389
|
|
206
206
|
themes/minimal/templates/post.html,sha256=FkTRHci8HNIIi3DU6Mb3oL0aDisGyDcsT_IUDwHmrvo,1387
|
|
207
|
-
focomy-0.1.
|
|
208
|
-
focomy-0.1.
|
|
209
|
-
focomy-0.1.
|
|
210
|
-
focomy-0.1.
|
|
211
|
-
focomy-0.1.
|
|
207
|
+
focomy-0.1.119.dist-info/METADATA,sha256=oY4MenoazpK5kOyrGpp65GOSipjHfzdKbaPYMfeYzHo,7042
|
|
208
|
+
focomy-0.1.119.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
209
|
+
focomy-0.1.119.dist-info/entry_points.txt,sha256=_rF-wxGI1axY7gox3DBsTLHq-JrFKkMCjA65a6b_oqE,41
|
|
210
|
+
focomy-0.1.119.dist-info/licenses/LICENSE,sha256=z9Z7gN7NNV7zYCaY-Knh3bv8RBCu89VueYtAlN_-lro,1063
|
|
211
|
+
focomy-0.1.119.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|