renusify 2.1.8 → 2.2.0

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.
Files changed (214) hide show
  1. package/index.js +14 -10
  2. package/package.json +1 -1
  3. package/docs/.browserslistrc +0 -4
  4. package/docs/.editorconfig +0 -5
  5. package/docs/babel.config.js +0 -3
  6. package/docs/jsconfig.json +0 -19
  7. package/docs/package-lock.json +0 -23358
  8. package/docs/package.json +0 -34
  9. package/docs/public/404.jpg +0 -0
  10. package/docs/public/index.html +0 -18
  11. package/docs/public/logo.jpg +0 -0
  12. package/docs/public/manifest.json +0 -23
  13. package/docs/public/pwa/android-chrome-192x192.png +0 -0
  14. package/docs/public/pwa/android-chrome-256x256.png +0 -0
  15. package/docs/public/pwa/apple-touch-icon.png +0 -0
  16. package/docs/public/pwa/favicon-16x16.png +0 -0
  17. package/docs/public/pwa/favicon-32x32.png +0 -0
  18. package/docs/public/pwa/favicon.ico +0 -0
  19. package/docs/public/pwa/mstile-150x150.png +0 -0
  20. package/docs/public/pwa/safari-pinned-tab.svg +0 -17
  21. package/docs/public/robots.txt +0 -2
  22. package/docs/src/Index.vue +0 -17
  23. package/docs/src/components/buttomNextPage.vue +0 -72
  24. package/docs/src/components/sideBar.vue +0 -141
  25. package/docs/src/components/tableEvents.vue +0 -36
  26. package/docs/src/components/tableProps.vue +0 -36
  27. package/docs/src/components/treeElement.vue +0 -21
  28. package/docs/src/index.js +0 -26
  29. package/docs/src/layouts/renusify.vue +0 -215
  30. package/docs/src/plugins/axios.js +0 -54
  31. package/docs/src/registerServiceWorker.js +0 -47
  32. package/docs/src/router/index.js +0 -43
  33. package/docs/src/views/index/notFound/en.vue +0 -36
  34. package/docs/src/views/index/notFound/fa.vue +0 -35
  35. package/docs/src/views/index/notFound/index.vue +0 -26
  36. package/docs/src/views/index/pages.vue +0 -50
  37. package/docs/src/views/index/v1/component/app/en.vue +0 -61
  38. package/docs/src/views/index/v1/component/app/fa.vue +0 -66
  39. package/docs/src/views/index/v1/component/avatar/en.vue +0 -184
  40. package/docs/src/views/index/v1/component/avatar/fa.vue +0 -208
  41. package/docs/src/views/index/v1/component/bar/bottomNavigation/en.vue +0 -181
  42. package/docs/src/views/index/v1/component/bar/bottomNavigation/fa.vue +0 -180
  43. package/docs/src/views/index/v1/component/bar/bottomNavigationCircle/en.vue +0 -100
  44. package/docs/src/views/index/v1/component/bar/bottomNavigationCircle/fa.vue +0 -98
  45. package/docs/src/views/index/v1/component/bar/toolbar/en.vue +0 -231
  46. package/docs/src/views/index/v1/component/bar/toolbar/fa.vue +0 -232
  47. package/docs/src/views/index/v1/component/breadcrumbs/en.vue +0 -84
  48. package/docs/src/views/index/v1/component/breadcrumbs/fa.vue +0 -86
  49. package/docs/src/views/index/v1/component/button/btn/en.vue +0 -282
  50. package/docs/src/views/index/v1/component/button/btn/fa.vue +0 -286
  51. package/docs/src/views/index/v1/component/button/btn_confirm/en.vue +0 -155
  52. package/docs/src/views/index/v1/component/button/btn_confirm/fa.vue +0 -154
  53. package/docs/src/views/index/v1/component/button/btn_group/en.vue +0 -118
  54. package/docs/src/views/index/v1/component/button/btn_group/fa.vue +0 -117
  55. package/docs/src/views/index/v1/component/calendar/en.vue +0 -286
  56. package/docs/src/views/index/v1/component/calendar/fa.vue +0 -274
  57. package/docs/src/views/index/v1/component/card/en.vue +0 -283
  58. package/docs/src/views/index/v1/component/card/fa.vue +0 -294
  59. package/docs/src/views/index/v1/component/chart/en.vue +0 -113
  60. package/docs/src/views/index/v1/component/chart/fa.vue +0 -113
  61. package/docs/src/views/index/v1/component/chart/worldMap/en.vue +0 -112
  62. package/docs/src/views/index/v1/component/chart/worldMap/fa.vue +0 -114
  63. package/docs/src/views/index/v1/component/chat/en.vue +0 -153
  64. package/docs/src/views/index/v1/component/chat/fa.vue +0 -153
  65. package/docs/src/views/index/v1/component/chip/en.vue +0 -341
  66. package/docs/src/views/index/v1/component/chip/fa.vue +0 -340
  67. package/docs/src/views/index/v1/component/codeEditor/en.vue +0 -84
  68. package/docs/src/views/index/v1/component/codeEditor/fa.vue +0 -83
  69. package/docs/src/views/index/v1/component/confirm/en.vue +0 -441
  70. package/docs/src/views/index/v1/component/confirm/fa.vue +0 -434
  71. package/docs/src/views/index/v1/component/container/col/en.vue +0 -68
  72. package/docs/src/views/index/v1/component/container/col/fa.vue +0 -67
  73. package/docs/src/views/index/v1/component/container/divider/en.vue +0 -133
  74. package/docs/src/views/index/v1/component/container/divider/fa.vue +0 -130
  75. package/docs/src/views/index/v1/component/container/en.vue +0 -136
  76. package/docs/src/views/index/v1/component/container/fa.vue +0 -135
  77. package/docs/src/views/index/v1/component/container/row/en.vue +0 -157
  78. package/docs/src/views/index/v1/component/container/row/fa.vue +0 -157
  79. package/docs/src/views/index/v1/component/container/spacer/en.vue +0 -40
  80. package/docs/src/views/index/v1/component/container/spacer/fa.vue +0 -38
  81. package/docs/src/views/index/v1/component/content/en.vue +0 -61
  82. package/docs/src/views/index/v1/component/content/fa.vue +0 -59
  83. package/docs/src/views/index/v1/component/count_down/en.vue +0 -111
  84. package/docs/src/views/index/v1/component/count_down/fa.vue +0 -116
  85. package/docs/src/views/index/v1/component/cropper/en.vue +0 -97
  86. package/docs/src/views/index/v1/component/cropper/fa.vue +0 -97
  87. package/docs/src/views/index/v1/component/float/en.vue +0 -220
  88. package/docs/src/views/index/v1/component/float/fa.vue +0 -222
  89. package/docs/src/views/index/v1/component/form/address_input/en.vue +0 -237
  90. package/docs/src/views/index/v1/component/form/address_input/fa.vue +0 -237
  91. package/docs/src/views/index/v1/component/form/cam_input/en.vue +0 -244
  92. package/docs/src/views/index/v1/component/form/cam_input/fa.vue +0 -247
  93. package/docs/src/views/index/v1/component/form/check_input/en.vue +0 -221
  94. package/docs/src/views/index/v1/component/form/check_input/fa.vue +0 -221
  95. package/docs/src/views/index/v1/component/form/checkbox_input/en.vue +0 -453
  96. package/docs/src/views/index/v1/component/form/checkbox_input/fa.vue +0 -453
  97. package/docs/src/views/index/v1/component/form/color_input/en.vue +0 -121
  98. package/docs/src/views/index/v1/component/form/color_input/fa.vue +0 -120
  99. package/docs/src/views/index/v1/component/form/date_input/en.vue +0 -242
  100. package/docs/src/views/index/v1/component/form/date_input/fa.vue +0 -242
  101. package/docs/src/views/index/v1/component/form/file_input/en.vue +0 -123
  102. package/docs/src/views/index/v1/component/form/file_input/fa.vue +0 -133
  103. package/docs/src/views/index/v1/component/form/form/en.vue +0 -120
  104. package/docs/src/views/index/v1/component/form/form/fa.vue +0 -111
  105. package/docs/src/views/index/v1/component/form/group_input/en.vue +0 -369
  106. package/docs/src/views/index/v1/component/form/group_input/fa.vue +0 -368
  107. package/docs/src/views/index/v1/component/form/input/en.vue +0 -586
  108. package/docs/src/views/index/v1/component/form/input/fa.vue +0 -589
  109. package/docs/src/views/index/v1/component/form/json_input/en.vue +0 -280
  110. package/docs/src/views/index/v1/component/form/json_input/fa.vue +0 -285
  111. package/docs/src/views/index/v1/component/form/mask_input/en.vue +0 -249
  112. package/docs/src/views/index/v1/component/form/mask_input/fa.vue +0 -247
  113. package/docs/src/views/index/v1/component/form/number_input/en.vue +0 -319
  114. package/docs/src/views/index/v1/component/form/number_input/fa.vue +0 -363
  115. package/docs/src/views/index/v1/component/form/password_input/en.vue +0 -351
  116. package/docs/src/views/index/v1/component/form/password_input/fa.vue +0 -352
  117. package/docs/src/views/index/v1/component/form/radio_input/en.vue +0 -251
  118. package/docs/src/views/index/v1/component/form/radio_input/fa.vue +0 -262
  119. package/docs/src/views/index/v1/component/form/range_input/en.vue +0 -302
  120. package/docs/src/views/index/v1/component/form/range_input/fa.vue +0 -310
  121. package/docs/src/views/index/v1/component/form/rating_input/en.vue +0 -318
  122. package/docs/src/views/index/v1/component/form/rating_input/fa.vue +0 -286
  123. package/docs/src/views/index/v1/component/form/select_input/en.vue +0 -293
  124. package/docs/src/views/index/v1/component/form/select_input/fa.vue +0 -297
  125. package/docs/src/views/index/v1/component/form/switch_input/en.vue +0 -138
  126. package/docs/src/views/index/v1/component/form/switch_input/fa.vue +0 -139
  127. package/docs/src/views/index/v1/component/form/tel_input/en.vue +0 -195
  128. package/docs/src/views/index/v1/component/form/tel_input/fa.vue +0 -194
  129. package/docs/src/views/index/v1/component/form/text_area/en.vue +0 -189
  130. package/docs/src/views/index/v1/component/form/text_area/fa.vue +0 -191
  131. package/docs/src/views/index/v1/component/form/text_editor/en.vue +0 -143
  132. package/docs/src/views/index/v1/component/form/text_editor/fa.vue +0 -143
  133. package/docs/src/views/index/v1/component/form/text_editor/text_editor_preview/en.vue +0 -72
  134. package/docs/src/views/index/v1/component/form/text_editor/text_editor_preview/fa.vue +0 -78
  135. package/docs/src/views/index/v1/component/form/text_input/en.vue +0 -146
  136. package/docs/src/views/index/v1/component/form/text_input/fa.vue +0 -149
  137. package/docs/src/views/index/v1/component/form/time_input/en.vue +0 -138
  138. package/docs/src/views/index/v1/component/form/time_input/fa.vue +0 -137
  139. package/docs/src/views/index/v1/component/form/time_range_input/en.vue +0 -115
  140. package/docs/src/views/index/v1/component/form/time_range_input/fa.vue +0 -113
  141. package/docs/src/views/index/v1/component/form/unique_input/en.vue +0 -107
  142. package/docs/src/views/index/v1/component/form/unique_input/fa.vue +0 -106
  143. package/docs/src/views/index/v1/component/form/unit_input/en.vue +0 -200
  144. package/docs/src/views/index/v1/component/form/unit_input/fa.vue +0 -203
  145. package/docs/src/views/index/v1/component/form_creator/en.vue +0 -181
  146. package/docs/src/views/index/v1/component/form_creator/fa.vue +0 -179
  147. package/docs/src/views/index/v1/component/html2pdf/en.vue +0 -215
  148. package/docs/src/views/index/v1/component/html2pdf/fa.vue +0 -226
  149. package/docs/src/views/index/v1/component/html2pdf/html2pdf_page_break/en.vue +0 -37
  150. package/docs/src/views/index/v1/component/html2pdf/html2pdf_page_break/fa.vue +0 -36
  151. package/docs/src/views/index/v1/component/icon/en.vue +0 -231
  152. package/docs/src/views/index/v1/component/icon/fa.vue +0 -230
  153. package/docs/src/views/index/v1/component/img/en.vue +0 -511
  154. package/docs/src/views/index/v1/component/img/fa.vue +0 -510
  155. package/docs/src/views/index/v1/component/infinite/infinite_box/en.vue +0 -107
  156. package/docs/src/views/index/v1/component/infinite/infinite_box/fa.vue +0 -106
  157. package/docs/src/views/index/v1/component/infinite/infinite_div/en.vue +0 -87
  158. package/docs/src/views/index/v1/component/infinite/infinite_div/fa.vue +0 -83
  159. package/docs/src/views/index/v1/component/infinite/infinite_page/en.vue +0 -76
  160. package/docs/src/views/index/v1/component/infinite/infinite_page/fa.vue +0 -76
  161. package/docs/src/views/index/v1/component/list/en.vue +0 -477
  162. package/docs/src/views/index/v1/component/list/fa.vue +0 -475
  163. package/docs/src/views/index/v1/component/map/en.vue +0 -243
  164. package/docs/src/views/index/v1/component/map/fa.vue +0 -256
  165. package/docs/src/views/index/v1/component/map/map_route/en.vue +0 -176
  166. package/docs/src/views/index/v1/component/map/map_route/fa.vue +0 -177
  167. package/docs/src/views/index/v1/component/map/map_select/en.vue +0 -85
  168. package/docs/src/views/index/v1/component/map/map_select/fa.vue +0 -87
  169. package/docs/src/views/index/v1/component/menu/en.vue +0 -160
  170. package/docs/src/views/index/v1/component/menu/fa.vue +0 -158
  171. package/docs/src/views/index/v1/component/message/en.vue +0 -135
  172. package/docs/src/views/index/v1/component/message/fa.vue +0 -134
  173. package/docs/src/views/index/v1/component/meta/en.vue +0 -74
  174. package/docs/src/views/index/v1/component/meta/fa.vue +0 -73
  175. package/docs/src/views/index/v1/component/modal/en.vue +0 -432
  176. package/docs/src/views/index/v1/component/modal/fa.vue +0 -433
  177. package/docs/src/views/index/v1/component/notify/en.vue +0 -116
  178. package/docs/src/views/index/v1/component/notify/fa.vue +0 -116
  179. package/docs/src/views/index/v1/component/progress/progress_circle/en.vue +0 -202
  180. package/docs/src/views/index/v1/component/progress/progress_circle/fa.vue +0 -201
  181. package/docs/src/views/index/v1/component/progress/progress_line/en.vue +0 -216
  182. package/docs/src/views/index/v1/component/progress/progress_line/fa.vue +0 -214
  183. package/docs/src/views/index/v1/component/search_box/en.vue +0 -185
  184. package/docs/src/views/index/v1/component/search_box/fa.vue +0 -178
  185. package/docs/src/views/index/v1/component/slider/en.vue +0 -428
  186. package/docs/src/views/index/v1/component/slider/fa.vue +0 -427
  187. package/docs/src/views/index/v1/component/swiper/en.vue +0 -291
  188. package/docs/src/views/index/v1/component/swiper/fa.vue +0 -289
  189. package/docs/src/views/index/v1/component/table/en.vue +0 -711
  190. package/docs/src/views/index/v1/component/table/fa.vue +0 -709
  191. package/docs/src/views/index/v1/component/table/table_crud/en.vue +0 -218
  192. package/docs/src/views/index/v1/component/table/table_crud/fa.vue +0 -219
  193. package/docs/src/views/index/v1/component/tabs/en.vue +0 -289
  194. package/docs/src/views/index/v1/component/tabs/fa.vue +0 -289
  195. package/docs/src/views/index/v1/component/time_ago/en.vue +0 -98
  196. package/docs/src/views/index/v1/component/time_ago/fa.vue +0 -102
  197. package/docs/src/views/index/v1/component/timeline/en.vue +0 -140
  198. package/docs/src/views/index/v1/component/timeline/fa.vue +0 -138
  199. package/docs/src/views/index/v1/component/tour/en.vue +0 -125
  200. package/docs/src/views/index/v1/component/tour/fa.vue +0 -129
  201. package/docs/src/views/index/v1/component/tree/en.vue +0 -213
  202. package/docs/src/views/index/v1/component/tree/fa.vue +0 -213
  203. package/docs/src/views/index/v1/features/breakpoint/fa.vue +0 -136
  204. package/docs/src/views/index/v1/features/direction/fa.vue +0 -57
  205. package/docs/src/views/index/v1/features/internationalization/fa.vue +0 -186
  206. package/docs/src/views/index/v1/features/theme/fa.vue +0 -148
  207. package/docs/src/views/index/v1/getting_started/browserSupport/fa.vue +0 -33
  208. package/docs/src/views/index/v1/getting_started/installation/fa.vue +0 -110
  209. package/docs/src/views/index/v1/introduction/support/fa.vue +0 -58
  210. package/docs/src/views/index/v1/introduction/whyRenusify/fa.vue +0 -49
  211. package/docs/src/views/index/v1/menu/en.json +0 -1040
  212. package/docs/src/views/index/v1/menu/fa.json +0 -1040
  213. package/docs/src/views/index/v1/mixins/root/fa.vue +0 -131
  214. package/docs/vue.config.js +0 -39
@@ -1,186 +0,0 @@
1
- <template>
2
- <section>
3
- <h1 class="display-4">بین المللی</h1>
4
- <p class="title mt-5">
5
- رنوسیفای از زبان های زنده بین المللی (i18n) و واحدهای شمارش و تاریخ آن ها
6
- پشتیبانی می کند. برای این منظور می توان زبان های قابل پشتیبانی و سیستم
7
- تاریخ آن ها را تعریف کرد. همچنین در داخل برنامه می توان زبان برنامه را عوض
8
- کرد و بین زبان های تعریف شده جابجا شد.
9
- </p>
10
- <p>
11
- برای زبان های جدید علاوه بر مشخص کردن زبان برنامه می بایست برای کلاس
12
- DateTime فرمت را مشخص کرد تا برنامه به صورت خودکار تاریخ و زمان را ترجمه
13
- کند.
14
- </p>
15
-
16
- <r-code-editor
17
- :script-show="false"
18
- :style-show="false"
19
- :template-show="false"
20
- script='import {createApp} from "vue";
21
- import App from "./Index.vue";
22
- import renusify from "renusify";
23
- import DateTime from "renusify/plugins/trans/DateTime";
24
- DateTime.langs={
25
- "en": {
26
- first_day: 0,
27
- time_zone_offset: -480,//Standard timezone offset minutes.
28
- daylight_saving_time: true,
29
- localizeName: "en-US",
30
- timeZone: "America/Los_Angeles",
31
- rtl: false
32
- },
33
- "fa": {
34
- first_day: 6,
35
- time_zone_offset: 210,
36
- daylight_saving_time: false,
37
- localizeName: "fa-IR",
38
- timeZone: "Asia/Tehran",
39
- calendar: "persian",
40
- rtl: true
41
- },
42
- }
43
- window.app = createApp(App) .use(renusify,{
44
- lang: "fa"
45
- }) .mount("#app");
46
- '
47
- >
48
- </r-code-editor>
49
- </section>
50
- <section>
51
- <h2 class="display-4 my-5">تاریخ و زمان</h2>
52
- <p>
53
- می توان نحوه نمایش تاریخ برای مدل های مختلف را بر اساس زبان مورد نظر مشخص
54
- کرد. مثلا در حالت درخواست short تاریخ بر اساس سال به صورت عدد و ماه به
55
- صورت نام و روز به صورت عدد نمایش داده می شود.
56
- </p>
57
-
58
- <r-code-editor
59
- runnable
60
- template='<div class="ltr">
61
- <div>date: {{new Date()}}</div>
62
- <div>narrow: {{$d(new Date(),"narrow")}}</div>
63
- <div>day: {{$d(new Date(),"day")}}</div>
64
- <div>month: {{$d(new Date(),"month")}}</div>
65
- <div>year: {{$d(new Date(),"year")}}</div>
66
- <div>short: {{$d(new Date(),"short")}}</div>
67
- <div>medium: {{$d(new Date(),"medium")}}</div>
68
- <div>long: {{$d(new Date(),"long")}}</div>
69
- </div>'
70
- >
71
- </r-code-editor>
72
- </section>
73
- <section>
74
- <h3 class="display-4 my-5">ترجمه</h3>
75
- <p>
76
- برای ترجمه از تابع t$ استفاده می کنیم. همچنین این تابع می تواند متغیر
77
- بگیرد و در ترجمه جاگذاری کند.
78
- </p>
79
- <p>
80
- برای استفاده از ترجمه در ابتدا باید کلیدها و مقدارهای مربوط به هر زبان را
81
- به کلاس ارجاع دهیم و اگر کلید درخواستی مقداری نداشته باشد خود کلید
82
- برگردانده می شود. همچنین برای کلیدهایی که مقدار ندارند در حالت لوکال کلید
83
- با نام پکیج به سمت سرور ارسال می گردد تا به دیتابیس اضافه شود و کاربر
84
- ترجمه مربوط به آن را انجام دهد و در درخواست های بعدی در دسترس باشد.
85
- </p>
86
-
87
- <r-code-editor
88
- runnable
89
- script="name:'test',
90
- created(){
91
- this.$translate.add('name','codenus');
92
- this.$translate.add('from_to_manage','From {0} to {1} of {2}');
93
- }"
94
- template="<div>
95
- <div>{{$t('name')}}</div>
96
- <div>{{$t(['from_to_manage',[0,5,20]])}}</div>
97
- </div>"
98
- >
99
- </r-code-editor>
100
-
101
- <p>برای تغییر زبان برنامه به صورت داینامیک می توان به صورت زیر عمل کرد</p>
102
-
103
- <r-code-editor
104
- runnable
105
- script='data() {
106
- return {
107
- key:1,
108
- langList: [{
109
- name: "english",value: "en",rtl: false
110
- },{
111
- name: "فارسی",value: "fa",rtl: true
112
- }
113
- ]
114
- };
115
- },
116
- methods: {
117
- changeLang(item) {
118
- if(item){
119
- this.$r.lang = item.value;
120
- this.$r.rtl = item.rtl;
121
- this.$storage.set("lang",item.value);
122
- this.$storage.set("rtl",item.rtl);
123
- this.switchLang(item.value);
124
- }
125
- },
126
- switchLang(lang) {
127
- if (this.$translate.messages.lang) {
128
- this.$translate.local = lang;
129
- }
130
- else {
131
- this.loadLocaleMessage(lang);
132
- }
133
- },
134
- loadLocaleMessage(locale) {
135
- const msgs = {
136
- "fa": {
137
- "id": "شناسه",
138
- "name": "نام"
139
- },
140
- "en": {
141
- "id": "ID",
142
- "name": "Name"
143
- }
144
- };
145
- this.$translate.local = locale;
146
- this.$translate.setMessages(msgs[locale],locale);
147
- this.key++;
148
- }
149
- }'
150
- template='<div>
151
- <r-select-input label="lang" :items="langList" @update:model-value="changeLang" >
152
- </r-select-input>
153
- <div :key="key"> {{$t("id")}} {{$t("name")}}
154
- </div>
155
- </div>'
156
- >
157
- </r-code-editor>
158
- </section>
159
- <section>
160
- <h3 class="display-4 my-5">واحد شمارش</h3>
161
- <p>برای اعداد در زبان های محلی می توان از تابع n$ استفاده کرد.</p>
162
-
163
- <r-code-editor
164
- runnable
165
- template="<div class='ltr'>
166
- <div> {{$n(7)}}</div>
167
- <div> {{$n(6000000)}}</div>
168
- <div> {{$n(50000000000)}}</div>
169
- </div>"
170
- >
171
- </r-code-editor>
172
- </section>
173
- </template>
174
-
175
- <script>
176
- export default {
177
- name: "internationalization",
178
- data() {
179
- return {};
180
- },
181
- };
182
- </script>
183
-
184
- <style lang="scss">
185
- @import "~renusify/style/include";
186
- </style>
@@ -1,148 +0,0 @@
1
- <template>
2
- <section>
3
- <h1 class="display-4">تم</h1>
4
- <p class="title mt-5">
5
- شما می توانید در هنگام نصب و یا در حین اجرای برنامه حالت تم را تغییر دهید.
6
- </p>
7
-
8
- <p>همانند مثال زیر می توانید از داخل برنامه حالت تم را عوض کنید.</p>
9
-
10
- <r-code-editor
11
- runnable
12
- script="data(){
13
- return{
14
- dark:false
15
- }
16
- },
17
- methods: {
18
- change() {
19
- this.dark=!this.dark;
20
- if(!this.dark){
21
- this.$helper.changeColor({});
22
- return;
23
- }
24
- this.$helper.changeColor({
25
- '--color-one': '#a80b42',
26
- '--color-on-one': '#FFFFFF',
27
- '--color-one-container': '#3e424a',
28
- '--color-on-one-container': '#cedef1',
29
- '--color-two': '#565F71',
30
- '--color-on-two': '#FFFFFF',
31
- '--color-two-container': '#DAE2F9',
32
- '--color-on-two-container': '#131C2B',
33
- '--color-three': '#705575',
34
- '--color-on-three': '#FFFFFF',
35
- '--color-three-container': '#FAD8FD',
36
- '--color-on-three-container': '#28132E',
37
- '--color-error': '#BA1A1A',
38
- '--color-on-error': '#FFFFFF',
39
- '--color-error-container': '#FFDAD6',
40
- '--color-on-error-container': '#410002',
41
- '--color-success': '#246b0f',
42
- '--color-on-success': '#FFFFFF',
43
- '--color-success-container': '#e3ffd6',
44
- '--color-on-success-container': '#1d4100',
45
- '--color-warning': '#a45104',
46
- '--color-on-warning': '#FFFFFF',
47
- '--color-warning-container': '#ffe8d6',
48
- '--color-on-warning-container': '#411f00',
49
- '--color-info': '#1a5aba',
50
- '--color-on-info': '#FFFFFF',
51
- '--color-info-container': '#d6e9ff',
52
- '--color-on-info-container': '#002341',
53
- '--color-sheet': '#262627',
54
- '--color-sheet-dark': '#0e0e0e',
55
- '--color-sheet-light': '#4b4b4c',
56
- '--color-on-sheet': '#e9ebed',
57
- '--color-sheet-low': '#57585e',
58
- '--color-on-sheet-low': '#edeef1',
59
- '--color-sheet-container-lowest': '#0b0b0b',
60
- '--color-sheet-container-low': '#181819',
61
- '--color-sheet-container': '#222223',
62
- '--color-sheet-container-high': '#303133',
63
- '--color-sheet-container-highest': '#5f5f63',
64
- '--color-border': '#a8acb6',
65
- '--color-border-low': '#9ea0aa',
66
- '--color-overlay': 'rgba(246, 250, 254, 0.4980392157)',
67
- })
68
- }
69
- }"
70
- template='<div class="mt-5">
71
- <r-btn @click="change" >change</r-btn>
72
- </div>'
73
- >
74
- </r-code-editor>
75
- </section>
76
- <section>
77
- <h2 class="display-4 my-5"></h2>
78
- <p>
79
- برنامه دارای رنگ های اصلی زیر برای حالت روشن می باشد که شما در هر کجای
80
- برنامه می توانید آن را عوض کنید.
81
- </p>
82
-
83
- <r-code-editor
84
- :script-show="false"
85
- :style-show="false"
86
- :template-show="false"
87
- script=":root {
88
-
89
- --color-one: #415F91;
90
- --color-on-one: #FFFFFF;
91
- --color-one-container: #D6E3FF;
92
- --color-on-one-container: #001B3E;
93
- --color-two: #565F71;
94
- --color-on-two: #FFFFFF;
95
- --color-two-container: #DAE2F9;
96
- --color-on-two-container: #131C2B;
97
- --color-three: #705575;
98
- --color-on-three: #FFFFFF;
99
- --color-three-container: #FAD8FD;
100
- --color-on-three-container: #28132E;
101
- --color-error: #BA1A1A;
102
- --color-on-error: #FFFFFF;
103
- --color-error-container: #FFDAD6;
104
- --color-on-error-container: #410002;
105
- --color-success: #246b0f;
106
- --color-on-success: #FFFFFF;
107
- --color-success-container: #e3ffd6;
108
- --color-on-success-container: #1d4100;
109
- --color-warning: #a45104;
110
- --color-on-warning: #FFFFFF;
111
- --color-warning-container: #ffe8d6;
112
- --color-on-warning-container: #411f00;
113
- --color-info: #1a5aba;
114
- --color-on-info: #FFFFFF;
115
- --color-info-container: #d6e9ff;
116
- --color-on-info-container: #002341;
117
- --color-sheet: #F9F9FF;
118
- --color-sheet-dark: #D9D9E0;
119
- --color-sheet-light: #F9F9FF;
120
- --color-on-sheet: #191C20;
121
- --color-sheet-low: #E0E2EC;
122
- --color-on-sheet-low: #44474E;
123
- --color-sheet-container-lowest: #FFFFFF;
124
- --color-sheet-container-low: #F3F3FA;
125
- --color-sheet-container: #EDEDF4;
126
- --color-sheet-container-high: #E7E8EE;
127
- --color-sheet-container-highest: #E2E2E9;
128
- --color-border: #74777F;
129
- --color-border-low: #C4C6D0;
130
- --color-overlay: rgba(246, 250, 254, 0.4980392157);
131
- }"
132
- >
133
- </r-code-editor>
134
- </section>
135
- </template>
136
-
137
- <script>
138
- export default {
139
- name: "theme",
140
- data() {
141
- return {};
142
- },
143
- };
144
- </script>
145
-
146
- <style lang="scss">
147
- @import "~renusify/style/include";
148
- </style>
@@ -1,33 +0,0 @@
1
- <template>
2
- <section id="browserSupport" class="body-1">
3
- <h1 class="display-4 mb-5">مرورگرهای قابل استفاده</h1>
4
- <p>
5
- رنوسیفای یک فریمورک پیشرو است که تلاش می کند توسعه وب را به لول بعدی ببرد.
6
- برای انجام بهتر این کار ، باید فداکاری هایی در زمینه پشتیبانی از نسخه های
7
- قدیمی اینترنت اکسپلورر انجام داد. این یک لیست کامل از مرورگرهای سازگار
8
- نیست ، بلکه مرورگرهای اصلی مورد نظر است.
9
- </p>
10
- <r-table
11
- :items="[
12
- { مرورگر: 'گوگل کروم', پشتیبانی: 'می کند' },
13
- { مرورگر: 'مایکروسافت اچ', پشتیبانی: 'می کند' },
14
- { مرورگر: 'فایرفاکس', پشتیبانی: 'می کند' },
15
- { مرورگر: 'سافاری', پشتیبانی: 'می کند' },
16
- ]"
17
- borderd
18
- ></r-table>
19
- </section>
20
- </template>
21
-
22
- <script>
23
- export default {
24
- name: "browserSupport",
25
- data() {
26
- return {};
27
- },
28
- };
29
- </script>
30
-
31
- <style lang="scss">
32
- @import "~renusify/style/include";
33
- </style>
@@ -1,110 +0,0 @@
1
- <template>
2
- <section id="install" class="body-1">
3
- <h1 class="display-4 mb-5">نصب</h1>
4
- <p>
5
- شروع کار با رنوسیفای
6
- <br/>
7
- به سهولت و سرعت پروژه هایتان را ایجاد کنید. هرآنچه در ذهنت هست با رنوسیفای
8
- خلق بکن.
9
- </p>
10
- </section>
11
- <section id="vue_cli" class="mt-10 body-1">
12
- <h2 class="display-4 mb-5">نصب با vue cli</h2>
13
- <p class="color-error br-sm pa-3">
14
- این ورژن از رنوسیفای با vue3 کار می کند و بر اساس آن نوشته شده است. برای
15
- ورژن های قبلی vuejs از فریمورک های قدیمی تر پیشنهاد می شود استفاده کنید.
16
- </p>
17
- <p class="color-warning br-sm pa-3">
18
- برای آموزش نحوه کار با vue cli به
19
- <a class="color-info-text" href="https://cli.vuejs.org/" target="_blank">
20
- راهنما
21
- <r-icon class="mdi-arrow-top-right-thin-circle-outline body-2"></r-icon>
22
- </a>
23
- مراجعه کنید.
24
- </p>
25
- <p class="mt-5 mb-2">
26
- در ابتدا یک پروژه با Vue cli ایجاد کنید در صورتی که پروژه ای ندارید.
27
- </p>
28
- <pre>
29
- vue create my-app
30
- # navigate to new project directory
31
- cd my-app
32
- </pre
33
- >
34
- <p class="mt-5 mb-2">
35
- اکنون که یک پروژه جدید ایجاد کردید با استفاده از دستور زیر رنوسیفای را به
36
- پروژه اضافه کنید.
37
- </p>
38
- <pre>
39
- npm install renusify
40
- </pre
41
- >
42
-
43
- <p class="mt-5 mb-2">به فایل جاوااسکریپت کد زیر را اضافه کنید</p>
44
- <r-code-editor
45
- :script="`import { createApp } from &quot;vue&quot;;
46
- import App from &quot;./Index.vue&quot;;
47
- import renusify from &quot;renusify&quot;;
48
- import * as components from &quot;renusify/components&quot;;
49
- import {scroll, title, intersect} from &quot;renusify/directive&quot;;
50
- window.app = createApp(App)
51
- .use(renusify, {
52
- rtl: false,
53
- inputs: {tile: false},
54
- lang: 'en',
55
- langs:{
56
- 'en': {
57
- first_day: 0,
58
- time_zone_offset: -480,/*Standard timezone offset minutes -07:00*/
59
- daylight_saving_time: true,
60
- localizeName: 'en-US',
61
- timeZone: 'America/Los_Angeles',
62
- rtl: false
63
- },
64
- 'fa': {
65
- first_day: 6,
66
- time_zone_offset: 210,//Standard timezone offset minutes +03:30
67
- daylight_saving_time: false,
68
- localizeName: 'fa-IR',
69
- timeZone: 'Asia/Tehran',
70
- calendar: 'persian',
71
- rtl: true
72
- },
73
- },
74
- autoAddTranslate: true,
75
- useNotify: false,
76
- package: 'index',
77
- components:components,
78
- directives: {title, scroll, intersect},
79
- })
80
- .mount(&quot;#app&quot;);`"
81
- :script-show="false"
82
- :style-show="false"
83
- :template-show="false"
84
- ></r-code-editor>
85
-
86
- <p>rtl: به منظور راست به چپ کردن پروژه به کار می رود.</p>
87
- <p>lang: می توان زبان پیشفرض برنامه را مشخص کرد.</p>
88
- <p>
89
- در قسمت components می توانید لیست کمپوننت هایی که قصد استفاده دارید را
90
- وارد کنید.
91
- </p>
92
- <p>
93
- در قسمت directives می توانید لیست دایرکتیوهایی که قصد استفاده دارید را
94
- وارد کنید.
95
- </p>
96
- </section>
97
- </template>
98
-
99
- <script>
100
- export default {
101
- name: "installation",
102
- data() {
103
- return {};
104
- },
105
- };
106
- </script>
107
-
108
- <style lang="scss">
109
- @import "~renusify/style/include";
110
- </style>
@@ -1,58 +0,0 @@
1
- <template>
2
- <section id="support">
3
- <h1 class="display-4 mb-5">ارتقا</h1>
4
- <p class="body-1">
5
- سرعت زیاد رشد وب باعث تغییرات گسترده در زبان ها و کتابخانه ها می شود.
6
- رنوسیفای از حداقل کتابخانه های خارجی استفاده می کند که این خود کار توسعه
7
- را راحتتر می کند.
8
- </p>
9
- <p class="body-1">
10
- با تغییرات مهم در نسخه های مختلف کتابخانه ها ما اطمینان حاصل می کنیم تا در
11
- سریعترین زمان ممکن بروزرسانی های لازم را در تمامی فریمورک رنوسیفای انجام
12
- دهیم تا هم برنامه ها از لحاظ امنیتی با مشکل مواجه نشوند و هم اینکه از
13
- جدیدترین تکنولوژی ها بتوانید در پروژه هایتان استفاده کنید.
14
- </p>
15
- </section>
16
- <section id="bugs" class="mt-10">
17
- <h2 class="display-4 mb-5">مشکلات و باگ</h2>
18
- <p class="body-1">
19
- چنانچه در مورد کارکرد برنامه با مشکل مواجه شدید می توانید سوالات خود را با
20
- ما در میان بگذارید تا بهترین راه حل را به شما ارائه دهیم.
21
- </p>
22
- <p class="body-1">
23
- فریمورک رنوسیفای بر روی چندین دستگاه مختلف تست می شود و سعی شده است که
24
- بدون نقص و باگ باشد اما در دنیای برنامه نویسی همیشه امکان وجود باگ وجود
25
- دارد. چنانچه یک باگ را شناسایی کردید سریعا آن را به ما اطلاع دهید تا در
26
- کمترین زمان آن را برطرف کنیم.
27
- </p>
28
- </section>
29
- <section id="roadmap" class="mt-10">
30
- <h2 class="display-4 mb-5">نقشه راه</h2>
31
- <p class="body-1">
32
- رنوسیفای همیشه در دست توسعه است. ما به طور مداوم در تلاش هستیم تا کد
33
- پایگاه موجود را بهبود بخشیم ، همچنین ویژگی ها و قابلیت های جدیدی اضافه می
34
- کنیم که به ساده سازی برنامه ها کمک می کند. در زیر لیستی آزمایشی از ویژگی
35
- های برنامه ریزی شده آورده شده است. این یک لیست جامع نیست و هر زمان که
36
- بخواهید بدون اطلاع قبلی تغییر می کند.
37
- </p>
38
- <ul class="body-1 ms-5">
39
- <li>به کمپوننت ویرایشگر نوشته جدول اضافه شود</li>
40
- <li>اضافه کردن تست</li>
41
- <li>بروزرسانی داکیومنت</li>
42
- <li>ایجاد قالب های آماده</li>
43
- </ul>
44
- </section>
45
- </template>
46
-
47
- <script>
48
- export default {
49
- name: "support",
50
- data() {
51
- return {};
52
- },
53
- };
54
- </script>
55
-
56
- <style lang="scss">
57
- @import "~renusify/style/include";
58
- </style>
@@ -1,49 +0,0 @@
1
- <template>
2
- <section id="introduction">
3
- <h2 class="display-4">معرفی</h2>
4
- <p class="my-5 body-1">
5
- درباره رنوسیفای، نحوه ایجاد برنامه از ابتدا، مرور منابع API، کدهای نمونه،
6
- آموزشها و موارد دیگر بیشتر بدانید.
7
- </p>
8
- </section>
9
- <section id="what_renusify" class="mt-10">
10
- <h2 class="display-4 mb-5">رنوسیفای چیست؟</h2>
11
- <p class="body-1">
12
- رنوسیفای یک فریمورک UI است که بر پایه vueJs ساخته شده است. هدف این پروژه
13
- ارائه ابزارها و کمپوننت هایی هست که برای ایجاد یک رابط کاربری زیبا بر اساس
14
- طراحی متریال توسعه دهندگان نیاز دارند.
15
- </p>
16
- <p class="body-1">
17
- با استفاده از رنوسیفای شما به راحتی می توانید با یک بار کد زدن تمام پلتفرم
18
- های موبایل و دسکتاپ را پشتیبانی کنید. همچنین برنامه قابلیت نصب بر روی
19
- دستگاه های مختلف را خواهد داشت(pwa).
20
- </p>
21
- </section>
22
- <section id="why_renusify" class="mt-10">
23
- <h1 class="display-4 mb-5">چرا رنوسیفای؟</h1>
24
- <ul class="ms-5 body-1">
25
- <li>سرعت بالای توسعه</li>
26
- <li>کمپوننت های زیاد</li>
27
- <li>دایرکتیو های زیاد</li>
28
- <li>سهولت یادگیری</li>
29
- <li>پرفورمنس بالا</li>
30
- <li>پشتیبانی از تمامی زبان ها</li>
31
- <li>پشتیبانی از تاریخ های زنده دنیا</li>
32
- <li>پشتیبانی از جهت راست به چپ</li>
33
- <li>تم رنگ دلخواه</li>
34
- </ul>
35
- </section>
36
- </template>
37
-
38
- <script>
39
- export default {
40
- name: "why_renusify",
41
- data() {
42
- return {};
43
- },
44
- };
45
- </script>
46
-
47
- <style lang="scss">
48
- @import "~renusify/style/include";
49
- </style>