From 670ac0a9179b8fa38db83f220ffd6d3231ead6b7 Mon Sep 17 00:00:00 2001 From: Poker Design Developer Date: Sun, 31 May 2026 22:07:39 +0800 Subject: [PATCH] Rebuild Home and Editor pages with simplified inline styles - Replace Element Plus components with pure HTML/CSS - Use inline styles for reliable rendering - Fix templates URL duplicate path issue - Insert template data (4 templates) via Django shell - Clear Vite cache and restart both servers --- .../__pycache__/urls.cpython-314.pyc | Bin 473 -> 422 bytes backend/apps/templates/urls.py | 6 +- backend/db.sqlite3 | Bin 61440 -> 61440 bytes frontend/src/views/Editor.vue | 510 ++++-------------- frontend/src/views/Home.vue | 318 +++-------- 5 files changed, 172 insertions(+), 662 deletions(-) diff --git a/backend/apps/templates/__pycache__/urls.cpython-314.pyc b/backend/apps/templates/__pycache__/urls.cpython-314.pyc index f0a394bad9023317d7799f3f1b479778662ff527..8f8d7d2822910553b0268198d71e54497c851e72 100644 GIT binary patch delta 209 zcmcb~yo{Mon~#@^0SGSG$z)w&n8+u==r>Va(I}Qtks*jVmN|$eh}E1Kq=10|EXEeg z62y)W(_<=O4dPH{(Bzz0XJF1y#aoh^Tac4jlB%1NSzMyYc#9=3F*mh})26tj$f_XQ zPQQvDt|BG1Br!9`Pm^sj3!}ql)m9s;r kBX)uO6&AyrEF2xu6Y?+U*j{0=`@qV~&(y?S!~@g;0K8@~fB*mh delta 259 zcmZ3+e3O|^n~#@^0SNxQl+I#coX97^7&K8`(JY9$gf*5?ks*jBmN|$uh|QcCq=R0i?*t$8H#U+}Iw^;HL zb5pB?VZz1wHpL}HRt4F1`c?ceLEV(plElm$KTYRCJV;}PPqmA7tGwRuy}l6 OW#(sU;x6I^>H`3i<3#)b diff --git a/backend/apps/templates/urls.py b/backend/apps/templates/urls.py index 7d11d06..423ba5c 100644 --- a/backend/apps/templates/urls.py +++ b/backend/apps/templates/urls.py @@ -1,9 +1,7 @@ from django.urls import path from .views import template_list, template_detail -app_name = 'templates' - urlpatterns = [ - path('templates/', template_list, name='template-list'), - path('templates//', template_detail, name='template-detail'), + path('', template_list, name='template-list'), + path('/', template_detail, name='template-detail'), ] \ No newline at end of file diff --git a/backend/db.sqlite3 b/backend/db.sqlite3 index 153fd5dee160233de47e466c410d509536e29d55..ee2985025d7ce7b2b52c8ed796ca0544b53c0a70 100644 GIT binary patch delta 867 zcmaiy%WD%+6vpQfp-q!ax~x$Mj0HC-GjnG$nSf~e7;sUw$=IlOYBT%ZEX~2y z9I95(a^`0}XKtpOuS!PhwYgU@3K^OkV*@Nh2S#~;1wEZCj8BY$*#|uvf?!gRMg)oH z8Ac~b3*^=*h^oXA(P#uN7MiK29gv$Sy8!d=(85lmT7`3Yivd2%7$3LIhdUM?T;DSa z3p5{UB`wSTQE9xVlVw?&@Snv zv0yP+UK<~DRQ+N+FVLVJ^n?H;AoO%{sFi1@d)cIQ0iEdqNn}`k0JlV#J{_;#RpRj( z71i=E{i!2@u`v(lGe&j=rXQhf?l(oFzJY2lx=O6(;M*sS&yQ)Q9hMlax2LnjkY%6z zH_sm&Kj1_=hG8~pAEUlg$J7zEZ{6EhYGi=);N3g1wd$@_q@5hXyJv1EJ^fwymnrWr DlvO>W delta 63 zcmZp8z})bFd4e<}_e2?IM(&LXOYAuq`5PI4h-I^&LMi{|M*n63Hb(wC4E%RC3l?1B S-+U)u!(lT^!yoxY4GI8nUKIrZ diff --git a/frontend/src/views/Editor.vue b/frontend/src/views/Editor.vue index a5c94dc..067ba7a 100644 --- a/frontend/src/views/Editor.vue +++ b/frontend/src/views/Editor.vue @@ -1,481 +1,169 @@ - - diff --git a/frontend/src/views/Home.vue b/frontend/src/views/Home.vue index 9137ecd..ffae222 100644 --- a/frontend/src/views/Home.vue +++ b/frontend/src/views/Home.vue @@ -1,300 +1,124 @@ - -