generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:Real-Dev-Squad/website-my into t…
…est/user-status
- Loading branch information
Showing
43 changed files
with
5,820 additions
and
10,555 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/sh | ||
if [[ "$NODE_ENV" != "production" ]]; then | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
echo "\n 🚧 Dependencies are being installed, please wait for a while. ⏳\n" | ||
|
||
npm install | ||
|
||
echo "\nCongratulations, you are good to go! ⚡⚡⚡\n" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
echo "Checking for linting problems, please wait⏳\n" | ||
|
||
npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
echo "Pushing your changes to remote repository 🚀✨" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<nav class="local-navbar"> | ||
<span class="local-navbar__link"> | ||
<LinkTo @route="index">Home</LinkTo> | ||
</span> | ||
<span class="local-navbar__link"> | ||
<LinkTo @route="profile">Profile</LinkTo> | ||
</span> | ||
<span class="local-navbar__link"> | ||
<LinkTo @route="tasks">Tasks</LinkTo> | ||
</span> | ||
<span class="local-navbar__link"> | ||
<LinkTo @route="notifications">Notifications</LinkTo> | ||
</span> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<button | ||
data-test-signup-button | ||
type="button" | ||
class="{{if @disabled 'btn-disabled'}}" | ||
disabled={{@disabled}} | ||
{{on "click" this.buttonClickHandler}} | ||
> | ||
{{#if @isSubmitClicked}} | ||
<i class="fa fa-spinner fa-spin" data-test-signup-button-spinner></i> | ||
{{/if}} | ||
{{yield}} | ||
</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import Component from '@glimmer/component'; | ||
import { action } from '@ember/object'; | ||
|
||
export default class ButtonComponent extends Component { | ||
@action | ||
buttonClickHandler() { | ||
const { state, clickHandler, disabled } = this.args; | ||
|
||
switch (state) { | ||
case 'get-started': | ||
!disabled ? clickHandler('firstName') : ''; | ||
break; | ||
case 'firstName': | ||
!disabled ? clickHandler('lastName') : ''; | ||
break; | ||
case 'lastName': | ||
!disabled ? clickHandler('username') : ''; | ||
break; | ||
case 'username': | ||
!disabled ? clickHandler() : ''; | ||
break; | ||
default: | ||
return; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="user-details"> | ||
<h2 class="user-details__heading" data-test-signup-form-label> | ||
{{this.label}} | ||
</h2> | ||
<div class="user-details__field"> | ||
<Input @value={{get @userDetails @state}} type="text" placeholder="Darth" {{on 'input' this.inputFieldChanged}} data-test-signup-form-input/> | ||
</div> | ||
|
||
<div class="signup-action__btn"> | ||
<SignUp::Button | ||
@clickHandler={{if (eq @state "username") | ||
@register @changeRouteParams}} | ||
@state={{@state}} | ||
@disabled={{@isButtonDisabled}} | ||
@isSubmitClicked={{@isSubmitClicked}} | ||
> | ||
Next | ||
</SignUp::Button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import Component from '@glimmer/component'; | ||
import { action } from '@ember/object'; | ||
import { LABEL_TEXT } from '../../constants/signup'; | ||
|
||
export default class SignupComponent extends Component { | ||
get label() { | ||
const { state } = this.args; | ||
|
||
return LABEL_TEXT[state]; | ||
} | ||
|
||
@action inputFieldChanged({ target: { value } }) { | ||
const { onChange, state } = this.args; | ||
onChange(state, value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
<div class="landing"> | ||
<h2 class="landing__main-heading" data-test-mainHeading> | ||
{{this.mainHeading}} | ||
</h2> | ||
<h3 class="landing__sub-heading" data-test-subHeading> | ||
{{this.subHeading}} | ||
</h3> | ||
{{#if (eq @state "get-started")}} | ||
<ul class="landing__features-lists"> | ||
<li class="landing__features-list" data-test-li1>Use Features</li> | ||
<li class="landing__features-list" data-test-li2>Display yourself on the (members) page</li> | ||
</ul> | ||
{{/if}} | ||
|
||
<div class="get-started__btn"> | ||
<SignUp::Button | ||
@clickHandler={{@changeRouteParams}} | ||
@state={{@state}} | ||
@disabled={{false}} | ||
> | ||
{{if (eq @state "get-started") "Get Started" "Let's Go"}} | ||
</SignUp::Button> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import Component from '@glimmer/component'; | ||
import { | ||
GET_STARTED_MAIN_HEADING, | ||
GET_STARTED_SUB_HEADING, | ||
THANK_YOU_MAIN_HEADING, | ||
THANK_YOU_SUB_HEADING, | ||
} from '../../constants/signup'; | ||
|
||
export default class GetStartedComponent extends Component { | ||
get mainHeading() { | ||
const { state } = this.args; | ||
|
||
return state === 'get-started' | ||
? GET_STARTED_MAIN_HEADING | ||
: THANK_YOU_MAIN_HEADING; | ||
} | ||
|
||
get subHeading() { | ||
const { state } = this.args; | ||
|
||
return state === 'get-started' | ||
? GET_STARTED_SUB_HEADING | ||
: THANK_YOU_SUB_HEADING; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const LABEL_TEXT = { | ||
firstName: 'What is your first name?', | ||
lastName: 'And what is your last name?', | ||
username: 'Now choose your awesome username!', | ||
}; | ||
|
||
export const GET_STARTED_MAIN_HEADING = 'Thank you for connecting your GitHub!'; | ||
export const GET_STARTED_SUB_HEADING = | ||
'Please complete the signup in order to:'; | ||
|
||
export const THANK_YOU_MAIN_HEADING = 'Congratulations!'; | ||
export const THANK_YOU_SUB_HEADING = 'Lets get you started on your journey'; |
Oops, something went wrong.