-
Notifications
You must be signed in to change notification settings - Fork 1
ssh keys #2194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
ssh keys #2194
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
0b206d0
add buttons and view for ssh keys
taylordolan cee40f2
Merge branch 'master' of https://github.com/CodeNow/runnable-angular …
taylordolan 05cd191
Merge branch 'master' of https://github.com/CodeNow/runnable-angular …
taylordolan 556924f
add ssh form contents
taylordolan bb0f884
add mockup key data
taylordolan b286f45
add listening state + clean up
taylordolan 9b22189
update label
taylordolan 1e85222
Merge branch 'master' of https://github.com/CodeNow/runnable-angular …
taylordolan bb91cf6
remove specific modal width
taylordolan fa69af3
add feature flag
taylordolan 2c9b81d
update key icon
taylordolan 086d828
responsive fixes
taylordolan 9a97c05
add state for creating key
taylordolan a7c5388
add ssh auth confirmation view
taylordolan 8fe2fbf
consistent naming
taylordolan 70c923c
clarify comment
taylordolan 9989a57
update SSH keys form markup
taylordolan 9d4b443
update empty state
taylordolan 833936a
merge master
taylordolan c0b9766
use external link icon instead of ellipsis
taylordolan 0c1ece9
fix empty state + match button widths
taylordolan 3bbba83
add button templates
taylordolan 55a35ad
update description
taylordolan a50035d
update auth view
taylordolan b203a5b
add github link
taylordolan a68dff0
responsive fix
taylordolan 42c0bcb
merge master
taylordolan 82e2fc6
add specific user name
taylordolan 956a089
add loading state
taylordolan eb32284
add style for new keys
taylordolan 44d4339
update empty state copy
taylordolan 6b98056
update recently added state
taylordolan 012ac01
title case
taylordolan 42eee7f
fix border color on recently added state
taylordolan c0551f2
remove loading state
taylordolan 598df22
remove negative margins + fix recently added state
taylordolan 5743e04
fix indentation
taylordolan ebbff1c
fix creating state
taylordolan 84a48bd
update authed modal
taylordolan 2f3ac23
add orgs to key names
taylordolan e54742c
add documentation link
taylordolan d0750e4
Merge branch 'master' of https://github.com/CodeNow/runnable-angular …
taylordolan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,17 @@ | ||
| .modal-ssh-auth { | ||
|
|
||
| .padding-md { | ||
| @include media(xxs) { | ||
| padding: $sm; | ||
| } | ||
| } | ||
|
|
||
| .runnabear { | ||
| left: 0; | ||
| margin: 0 auto; | ||
| position: absolute; | ||
| right: 0; | ||
| top: -119px; | ||
| z-index: 1; | ||
| } | ||
| } |
This file contains hidden or 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
13 changes: 13 additions & 0 deletions
13
client/directives/modals/composeSSHAuthView/composeSSHAuthView.jade
This file contains hidden or 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,13 @@ | ||
| .grid-block.align-center.justify-center.modal-backdrop.modal-ssh-auth | ||
| .modal-dialog.modal-sm | ||
| img.grid-block.shrink.img.runnabear( | ||
| height = "130" | ||
| src = "/build/images/runnabear-waving-1.png" | ||
| width = "230" | ||
| ) | ||
| header.modal-header | ||
| h1.modal-heading Authorized! | ||
| section.modal-body | ||
| p.text-center.text-gray.padding-md You successfully authorized with GitHub. 👍 | ||
| br.hidden-xs | ||
| |  We’ll automatically close this window. | ||
19 changes: 19 additions & 0 deletions
19
client/directives/modals/settingsModal/forms/SSHKeysForm/SSHAuthorizeButton.jade
This file contains hidden or 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,19 @@ | ||
| svg.iconnables.icons-octicons-github( | ||
| ng-if = "!state.authorized" | ||
| ) | ||
| use( | ||
| xlink:href = "#icons-octicons-github" | ||
| ) | ||
| svg.iconnables.icons-check( | ||
| ng-if = "state.authorized" | ||
| ) | ||
| use( | ||
| xlink:href = "#icons-check" | ||
| ) | ||
| | {{state.authorized ? 'Authorized' : "Authorize"}} | ||
| svg.iconnables.icons-link-external-alt( | ||
| ng-if = "!state.authorized" | ||
| ) | ||
| use( | ||
| xlink:href = "#icons-link-external-alt" | ||
| ) |
5 changes: 5 additions & 0 deletions
5
client/directives/modals/settingsModal/forms/SSHKeysForm/SSHCreateButton.jade
This file contains hidden or 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,5 @@ | ||
| .spinner-wrapper.spinner-sm.spinner-gray( | ||
| ng-if = "state.creatingKey" | ||
| ng-include = "'spinner'" | ||
| ) | ||
| | {{state.creatingKey ? 'Creating…' : 'Create Key'}} |
77 changes: 77 additions & 0 deletions
77
client/directives/modals/settingsModal/forms/SSHKeysForm/SSHKeysFormView.jade
This file contains hidden or 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,77 @@ | ||
| section.label-description | ||
| .label-col SSH Keys | ||
| .small.text-gray Keys will be added to containers at build and run time  | ||
| a.link( | ||
| href = "#" | ||
| target = "_blank" | ||
| ) using ssh-agent | ||
| | , and can be  | ||
| a.link( | ||
| href = "https://github.com/settings/keys" | ||
| target = "_blank" | ||
| ) managed on GitHub | ||
| | . | ||
|
|
||
| ol.list-bordered( | ||
| ng-init = "\ | ||
| keys = [\ | ||
| {username: 'Myztiq', fingerprint: '40:71:04:a8:3b:ea:a8:90:f6:99:6c:7a:22:f7:c0:15', avatar: 'https://avatars1.githubusercontent.com/u/495765'},\ | ||
| {username: 'podviaznikov', fingerprint: 'e2:81:ae:03:43:1a:ba:cf:4e:e0:79:37:69:40:58:56', avatar: 'https://avatars1.githubusercontent.com/u/429706'}\ | ||
| ];\ | ||
| currentOrg = 'CodeNow'\ | ||
| " | ||
| ) | ||
|
|
||
| //- if no key exists for the current user | ||
| li.grid-block.align-center.list-item( | ||
| ng-if = "!state.authorized" | ||
| ng-init = "state.listening = false" | ||
| ) | ||
| svg.grid-block.shrink.iconnables.icons-key( | ||
| ng-if = "!state.listening" | ||
| ) | ||
| use( | ||
| xlink:href = "#icons-key-empty" | ||
| ) | ||
| .grid-block.shrink.align-center.justify-center.spinner-wrapper.spinner-sm.spinner-gray( | ||
| ng-if = "state.listening" | ||
| ng-include = "'spinner'" | ||
| ) | ||
| p.grid-block.p.text-gray( | ||
| ng-if = "state.listening" | ||
| ) Listening for authorization… | ||
| p.p.text-gray( | ||
| ng-if = "!state.listening" | ||
| ) Add a user key for  | ||
| span.weight-strong runnabro | ||
| |  so your project can access private dependencies. | ||
| a.grid-block.shrink.noscroll.align-center.btn.gray.btn-xs( | ||
| ng-click = "state.listening = !state.listening" | ||
| ng-if = "!state.everAuthorized" | ||
| ng-include = "'SSHAuthorizeButton'" | ||
| ) | ||
| a.grid-block.shrink.noscroll.align-center.btn.gray.btn-xs.btn-create-key( | ||
| ng-click = "state.creatingKey = !state.creatingKey" | ||
| ng-disabled = "state.creatingKey" | ||
| ng-if = "state.everAuthorized && !state.authorized" | ||
| ng-include = "'SSHCreateButton'" | ||
| ng-init = "state.creatingKey = false" | ||
| ) | ||
|
|
||
| //- all user keys; if current user's key exists, list it at the top | ||
| li.grid-block.align-center.list-item( | ||
| ng-repeat = "key in keys" | ||
| ) | ||
| svg.grid-block.shrink.iconnables.icons-key | ||
| use( | ||
| xlink:href = "#icons-key" | ||
| ) | ||
| .grid-block.vertical.p | ||
| p.strong.text-overflow( | ||
| title = "{{key.username}} User Key for {{currentOrg}}" | ||
| ) {{key.username}} User Key for {{currentOrg}} | ||
| p.monospace.text-gray.text-overflow {{key.fingerprint}} | ||
| a.grid-block.shrink.noscroll.align-center.btn.gray.btn-xs.btn-authorized( | ||
| ng-include = "'SSHAuthorizeButton'" | ||
| ng-init = "state.authorized = true" | ||
| ) |
This file contains hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
~iPhone size