From abcc34c1cb0e2427acc3aed33cca268340623315 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 7 Jan 2026 11:53:39 +0330 Subject: [PATCH] fix build --- src/pages/viewer/components/mockData.ts | 48 ++++++++++++++++--------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/src/pages/viewer/components/mockData.ts b/src/pages/viewer/components/mockData.ts index 70e8732..90869e6 100644 --- a/src/pages/viewer/components/mockData.ts +++ b/src/pages/viewer/components/mockData.ts @@ -11,20 +11,22 @@ export const mockPages: PageData[] = [ height: 1123, elements: [ { + id: 'text-1-1', type: 'text', x: 100, y: 150, text: 'صفحه اول\nخوش آمدید', fontSize: 48, - color: '#1a1a1a', + fill: '#1a1a1a', }, { + id: 'text-1-2', type: 'text', x: 100, y: 250, text: 'این یک کتاب نمایشی است\nبرای تست کتابخوان', fontSize: 24, - color: '#333333', + fill: '#333333', }, ], }, @@ -34,28 +36,31 @@ export const mockPages: PageData[] = [ height: 1123, elements: [ { + id: 'text-2-1', type: 'text', x: 100, y: 100, text: 'فصل اول: مقدمه', fontSize: 36, - color: '#000000', + fill: '#000000', }, { + id: 'text-2-2', type: 'text', x: 100, y: 180, text: 'این یک متن نمونه است که در صفحه دوم نمایش داده می‌شود.\nمتن‌های بیشتر برای نمایش بهتر صفحه.', fontSize: 20, - color: '#2c2c2c', + fill: '#2c2c2c', }, { + id: 'text-2-3', type: 'text', x: 100, y: 320, text: 'محتوا در اینجا ادامه دارد...', fontSize: 18, - color: '#444444', + fill: '#444444', }, ], }, @@ -65,28 +70,31 @@ export const mockPages: PageData[] = [ height: 1123, elements: [ { + id: 'text-3-1', type: 'text', x: 100, y: 100, text: 'صفحه سوم', fontSize: 32, - color: '#1a1a1a', + fill: '#1a1a1a', }, { + id: 'text-3-2', type: 'text', x: 100, y: 200, text: 'این صفحه شامل محتوای بیشتری است.\n\nمی‌توانید متن‌های مختلفی در اینجا اضافه کنید.', fontSize: 22, - color: '#333333', + fill: '#333333', }, { + id: 'text-3-3', type: 'text', x: 100, y: 400, text: 'نکته: این یک نمایش نمونه است', fontSize: 18, - color: '#666666', + fill: '#666666', }, ], }, @@ -96,20 +104,22 @@ export const mockPages: PageData[] = [ height: 1123, elements: [ { + id: 'text-4-1', type: 'text', x: 100, y: 150, text: 'فصل دوم: ادامه', fontSize: 36, - color: '#000000', + fill: '#000000', }, { + id: 'text-4-2', type: 'text', x: 100, y: 250, text: 'در این بخش محتوای بیشتری اضافه می‌شود.\n\nاین کتاب نمونه برای نمایش قابلیت‌های کتابخوان طراحی شده است.', fontSize: 20, - color: '#2c2c2c', + fill: '#2c2c2c', }, ], }, @@ -119,28 +129,31 @@ export const mockPages: PageData[] = [ height: 1123, elements: [ { + id: 'text-5-1', type: 'text', x: 100, y: 120, text: 'صفحه پنجم', fontSize: 40, - color: '#1a1a1a', + fill: '#1a1a1a', }, { + id: 'text-5-2', type: 'text', x: 100, y: 220, text: 'محتوا در صفحات مختلف توزیع شده است.\n\nهر صفحه می‌تواند شامل متن و تصویر باشد.', fontSize: 22, - color: '#333333', + fill: '#333333', }, { + id: 'text-5-3', type: 'text', x: 100, y: 400, text: 'ادامه در صفحه بعد...', fontSize: 18, - color: '#666666', + fill: '#666666', }, ], }, @@ -150,28 +163,31 @@ export const mockPages: PageData[] = [ height: 1123, elements: [ { + id: 'text-6-1', type: 'text', x: 100, y: 200, text: 'صفحه آخر', fontSize: 36, - color: '#1a1a1a', + fill: '#1a1a1a', }, { + id: 'text-6-2', type: 'text', x: 100, y: 300, text: 'این آخرین صفحه کتاب است.\n\nاز کتابخوان استفاده کرده و صفحات را ورق بزنید!', fontSize: 24, - color: '#333333', + fill: '#333333', }, { + id: 'text-6-3', type: 'text', x: 100, y: 500, text: 'پایان', fontSize: 32, - color: '#000000', + fill: '#000000', }, ], },