zmp-cli 3.15.7 → 3.15.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/README.md +37 -1
- package/build/index.js +1 -1
- package/config/index.js +1 -1
- package/create/index.js +1 -1
- package/create/utils/generate-app-config.js +1 -1
- package/create/utils/generate-npm-scripts.js +1 -1
- package/create/utils/get-options.js +1 -1
- package/create/utils/npm-scripts.js +1 -1
- package/deploy/index.js +1 -1
- package/deploy/utils/get-options.js +1 -1
- package/deploy/utils/request-upload.js +1 -1
- package/deploy/utils/upload-app.js +1 -1
- package/index.js +1 -1
- package/login/index.js +1 -1
- package/login/utils/get-options.js +1 -1
- package/login/utils/zalo-login.js +1 -1
- package/migrate/icons/update-icon-v3.js +1 -1
- package/migrate/index.js +1 -1
- package/migrate/utils/get-options.js +1 -1
- package/migrate/utils/migrate-react.js +1 -1
- package/package.json +3 -2
- package/start/frame/index.html +264 -254
- package/start/index.js +1 -1
- package/sync/index-to-app-config.js +1 -1
- package/sync/index.js +1 -1
- package/utils/axios.js +1 -1
- package/utils/check-update.js +1 -1
- package/utils/constants.js +1 -1
- package/utils/env.js +1 -1
- package/utils/error.js +1 -1
- package/utils/find-files-by-ext.js +1 -1
- package/utils/find-free-port.js +1 -1
- package/utils/fs-extra.js +1 -1
- package/utils/generate-pages-map.js +1 -1
- package/utils/get-app-info.js +1 -1
- package/utils/get-current-project.js +1 -1
- package/utils/get-ip.js +1 -1
- package/utils/log.js +1 -1
- package/utils/node-blob.js +1 -1
- package/utils/resumable.d.js +1 -1
- package/utils/resumable.js +1 -1
- package/utils/spinner.js +1 -1
- package/utils/tunnel.js +1 -1
- package/create/init-zmp-ui.js +0 -1
- package/create/templates/app-parameters.js +0 -17
- package/create/templates/common/css/icons.css +0 -60
- package/create/templates/common/icons/512x512.png +0 -0
- package/create/templates/common/icons/apple-touch-icon.png +0 -0
- package/create/templates/common/icons/favicon.png +0 -0
- package/create/templates/common/postcss.config.js +0 -5
- package/create/templates/common/splash-2732x2732.png +0 -0
- package/create/templates/common/tailwind/postcss.config.js +0 -5
- package/create/templates/common/tailwind/tailwind.config.js +0 -9
- package/create/templates/common/tailwind/tailwind.css +0 -3
- package/create/templates/common/webpack/build.js +0 -3
- package/create/templates/copy-assets.js +0 -1
- package/create/templates/core/babel.config.js +0 -11
- package/create/templates/core/copy-assets.js +0 -15
- package/create/templates/core/generate-home-page.js +0 -121
- package/create/templates/core/generate-root.js +0 -248
- package/create/templates/core/generate-routes.js +0 -129
- package/create/templates/core/generate-scripts.js +0 -45
- package/create/templates/core/pages/404.html +0 -20
- package/create/templates/core/pages/about.html +0 -26
- package/create/templates/core/pages/catalog.html +0 -40
- package/create/templates/core/pages/dynamic-route.html +0 -115
- package/create/templates/core/pages/form.html +0 -258
- package/create/templates/core/pages/left-page-1.html +0 -24
- package/create/templates/core/pages/left-page-2.html +0 -23
- package/create/templates/core/pages/product.html +0 -36
- package/create/templates/core/pages/request-and-load.html +0 -35
- package/create/templates/core/pages/settings.html +0 -252
- package/create/templates/create-folders.js +0 -1
- package/create/templates/generate-config-xml.js +0 -11
- package/create/templates/generate-index.js +0 -24
- package/create/templates/generate-manifest.js +0 -1
- package/create/templates/generate-recoil.js +0 -44
- package/create/templates/generate-routes.js +0 -1
- package/create/templates/generate-scripts.js +0 -1
- package/create/templates/generate-service-worker.js +0 -120
- package/create/templates/generate-store.js +0 -77
- package/create/templates/generate-styles.js +0 -56
- package/create/templates/generate-webpack-config.js +0 -253
- package/create/templates/generate-zmp-custom.js +0 -23
- package/create/templates/react/babel.config.js +0 -12
- package/create/templates/react/components/app-items.jsx +0 -44
- package/create/templates/react/components/navbar-back.jsx +0 -25
- package/create/templates/react/components/user-card.jsx +0 -18
- package/create/templates/react/copy-assets.js +0 -1
- package/create/templates/react/generate-home-page.js +0 -81
- package/create/templates/react/generate-root.js +0 -55
- package/create/templates/react/generate-routes.js +0 -1
- package/create/templates/react/generate-scripts.js +0 -42
- package/create/templates/react/pages/404.js +0 -19
- package/create/templates/react/pages/about.js +0 -44
- package/create/templates/react/pages/catalog.js +0 -98
- package/create/templates/react/pages/dynamic-route.js +0 -72
- package/create/templates/react/pages/form.js +0 -132
- package/create/templates/react/pages/index copy.js +0 -1
- package/create/templates/react/pages/index.js +0 -1
- package/create/templates/react/pages/settings.js +0 -62
- package/create/templates/react/pages/user.js +0 -37
- package/create/templates/react/vite.config.js +0 -11
- package/create/templates/react-typescript/_tsconfig.json +0 -33
- package/create/templates/react-typescript/components/app-items.js +0 -46
- package/create/templates/react-typescript/components/index.js +0 -1
- package/create/templates/react-typescript/components/navbar-back.js +0 -33
- package/create/templates/react-typescript/components/user-card.js +0 -25
- package/create/templates/react-typescript/copy-assets.js +0 -1
- package/create/templates/react-typescript/generate-home-page.js +0 -81
- package/create/templates/react-typescript/generate-root.js +0 -50
- package/create/templates/react-typescript/generate-routes.js +0 -1
- package/create/templates/react-typescript/generate-scripts.js +0 -42
- package/create/templates/react-typescript/pages/404.js +0 -19
- package/create/templates/react-typescript/pages/about.js +0 -44
- package/create/templates/react-typescript/pages/catalog.js +0 -98
- package/create/templates/react-typescript/pages/dynamic-route.js +0 -72
- package/create/templates/react-typescript/pages/form.js +0 -132
- package/create/templates/react-typescript/pages/index.js +0 -1
- package/create/templates/react-typescript/pages/settings.js +0 -62
- package/create/templates/react-typescript/pages/user.js +0 -37
- package/create/templates/react-typescript/vite.config.js +0 -21
- package/create/templates/svelte/babel.config.js +0 -10
- package/create/templates/svelte/copy-assets.js +0 -1
- package/create/templates/svelte/generate-home-page.js +0 -122
- package/create/templates/svelte/generate-root.js +0 -177
- package/create/templates/svelte/generate-routes.js +0 -76
- package/create/templates/svelte/generate-scripts.js +0 -31
- package/create/templates/svelte/pages/404.svelte +0 -10
- package/create/templates/svelte/pages/about.svelte +0 -16
- package/create/templates/svelte/pages/catalog.svelte +0 -31
- package/create/templates/svelte/pages/dynamic-route.svelte +0 -34
- package/create/templates/svelte/pages/form.svelte +0 -175
- package/create/templates/svelte/pages/left-page-1.svelte +0 -13
- package/create/templates/svelte/pages/left-page-2.svelte +0 -12
- package/create/templates/svelte/pages/product.svelte +0 -21
- package/create/templates/svelte/pages/request-and-load.svelte +0 -21
- package/create/templates/svelte/pages/settings.svelte +0 -175
- package/create/templates/vue/babel.config.js +0 -10
- package/create/templates/vue/components/header.vue +0 -28
- package/create/templates/vue/components/sun-and-moon.vue +0 -34
- package/create/templates/vue/copy-assets.js +0 -1
- package/create/templates/vue/generate-home-page.js +0 -50
- package/create/templates/vue/generate-root.js +0 -40
- package/create/templates/vue/generate-routes.js +0 -1
- package/create/templates/vue/generate-scripts.js +0 -46
- package/create/templates/vue/global-components.d.js +0 -1
- package/create/templates/vue/global-components.d.ts +0 -121
- package/create/templates/vue/icons/moon.svg +0 -3
- package/create/templates/vue/icons/sun.svg +0 -3
- package/create/templates/vue/pages/404.vue +0 -12
- package/create/templates/vue/pages/about.vue +0 -15
- package/create/templates/vue/pages/catalog.vue +0 -39
- package/create/templates/vue/pages/dynamic-route.vue +0 -34
- package/create/templates/vue/pages/form.vue +0 -162
- package/create/templates/vue/pages/left-page-1.vue +0 -14
- package/create/templates/vue/pages/left-page-2.vue +0 -11
- package/create/templates/vue/pages/product.vue +0 -31
- package/create/templates/vue/pages/request-and-load.vue +0 -25
- package/create/templates/vue/pages/settings.vue +0 -18
- package/create/templates/vue/vite.config.js +0 -11
- package/create/templates/zaui/_tsconfig.json +0 -33
- package/create/templates/zaui/babel.config.js +0 -12
- package/create/templates/zaui/components/user-card.jsx +0 -16
- package/create/templates/zaui/copy-assets.js +0 -1
- package/create/templates/zaui/generate-home-page.js +0 -91
- package/create/templates/zaui/generate-root.js +0 -33
- package/create/templates/zaui/generate-routes.js +0 -1
- package/create/templates/zaui/generate-scripts.js +0 -25
- package/create/templates/zaui/generate-user-card.js +0 -40
- package/create/templates/zaui/pages/about.js +0 -112
- package/create/templates/zaui/pages/form.js +0 -106
- package/create/templates/zaui/pages/index.js +0 -1
- package/create/templates/zaui/pages/user.js +0 -92
- package/create/templates/zaui/vite.config.js +0 -11
- package/create/utils/colors.js +0 -1
- package/create/utils/generate-gitignore.js +0 -1
- package/create/utils/generate-package-json.js +0 -1
- package/create/utils/generate-readme.js +0 -1
- package/create/utils/indent.js +0 -1
- package/create/utils/string.js +0 -1
- package/create/utils/styles-extension.js +0 -1
- package/create/utils/template-if.js +0 -1
- package/start/generate-hr-config.js +0 -1
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AccordionContent,
|
|
3
|
-
AccordionItem,
|
|
4
|
-
AccordionToggle,
|
|
5
|
-
Accordion,
|
|
6
|
-
ActionsButton,
|
|
7
|
-
ActionsGroup,
|
|
8
|
-
ActionsLabel,
|
|
9
|
-
Actions,
|
|
10
|
-
App,
|
|
11
|
-
AvatarGroup,
|
|
12
|
-
Avatar,
|
|
13
|
-
Box,
|
|
14
|
-
Button,
|
|
15
|
-
Card,
|
|
16
|
-
Checkbox,
|
|
17
|
-
Col,
|
|
18
|
-
DatePicker,
|
|
19
|
-
FabBackdrop,
|
|
20
|
-
FabButton,
|
|
21
|
-
FabButtons,
|
|
22
|
-
Fab,
|
|
23
|
-
GridItem,
|
|
24
|
-
Grid,
|
|
25
|
-
Icon,
|
|
26
|
-
Input,
|
|
27
|
-
Link,
|
|
28
|
-
ListInput,
|
|
29
|
-
ListItem,
|
|
30
|
-
List,
|
|
31
|
-
NavLeft,
|
|
32
|
-
NavRight,
|
|
33
|
-
NavTitleLarge,
|
|
34
|
-
NavTitle,
|
|
35
|
-
Navbar,
|
|
36
|
-
Page,
|
|
37
|
-
Picker,
|
|
38
|
-
Preloader,
|
|
39
|
-
Progressbar,
|
|
40
|
-
Radio,
|
|
41
|
-
Range,
|
|
42
|
-
Row,
|
|
43
|
-
Searchbar,
|
|
44
|
-
Sheet,
|
|
45
|
-
SkeletonAvatar,
|
|
46
|
-
SkeletonBlock,
|
|
47
|
-
SkeletonImage,
|
|
48
|
-
SkeletonText,
|
|
49
|
-
SwiperSlide,
|
|
50
|
-
Swiper,
|
|
51
|
-
Tab,
|
|
52
|
-
Tabbar,
|
|
53
|
-
Tabs,
|
|
54
|
-
Text,
|
|
55
|
-
Title,
|
|
56
|
-
ToastPreloader,
|
|
57
|
-
Toggle,
|
|
58
|
-
View,
|
|
59
|
-
} from 'zmp-vue';
|
|
60
|
-
|
|
61
|
-
declare module '@vue/runtime-core' {
|
|
62
|
-
export interface GlobalComponents {
|
|
63
|
-
ZmpAccordionContent: typeof AccordionContent;
|
|
64
|
-
ZmpAccordionItem: typeof AccordionItem;
|
|
65
|
-
ZmpAccordionToggle: typeof AccordionToggle;
|
|
66
|
-
ZmpAccordion: typeof Accordion;
|
|
67
|
-
ZmpActionsButton: typeof ActionsButton;
|
|
68
|
-
ZmpActionsGroup: typeof ActionsGroup;
|
|
69
|
-
ZmpActionsLabel: typeof ActionsLabel;
|
|
70
|
-
ZmpActions: typeof Actions;
|
|
71
|
-
ZmpApp: typeof App;
|
|
72
|
-
ZmpAvatarGroup: typeof AvatarGroup;
|
|
73
|
-
ZmpAvatar: typeof Avatar;
|
|
74
|
-
ZmpBox: typeof Box;
|
|
75
|
-
ZmpButton: typeof Button;
|
|
76
|
-
ZmpCard: typeof Card;
|
|
77
|
-
ZmpCheckbox: typeof Checkbox;
|
|
78
|
-
ZmpCol: typeof Col;
|
|
79
|
-
ZmpDatePicker: typeof DatePicker;
|
|
80
|
-
ZmpFabBackdrop: typeof FabBackdrop;
|
|
81
|
-
ZmpFabButton: typeof FabButton;
|
|
82
|
-
ZmpFabButtons: typeof FabButtons;
|
|
83
|
-
ZmpFab: typeof Fab;
|
|
84
|
-
ZmpGridItem: typeof GridItem;
|
|
85
|
-
ZmpGrid: typeof Grid;
|
|
86
|
-
ZmpIcon: typeof Icon;
|
|
87
|
-
ZmpInput: typeof Input;
|
|
88
|
-
ZmpLink: typeof Link;
|
|
89
|
-
ZmpListInput: typeof ListInput;
|
|
90
|
-
ZmpListItem: typeof ListItem;
|
|
91
|
-
ZmpList: typeof List;
|
|
92
|
-
ZmpNavLeft: typeof NavLeft;
|
|
93
|
-
ZmpNavRight: typeof NavRight;
|
|
94
|
-
ZmpNavTitleLarge: typeof NavTitleLarge;
|
|
95
|
-
ZmpNavTitle: typeof NavTitle;
|
|
96
|
-
ZmpNavbar: typeof Navbar;
|
|
97
|
-
ZmpPage: typeof Page;
|
|
98
|
-
ZmpPicker: typeof Picker;
|
|
99
|
-
ZmpPreloader: typeof Preloader;
|
|
100
|
-
ZmpProgressbar: typeof Progressbar;
|
|
101
|
-
ZmpRadio: typeof Radio;
|
|
102
|
-
ZmpRange: typeof Range;
|
|
103
|
-
ZmpRow: typeof Row;
|
|
104
|
-
ZmpSearchbar: typeof Searchbar;
|
|
105
|
-
ZmpSheet: typeof Sheet;
|
|
106
|
-
ZmpSkeletonAvatar: typeof SkeletonAvatar;
|
|
107
|
-
ZmpSkeletonBlock: typeof SkeletonBlock;
|
|
108
|
-
ZmpSkeletonImage: typeof SkeletonImage;
|
|
109
|
-
ZmpSkeletonText: typeof SkeletonText;
|
|
110
|
-
ZmpSwiperSlide: typeof SwiperSlide;
|
|
111
|
-
ZmpSwiper: typeof Swiper;
|
|
112
|
-
ZmpTab: typeof Tab;
|
|
113
|
-
ZmpTabbar: typeof Tabbar;
|
|
114
|
-
ZmpTabs: typeof Tabs;
|
|
115
|
-
ZmpText: typeof Text;
|
|
116
|
-
ZmpTitle: typeof Title;
|
|
117
|
-
ZmpToastPreloader: typeof ToastPreloader;
|
|
118
|
-
ZmpToggle: typeof Toggle;
|
|
119
|
-
ZmpView: typeof View;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M9.99975 9.807C8.74152 8.54828 7.88464 6.94484 7.53738 5.1993C7.19012 3.45375 7.36807 1.64444 8.04875 0C6.10802 0.382051 4.32535 1.33431 2.92875 2.735C-0.97625 6.64 -0.97625 12.972 2.92875 16.877C6.83475 20.783 13.1658 20.782 17.0718 16.877C18.4721 15.4805 19.4243 13.6983 19.8067 11.758C18.1623 12.4385 16.353 12.6164 14.6075 12.2692C12.862 11.9219 11.2585 11.0651 9.99975 9.807Z" fill="white"/>
|
|
3
|
-
</svg>
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.0004 0.400024C10.3187 0.400024 10.6239 0.526453 10.8489 0.751496C11.074 0.97654 11.2004 1.28176 11.2004 1.60002V2.80002C11.2004 3.11828 11.074 3.42351 10.8489 3.64855C10.6239 3.8736 10.3187 4.00002 10.0004 4.00002C9.68213 4.00002 9.37691 3.8736 9.15186 3.64855C8.92682 3.42351 8.80039 3.11828 8.80039 2.80002V1.60002C8.80039 1.28176 8.92682 0.97654 9.15186 0.751496C9.37691 0.526453 9.68213 0.400024 10.0004 0.400024ZM14.8004 10C14.8004 11.2731 14.2947 12.494 13.3945 13.3941C12.4943 14.2943 11.2734 14.8 10.0004 14.8C8.72735 14.8 7.50645 14.2943 6.60628 13.3941C5.7061 12.494 5.20039 11.2731 5.20039 10C5.20039 8.72698 5.7061 7.50609 6.60628 6.60591C7.50645 5.70574 8.72735 5.20002 10.0004 5.20002C11.2734 5.20002 12.4943 5.70574 13.3945 6.60591C14.2947 7.50609 14.8004 8.72698 14.8004 10ZM14.2436 15.94L15.092 16.7884C15.3183 17.007 15.6214 17.128 15.9361 17.1252C16.2507 17.1225 16.5517 16.9963 16.7742 16.7738C16.9967 16.5513 17.1229 16.2503 17.1256 15.9357C17.1283 15.6211 17.0074 15.3179 16.7888 15.0916L15.9404 14.2432C15.7141 14.0246 15.4109 13.9037 15.0963 13.9064C14.7817 13.9091 14.4807 14.0354 14.2582 14.2578C14.0357 14.4803 13.9095 14.7813 13.9068 15.0959C13.904 15.4106 14.025 15.7137 14.2436 15.94ZM16.7876 3.21162C17.0126 3.43666 17.1389 3.74183 17.1389 4.06002C17.1389 4.37822 17.0126 4.68339 16.7876 4.90842L15.9404 5.75682C15.8297 5.87144 15.6973 5.96285 15.5509 6.02575C15.4045 6.08864 15.247 6.12174 15.0877 6.12312C14.9283 6.12451 14.7703 6.09415 14.6228 6.03381C14.4754 5.97347 14.3414 5.88437 14.2287 5.7717C14.116 5.65903 14.0269 5.52504 13.9666 5.37757C13.9063 5.23009 13.8759 5.07208 13.8773 4.91274C13.8787 4.75341 13.9118 4.59594 13.9747 4.44954C14.0376 4.30313 14.129 4.17072 14.2436 4.06002L15.092 3.21162C15.317 2.98666 15.6222 2.86028 15.9404 2.86028C16.2586 2.86028 16.5638 2.98666 16.7888 3.21162H16.7876ZM18.4004 11.2C18.7186 11.2 19.0239 11.0736 19.2489 10.8486C19.474 10.6235 19.6004 10.3183 19.6004 10C19.6004 9.68176 19.474 9.37654 19.2489 9.1515C19.0239 8.92645 18.7186 8.80002 18.4004 8.80002H17.2004C16.8821 8.80002 16.5769 8.92645 16.3519 9.1515C16.1268 9.37654 16.0004 9.68176 16.0004 10C16.0004 10.3183 16.1268 10.6235 16.3519 10.8486C16.5769 11.0736 16.8821 11.2 17.2004 11.2H18.4004ZM10.0004 16C10.3187 16 10.6239 16.1265 10.8489 16.3515C11.074 16.5765 11.2004 16.8818 11.2004 17.2V18.4C11.2004 18.7183 11.074 19.0235 10.8489 19.2486C10.6239 19.4736 10.3187 19.6 10.0004 19.6C9.68213 19.6 9.37691 19.4736 9.15186 19.2486C8.92682 19.0235 8.80039 18.7183 8.80039 18.4V17.2C8.80039 16.8818 8.92682 16.5765 9.15186 16.3515C9.37691 16.1265 9.68213 16 10.0004 16ZM4.06039 5.75682C4.1718 5.86832 4.30409 5.95677 4.44969 6.01714C4.59528 6.07751 4.75135 6.10861 4.90897 6.10867C5.06658 6.10872 5.22267 6.07773 5.36831 6.01747C5.51395 5.9572 5.6463 5.86884 5.75779 5.75742C5.86928 5.64601 5.95774 5.51373 6.01811 5.36813C6.07848 5.22253 6.10958 5.06647 6.10963 4.90885C6.10969 4.75123 6.0787 4.59514 6.01843 4.4495C5.95817 4.30386 5.8698 4.17152 5.75839 4.06002L4.90879 3.21162C4.68247 2.99303 4.37935 2.87208 4.06471 2.87482C3.75007 2.87755 3.4491 3.00375 3.22661 3.22624C3.00412 3.44873 2.87792 3.74971 2.87518 4.06434C2.87245 4.37898 2.9934 4.6821 3.21199 4.90842L4.06039 5.75682ZM5.75719 15.94L4.90879 16.7884C4.68247 17.007 4.37935 17.128 4.06471 17.1252C3.75007 17.1225 3.4491 16.9963 3.22661 16.7738C3.00412 16.5513 2.87792 16.2503 2.87518 15.9357C2.87245 15.6211 2.9934 15.3179 3.21199 15.0916L4.06039 14.2432C4.28671 14.0246 4.58984 13.9037 4.90447 13.9064C5.21911 13.9091 5.52008 14.0354 5.74257 14.2578C5.96506 14.4803 6.09127 14.7813 6.094 15.0959C6.09673 15.4106 5.97578 15.7137 5.75719 15.94ZM2.80039 11.2C3.11865 11.2 3.42387 11.0736 3.64892 10.8486C3.87396 10.6235 4.00039 10.3183 4.00039 10C4.00039 9.68176 3.87396 9.37654 3.64892 9.1515C3.42387 8.92645 3.11865 8.80002 2.80039 8.80002H1.60039C1.28213 8.80002 0.976906 8.92645 0.751862 9.1515C0.526819 9.37654 0.400391 9.68176 0.400391 10C0.400391 10.3183 0.526819 10.6235 0.751862 10.8486C0.976906 11.0736 1.28213 11.2 1.60039 11.2H2.80039Z" fill="white"/>
|
|
3
|
-
</svg>
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<zmp-page name="about">
|
|
3
|
-
<zmp-navbar title="About" back-link="Back"></zmp-navbar>
|
|
4
|
-
<zmp-block-title>About My App</zmp-block-title>
|
|
5
|
-
<zmp-block strong>
|
|
6
|
-
<p>Fugiat perspiciatis excepturi, soluta quod non ullam deleniti. Nobis sint nemo consequuntur, fugiat. Eius perferendis animi autem incidunt vel quod tenetur nostrum, voluptate omnis quasi quidem illum consequuntur, a, quisquam.</p>
|
|
7
|
-
<p>Laudantium neque magnam vitae nemo quam commodi, in cum dolore obcaecati laborum, excepturi harum, optio qui, consequuntur? Obcaecati dolor sequi nesciunt culpa quia perspiciatis, reiciendis ex debitis, ut tenetur alias.</p>
|
|
8
|
-
</zmp-block>
|
|
9
|
-
<zmp-block>
|
|
10
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni molestiae laudantium dignissimos est nobis delectus nemo ea alias voluptatum architecto, amet similique, saepe iste consectetur in repellat ut minus quibusdam!</p>
|
|
11
|
-
<p>Molestias et distinctio porro nesciunt ratione similique, magni doloribus, rerum nobis, aliquam quae reiciendis quasi modi. Nam a recusandae, fugiat in ea voluptates fuga eius, velit corrupti reprehenderit dignissimos consequatur!</p>
|
|
12
|
-
<p>Blanditiis, cumque quo adipisci. Molestiae, dolores dolorum quos doloremque ipsa ullam eligendi commodi deserunt doloribus inventore magni? Ea mollitia veniam nostrum nihil, iusto doloribus a at! Ea molestiae ullam delectus!</p>
|
|
13
|
-
</zmp-block>
|
|
14
|
-
</zmp-page>
|
|
15
|
-
</template>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<zmp-page name="catalog">
|
|
3
|
-
<zmp-navbar title="Catalog"></zmp-navbar>
|
|
4
|
-
<zmp-list>
|
|
5
|
-
<zmp-list-item
|
|
6
|
-
v-for="(product) in products"
|
|
7
|
-
:key="product.id"
|
|
8
|
-
:title="product.title"
|
|
9
|
-
:link="`/product/${product.id}/`"
|
|
10
|
-
></zmp-list-item>
|
|
11
|
-
</zmp-list>
|
|
12
|
-
<zmp-block v-if="products.length === 3">
|
|
13
|
-
<zmp-button fill @click="addProduct">Add Product</zmp-button>
|
|
14
|
-
</zmp-block>
|
|
15
|
-
</zmp-page>
|
|
16
|
-
</template>
|
|
17
|
-
<script>
|
|
18
|
-
import { useStore } from 'zmp-vue';
|
|
19
|
-
import store from '../store'
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
setup() {
|
|
23
|
-
const products = useStore('products');
|
|
24
|
-
|
|
25
|
-
const addProduct = () => {
|
|
26
|
-
store.dispatch('addProduct', {
|
|
27
|
-
id: '4',
|
|
28
|
-
title: 'Apple iPhone 12',
|
|
29
|
-
description: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nisi tempora similique reiciendis, error nesciunt vero, blanditiis pariatur dolor, minima sed sapiente rerum, dolorem corrupti hic modi praesentium unde saepe perspiciatis.'
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
return {
|
|
34
|
-
products,
|
|
35
|
-
addProduct,
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
</script>
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<zmp-page>
|
|
3
|
-
<zmp-navbar title="Dynamic Route" back-link="Back"></zmp-navbar>
|
|
4
|
-
<zmp-block strong>
|
|
5
|
-
<ul>
|
|
6
|
-
<li><b>Url:</b> {{zmproute.url}}</li>
|
|
7
|
-
<li><b>Path:</b> {{zmproute.path}}</li>
|
|
8
|
-
<li><b>Hash:</b> {{zmproute.hash}}</li>
|
|
9
|
-
<li><b>Params:</b>
|
|
10
|
-
<ul>
|
|
11
|
-
<li v-for="(value, key) in zmproute.params" :key="key"><b>{{key}}:</b> {{value}}</li>
|
|
12
|
-
</ul>
|
|
13
|
-
</li>
|
|
14
|
-
<li><b>Query:</b>
|
|
15
|
-
<ul>
|
|
16
|
-
<li v-for="(value, key) in zmproute.query" :key="key"><b>{{key}}:</b> {{value}}</li>
|
|
17
|
-
</ul>
|
|
18
|
-
</li>
|
|
19
|
-
<li><b>Route:</b> {{zmproute.route.path}}</li>
|
|
20
|
-
</ul>
|
|
21
|
-
</zmp-block>
|
|
22
|
-
<zmp-block strong>
|
|
23
|
-
<zmp-link @click="zmprouter.back()">Go back via Router API</zmp-link>
|
|
24
|
-
</zmp-block>
|
|
25
|
-
</zmp-page>
|
|
26
|
-
</template>
|
|
27
|
-
<script>
|
|
28
|
-
export default {
|
|
29
|
-
props: {
|
|
30
|
-
zmproute: Object,
|
|
31
|
-
zmprouter: Object,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
</script>
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<zmp-page name="form">
|
|
3
|
-
<zmp-navbar title="Form" back-link="Back"></zmp-navbar>
|
|
4
|
-
|
|
5
|
-
<zmp-block-title>Form Example</zmp-block-title>
|
|
6
|
-
<zmp-list no-hairlines-md>
|
|
7
|
-
<zmp-list-input
|
|
8
|
-
label="Name"
|
|
9
|
-
type="text"
|
|
10
|
-
placeholder="Your name"
|
|
11
|
-
></zmp-list-input>
|
|
12
|
-
|
|
13
|
-
<zmp-list-input
|
|
14
|
-
label="E-mail"
|
|
15
|
-
type="email"
|
|
16
|
-
placeholder="E-mail"
|
|
17
|
-
></zmp-list-input>
|
|
18
|
-
|
|
19
|
-
<zmp-list-input
|
|
20
|
-
label="URL"
|
|
21
|
-
type="url"
|
|
22
|
-
placeholder="URL"
|
|
23
|
-
></zmp-list-input>
|
|
24
|
-
|
|
25
|
-
<zmp-list-input
|
|
26
|
-
label="Password"
|
|
27
|
-
type="password"
|
|
28
|
-
placeholder="Password"
|
|
29
|
-
></zmp-list-input>
|
|
30
|
-
|
|
31
|
-
<zmp-list-input
|
|
32
|
-
label="Phone"
|
|
33
|
-
type="tel"
|
|
34
|
-
placeholder="Phone"
|
|
35
|
-
></zmp-list-input>
|
|
36
|
-
|
|
37
|
-
<zmp-list-input
|
|
38
|
-
label="Gender"
|
|
39
|
-
type="select"
|
|
40
|
-
>
|
|
41
|
-
<option>Male</option>
|
|
42
|
-
<option>Female</option>
|
|
43
|
-
</zmp-list-input>
|
|
44
|
-
|
|
45
|
-
<zmp-list-input
|
|
46
|
-
label="Birth date"
|
|
47
|
-
type="date"
|
|
48
|
-
placeholder="Birth day"
|
|
49
|
-
defaultValue="2014-04-30"
|
|
50
|
-
></zmp-list-input>
|
|
51
|
-
|
|
52
|
-
<zmp-list-item
|
|
53
|
-
title="Toggle"
|
|
54
|
-
>
|
|
55
|
-
<template #after>
|
|
56
|
-
<zmp-toggle />
|
|
57
|
-
</template>
|
|
58
|
-
</zmp-list-item>
|
|
59
|
-
|
|
60
|
-
<zmp-list-input
|
|
61
|
-
label="Range"
|
|
62
|
-
:input="false"
|
|
63
|
-
>
|
|
64
|
-
<template #input>
|
|
65
|
-
<zmp-range :value="50" :min="0" :max="100" :step="1" />
|
|
66
|
-
</template>
|
|
67
|
-
</zmp-list-input>
|
|
68
|
-
|
|
69
|
-
<zmp-list-input
|
|
70
|
-
type="textarea"
|
|
71
|
-
label="Textarea"
|
|
72
|
-
placeholder="Bio"
|
|
73
|
-
></zmp-list-input>
|
|
74
|
-
<zmp-list-input
|
|
75
|
-
type="textarea"
|
|
76
|
-
label="Resizable"
|
|
77
|
-
placeholder="Bio"
|
|
78
|
-
resizable
|
|
79
|
-
></zmp-list-input>
|
|
80
|
-
</zmp-list>
|
|
81
|
-
|
|
82
|
-
<zmp-block-title>Buttons</zmp-block-title>
|
|
83
|
-
<zmp-block strong>
|
|
84
|
-
<zmp-row tag="p">
|
|
85
|
-
<zmp-button class="col">Button</zmp-button>
|
|
86
|
-
<zmp-button class="col" fill>Fill</zmp-button>
|
|
87
|
-
</zmp-row>
|
|
88
|
-
<zmp-row tag="p">
|
|
89
|
-
<zmp-button class="col" raised>Raised</zmp-button>
|
|
90
|
-
<zmp-button class="col" raised fill>Raised Fill</zmp-button>
|
|
91
|
-
</zmp-row>
|
|
92
|
-
<zmp-row tag="p">
|
|
93
|
-
<zmp-button class="col" round>Round</zmp-button>
|
|
94
|
-
<zmp-button class="col" round fill>Round Fill</zmp-button>
|
|
95
|
-
</zmp-row>
|
|
96
|
-
<zmp-row tag="p">
|
|
97
|
-
<zmp-button class="col" outline>Outline</zmp-button>
|
|
98
|
-
<zmp-button class="col" round outline>Outline Round</zmp-button>
|
|
99
|
-
</zmp-row>
|
|
100
|
-
<zmp-row tag="p">
|
|
101
|
-
<zmp-button class="col" small outline>Small</zmp-button>
|
|
102
|
-
<zmp-button class="col" small round outline>Small Round</zmp-button>
|
|
103
|
-
</zmp-row>
|
|
104
|
-
<zmp-row tag="p">
|
|
105
|
-
<zmp-button class="col" small fill>Small</zmp-button>
|
|
106
|
-
<zmp-button class="col" small round fill>Small Round</zmp-button>
|
|
107
|
-
</zmp-row>
|
|
108
|
-
<zmp-row tag="p">
|
|
109
|
-
<zmp-button class="col" large raised>Large</zmp-button>
|
|
110
|
-
<zmp-button class="col" large fill raised>Large Fill</zmp-button>
|
|
111
|
-
</zmp-row>
|
|
112
|
-
<zmp-row tag="p">
|
|
113
|
-
<zmp-button class="col" large fill raised color="red">Large Red</zmp-button>
|
|
114
|
-
<zmp-button class="col" large fill raised color="green">Large Green</zmp-button>
|
|
115
|
-
</zmp-row>
|
|
116
|
-
</zmp-block>
|
|
117
|
-
|
|
118
|
-
<zmp-block-title>Checkbox group</zmp-block-title>
|
|
119
|
-
<zmp-list>
|
|
120
|
-
<zmp-list-item
|
|
121
|
-
checkbox
|
|
122
|
-
name="my-checkbox"
|
|
123
|
-
value="Books"
|
|
124
|
-
title="Books"
|
|
125
|
-
></zmp-list-item>
|
|
126
|
-
<zmp-list-item
|
|
127
|
-
checkbox
|
|
128
|
-
name="my-checkbox"
|
|
129
|
-
value="Movies"
|
|
130
|
-
title="Movies"
|
|
131
|
-
></zmp-list-item>
|
|
132
|
-
<zmp-list-item
|
|
133
|
-
checkbox
|
|
134
|
-
name="my-checkbox"
|
|
135
|
-
value="Food"
|
|
136
|
-
title="Food"
|
|
137
|
-
></zmp-list-item>
|
|
138
|
-
</zmp-list>
|
|
139
|
-
|
|
140
|
-
<zmp-block-title>Radio buttons group</zmp-block-title>
|
|
141
|
-
<zmp-list>
|
|
142
|
-
<zmp-list-item
|
|
143
|
-
radio
|
|
144
|
-
name="radio"
|
|
145
|
-
value="Books"
|
|
146
|
-
title="Books"
|
|
147
|
-
></zmp-list-item>
|
|
148
|
-
<zmp-list-item
|
|
149
|
-
radio
|
|
150
|
-
name="radio"
|
|
151
|
-
value="Movies"
|
|
152
|
-
title="Movies"
|
|
153
|
-
></zmp-list-item>
|
|
154
|
-
<zmp-list-item
|
|
155
|
-
radio
|
|
156
|
-
name="radio"
|
|
157
|
-
value="Food"
|
|
158
|
-
title="Food"
|
|
159
|
-
></zmp-list-item>
|
|
160
|
-
</zmp-list>
|
|
161
|
-
</zmp-page>
|
|
162
|
-
</template>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<zmp-page>
|
|
3
|
-
<zmp-navbar title="Left Page 1" back-link="Back"></zmp-navbar>
|
|
4
|
-
<zmp-block strong>
|
|
5
|
-
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Reprehenderit deserunt vel accusamus voluptatem neque! Laborum, et facilis at. Est dolorem, reprehenderit, sed repellendus at cum incidunt labore vel perferendis excepturi?</p>
|
|
6
|
-
<p>Tempore accusantium quaerat officiis dolores ullam, perferendis labore assumenda. A sint quo necessitatibus temporibus ipsam adipisci et quos aliquid officiis, facilis nulla ut aperiam assumenda magnam blanditiis exercitationem facere non!</p>
|
|
7
|
-
<p>Omnis accusamus harum, vero dolores itaque, asperiores laudantium eligendi ipsa, labore dignissimos unde temporibus eius assumenda, obcaecati fuga et. Et provident at consectetur vel temporibus ea nam, veritatis excepturi obcaecati.</p>
|
|
8
|
-
<p>Aspernatur dolorum nostrum est sapiente deleniti in. Placeat itaque expedita dignissimos, suscipit tenetur necessitatibus sunt excepturi quisquam, doloremque repudiandae mollitia in. Nesciunt quo vel, dolorum magni nihil officia reprehenderit libero.</p>
|
|
9
|
-
<p>Fugit nesciunt nobis at doloribus labore, voluptatem quis, distinctio, saepe illo adipisci qui molestias fugiat ut! Quasi animi possimus temporibus repudiandae quam aspernatur, recusandae libero, reiciendis distinctio cupiditate nesciunt a.</p>
|
|
10
|
-
</zmp-block>
|
|
11
|
-
</zmp-page>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<zmp-page>
|
|
3
|
-
<zmp-navbar title="Left Page 2" back-link="Back"></zmp-navbar>
|
|
4
|
-
<zmp-block strong>
|
|
5
|
-
<p>Maxime tempore, repellendus? Sequi saepe provident quas, neque assumenda dicta odit eaque nesciunt facere mollitia totam voluptate aspernatur vel corporis repudiandae commodi ad cumque repellendus. Saepe officia iure repellat repellendus.</p>
|
|
6
|
-
<p>Ea maiores accusantium non fuga dicta, vero minus veniam! Ipsum eveniet vero voluptate veritatis aspernatur hic dicta adipisci, debitis. Sint quam aperiam repellat quis perspiciatis accusantium ipsum nulla soluta temporibus.</p>
|
|
7
|
-
<p>Necessitatibus ipsum culpa doloremque, nostrum atque totam minima itaque! Blanditiis nobis nam repudiandae, ut nostrum voluptate accusantium atque, veniam libero quaerat corporis laborum earum rem nihil unde. Vitae cum, aliquam?</p>
|
|
8
|
-
<p>Debitis aliquid nemo maxime recusandae, mollitia sed error vero. Atque molestiae rem necessitatibus nam voluptas quaerat, reiciendis, excepturi quis facilis, quod cupiditate vitae voluptate repudiandae! Unde impedit aut id ut?</p>
|
|
9
|
-
</zmp-block>
|
|
10
|
-
</zmp-page>
|
|
11
|
-
</template>
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<zmp-page name="product">
|
|
3
|
-
<zmp-navbar :title="product.title" back-link="Back"></zmp-navbar>
|
|
4
|
-
<zmp-block-title>About {{product.title}}</zmp-block-title>
|
|
5
|
-
<zmp-block strong>
|
|
6
|
-
{{product.description}}
|
|
7
|
-
</zmp-block>
|
|
8
|
-
</zmp-page>
|
|
9
|
-
</template>
|
|
10
|
-
<script>
|
|
11
|
-
import { useStore } from 'zmp-vue';
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
props: {
|
|
15
|
-
zmproute: Object,
|
|
16
|
-
},
|
|
17
|
-
setup(props) {
|
|
18
|
-
const products = useStore('products');
|
|
19
|
-
const productId = props.zmproute.params.id;
|
|
20
|
-
let currentProduct;
|
|
21
|
-
products.forEach(function (product) {
|
|
22
|
-
if (product.id === productId) {
|
|
23
|
-
currentProduct = product;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
return {
|
|
27
|
-
product: currentProduct,
|
|
28
|
-
};
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
</script>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<zmp-page>
|
|
3
|
-
<zmp-navbar :title="`${user.firstName} ${user.lastName}`" back-link="Back"></zmp-navbar>
|
|
4
|
-
<zmp-block strong>
|
|
5
|
-
{{user.about}}
|
|
6
|
-
</zmp-block>
|
|
7
|
-
<zmp-list>
|
|
8
|
-
<zmp-list-item
|
|
9
|
-
v-for="(link, index) in user.links"
|
|
10
|
-
:key="index"
|
|
11
|
-
:link="link.url"
|
|
12
|
-
:title="link.title"
|
|
13
|
-
external
|
|
14
|
-
target="_blank"
|
|
15
|
-
></zmp-list-item>
|
|
16
|
-
</zmp-list>
|
|
17
|
-
</zmp-page>
|
|
18
|
-
</template>
|
|
19
|
-
<script>
|
|
20
|
-
export default {
|
|
21
|
-
props: {
|
|
22
|
-
user: Object,
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
</script>
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<zmp-page bg-color="white">
|
|
3
|
-
<zmp-box m="4">
|
|
4
|
-
<zmp-title>Settings</zmp-title>
|
|
5
|
-
<zmp-list>
|
|
6
|
-
<zmp-list-item title="Show notifications">
|
|
7
|
-
<zmp-toggle />
|
|
8
|
-
</zmp-list-item>
|
|
9
|
-
<zmp-list-item title="Auto update">
|
|
10
|
-
<zmp-preloader />
|
|
11
|
-
</zmp-list-item>
|
|
12
|
-
<zmp-list-item title="Volume">
|
|
13
|
-
<zmp-range style="width: 50%" />
|
|
14
|
-
</zmp-list-item>
|
|
15
|
-
</zmp-list>
|
|
16
|
-
</zmp-box>
|
|
17
|
-
</zmp-page>
|
|
18
|
-
</template>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"noEmit": true,
|
|
4
|
-
"target": "es6",
|
|
5
|
-
"module": "esnext",
|
|
6
|
-
"noImplicitAny": false,
|
|
7
|
-
"preserveConstEnums": true,
|
|
8
|
-
"jsx": "react",
|
|
9
|
-
"lib": ["dom", "es5", "es6", "es7", "es2017"],
|
|
10
|
-
"allowSyntheticDefaultImports": true,
|
|
11
|
-
"esModuleInterop": true,
|
|
12
|
-
"allowJs": true,
|
|
13
|
-
"skipLibCheck": true,
|
|
14
|
-
"declaration": false,
|
|
15
|
-
"emitDecoratorMetadata": true,
|
|
16
|
-
"experimentalDecorators": true,
|
|
17
|
-
"forceConsistentCasingInFileNames": true,
|
|
18
|
-
"moduleResolution": "node",
|
|
19
|
-
"noEmitOnError": true,
|
|
20
|
-
"noFallthroughCasesInSwitch": true,
|
|
21
|
-
"noImplicitReturns": true,
|
|
22
|
-
"noImplicitThis": true,
|
|
23
|
-
"noUnusedLocals": false,
|
|
24
|
-
"strict": true,
|
|
25
|
-
"strictFunctionTypes": false,
|
|
26
|
-
"pretty": true,
|
|
27
|
-
"removeComments": true,
|
|
28
|
-
"sourceMap": true,
|
|
29
|
-
"resolveJsonModule": true
|
|
30
|
-
},
|
|
31
|
-
"exclude": ["node_modules"],
|
|
32
|
-
"include": ["src"]
|
|
33
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Avatar, Box, Text } from 'zmp-ui';
|
|
3
|
-
|
|
4
|
-
const UserCard = ({ user }) => {
|
|
5
|
-
return (
|
|
6
|
-
<Box flex>
|
|
7
|
-
<Avatar story='default' online src={user.avatar.startsWith('http') ? user.avatar : null}>{user.avatar}</Avatar>
|
|
8
|
-
<Box ml={4}>
|
|
9
|
-
<Text.Title>{user.name}</Text.Title>
|
|
10
|
-
<Text>{user.id}</Text>
|
|
11
|
-
</Box>
|
|
12
|
-
</Box>
|
|
13
|
-
)
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export default UserCard;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("path"),t=require("./generate-home-page"),r=require("./generate-root"),o=require("../generate-recoil"),s=require("./generate-user-card"),n=require("./pages"),{projectFramework:c}=require("../../../utils/constants"),u=require("../../../utils/fs-extra");module.exports=i=>{let a=i.cwd||process.cwd(),{template:l,stateManagement:p,framework:f}=i,g=[],h=f===c.REACT_TYPESCRIPT?"tsx":"jsx",m=[];"blank"!==l&&m.push({fileName:"about",content:"copyAbout"},{fileName:"user",content:"copyUser"},{fileName:"form",content:"copyForm"}),m.forEach(({fileName:t,content:r})=>{let o=e.resolve(a,"src","pages",`${t}.${h}`);g.push({content:n[r](i),to:o})}),g.push({content:t(i),to:e.resolve(a,"src","pages",`index.${h}`)}),"blank"!==l&&g.push({content:s(i),to:e.resolve(a,"src","components",`user-card.${h}`)}),g.push({content:r(i),to:e.resolve(a,"src","components",`app.${h}`)}),f===c.REACT_TYPESCRIPT?"recoil"===p&&g.push({content:o(i),to:e.resolve(a,"src","state.ts")}):"recoil"===p&&g.push({content:o(i),to:e.resolve(a,"src","state.js")});let v=f===c.REACT_TYPESCRIPT;return g.push({content:u.readFileSync(e.resolve(__dirname,"vite.config.js"),"utf8"),to:e.resolve(a,`vite.config.${v?"ts":"js"}`)}),f===c.REACT_TYPESCRIPT&&g.push({from:e.resolve(__dirname,"_tsconfig.json"),to:e.resolve(a,"tsconfig.json")}),g};
|