renusify 2.1.5 → 2.1.8

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 (231) hide show
  1. package/components/codeEditor/index.vue +10 -10
  2. package/components/codeEditor/run.vue +3 -3
  3. package/components/form/checkboxInput/index.vue +6 -2
  4. package/components/form/groupInput/index.vue +5 -2
  5. package/components/form/selectInput/index.vue +2 -2
  6. package/components/form/switchInput/index.vue +3 -1
  7. package/components/form/text-editor/style.scss +1 -1
  8. package/components/form/timeInput/range.vue +6 -6
  9. package/components/img/index.vue +1 -1
  10. package/components/list/index.vue +105 -104
  11. package/components/message/index.vue +1 -1
  12. package/components/modal/style.scss +1 -1
  13. package/components/nestable/NestableItem.vue +2 -2
  14. package/components/nestable/editable.js +5 -5
  15. package/components/nestable/index.vue +8 -6
  16. package/components/table/crud/index.vue +1 -1
  17. package/docs/.browserslistrc +4 -0
  18. package/docs/.editorconfig +5 -0
  19. package/docs/babel.config.js +3 -0
  20. package/docs/jsconfig.json +19 -0
  21. package/docs/package-lock.json +23358 -0
  22. package/docs/package.json +34 -0
  23. package/docs/public/404.jpg +0 -0
  24. package/docs/public/index.html +18 -0
  25. package/docs/public/logo.jpg +0 -0
  26. package/docs/public/manifest.json +23 -0
  27. package/docs/public/pwa/android-chrome-192x192.png +0 -0
  28. package/docs/public/pwa/android-chrome-256x256.png +0 -0
  29. package/docs/public/pwa/apple-touch-icon.png +0 -0
  30. package/docs/public/pwa/favicon-16x16.png +0 -0
  31. package/docs/public/pwa/favicon-32x32.png +0 -0
  32. package/docs/public/pwa/favicon.ico +0 -0
  33. package/docs/public/pwa/mstile-150x150.png +0 -0
  34. package/docs/public/pwa/safari-pinned-tab.svg +17 -0
  35. package/docs/public/robots.txt +2 -0
  36. package/docs/src/Index.vue +17 -0
  37. package/docs/src/components/buttomNextPage.vue +72 -0
  38. package/docs/src/components/sideBar.vue +141 -0
  39. package/docs/src/components/tableEvents.vue +36 -0
  40. package/docs/src/components/tableProps.vue +36 -0
  41. package/docs/src/components/treeElement.vue +21 -0
  42. package/docs/src/index.js +26 -0
  43. package/docs/src/layouts/renusify.vue +215 -0
  44. package/docs/src/plugins/axios.js +54 -0
  45. package/docs/src/registerServiceWorker.js +47 -0
  46. package/docs/src/router/index.js +43 -0
  47. package/docs/src/views/index/notFound/en.vue +36 -0
  48. package/docs/src/views/index/notFound/fa.vue +35 -0
  49. package/docs/src/views/index/notFound/index.vue +26 -0
  50. package/docs/src/views/index/pages.vue +50 -0
  51. package/docs/src/views/index/v1/component/app/en.vue +61 -0
  52. package/docs/src/views/index/v1/component/app/fa.vue +66 -0
  53. package/docs/src/views/index/v1/component/avatar/en.vue +184 -0
  54. package/docs/src/views/index/v1/component/avatar/fa.vue +208 -0
  55. package/docs/src/views/index/v1/component/bar/bottomNavigation/en.vue +181 -0
  56. package/docs/src/views/index/v1/component/bar/bottomNavigation/fa.vue +180 -0
  57. package/docs/src/views/index/v1/component/bar/bottomNavigationCircle/en.vue +100 -0
  58. package/docs/src/views/index/v1/component/bar/bottomNavigationCircle/fa.vue +98 -0
  59. package/docs/src/views/index/v1/component/bar/toolbar/en.vue +231 -0
  60. package/docs/src/views/index/v1/component/bar/toolbar/fa.vue +232 -0
  61. package/docs/src/views/index/v1/component/breadcrumbs/en.vue +84 -0
  62. package/docs/src/views/index/v1/component/breadcrumbs/fa.vue +86 -0
  63. package/docs/src/views/index/v1/component/button/btn/en.vue +282 -0
  64. package/docs/src/views/index/v1/component/button/btn/fa.vue +286 -0
  65. package/docs/src/views/index/v1/component/button/btn_confirm/en.vue +155 -0
  66. package/docs/src/views/index/v1/component/button/btn_confirm/fa.vue +154 -0
  67. package/docs/src/views/index/v1/component/button/btn_group/en.vue +118 -0
  68. package/docs/src/views/index/v1/component/button/btn_group/fa.vue +117 -0
  69. package/docs/src/views/index/v1/component/calendar/en.vue +286 -0
  70. package/docs/src/views/index/v1/component/calendar/fa.vue +274 -0
  71. package/docs/src/views/index/v1/component/card/en.vue +283 -0
  72. package/docs/src/views/index/v1/component/card/fa.vue +294 -0
  73. package/docs/src/views/index/v1/component/chart/en.vue +113 -0
  74. package/docs/src/views/index/v1/component/chart/fa.vue +113 -0
  75. package/docs/src/views/index/v1/component/chart/worldMap/en.vue +112 -0
  76. package/docs/src/views/index/v1/component/chart/worldMap/fa.vue +114 -0
  77. package/docs/src/views/index/v1/component/chat/en.vue +153 -0
  78. package/docs/src/views/index/v1/component/chat/fa.vue +153 -0
  79. package/docs/src/views/index/v1/component/chip/en.vue +341 -0
  80. package/docs/src/views/index/v1/component/chip/fa.vue +340 -0
  81. package/docs/src/views/index/v1/component/codeEditor/en.vue +84 -0
  82. package/docs/src/views/index/v1/component/codeEditor/fa.vue +83 -0
  83. package/docs/src/views/index/v1/component/confirm/en.vue +441 -0
  84. package/docs/src/views/index/v1/component/confirm/fa.vue +434 -0
  85. package/docs/src/views/index/v1/component/container/col/en.vue +68 -0
  86. package/docs/src/views/index/v1/component/container/col/fa.vue +67 -0
  87. package/docs/src/views/index/v1/component/container/divider/en.vue +133 -0
  88. package/docs/src/views/index/v1/component/container/divider/fa.vue +130 -0
  89. package/docs/src/views/index/v1/component/container/en.vue +136 -0
  90. package/docs/src/views/index/v1/component/container/fa.vue +135 -0
  91. package/docs/src/views/index/v1/component/container/row/en.vue +157 -0
  92. package/docs/src/views/index/v1/component/container/row/fa.vue +157 -0
  93. package/docs/src/views/index/v1/component/container/spacer/en.vue +40 -0
  94. package/docs/src/views/index/v1/component/container/spacer/fa.vue +38 -0
  95. package/docs/src/views/index/v1/component/content/en.vue +61 -0
  96. package/docs/src/views/index/v1/component/content/fa.vue +59 -0
  97. package/docs/src/views/index/v1/component/count_down/en.vue +111 -0
  98. package/docs/src/views/index/v1/component/count_down/fa.vue +116 -0
  99. package/docs/src/views/index/v1/component/cropper/en.vue +97 -0
  100. package/docs/src/views/index/v1/component/cropper/fa.vue +97 -0
  101. package/docs/src/views/index/v1/component/float/en.vue +220 -0
  102. package/docs/src/views/index/v1/component/float/fa.vue +222 -0
  103. package/docs/src/views/index/v1/component/form/address_input/en.vue +237 -0
  104. package/docs/src/views/index/v1/component/form/address_input/fa.vue +237 -0
  105. package/docs/src/views/index/v1/component/form/cam_input/en.vue +244 -0
  106. package/docs/src/views/index/v1/component/form/cam_input/fa.vue +247 -0
  107. package/docs/src/views/index/v1/component/form/check_input/en.vue +221 -0
  108. package/docs/src/views/index/v1/component/form/check_input/fa.vue +221 -0
  109. package/docs/src/views/index/v1/component/form/checkbox_input/en.vue +453 -0
  110. package/docs/src/views/index/v1/component/form/checkbox_input/fa.vue +453 -0
  111. package/docs/src/views/index/v1/component/form/color_input/en.vue +121 -0
  112. package/docs/src/views/index/v1/component/form/color_input/fa.vue +120 -0
  113. package/docs/src/views/index/v1/component/form/date_input/en.vue +242 -0
  114. package/docs/src/views/index/v1/component/form/date_input/fa.vue +242 -0
  115. package/docs/src/views/index/v1/component/form/file_input/en.vue +123 -0
  116. package/docs/src/views/index/v1/component/form/file_input/fa.vue +133 -0
  117. package/docs/src/views/index/v1/component/form/form/en.vue +120 -0
  118. package/docs/src/views/index/v1/component/form/form/fa.vue +111 -0
  119. package/docs/src/views/index/v1/component/form/group_input/en.vue +369 -0
  120. package/docs/src/views/index/v1/component/form/group_input/fa.vue +368 -0
  121. package/docs/src/views/index/v1/component/form/input/en.vue +586 -0
  122. package/docs/src/views/index/v1/component/form/input/fa.vue +589 -0
  123. package/docs/src/views/index/v1/component/form/json_input/en.vue +280 -0
  124. package/docs/src/views/index/v1/component/form/json_input/fa.vue +285 -0
  125. package/docs/src/views/index/v1/component/form/mask_input/en.vue +249 -0
  126. package/docs/src/views/index/v1/component/form/mask_input/fa.vue +247 -0
  127. package/docs/src/views/index/v1/component/form/number_input/en.vue +319 -0
  128. package/docs/src/views/index/v1/component/form/number_input/fa.vue +363 -0
  129. package/docs/src/views/index/v1/component/form/password_input/en.vue +351 -0
  130. package/docs/src/views/index/v1/component/form/password_input/fa.vue +352 -0
  131. package/docs/src/views/index/v1/component/form/radio_input/en.vue +251 -0
  132. package/docs/src/views/index/v1/component/form/radio_input/fa.vue +262 -0
  133. package/docs/src/views/index/v1/component/form/range_input/en.vue +302 -0
  134. package/docs/src/views/index/v1/component/form/range_input/fa.vue +310 -0
  135. package/docs/src/views/index/v1/component/form/rating_input/en.vue +318 -0
  136. package/docs/src/views/index/v1/component/form/rating_input/fa.vue +286 -0
  137. package/docs/src/views/index/v1/component/form/select_input/en.vue +293 -0
  138. package/docs/src/views/index/v1/component/form/select_input/fa.vue +297 -0
  139. package/docs/src/views/index/v1/component/form/switch_input/en.vue +138 -0
  140. package/docs/src/views/index/v1/component/form/switch_input/fa.vue +139 -0
  141. package/docs/src/views/index/v1/component/form/tel_input/en.vue +195 -0
  142. package/docs/src/views/index/v1/component/form/tel_input/fa.vue +194 -0
  143. package/docs/src/views/index/v1/component/form/text_area/en.vue +189 -0
  144. package/docs/src/views/index/v1/component/form/text_area/fa.vue +191 -0
  145. package/docs/src/views/index/v1/component/form/text_editor/en.vue +143 -0
  146. package/docs/src/views/index/v1/component/form/text_editor/fa.vue +143 -0
  147. package/docs/src/views/index/v1/component/form/text_editor/text_editor_preview/en.vue +72 -0
  148. package/docs/src/views/index/v1/component/form/text_editor/text_editor_preview/fa.vue +78 -0
  149. package/docs/src/views/index/v1/component/form/text_input/en.vue +146 -0
  150. package/docs/src/views/index/v1/component/form/text_input/fa.vue +149 -0
  151. package/docs/src/views/index/v1/component/form/time_input/en.vue +138 -0
  152. package/docs/src/views/index/v1/component/form/time_input/fa.vue +137 -0
  153. package/docs/src/views/index/v1/component/form/time_range_input/en.vue +115 -0
  154. package/docs/src/views/index/v1/component/form/time_range_input/fa.vue +113 -0
  155. package/docs/src/views/index/v1/component/form/unique_input/en.vue +107 -0
  156. package/docs/src/views/index/v1/component/form/unique_input/fa.vue +106 -0
  157. package/docs/src/views/index/v1/component/form/unit_input/en.vue +200 -0
  158. package/docs/src/views/index/v1/component/form/unit_input/fa.vue +203 -0
  159. package/docs/src/views/index/v1/component/form_creator/en.vue +181 -0
  160. package/docs/src/views/index/v1/component/form_creator/fa.vue +179 -0
  161. package/docs/src/views/index/v1/component/html2pdf/en.vue +215 -0
  162. package/docs/src/views/index/v1/component/html2pdf/fa.vue +226 -0
  163. package/docs/src/views/index/v1/component/html2pdf/html2pdf_page_break/en.vue +37 -0
  164. package/docs/src/views/index/v1/component/html2pdf/html2pdf_page_break/fa.vue +36 -0
  165. package/docs/src/views/index/v1/component/icon/en.vue +231 -0
  166. package/docs/src/views/index/v1/component/icon/fa.vue +230 -0
  167. package/docs/src/views/index/v1/component/img/en.vue +511 -0
  168. package/docs/src/views/index/v1/component/img/fa.vue +510 -0
  169. package/docs/src/views/index/v1/component/infinite/infinite_box/en.vue +107 -0
  170. package/docs/src/views/index/v1/component/infinite/infinite_box/fa.vue +106 -0
  171. package/docs/src/views/index/v1/component/infinite/infinite_div/en.vue +87 -0
  172. package/docs/src/views/index/v1/component/infinite/infinite_div/fa.vue +83 -0
  173. package/docs/src/views/index/v1/component/infinite/infinite_page/en.vue +76 -0
  174. package/docs/src/views/index/v1/component/infinite/infinite_page/fa.vue +76 -0
  175. package/docs/src/views/index/v1/component/list/en.vue +477 -0
  176. package/docs/src/views/index/v1/component/list/fa.vue +475 -0
  177. package/docs/src/views/index/v1/component/map/en.vue +243 -0
  178. package/docs/src/views/index/v1/component/map/fa.vue +256 -0
  179. package/docs/src/views/index/v1/component/map/map_route/en.vue +176 -0
  180. package/docs/src/views/index/v1/component/map/map_route/fa.vue +177 -0
  181. package/docs/src/views/index/v1/component/map/map_select/en.vue +85 -0
  182. package/docs/src/views/index/v1/component/map/map_select/fa.vue +87 -0
  183. package/docs/src/views/index/v1/component/menu/en.vue +160 -0
  184. package/docs/src/views/index/v1/component/menu/fa.vue +158 -0
  185. package/docs/src/views/index/v1/component/message/en.vue +135 -0
  186. package/docs/src/views/index/v1/component/message/fa.vue +134 -0
  187. package/docs/src/views/index/v1/component/meta/en.vue +74 -0
  188. package/docs/src/views/index/v1/component/meta/fa.vue +73 -0
  189. package/docs/src/views/index/v1/component/modal/en.vue +432 -0
  190. package/docs/src/views/index/v1/component/modal/fa.vue +433 -0
  191. package/docs/src/views/index/v1/component/notify/en.vue +116 -0
  192. package/docs/src/views/index/v1/component/notify/fa.vue +116 -0
  193. package/docs/src/views/index/v1/component/progress/progress_circle/en.vue +202 -0
  194. package/docs/src/views/index/v1/component/progress/progress_circle/fa.vue +201 -0
  195. package/docs/src/views/index/v1/component/progress/progress_line/en.vue +216 -0
  196. package/docs/src/views/index/v1/component/progress/progress_line/fa.vue +214 -0
  197. package/docs/src/views/index/v1/component/search_box/en.vue +185 -0
  198. package/docs/src/views/index/v1/component/search_box/fa.vue +178 -0
  199. package/docs/src/views/index/v1/component/slider/en.vue +428 -0
  200. package/docs/src/views/index/v1/component/slider/fa.vue +427 -0
  201. package/docs/src/views/index/v1/component/swiper/en.vue +291 -0
  202. package/docs/src/views/index/v1/component/swiper/fa.vue +289 -0
  203. package/docs/src/views/index/v1/component/table/en.vue +711 -0
  204. package/docs/src/views/index/v1/component/table/fa.vue +709 -0
  205. package/docs/src/views/index/v1/component/table/table_crud/en.vue +218 -0
  206. package/docs/src/views/index/v1/component/table/table_crud/fa.vue +219 -0
  207. package/docs/src/views/index/v1/component/tabs/en.vue +289 -0
  208. package/docs/src/views/index/v1/component/tabs/fa.vue +289 -0
  209. package/docs/src/views/index/v1/component/time_ago/en.vue +98 -0
  210. package/docs/src/views/index/v1/component/time_ago/fa.vue +102 -0
  211. package/docs/src/views/index/v1/component/timeline/en.vue +140 -0
  212. package/docs/src/views/index/v1/component/timeline/fa.vue +138 -0
  213. package/docs/src/views/index/v1/component/tour/en.vue +125 -0
  214. package/docs/src/views/index/v1/component/tour/fa.vue +129 -0
  215. package/docs/src/views/index/v1/component/tree/en.vue +213 -0
  216. package/docs/src/views/index/v1/component/tree/fa.vue +213 -0
  217. package/docs/src/views/index/v1/features/breakpoint/fa.vue +136 -0
  218. package/docs/src/views/index/v1/features/direction/fa.vue +57 -0
  219. package/docs/src/views/index/v1/features/internationalization/fa.vue +186 -0
  220. package/docs/src/views/index/v1/features/theme/fa.vue +148 -0
  221. package/docs/src/views/index/v1/getting_started/browserSupport/fa.vue +33 -0
  222. package/docs/src/views/index/v1/getting_started/installation/fa.vue +110 -0
  223. package/docs/src/views/index/v1/introduction/support/fa.vue +58 -0
  224. package/docs/src/views/index/v1/introduction/whyRenusify/fa.vue +49 -0
  225. package/docs/src/views/index/v1/menu/en.json +1040 -0
  226. package/docs/src/views/index/v1/menu/fa.json +1040 -0
  227. package/docs/src/views/index/v1/mixins/root/fa.vue +131 -0
  228. package/docs/vue.config.js +39 -0
  229. package/index.js +11 -3
  230. package/package.json +1 -1
  231. package/tools/helper.js +1 -1
@@ -0,0 +1,186 @@
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>
@@ -0,0 +1,148 @@
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>
@@ -0,0 +1,33 @@
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>
@@ -0,0 +1,110 @@
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>
@@ -0,0 +1,58 @@
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>
@@ -0,0 +1,49 @@
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>