devextreme-cli 1.8.0-beta.0 → 1.9.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/types.tsx +55 -55
- 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
- package/src/.DS_Store +0 -0
- package/src/templates/.DS_Store +0 -0
- package/src/templates/react/.DS_Store +0 -0
- package/src/templates/react/application/.DS_Store +0 -0
|
@@ -46,10 +46,11 @@ export default {
|
|
|
46
46
|
height: 100%;
|
|
47
47
|
|
|
48
48
|
.dx-card {
|
|
49
|
-
width:
|
|
49
|
+
width: 360px;
|
|
50
50
|
margin: auto auto;
|
|
51
|
-
padding:
|
|
51
|
+
padding: 24px;
|
|
52
52
|
flex-grow: 0;
|
|
53
|
+
border-radius: 8px;
|
|
53
54
|
|
|
54
55
|
.screen-x-small & {
|
|
55
56
|
width: 100%;
|
|
@@ -62,18 +63,22 @@ export default {
|
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
.header {
|
|
65
|
-
margin
|
|
66
|
+
margin: 24px 0;
|
|
66
67
|
|
|
67
68
|
.title {
|
|
68
69
|
color: var(--base-text-color);
|
|
69
|
-
|
|
70
|
+
text-align: center;
|
|
71
|
+
line-height: 24px;
|
|
70
72
|
font-weight: 500;
|
|
71
73
|
font-size: 24px;
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
.description {
|
|
75
77
|
color: var(--base-text-color-alpha-7);
|
|
76
|
-
line-height:
|
|
78
|
+
line-height: 16px;
|
|
79
|
+
font-size: 12px;
|
|
80
|
+
margin-top: 32px;
|
|
81
|
+
text-align: center;
|
|
77
82
|
}
|
|
78
83
|
}
|
|
79
84
|
}
|
|
@@ -1,14 +1,28 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'sass:color';
|
|
3
|
+
@use 'sass:map';
|
|
4
|
+
@use "./themes/generated/variables.base.scss" as variablesBase;
|
|
5
|
+
@use "./themes/generated/variables.base.dark.scss" as variablesBaseDark;
|
|
6
|
+
@use "./themes/generated/variables.additional.scss" as variablesAdditional;
|
|
7
|
+
@use "./themes/generated/variables.additional.dark.scss" as variablesAdditionalDark;
|
|
8
|
+
|
|
9
|
+
@mixin theme-variables($theme-name) {
|
|
10
|
+
$theme: meta.module-variables($theme-name);
|
|
11
|
+
$base-text-color: map.get($theme, 'base-text-color');
|
|
12
|
+
$base-bg: map.get($theme, 'base-bg');
|
|
13
|
+
|
|
14
|
+
--base-text-color: #{$base-text-color};
|
|
15
|
+
--base-bg: #{$base-bg};
|
|
16
|
+
--base-bg-darken-5: #{color.adjust($base-bg, $lightness: -5%)};
|
|
17
|
+
--base-accent: #{map.get($theme, 'base-accent')};
|
|
18
|
+
--base-text-color-alpha-7: #{rgba($base-text-color, color.alpha($base-text-color) * 0.7)};
|
|
19
|
+
}
|
|
20
|
+
|
|
1
21
|
:root {
|
|
2
22
|
body {
|
|
3
|
-
@
|
|
23
|
+
@include theme-variables('variablesBase');
|
|
4
24
|
|
|
5
|
-
--base-text-color: #{$base-text-color};
|
|
6
|
-
--base-bg: #{$base-bg};
|
|
7
|
-
--base-bg-darken-5: #{darken($base-bg, 5)};
|
|
8
|
-
--base-accent: #{$base-accent};
|
|
9
|
-
--base-text-color-alpha-7: #{rgba($base-text-color, alpha($base-text-color) * 0.7)};
|
|
10
25
|
--footer-border-color: rgba(224, 224, 224, 1);
|
|
11
|
-
|
|
12
26
|
--plus-icon-color: #242424;
|
|
13
27
|
--devextreme-logo-color: #596C7D;
|
|
14
28
|
--vue-logo-text-color: #35495E;
|
|
@@ -17,14 +31,12 @@
|
|
|
17
31
|
--shadow-color-second: rgba(0, 0, 0, 0.12);
|
|
18
32
|
}
|
|
19
33
|
|
|
20
|
-
.dx-swatch-
|
|
21
|
-
@
|
|
34
|
+
.dx-swatch-additional {
|
|
35
|
+
@include theme-variables('variablesAdditional');
|
|
36
|
+
}
|
|
22
37
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
--base-bg-darken-5: #{darken($base-bg, 5)};
|
|
26
|
-
--base-accent: #{$base-accent};
|
|
27
|
-
--base-text-color-alpha-7: #{rgba($base-text-color, alpha($base-text-color) * 0.7)};
|
|
38
|
+
.dx-swatch-dark {
|
|
39
|
+
@include theme-variables('variablesBaseDark');;
|
|
28
40
|
|
|
29
41
|
--plus-icon-color: #fff;
|
|
30
42
|
--devextreme-logo-color: #fff;
|
|
@@ -34,4 +46,8 @@
|
|
|
34
46
|
--shadow-color-second: rgba(0, 0, 0, 0.24);
|
|
35
47
|
--footer-border-color: rgba(97, 97, 97, 1);
|
|
36
48
|
}
|
|
49
|
+
|
|
50
|
+
.dx-swatch-additional-dark {
|
|
51
|
+
@include theme-variables('variablesAdditionalDark');
|
|
52
|
+
}
|
|
37
53
|
}
|
|
@@ -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.5',
|
|
4
|
+
'devextreme-react': '24.2.5',
|
|
5
|
+
'devextreme-vue': '24.2.5',
|
|
6
6
|
'devextreme-cli': packageJson.version,
|
|
7
7
|
'devextreme-schematics': 'latest'
|
|
8
8
|
};
|
package/src/.DS_Store
DELETED
|
Binary file
|
package/src/templates/.DS_Store
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|