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.
- package/components/codeEditor/index.vue +10 -10
- package/components/codeEditor/run.vue +3 -3
- package/components/form/checkboxInput/index.vue +6 -2
- package/components/form/groupInput/index.vue +5 -2
- package/components/form/selectInput/index.vue +2 -2
- package/components/form/switchInput/index.vue +3 -1
- package/components/form/text-editor/style.scss +1 -1
- package/components/form/timeInput/range.vue +6 -6
- package/components/img/index.vue +1 -1
- package/components/list/index.vue +105 -104
- package/components/message/index.vue +1 -1
- package/components/modal/style.scss +1 -1
- package/components/nestable/NestableItem.vue +2 -2
- package/components/nestable/editable.js +5 -5
- package/components/nestable/index.vue +8 -6
- package/components/table/crud/index.vue +1 -1
- package/docs/.browserslistrc +4 -0
- package/docs/.editorconfig +5 -0
- package/docs/babel.config.js +3 -0
- package/docs/jsconfig.json +19 -0
- package/docs/package-lock.json +23358 -0
- package/docs/package.json +34 -0
- package/docs/public/404.jpg +0 -0
- package/docs/public/index.html +18 -0
- package/docs/public/logo.jpg +0 -0
- package/docs/public/manifest.json +23 -0
- package/docs/public/pwa/android-chrome-192x192.png +0 -0
- package/docs/public/pwa/android-chrome-256x256.png +0 -0
- package/docs/public/pwa/apple-touch-icon.png +0 -0
- package/docs/public/pwa/favicon-16x16.png +0 -0
- package/docs/public/pwa/favicon-32x32.png +0 -0
- package/docs/public/pwa/favicon.ico +0 -0
- package/docs/public/pwa/mstile-150x150.png +0 -0
- package/docs/public/pwa/safari-pinned-tab.svg +17 -0
- package/docs/public/robots.txt +2 -0
- package/docs/src/Index.vue +17 -0
- package/docs/src/components/buttomNextPage.vue +72 -0
- package/docs/src/components/sideBar.vue +141 -0
- package/docs/src/components/tableEvents.vue +36 -0
- package/docs/src/components/tableProps.vue +36 -0
- package/docs/src/components/treeElement.vue +21 -0
- package/docs/src/index.js +26 -0
- package/docs/src/layouts/renusify.vue +215 -0
- package/docs/src/plugins/axios.js +54 -0
- package/docs/src/registerServiceWorker.js +47 -0
- package/docs/src/router/index.js +43 -0
- package/docs/src/views/index/notFound/en.vue +36 -0
- package/docs/src/views/index/notFound/fa.vue +35 -0
- package/docs/src/views/index/notFound/index.vue +26 -0
- package/docs/src/views/index/pages.vue +50 -0
- package/docs/src/views/index/v1/component/app/en.vue +61 -0
- package/docs/src/views/index/v1/component/app/fa.vue +66 -0
- package/docs/src/views/index/v1/component/avatar/en.vue +184 -0
- package/docs/src/views/index/v1/component/avatar/fa.vue +208 -0
- package/docs/src/views/index/v1/component/bar/bottomNavigation/en.vue +181 -0
- package/docs/src/views/index/v1/component/bar/bottomNavigation/fa.vue +180 -0
- package/docs/src/views/index/v1/component/bar/bottomNavigationCircle/en.vue +100 -0
- package/docs/src/views/index/v1/component/bar/bottomNavigationCircle/fa.vue +98 -0
- package/docs/src/views/index/v1/component/bar/toolbar/en.vue +231 -0
- package/docs/src/views/index/v1/component/bar/toolbar/fa.vue +232 -0
- package/docs/src/views/index/v1/component/breadcrumbs/en.vue +84 -0
- package/docs/src/views/index/v1/component/breadcrumbs/fa.vue +86 -0
- package/docs/src/views/index/v1/component/button/btn/en.vue +282 -0
- package/docs/src/views/index/v1/component/button/btn/fa.vue +286 -0
- package/docs/src/views/index/v1/component/button/btn_confirm/en.vue +155 -0
- package/docs/src/views/index/v1/component/button/btn_confirm/fa.vue +154 -0
- package/docs/src/views/index/v1/component/button/btn_group/en.vue +118 -0
- package/docs/src/views/index/v1/component/button/btn_group/fa.vue +117 -0
- package/docs/src/views/index/v1/component/calendar/en.vue +286 -0
- package/docs/src/views/index/v1/component/calendar/fa.vue +274 -0
- package/docs/src/views/index/v1/component/card/en.vue +283 -0
- package/docs/src/views/index/v1/component/card/fa.vue +294 -0
- package/docs/src/views/index/v1/component/chart/en.vue +113 -0
- package/docs/src/views/index/v1/component/chart/fa.vue +113 -0
- package/docs/src/views/index/v1/component/chart/worldMap/en.vue +112 -0
- package/docs/src/views/index/v1/component/chart/worldMap/fa.vue +114 -0
- package/docs/src/views/index/v1/component/chat/en.vue +153 -0
- package/docs/src/views/index/v1/component/chat/fa.vue +153 -0
- package/docs/src/views/index/v1/component/chip/en.vue +341 -0
- package/docs/src/views/index/v1/component/chip/fa.vue +340 -0
- package/docs/src/views/index/v1/component/codeEditor/en.vue +84 -0
- package/docs/src/views/index/v1/component/codeEditor/fa.vue +83 -0
- package/docs/src/views/index/v1/component/confirm/en.vue +441 -0
- package/docs/src/views/index/v1/component/confirm/fa.vue +434 -0
- package/docs/src/views/index/v1/component/container/col/en.vue +68 -0
- package/docs/src/views/index/v1/component/container/col/fa.vue +67 -0
- package/docs/src/views/index/v1/component/container/divider/en.vue +133 -0
- package/docs/src/views/index/v1/component/container/divider/fa.vue +130 -0
- package/docs/src/views/index/v1/component/container/en.vue +136 -0
- package/docs/src/views/index/v1/component/container/fa.vue +135 -0
- package/docs/src/views/index/v1/component/container/row/en.vue +157 -0
- package/docs/src/views/index/v1/component/container/row/fa.vue +157 -0
- package/docs/src/views/index/v1/component/container/spacer/en.vue +40 -0
- package/docs/src/views/index/v1/component/container/spacer/fa.vue +38 -0
- package/docs/src/views/index/v1/component/content/en.vue +61 -0
- package/docs/src/views/index/v1/component/content/fa.vue +59 -0
- package/docs/src/views/index/v1/component/count_down/en.vue +111 -0
- package/docs/src/views/index/v1/component/count_down/fa.vue +116 -0
- package/docs/src/views/index/v1/component/cropper/en.vue +97 -0
- package/docs/src/views/index/v1/component/cropper/fa.vue +97 -0
- package/docs/src/views/index/v1/component/float/en.vue +220 -0
- package/docs/src/views/index/v1/component/float/fa.vue +222 -0
- package/docs/src/views/index/v1/component/form/address_input/en.vue +237 -0
- package/docs/src/views/index/v1/component/form/address_input/fa.vue +237 -0
- package/docs/src/views/index/v1/component/form/cam_input/en.vue +244 -0
- package/docs/src/views/index/v1/component/form/cam_input/fa.vue +247 -0
- package/docs/src/views/index/v1/component/form/check_input/en.vue +221 -0
- package/docs/src/views/index/v1/component/form/check_input/fa.vue +221 -0
- package/docs/src/views/index/v1/component/form/checkbox_input/en.vue +453 -0
- package/docs/src/views/index/v1/component/form/checkbox_input/fa.vue +453 -0
- package/docs/src/views/index/v1/component/form/color_input/en.vue +121 -0
- package/docs/src/views/index/v1/component/form/color_input/fa.vue +120 -0
- package/docs/src/views/index/v1/component/form/date_input/en.vue +242 -0
- package/docs/src/views/index/v1/component/form/date_input/fa.vue +242 -0
- package/docs/src/views/index/v1/component/form/file_input/en.vue +123 -0
- package/docs/src/views/index/v1/component/form/file_input/fa.vue +133 -0
- package/docs/src/views/index/v1/component/form/form/en.vue +120 -0
- package/docs/src/views/index/v1/component/form/form/fa.vue +111 -0
- package/docs/src/views/index/v1/component/form/group_input/en.vue +369 -0
- package/docs/src/views/index/v1/component/form/group_input/fa.vue +368 -0
- package/docs/src/views/index/v1/component/form/input/en.vue +586 -0
- package/docs/src/views/index/v1/component/form/input/fa.vue +589 -0
- package/docs/src/views/index/v1/component/form/json_input/en.vue +280 -0
- package/docs/src/views/index/v1/component/form/json_input/fa.vue +285 -0
- package/docs/src/views/index/v1/component/form/mask_input/en.vue +249 -0
- package/docs/src/views/index/v1/component/form/mask_input/fa.vue +247 -0
- package/docs/src/views/index/v1/component/form/number_input/en.vue +319 -0
- package/docs/src/views/index/v1/component/form/number_input/fa.vue +363 -0
- package/docs/src/views/index/v1/component/form/password_input/en.vue +351 -0
- package/docs/src/views/index/v1/component/form/password_input/fa.vue +352 -0
- package/docs/src/views/index/v1/component/form/radio_input/en.vue +251 -0
- package/docs/src/views/index/v1/component/form/radio_input/fa.vue +262 -0
- package/docs/src/views/index/v1/component/form/range_input/en.vue +302 -0
- package/docs/src/views/index/v1/component/form/range_input/fa.vue +310 -0
- package/docs/src/views/index/v1/component/form/rating_input/en.vue +318 -0
- package/docs/src/views/index/v1/component/form/rating_input/fa.vue +286 -0
- package/docs/src/views/index/v1/component/form/select_input/en.vue +293 -0
- package/docs/src/views/index/v1/component/form/select_input/fa.vue +297 -0
- package/docs/src/views/index/v1/component/form/switch_input/en.vue +138 -0
- package/docs/src/views/index/v1/component/form/switch_input/fa.vue +139 -0
- package/docs/src/views/index/v1/component/form/tel_input/en.vue +195 -0
- package/docs/src/views/index/v1/component/form/tel_input/fa.vue +194 -0
- package/docs/src/views/index/v1/component/form/text_area/en.vue +189 -0
- package/docs/src/views/index/v1/component/form/text_area/fa.vue +191 -0
- package/docs/src/views/index/v1/component/form/text_editor/en.vue +143 -0
- package/docs/src/views/index/v1/component/form/text_editor/fa.vue +143 -0
- package/docs/src/views/index/v1/component/form/text_editor/text_editor_preview/en.vue +72 -0
- package/docs/src/views/index/v1/component/form/text_editor/text_editor_preview/fa.vue +78 -0
- package/docs/src/views/index/v1/component/form/text_input/en.vue +146 -0
- package/docs/src/views/index/v1/component/form/text_input/fa.vue +149 -0
- package/docs/src/views/index/v1/component/form/time_input/en.vue +138 -0
- package/docs/src/views/index/v1/component/form/time_input/fa.vue +137 -0
- package/docs/src/views/index/v1/component/form/time_range_input/en.vue +115 -0
- package/docs/src/views/index/v1/component/form/time_range_input/fa.vue +113 -0
- package/docs/src/views/index/v1/component/form/unique_input/en.vue +107 -0
- package/docs/src/views/index/v1/component/form/unique_input/fa.vue +106 -0
- package/docs/src/views/index/v1/component/form/unit_input/en.vue +200 -0
- package/docs/src/views/index/v1/component/form/unit_input/fa.vue +203 -0
- package/docs/src/views/index/v1/component/form_creator/en.vue +181 -0
- package/docs/src/views/index/v1/component/form_creator/fa.vue +179 -0
- package/docs/src/views/index/v1/component/html2pdf/en.vue +215 -0
- package/docs/src/views/index/v1/component/html2pdf/fa.vue +226 -0
- package/docs/src/views/index/v1/component/html2pdf/html2pdf_page_break/en.vue +37 -0
- package/docs/src/views/index/v1/component/html2pdf/html2pdf_page_break/fa.vue +36 -0
- package/docs/src/views/index/v1/component/icon/en.vue +231 -0
- package/docs/src/views/index/v1/component/icon/fa.vue +230 -0
- package/docs/src/views/index/v1/component/img/en.vue +511 -0
- package/docs/src/views/index/v1/component/img/fa.vue +510 -0
- package/docs/src/views/index/v1/component/infinite/infinite_box/en.vue +107 -0
- package/docs/src/views/index/v1/component/infinite/infinite_box/fa.vue +106 -0
- package/docs/src/views/index/v1/component/infinite/infinite_div/en.vue +87 -0
- package/docs/src/views/index/v1/component/infinite/infinite_div/fa.vue +83 -0
- package/docs/src/views/index/v1/component/infinite/infinite_page/en.vue +76 -0
- package/docs/src/views/index/v1/component/infinite/infinite_page/fa.vue +76 -0
- package/docs/src/views/index/v1/component/list/en.vue +477 -0
- package/docs/src/views/index/v1/component/list/fa.vue +475 -0
- package/docs/src/views/index/v1/component/map/en.vue +243 -0
- package/docs/src/views/index/v1/component/map/fa.vue +256 -0
- package/docs/src/views/index/v1/component/map/map_route/en.vue +176 -0
- package/docs/src/views/index/v1/component/map/map_route/fa.vue +177 -0
- package/docs/src/views/index/v1/component/map/map_select/en.vue +85 -0
- package/docs/src/views/index/v1/component/map/map_select/fa.vue +87 -0
- package/docs/src/views/index/v1/component/menu/en.vue +160 -0
- package/docs/src/views/index/v1/component/menu/fa.vue +158 -0
- package/docs/src/views/index/v1/component/message/en.vue +135 -0
- package/docs/src/views/index/v1/component/message/fa.vue +134 -0
- package/docs/src/views/index/v1/component/meta/en.vue +74 -0
- package/docs/src/views/index/v1/component/meta/fa.vue +73 -0
- package/docs/src/views/index/v1/component/modal/en.vue +432 -0
- package/docs/src/views/index/v1/component/modal/fa.vue +433 -0
- package/docs/src/views/index/v1/component/notify/en.vue +116 -0
- package/docs/src/views/index/v1/component/notify/fa.vue +116 -0
- package/docs/src/views/index/v1/component/progress/progress_circle/en.vue +202 -0
- package/docs/src/views/index/v1/component/progress/progress_circle/fa.vue +201 -0
- package/docs/src/views/index/v1/component/progress/progress_line/en.vue +216 -0
- package/docs/src/views/index/v1/component/progress/progress_line/fa.vue +214 -0
- package/docs/src/views/index/v1/component/search_box/en.vue +185 -0
- package/docs/src/views/index/v1/component/search_box/fa.vue +178 -0
- package/docs/src/views/index/v1/component/slider/en.vue +428 -0
- package/docs/src/views/index/v1/component/slider/fa.vue +427 -0
- package/docs/src/views/index/v1/component/swiper/en.vue +291 -0
- package/docs/src/views/index/v1/component/swiper/fa.vue +289 -0
- package/docs/src/views/index/v1/component/table/en.vue +711 -0
- package/docs/src/views/index/v1/component/table/fa.vue +709 -0
- package/docs/src/views/index/v1/component/table/table_crud/en.vue +218 -0
- package/docs/src/views/index/v1/component/table/table_crud/fa.vue +219 -0
- package/docs/src/views/index/v1/component/tabs/en.vue +289 -0
- package/docs/src/views/index/v1/component/tabs/fa.vue +289 -0
- package/docs/src/views/index/v1/component/time_ago/en.vue +98 -0
- package/docs/src/views/index/v1/component/time_ago/fa.vue +102 -0
- package/docs/src/views/index/v1/component/timeline/en.vue +140 -0
- package/docs/src/views/index/v1/component/timeline/fa.vue +138 -0
- package/docs/src/views/index/v1/component/tour/en.vue +125 -0
- package/docs/src/views/index/v1/component/tour/fa.vue +129 -0
- package/docs/src/views/index/v1/component/tree/en.vue +213 -0
- package/docs/src/views/index/v1/component/tree/fa.vue +213 -0
- package/docs/src/views/index/v1/features/breakpoint/fa.vue +136 -0
- package/docs/src/views/index/v1/features/direction/fa.vue +57 -0
- package/docs/src/views/index/v1/features/internationalization/fa.vue +186 -0
- package/docs/src/views/index/v1/features/theme/fa.vue +148 -0
- package/docs/src/views/index/v1/getting_started/browserSupport/fa.vue +33 -0
- package/docs/src/views/index/v1/getting_started/installation/fa.vue +110 -0
- package/docs/src/views/index/v1/introduction/support/fa.vue +58 -0
- package/docs/src/views/index/v1/introduction/whyRenusify/fa.vue +49 -0
- package/docs/src/views/index/v1/menu/en.json +1040 -0
- package/docs/src/views/index/v1/menu/fa.json +1040 -0
- package/docs/src/views/index/v1/mixins/root/fa.vue +131 -0
- package/docs/vue.config.js +39 -0
- package/index.js +11 -3
- package/package.json +1 -1
- package/tools/helper.js +1 -1
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section>
|
|
3
|
+
<h1 class="display-3 font-weight-light color-white ps-4 pb-1 pt-1 br-lg">
|
|
4
|
+
r-root
|
|
5
|
+
</h1>
|
|
6
|
+
<p class="mt-5 title">
|
|
7
|
+
وقتی root باشد . وقتی که href یا to دارد root است , پس لینک است.
|
|
8
|
+
</p>
|
|
9
|
+
<r-table
|
|
10
|
+
:items="[
|
|
11
|
+
{
|
|
12
|
+
prop: 'activeClass',
|
|
13
|
+
type: 'String',
|
|
14
|
+
default: 'false',
|
|
15
|
+
description: 'وقتی که فعال بود بیاد . ',
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
prop: 'disabled',
|
|
19
|
+
type: 'Boolean',
|
|
20
|
+
default: 'false',
|
|
21
|
+
description: ' غیر فعال می شود .',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
prop: 'exactActiveClass',
|
|
25
|
+
type: 'String',
|
|
26
|
+
default: 'false',
|
|
27
|
+
description: 'دقیقا الان فعال می باشد . ',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
prop: 'link',
|
|
31
|
+
type: 'Boolean',
|
|
32
|
+
default: 'false',
|
|
33
|
+
description: 'لینک است',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
prop: 'href',
|
|
37
|
+
type: 'String or Object',
|
|
38
|
+
default: 'false',
|
|
39
|
+
description: 'href است .',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
prop: 'to',
|
|
43
|
+
type: 'String or Object',
|
|
44
|
+
default: 'false',
|
|
45
|
+
description: 'to است .',
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
prop: 'tag',
|
|
49
|
+
type: 'String',
|
|
50
|
+
default: 'false',
|
|
51
|
+
description: 'مشخص مس کند tag آن چه تگی باشد.',
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
prop: 'target',
|
|
55
|
+
type: 'String',
|
|
56
|
+
default: 'false',
|
|
57
|
+
description: 'blank ,self, parent, top , framename ',
|
|
58
|
+
},
|
|
59
|
+
]"
|
|
60
|
+
borderd
|
|
61
|
+
>
|
|
62
|
+
<template #row="{ item, th, key, opened, open, show }">
|
|
63
|
+
<td v-for="(value, k) in th" :key="`${key}- ${k}`">
|
|
64
|
+
<div
|
|
65
|
+
:class="{
|
|
66
|
+
'color-info-text': value.value === 'prop',
|
|
67
|
+
'font-weight-bold': value.value === 'prop',
|
|
68
|
+
'color-success-text': value.value === 'type',
|
|
69
|
+
'color-one-text': value.value === 'default',
|
|
70
|
+
'color-secondary-text': value.value === 'description',
|
|
71
|
+
}"
|
|
72
|
+
>
|
|
73
|
+
<r-btn v-if="show(k)" icon text @click.prevent="open(key)">
|
|
74
|
+
<r-icon
|
|
75
|
+
:class="{
|
|
76
|
+
'mdi-plus': opened !== key,
|
|
77
|
+
'mdi-minus': opened === key,
|
|
78
|
+
}"
|
|
79
|
+
></r-icon>
|
|
80
|
+
</r-btn>
|
|
81
|
+
{{ item[value.value] }}
|
|
82
|
+
</div>
|
|
83
|
+
</td>
|
|
84
|
+
</template>
|
|
85
|
+
</r-table>
|
|
86
|
+
</section>
|
|
87
|
+
<br/><br/>
|
|
88
|
+
<br/><br/>
|
|
89
|
+
<section>
|
|
90
|
+
<r-breadcrumbs
|
|
91
|
+
:items="[{ name: 'Root' }, { name: 'Props' }]"
|
|
92
|
+
></r-breadcrumbs>
|
|
93
|
+
<div class="title font-weight-bold pa-5">
|
|
94
|
+
<p>
|
|
95
|
+
این دکمه بصورت پیش فرض کلاس ها دارد . اما براساس نیاز شما می تواند تغییر
|
|
96
|
+
کند.
|
|
97
|
+
</p>
|
|
98
|
+
</div>
|
|
99
|
+
</section>
|
|
100
|
+
<section class="pa-3"></section>
|
|
101
|
+
<section>
|
|
102
|
+
<pre>
|
|
103
|
+
<r-code-editor>
|
|
104
|
+
<div class="code-template">
|
|
105
|
+
(!r-btn to="/" activeClass !)ActiveClass(!/r-btn!)
|
|
106
|
+
(!r-btn to="/" disabled!)Disabled(!/r-btn!)
|
|
107
|
+
(!r-btn link="/" !)Link(!/r-btn!)
|
|
108
|
+
(!r-card to="/" exactActiveClass !)ExactActiveClass(!/r-card!)
|
|
109
|
+
(!r-card href="/" !)Href(!/r-card!)
|
|
110
|
+
(!r-card to="/" !)To(!/r-card!)
|
|
111
|
+
(!r-btn tag="div" !)Tag(!/r-btn!)
|
|
112
|
+
(!r-card to="/" target="blank" !)Target(!/r-card!)
|
|
113
|
+
</div>
|
|
114
|
+
</r-code-editor>
|
|
115
|
+
</pre>
|
|
116
|
+
</section>
|
|
117
|
+
<br/><br/>
|
|
118
|
+
</template>
|
|
119
|
+
|
|
120
|
+
<script>
|
|
121
|
+
export default {
|
|
122
|
+
name: "root",
|
|
123
|
+
data() {
|
|
124
|
+
return {};
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
</script>
|
|
128
|
+
|
|
129
|
+
<style lang="scss">
|
|
130
|
+
@import "~renusify/style/include";
|
|
131
|
+
</style>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const path = require("path");
|
|
2
|
+
const {defineConfig} = require("@vue/cli-service");
|
|
3
|
+
module.exports = defineConfig({
|
|
4
|
+
//transpileDependencies: true,
|
|
5
|
+
pages: {
|
|
6
|
+
index: {
|
|
7
|
+
entry: "src/index.js",
|
|
8
|
+
|
|
9
|
+
template: "public/index.html",
|
|
10
|
+
|
|
11
|
+
filename: "index.html"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
configureWebpack: {
|
|
15
|
+
resolve: {
|
|
16
|
+
alias: {
|
|
17
|
+
app_root: path.resolve(__dirname, "../")
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
pwa: {
|
|
22
|
+
iconPaths: {
|
|
23
|
+
favicon32: '/pwa/favicon-32x32.png',
|
|
24
|
+
favicon16: '/pwa/favicon-16x16.png',
|
|
25
|
+
appleTouchIcon: '/pwa/apple-touch-icon.png',
|
|
26
|
+
msTileImage: '/pwa/mstile-150x150.png',
|
|
27
|
+
maskIcon: '/pwa/safari-pinned-tab.svg',
|
|
28
|
+
},
|
|
29
|
+
name: "renusify",
|
|
30
|
+
themeColor: "#fff",
|
|
31
|
+
msTileColor: "#000000",
|
|
32
|
+
appleMobileWebAppCapable: "yes",
|
|
33
|
+
appleMobileWebAppStatusBarStyle: "black"
|
|
34
|
+
},
|
|
35
|
+
outputDir: "dist",
|
|
36
|
+
publicPath: "/",
|
|
37
|
+
|
|
38
|
+
productionSourceMap: true,
|
|
39
|
+
});
|
package/index.js
CHANGED
|
@@ -101,31 +101,39 @@ export default {
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
app.provide('$r', app.config.globalProperties.$r)
|
|
105
105
|
// renusify toast
|
|
106
106
|
app.config.globalProperties.$toast = function (message, options) {
|
|
107
107
|
Toast.show(message, options);
|
|
108
108
|
}
|
|
109
|
+
app.provide('$toast', app.config.globalProperties.$toast)
|
|
109
110
|
// renusify storage
|
|
110
111
|
app.config.globalProperties.$storage = Storage
|
|
112
|
+
app.provide('$storage', app.config.globalProperties.$storage)
|
|
111
113
|
|
|
112
114
|
// renusify helper
|
|
113
115
|
app.config.globalProperties.$helper = helper
|
|
116
|
+
app.provide('$helper', app.config.globalProperties.$helper)
|
|
114
117
|
// renusify translate
|
|
115
118
|
app.config.globalProperties.$translate = new Translate(app.config.globalProperties.$r, app.config.globalProperties.$storage)
|
|
119
|
+
app.provide('$translate', app.config.globalProperties.$translate)
|
|
116
120
|
app.config.globalProperties.$dateTime = new DateTime(app.config.globalProperties.$r, app.config.globalProperties.$r.langs)
|
|
121
|
+
app.provide('$dateTime', app.config.globalProperties.$dateTime)
|
|
117
122
|
app.config.globalProperties.$t = (key, package_name = null, lang = null) => app.config.globalProperties.$translate.get(key, package_name, lang)
|
|
123
|
+
app.provide('$t', app.config.globalProperties.$t)
|
|
118
124
|
app.config.globalProperties.$d = (value, key = 'long', local = null) => app.config.globalProperties.$dateTime.formatLocal(value, key, local)
|
|
125
|
+
app.provide('$d', app.config.globalProperties.$d)
|
|
119
126
|
const c = new Currency(app.config.globalProperties.$r)
|
|
120
127
|
app.config.globalProperties.$n = (value) => c.formatLocal(value)
|
|
128
|
+
app.provide('$n', app.config.globalProperties.$n)
|
|
121
129
|
// renusify validation
|
|
122
130
|
const v = new valid(app.config.globalProperties.$t)
|
|
123
131
|
app.config.globalProperties.$v = (names) => v.checkType(names)
|
|
124
|
-
|
|
132
|
+
app.provide('$v', app.config.globalProperties.$v)
|
|
125
133
|
// install components
|
|
126
134
|
let required_directive = _register(app, options['components'] || {});
|
|
127
135
|
if (options['directives']) {
|
|
128
|
-
Object.assign(required_directive,options['directives'])
|
|
136
|
+
Object.assign(required_directive, options['directives'])
|
|
129
137
|
}
|
|
130
138
|
// install directives
|
|
131
139
|
_registers(app, required_directive);
|
package/package.json
CHANGED
package/tools/helper.js
CHANGED
|
@@ -394,7 +394,7 @@ export function changeColor(vars) {
|
|
|
394
394
|
head.appendChild(style);
|
|
395
395
|
let css = ':root{';
|
|
396
396
|
for (let k in vars) {
|
|
397
|
-
css +=
|
|
397
|
+
css += k + ':' + vars[k] + ';'
|
|
398
398
|
}
|
|
399
399
|
css += '}'
|
|
400
400
|
style.appendChild(document.createTextNode(css));
|