devextreme-cli 1.8.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/applications/application.react.js +4 -3
- package/src/templates/cra-template/LICENSE +21 -0
- package/src/templates/cra-template/README.md +10 -0
- package/src/templates/cra-template/package.json +26 -0
- package/src/templates/cra-template/template/README.md +70 -0
- package/src/templates/cra-template/template/gitignore +23 -0
- package/src/templates/cra-template/template/public/favicon.ico +0 -0
- package/src/templates/cra-template/template/public/index.html +43 -0
- package/src/templates/cra-template/template/public/logo192.png +0 -0
- package/src/templates/cra-template/template/public/logo512.png +0 -0
- package/src/templates/cra-template/template/public/manifest.json +25 -0
- package/src/templates/cra-template/template/public/robots.txt +3 -0
- package/src/templates/cra-template/template/src/App.css +38 -0
- package/src/templates/cra-template/template/src/App.js +25 -0
- package/src/templates/cra-template/template/src/App.test.js +9 -0
- package/src/templates/cra-template/template/src/index.css +12 -0
- package/src/templates/cra-template/template/src/index.js +17 -0
- package/src/templates/cra-template/template/src/logo.svg +1 -0
- package/src/templates/cra-template/template/src/reportWebVitals.js +13 -0
- package/src/templates/cra-template/template/src/setupTests.js +5 -0
- package/src/templates/cra-template/template.json +14 -0
- package/src/templates/cra-template-typescript/LICENSE +21 -0
- package/src/templates/cra-template-typescript/README.md +20 -0
- package/src/templates/cra-template-typescript/package.json +27 -0
- package/src/templates/cra-template-typescript/template/README.md +46 -0
- package/src/templates/cra-template-typescript/template/gitignore +23 -0
- package/src/templates/cra-template-typescript/template/public/favicon.ico +0 -0
- package/src/templates/cra-template-typescript/template/public/index.html +43 -0
- package/src/templates/cra-template-typescript/template/public/logo192.png +0 -0
- package/src/templates/cra-template-typescript/template/public/logo512.png +0 -0
- package/src/templates/cra-template-typescript/template/public/manifest.json +25 -0
- package/src/templates/cra-template-typescript/template/public/robots.txt +3 -0
- package/src/templates/cra-template-typescript/template/src/App.css +38 -0
- package/src/templates/cra-template-typescript/template/src/App.test.tsx +10 -0
- package/src/templates/cra-template-typescript/template/src/App.tsx +26 -0
- package/src/templates/cra-template-typescript/template/src/index.css +12 -0
- package/src/templates/cra-template-typescript/template/src/index.tsx +19 -0
- package/src/templates/cra-template-typescript/template/src/logo.svg +1 -0
- package/src/templates/cra-template-typescript/template/src/reportWebVitals.ts +13 -0
- package/src/templates/cra-template-typescript/template/src/setupTests.ts +5 -0
- package/src/templates/cra-template-typescript/template.json +19 -0
- package/src/templates/react/application/src/App.test.tsx +2 -1
- package/src/templates/react/application/src/components/create-account-form/CreateAccountForm.scss +4 -3
- package/src/templates/react/application/src/components/create-account-form/CreateAccountForm.tsx +3 -5
- package/src/templates/react/application/src/components/header/Header.scss +1 -1
- package/src/templates/react/application/src/components/login-form/LoginForm.scss +2 -6
- package/src/templates/react/application/src/components/login-form/LoginForm.tsx +10 -12
- package/src/templates/react/application/src/components/reset-password-form/ResetPasswordForm.scss +3 -2
- package/src/templates/react/application/src/components/reset-password-form/ResetPasswordForm.tsx +3 -5
- package/src/templates/react/application/src/components/side-navigation-menu/SideNavigationMenu.scss +1 -1
- package/src/templates/react/application/src/components/side-navigation-menu/SideNavigationMenu.tsx +1 -1
- package/src/templates/react/application/src/components/theme-switcher/ThemeSwitcher.tsx +1 -1
- package/src/templates/react/application/src/dx-styles.scss +4 -3
- package/src/templates/react/application/src/layouts/single-card/single-card.scss +10 -5
- package/src/templates/react/application/src/theme.tsx +1 -1
- package/src/templates/react/application/src/variables.scss +32 -16
- package/src/templates/vue-v3/application/src/App.vue +1 -0
- package/src/templates/vue-v3/application/src/components/header-toolbar.vue +1 -1
- package/src/templates/vue-v3/application/src/components/side-nav-menu.vue +2 -2
- package/src/templates/vue-v3/application/src/dx-styles.scss +3 -3
- package/src/templates/vue-v3/application/src/layouts/single-card.vue +10 -5
- package/src/templates/vue-v3/application/src/variables.scss +30 -14
- package/src/templates/vue-v3/application/src/views/create-account-form.vue +21 -24
- package/src/templates/vue-v3/application/src/views/login-form.vue +18 -25
- package/src/templates/vue-v3/application/src/views/reset-password-form.vue +6 -9
- package/src/utility/latest-versions.js +3 -3
|
@@ -46,13 +46,6 @@
|
|
|
46
46
|
>
|
|
47
47
|
</dx-button-options>
|
|
48
48
|
</dx-button-item>
|
|
49
|
-
<dx-item>
|
|
50
|
-
<template #default>
|
|
51
|
-
<div class="login-link">
|
|
52
|
-
Have an account? <router-link to="/login-form">Sign In</router-link>
|
|
53
|
-
</div>
|
|
54
|
-
</template>
|
|
55
|
-
</dx-item>
|
|
56
49
|
<template #createAccount>
|
|
57
50
|
<div>
|
|
58
51
|
<span class="dx-button-text">
|
|
@@ -62,6 +55,9 @@
|
|
|
62
55
|
</div>
|
|
63
56
|
</template>
|
|
64
57
|
</dx-form>
|
|
58
|
+
<div class="login-link">
|
|
59
|
+
Have an account? <router-link to="/login-form">Sign In</router-link>
|
|
60
|
+
</div>
|
|
65
61
|
</form>
|
|
66
62
|
</template>
|
|
67
63
|
|
|
@@ -104,28 +100,28 @@ export default {
|
|
|
104
100
|
});
|
|
105
101
|
|
|
106
102
|
const onSubmit = async () => {
|
|
107
|
-
|
|
108
|
-
|
|
103
|
+
const { email, password } = formData;
|
|
104
|
+
loading.value = true;
|
|
109
105
|
|
|
110
|
-
|
|
111
|
-
|
|
106
|
+
const result = await auth.createAccount(email, password);
|
|
107
|
+
loading.value = false;
|
|
112
108
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
109
|
+
if (result.isOk) {
|
|
110
|
+
router.push("/login-form");
|
|
111
|
+
} else {
|
|
112
|
+
notify(result.message, 'error', 2000);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
119
115
|
|
|
120
116
|
function confirmPassword(e) {
|
|
121
117
|
return e.value === formData.password;
|
|
122
118
|
}
|
|
123
119
|
|
|
124
120
|
return {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
121
|
+
formData,
|
|
122
|
+
loading,
|
|
123
|
+
onSubmit,
|
|
124
|
+
confirmPassword
|
|
129
125
|
}
|
|
130
126
|
}
|
|
131
127
|
}
|
|
@@ -134,9 +130,8 @@ export default {
|
|
|
134
130
|
<style lang="scss">
|
|
135
131
|
.create-account-form {
|
|
136
132
|
.policy-info {
|
|
137
|
-
margin: 10px 0;
|
|
138
133
|
color: var(--base-text-color-alpha-7);
|
|
139
|
-
font-size:
|
|
134
|
+
font-size: 12px;
|
|
140
135
|
font-style: normal;
|
|
141
136
|
|
|
142
137
|
a {
|
|
@@ -146,8 +141,10 @@ export default {
|
|
|
146
141
|
|
|
147
142
|
.login-link {
|
|
148
143
|
color: var(--base-accent);
|
|
149
|
-
font-size:
|
|
144
|
+
font-size: 12px;
|
|
150
145
|
text-align: center;
|
|
146
|
+
padding: 6px 0 32px 0;
|
|
147
|
+
border-bottom: 1px solid var(--border-color);
|
|
151
148
|
}
|
|
152
149
|
}
|
|
153
150
|
</style>
|
|
@@ -34,20 +34,6 @@
|
|
|
34
34
|
>
|
|
35
35
|
</dx-button-options>
|
|
36
36
|
</dx-button-item>
|
|
37
|
-
<dx-item>
|
|
38
|
-
<template #default>
|
|
39
|
-
<div class="link">
|
|
40
|
-
<router-link to="/reset-password">Forgot password?</router-link>
|
|
41
|
-
</div>
|
|
42
|
-
</template>
|
|
43
|
-
</dx-item>
|
|
44
|
-
<dx-button-item>
|
|
45
|
-
<dx-button-options
|
|
46
|
-
text="Create an account"
|
|
47
|
-
width="100%"
|
|
48
|
-
:on-click="onCreateAccountClick"
|
|
49
|
-
/>
|
|
50
|
-
</dx-button-item>
|
|
51
37
|
<template #signInTemplate>
|
|
52
38
|
<div>
|
|
53
39
|
<span class="dx-button-text">
|
|
@@ -57,6 +43,15 @@
|
|
|
57
43
|
</div>
|
|
58
44
|
</template>
|
|
59
45
|
</dx-form>
|
|
46
|
+
<div class="link">
|
|
47
|
+
<router-link to="/reset-password">Forgot password?</router-link>
|
|
48
|
+
</div>
|
|
49
|
+
<dx-button
|
|
50
|
+
text="Create an account"
|
|
51
|
+
stylingMode="outlined"
|
|
52
|
+
width="100%"
|
|
53
|
+
@click="onCreateAccountClick"
|
|
54
|
+
/>
|
|
60
55
|
</form>
|
|
61
56
|
</template>
|
|
62
57
|
|
|
@@ -70,6 +65,7 @@ import DxForm, {
|
|
|
70
65
|
DxButtonItem,
|
|
71
66
|
DxButtonOptions
|
|
72
67
|
} from "devextreme-vue/form";
|
|
68
|
+
import { DxButton } from 'devextreme-vue';
|
|
73
69
|
import notify from 'devextreme/ui/notify';
|
|
74
70
|
|
|
75
71
|
import auth from "../auth";
|
|
@@ -119,26 +115,23 @@ export default {
|
|
|
119
115
|
DxItem,
|
|
120
116
|
DxLabel,
|
|
121
117
|
DxButtonItem,
|
|
122
|
-
DxButtonOptions
|
|
118
|
+
DxButtonOptions,
|
|
119
|
+
DxButton
|
|
123
120
|
}
|
|
124
121
|
};
|
|
125
122
|
</script>
|
|
126
123
|
|
|
127
124
|
<style lang="scss">
|
|
128
125
|
.login-form {
|
|
126
|
+
.form-text {
|
|
127
|
+
color: var(--base-text-color-alpha-7);
|
|
128
|
+
}
|
|
129
|
+
|
|
129
130
|
.link {
|
|
130
131
|
text-align: center;
|
|
131
|
-
font-size:
|
|
132
|
+
font-size: 12px;
|
|
132
133
|
font-style: normal;
|
|
133
|
-
|
|
134
|
-
a {
|
|
135
|
-
text-decoration: none;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.form-text {
|
|
140
|
-
margin: 10px 0;
|
|
141
|
-
color: var(--base-text-color-alpha-7);
|
|
134
|
+
margin: 6px 0 50px;
|
|
142
135
|
}
|
|
143
136
|
}
|
|
144
137
|
</style>
|
|
@@ -20,13 +20,6 @@
|
|
|
20
20
|
>
|
|
21
21
|
</dx-button-options>
|
|
22
22
|
</dx-button-item>
|
|
23
|
-
<dx-item>
|
|
24
|
-
<template #default>
|
|
25
|
-
<div class="login-link">
|
|
26
|
-
Return to <router-link to="/login-form">Sign In</router-link>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
</dx-item>
|
|
30
23
|
<template #resetTemplate>
|
|
31
24
|
<div>
|
|
32
25
|
<span class="dx-button-text">
|
|
@@ -36,6 +29,9 @@
|
|
|
36
29
|
</div>
|
|
37
30
|
</template>
|
|
38
31
|
</dx-form>
|
|
32
|
+
<div class="login-link">
|
|
33
|
+
Return to <router-link to="/login-form">Sign In</router-link>
|
|
34
|
+
</div>
|
|
39
35
|
</form>
|
|
40
36
|
</template>
|
|
41
37
|
|
|
@@ -103,13 +99,14 @@ export default {
|
|
|
103
99
|
<style lang="scss">
|
|
104
100
|
.reset-password-form {
|
|
105
101
|
.submit-button {
|
|
106
|
-
margin-top:
|
|
102
|
+
margin-top: 18px;
|
|
107
103
|
}
|
|
108
104
|
|
|
109
105
|
.login-link {
|
|
110
106
|
color: var(--base-accent);
|
|
111
|
-
font-size:
|
|
107
|
+
font-size: 12px;
|
|
112
108
|
text-align: center;
|
|
109
|
+
margin-top: 6px;
|
|
113
110
|
}
|
|
114
111
|
}
|
|
115
112
|
</style>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
const packageJson = require('../../package.json');
|
|
2
2
|
module.exports = {
|
|
3
|
-
'devextreme': '24.2.
|
|
4
|
-
'devextreme-react': '24.2.
|
|
5
|
-
'devextreme-vue': '24.2.
|
|
3
|
+
'devextreme': '24.2.6',
|
|
4
|
+
'devextreme-react': '24.2.6',
|
|
5
|
+
'devextreme-vue': '24.2.6',
|
|
6
6
|
'devextreme-cli': packageJson.version,
|
|
7
7
|
'devextreme-schematics': 'latest'
|
|
8
8
|
};
|