diff --git a/app/styles/app.scss b/app/styles/app.scss index de03a250..12b80bf3 100644 --- a/app/styles/app.scss +++ b/app/styles/app.scss @@ -42,14 +42,16 @@ @import "app/tabs"; @import "app/tipsy"; -@import "app/components/section"; -@import "app/components/loader"; -// @import "app/components/tiles"; @import "app/components/travis-switch"; -@import "app/components/buttons"; -@import "app/components/icons"; -@import "app/components/search"; -@import "app/components/dropdown"; +@import "app/components/sync-button"; + +@import "app/modules/section"; +@import "app/modules/loader"; +// @import "app/modules/tiles"; +@import "app/modules/buttons"; +@import "app/modules/icons"; +@import "app/modules/search"; +@import "app/modules/dropdown"; @import "app/layout"; @import "app/layouts/dashboard"; diff --git a/app/styles/app/components/sync-button.sass b/app/styles/app/components/sync-button.sass new file mode 100644 index 00000000..91c5fd79 --- /dev/null +++ b/app/styles/app/components/sync-button.sass @@ -0,0 +1,58 @@ + +.sync-button + button + @extend %border-radius-4px + padding: 0 10px + max-width: 98px + min-height: 25px + margin-left: .5em + background: #a6adad + color: #ffffff + border: none + &:hover + background: #8d9b9a + cursor: pointer + + &.is-syncing + background: #c6b93d + color: $white + padding: 0 10px + max-width: 160px + .icon + position: relative + top: -0.1em + width: 1em + height: 1.2em + vertical-align: middle + .icon, + .sync-spinner + margin-right: .5em + +.sync-last + display: inline-block + font-size: 12px + color: #848384 + text-align: right + +.sync-spinner + vertical-align: middle + i + position: relative + display: inline-block + width: 8px + height: 8px + background-color: $white + border-radius: 50% + line-height: 0 + transform-origin: center center + animation: bouncedelay 1.3s infinite linear + &:nth-child(2) + animation-delay: 0.3s + &:nth-child(3) + animation-delay: 0.6s + +@keyframes bouncedelay + 0%, 80%, 100% + transform: scale(0) + 40% + transform: scale(1.0) diff --git a/app/styles/app/main/log.sass b/app/styles/app/main/log.sass index bf266c2b..12229b2e 100644 --- a/app/styles/app/main/log.sass +++ b/app/styles/app/main/log.sass @@ -62,6 +62,16 @@ color: #999 background: inline-image('ui/workers-close.svg') no-repeat right 6px + .icon + width: 1.3em + height: 1.1em + margin-right: 6px + vertical-align: middle + .icon--down + width: 0.7em + height: 0.9em + margin-right: 4px + .log-header height: 44px margin: 0 @@ -72,25 +82,6 @@ a margin-left: .4em -.icon - display: inline-block - background: - size: 100% - repeat: no-repeat - width: 1.3em - height: 1.1em - margin-right: 6px - vertical-align: middle -.icon--downloadLog - background-image: inline-image('icons/download-log-icon.svg') -.icon--removeLog - background-image: inline-image('icons/remove-log-icon.svg') -.icon--down - width: 0.7em - height: 0.9em - margin-right: 4px - background-image: inline-image('icons/end-of-log-icon.svg') - .log-body position: relative pre diff --git a/app/styles/app/components/buttons.sass b/app/styles/app/modules/buttons.sass similarity index 100% rename from app/styles/app/components/buttons.sass rename to app/styles/app/modules/buttons.sass diff --git a/app/styles/app/components/dropdown.sass b/app/styles/app/modules/dropdown.sass similarity index 100% rename from app/styles/app/components/dropdown.sass rename to app/styles/app/modules/dropdown.sass diff --git a/app/styles/app/components/icons.sass b/app/styles/app/modules/icons.sass similarity index 77% rename from app/styles/app/components/icons.sass rename to app/styles/app/modules/icons.sass index 0ebfdc3f..38afa40e 100644 --- a/app/styles/app/components/icons.sass +++ b/app/styles/app/modules/icons.sass @@ -50,4 +50,14 @@ margin-left : 5px border-left : 5px solid transparent border-right : 5px solid transparent - border-top : 5px solid $dashboard-text-color \ No newline at end of file + border-top : 5px solid $dashboard-text-color + +.icon-sync + background-image: inline-image('icons/sync-account-icon.svg') + +.icon--downloadLog + background-image: inline-image('icons/download-log-icon.svg') +.icon--removeLog + background-image: inline-image('icons/remove-log-icon.svg') +.icon--down + background-image: inline-image('icons/end-of-log-icon.svg') \ No newline at end of file diff --git a/app/styles/app/components/loader.sass b/app/styles/app/modules/loader.sass similarity index 100% rename from app/styles/app/components/loader.sass rename to app/styles/app/modules/loader.sass diff --git a/app/styles/app/components/search.sass b/app/styles/app/modules/search.sass similarity index 100% rename from app/styles/app/components/search.sass rename to app/styles/app/modules/search.sass diff --git a/app/styles/app/components/section.sass b/app/styles/app/modules/section.sass similarity index 100% rename from app/styles/app/components/section.sass rename to app/styles/app/modules/section.sass diff --git a/app/styles/app/components/tiles.sass b/app/styles/app/modules/tiles.sass similarity index 100% rename from app/styles/app/components/tiles.sass rename to app/styles/app/modules/tiles.sass diff --git a/app/templates/components/sync-button.hbs b/app/templates/components/sync-button.hbs index ced7bc73..a2d2006a 100644 --- a/app/templates/components/sync-button.hbs +++ b/app/templates/components/sync-button.hbs @@ -1,2 +1,11 @@ - -{{user.syncedAt}} +
+

last synced {{user.syncedAt}}

+ + +
+ + diff --git a/app/templates/dashboard/repositories.hbs b/app/templates/dashboard/repositories.hbs index 6a3b0e9e..bf8dcb48 100644 --- a/app/templates/dashboard/repositories.hbs +++ b/app/templates/dashboard/repositories.hbs @@ -1,7 +1,9 @@
+ {{orgs-filter orgs=orgs selected=selectedOrg action="selectOrg"}} -
+ +
{{sync-button user=auth.currentUser}}
{{!--