Skip to content

Commit 040dffa

Browse files
authored
feat: sign-up app (#971)
* feat(sign-up): form creation - WIP * feat(sign-up): working app for FR * feat(sign-up): working app for FR * feat(sign-up): add some styles * feat(sign-up): add some fields for activity step * fix(sign-up): fix after code review * fix: upgrade ovh-ui-angular version * fix(sign-up): fix after first tests * fix(sign-up): bad rebase * fix(sign-up): feedbacks * fix(sign-up): code review * fix(sign-up): change app name in index.html * build: bump ovh-ui-angular to v3.3.2 * fix(sign-up): review comments * fix(sign-up): review and test feedbacks * build(sign-up): add env param to build command * fix(sign-up): ref MBE-368 * build(sign-up): update @ovh-ux/manager-core version * fix(sign-up): bad POST params * fix(sign-up): upgrade @ovh-ux/manager-core * build(sign-up): downgrade @ovh-ux/manager-core * build: staging purpose * build(sign-up): try build with @ovh-ux/manager-core@6.0.0 * fix(sign-up): remove pseudo element for flag-icon * fix(sign-up): add some meta in index.html * fix(sign-up): remove hotfix css * fix(sign-up): fix srcset path * feat(sign-up): manage language from query string * fix(sign-up): logo link * fix(sign-up): infinite loop * fix(sign-up): typo * fix(sign-up): yarn.lock * build(sign-up): update package.json
1 parent 9a142fc commit 040dffa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+2455
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"extends": "../../../../.eslintrc.js",
3+
"globals": {
4+
"__NG_APP_INJECTIONS__": true,
5+
"__WEBPACK_REGION__": true
6+
}
7+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
BSD 3-Clause License
2+
3+
Copyright (c) 2013-present, OVH SAS
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
9+
* Redistributions of source code must retain the above copyright notice, this
10+
list of conditions and the following disclaimer.
11+
12+
* Redistributions in binary form must reproduce the above copyright notice,
13+
this list of conditions and the following disclaimer in the documentation
14+
and/or other materials provided with the distribution.
15+
16+
* Neither the name of the copyright holder nor the names of its
17+
contributors may be used to endorse or promote products derived from
18+
this software without specific prior written permission.
19+
20+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
21+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
23+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
24+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
26+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
27+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
28+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# sign-up
2+
3+
## Installation
4+
5+
Foremost, you should launch a global installation at the root folder of this repository:
6+
7+
```sh
8+
yarn install
9+
```
10+
11+
## Build
12+
13+
```sh
14+
# Build in production mode
15+
yarn start
16+
```
17+
18+
## Development
19+
20+
If you want to contribute to the project, follow theses instructions:
21+
22+
Foremost, you should launch a global installation at the root folder of this repository:
23+
24+
```sh
25+
yarn install
26+
```
27+
28+
Then you just have to start the project in development mode. For this, two choices are possible according to your needs:
29+
30+
```sh
31+
# Build the `sign-up` workspace and all the nested workspaces in development mode and watch only `sign-up` workspace
32+
yarn start:dev
33+
# Build and watch the `sign-up` workspace and all the nested workspaces in development mode
34+
yarn start:watch
35+
```
36+
37+
## Contributing
38+
39+
Always feel free to help out! Whether it's [filing bugs and feature requests](https://github.com/ovh-ux/manager/issues/new) or working on some of the [open issues](https://github.com/ovh-ux/manager/issues), our [contributing guide](CONTRIBUTING.md) will help get you started.
40+
41+
## License
42+
43+
[BSD-3-Clause](LICENSE) © OVH SAS
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "@ovh-ux/sign-up-app",
3+
"version": "1.0.0",
4+
"private": true,
5+
"license": "BSD-3-Clause",
6+
"main": "./src/index.js",
7+
"scripts": {
8+
"build": "webpack --env.production",
9+
"dev": "webpack-dev-server",
10+
"dev:watch": "yarn run dev",
11+
"start": "lerna exec --stream --scope='@ovh-ux/sign-up-app' --include-filtered-dependencies -- yarn run build",
12+
"start:dev": "lerna exec --stream --scope='@ovh-ux/sign-up-app' --include-filtered-dependencies -- yarn run dev",
13+
"start:watch": "lerna exec --stream --parallel --scope='@ovh-ux/sign-up-app' --include-filtered-dependencies -- yarn run dev:watch"
14+
},
15+
"dependencies": {
16+
"@ovh-ux/manager-core": "^6.0.1",
17+
"@ovh-ux/ng-ovh-sso-auth": "^4.1.0",
18+
"@ovh-ux/ng-translate-async-loader": "^2.0.0",
19+
"@ovh-ux/sign-up": "^0.0.0",
20+
"@uirouter/angularjs": "^1.0.20",
21+
"angular": "^1.7.8",
22+
"angular-translate": "^2.18.1",
23+
"bootstrap4": "twbs/bootstrap#v4.0.0",
24+
"lodash": "^4.17.11",
25+
"ovh-ui-angular": "^3.3.3",
26+
"ovh-ui-kit": "^2.33.3"
27+
},
28+
"devDependencies": {
29+
"@ovh-ux/manager-webpack-config": "^3.0.7",
30+
"glob": "^7.1.4",
31+
"webpack": "^4.30.0",
32+
"webpack-merge": "^4.1.4"
33+
}
34+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import angular from 'angular';
2+
import '@ovh-ux/sign-up';
3+
4+
import { registerState } from './routing';
5+
6+
const moduleName = 'ovhSignUpActivityState';
7+
8+
angular
9+
.module(moduleName, [
10+
'ovhSignUp',
11+
])
12+
.config(registerState);
13+
14+
export default moduleName;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export const state = {
2+
name: 'sign-up.activity',
3+
url: 'activity',
4+
views: {
5+
activity: {
6+
component: 'ovhSignUpActivity',
7+
},
8+
},
9+
};
10+
11+
export const registerState = /* @ngInject */ ($stateProvider) => {
12+
$stateProvider.state(state.name, state);
13+
};
14+
15+
export default {
16+
registerState,
17+
state,
18+
};
9.08 KB
Loading
20.4 KB
Loading
32 KB
Loading
Lines changed: 133 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
1+
@import './_variables.less';
2+
3+
.oui-button {
4+
transition: all ease-in 200ms;
5+
border-radius: @border-radius-default;
6+
7+
&.oui-button_primary {
8+
border: 2px solid @primary-color;
9+
background-color: @primary-color;
10+
color: #fff;
11+
12+
&:hover,
13+
&:focus {
14+
text-decoration: none;
15+
background-color: rgb(28, 49, 147);
16+
}
17+
}
18+
19+
&.oui-button_secondary {
20+
border: 2px solid @primary-color;
21+
22+
&,
23+
.oui-icon {
24+
color: @primary-color;
25+
}
26+
27+
&:hover,
28+
&:focus {
29+
background-color: rgb(239, 249, 253);
30+
}
31+
}
32+
33+
&.oui-button_icon-left {
34+
padding: 0.438rem 1.25rem;
35+
}
36+
37+
&.oui-button_icon-left .oui-icon,
38+
.oui-file-selector__button_icon-left .oui-icon {
39+
margin-right: 0.4rem;
40+
}
41+
42+
&.oui-button_icon-only {
43+
background-color: transparent;
44+
color: @primary-color;
45+
46+
&:hover,
47+
&:focus {
48+
background-color: @primary-color;
49+
border: 2px solid transparent;
50+
border-radius: @border-radius-default;
51+
52+
&,
53+
.oui-icon {
54+
color: #fff;
55+
}
56+
}
57+
58+
&:disabled {
59+
background-color: transparent;
60+
color: rgb(196, 207, 219);
61+
}
62+
}
63+
64+
&:disabled {
65+
&,
66+
&:hover,
67+
&:focus {
68+
background-color: #c4cfdb;
69+
border: 0;
70+
color: #113f6d;
71+
72+
& .oui-icon::before {
73+
color: #113f6d;
74+
}
75+
}
76+
}
77+
}
78+
79+
.oui-action-button circle,
80+
.oui-action-menu-button circle {
81+
fill: @primary-color;
82+
}
83+
84+
.oui-action-button[aria-expanded="true"],
85+
.oui-action-menu-button[aria-expanded="true"],
86+
.oui-action-button:hover,
87+
.oui-action-button:focus,
88+
.oui-action-menu-button:hover,
89+
.oui-action-menu-button:focus {
90+
background-color: @primary-color;
91+
border-color: @primary-color;
92+
93+
circle {
94+
fill: #fff;
95+
}
96+
}
97+
98+
.oui-dropdown-option:hover,
99+
.oui-button.oui-button_action-menu:hover,
100+
.oui-dropdown-option:focus,
101+
.oui-button.oui-button_action-menu:focus,
102+
.oui-file-selector__button.oui-button_action-menu:hover,
103+
.oui-file-selector__button.oui-button_action-menu:focus,
104+
.oui-autocomplete__option:hover,
105+
.oui-autocomplete__option:focus {
106+
background-color: @primary-color;
107+
color: #fff;
108+
}
109+
110+
.oui-button-group {
111+
.oui-button { /* stylelint-disable-line */
112+
border: 0;
113+
border-radius: @border-radius-default;
114+
}
115+
116+
.oui-button_primary.oui-pagination-button_selected {
117+
border-radius: @border-radius-default;
118+
margin-right: 0.4rem;
119+
120+
&:nth-last-child(1) {
121+
margin-right: 0;
122+
}
123+
}
124+
125+
.oui-button.oui-button_secondary {
126+
&:hover,
127+
&:focus {
128+
background-color: rgb(239, 249, 253);
129+
border-radius: @border-radius-default;
130+
box-shadow: 0 5pt 10pt rgba(40, 89, 192, 0.15);
131+
}
132+
}
133+
}

0 commit comments

Comments
 (0)