From 1cfb9d37be91d6bd035fe8d1988cfc72300875b0 Mon Sep 17 00:00:00 2001 From: lislis Date: Tue, 5 Apr 2016 11:57:25 +0200 Subject: [PATCH 1/4] fix broadcast display --- app/styles/app/layouts/broadcasts.sass | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/styles/app/layouts/broadcasts.sass b/app/styles/app/layouts/broadcasts.sass index cfe8ffbe..f18243a3 100644 --- a/app/styles/app/layouts/broadcasts.sass +++ b/app/styles/app/layouts/broadcasts.sass @@ -46,7 +46,7 @@ font-size: .9em word-wrap: break-word a:not(.icon-close) - display: block + line-height: 1.45 text-decoration: underline @@ -57,14 +57,15 @@ height: auto .icon-close - @extend %icon-line-failed + @extend %icon-line-cross position: absolute bottom: 0 right: 0 display: inline-block - width: 1.2em - height: 1.2em + width: 1em + height: 1em background-repeat: no-repeat + cursor: pointer @media #{$medium-up} position: absolute @@ -72,7 +73,7 @@ left: 145px width: 27em height: auto - margin-left: -0.7em + margin-left: -0.4em .centered & left: 133px &:after From c74fa87016ccdfad5fb67bb0318aac869c03696f Mon Sep 17 00:00:00 2001 From: lislis Date: Tue, 5 Apr 2016 12:03:58 +0200 Subject: [PATCH 2/4] remove recent builds --- app/components/landing-row.js | 10 - app/styles/app/pages/landing.sass | 52 --- app/templates/components/landing-row.hbs | 108 ------ app/templates/home.hbs | 460 +++++++++++------------ 4 files changed, 220 insertions(+), 410 deletions(-) delete mode 100644 app/components/landing-row.js delete mode 100644 app/templates/components/landing-row.hbs diff --git a/app/components/landing-row.js b/app/components/landing-row.js deleted file mode 100644 index 87e7711b..00000000 --- a/app/components/landing-row.js +++ /dev/null @@ -1,10 +0,0 @@ -import Ember from 'ember'; -import { githubCommit as githubCommitUrl } from 'travis/utils/urls'; -import TravisRoute from 'travis/routes/basic'; -import config from 'travis/config/environment'; - -export default Ember.Component.extend({ - tagName: 'li', - classNameBindings: ['repo.lastBuildState'], - classNames: ['landing-row', 'row-li'] -}); diff --git a/app/styles/app/pages/landing.sass b/app/styles/app/pages/landing.sass index 8f72749f..d8bd33db 100644 --- a/app/styles/app/pages/landing.sass +++ b/app/styles/app/pages/landing.sass @@ -138,44 +138,6 @@ text-align: left padding: 0 0 0 12% - .recent-builds - background-color: #f6f6f6 - min-height: 44rem - - .recent-builds-text - text-align: center - h2 - color: #db4141 - text-align: right - margin: 0 - - a - color: #828282 - - p - text-align: right - margin-top: 0.5em - margin-bottom: 2em - - img - margin-bottom: 20px - - ul - padding-left: 0 - - li - background-color: #fff - border-radius: 4px - color: #828282 - font-weight: 400 - margin-bottom: 20px - list-style-type: none - position: relative - height: 120px - width: 100% - padding: 10px 0 0 60px - text-align: left - .free-for-oss text-align: center @@ -459,20 +421,6 @@ .navigation-nested background-color: white -.landing-rows - list-style: none - margin: 0 - @media #{$small-only} - padding: 0 - -.landing-row - .two-line - padding-left: 2rem - h2 - padding-left: .5rem - font-size: 18px - - .landing, .landing-pro background-color: white diff --git a/app/templates/components/landing-row.hbs b/app/templates/components/landing-row.hbs deleted file mode 100644 index ba598235..00000000 --- a/app/templates/components/landing-row.hbs +++ /dev/null @@ -1,108 +0,0 @@ - -
-
-

{{#link-to "owner" repo.owner}} - {{status-icon status=repo.lastBuildState}} - {{repo.owner}}{{/link-to}} -

-

{{#link-to "repo" repo.owner repo.name}} - {{repo.name}} - {{/link-to}} -

-
-
- -
-
-
- {{#link-to "build" repo repo.lastBuildId}} - - - - - - - {{repo.lastBuildNumber}} {{repo.lastBuildState}} - {{/link-to}} -
-
- -
-
- - - - - - - - - - -
-
-
- -
-
-
- - - - - - - - - {{format-sha repo.lastBuild.commit.sha}} -
-
-
-
- - - - - - - {{repo.lastBuild.commit.branch}} -
-
-
diff --git a/app/templates/home.hbs b/app/templates/home.hbs index 44196c2c..eba0624d 100644 --- a/app/templates/home.hbs +++ b/app/templates/home.hbs @@ -1,252 +1,232 @@ {{#travis-layout layoutName="layouts/landing-page"}}
-
-
-
-

Test and Deploy with Confidence

-

Easily sync your GitHub projects with Travis CI
and you’ll be testing your code in minutes!

+
+
+
+

Test and Deploy with Confidence

+

Easily sync your GitHub projects with Travis CI
and you’ll be testing your code in minutes!

- {{#if auth.signedOut}} - - {{/if}} - {{#if auth.signingIn}} - - {{/if}} + {{#if auth.signedOut}} + + {{/if}} + {{#if auth.signingIn}} + + {{/if}} -
-
-
- -
-
-
+
+
+
+ +
+
+
+
+ +
+
+
+

The home of
open source testing

+

Over 200k open source projects
and 126k users are testing on Travis CI.

+ +
+
+
+ +
+
+
+ +
+
+

Some pretty awesome companies
and projects are using us.

+
+
+
+ +
+
+
+

Testing your open source
project is 10000% free

+

Seriously. Always. We like to think of it as our way of giving
back to a community that gives us so much as well.

+
+
+
+ +
+
+
+ +
+ +
+
+

Have a private project
you’d like to test?

+

Travis CI for private repositories has
plans for every size project.

+
+
+
+ +
+
+
+ +
+
+
+
+
+

Get set up in seconds

+

Login with GitHub, tell Travis CI to test a project, and then push to GitHub. Could it be any simpler!

+
+
+

Multi-language support

+

Make sure your code runs against all versions of your favorite language without breaking a sweat.

+
+
+

Test your pull requests

+

Make sure every pull request to your project is tested before merging.

+
+
+

Deploy to S3 and Heroku

+

Updating staging or production as soon as your tests pass has never been easier!

+
+
+
+
+

Features created to
help your projects and teams

+
    +
  • Watch your tests as they run
  • +
  • Keep your config with your code
  • +
  • Slack, HipChat, Emails and more
  • +
  • A clean VM for every build
  • +
  • Run your tests in parallel
  • +
  • Linux and Mac (and iOS) supported
  • +
  • Great API and command line tool
  • +
  • Did we say free for Open Source already?
  • +
+
+
+
+ +
+
+
+

Branch build flow

+
+
+ +

You push your
code to GitHub

+
+
+
+
+
+
+ +

GitHub triggers
Travis CI to build

+
+
+
+
+
+
+ +

Hooray!
Your build passes!

+
+
+
+
+
+
+ +

Travis CI deploys
to Heroku

+
+
+
+
+
+
+ +

Travis CI tells the
team all is well

+
+
+

Pull request build flow

+
+
+ +

A pull request
is created

+
+
+
+
+
+
+ +

GitHub tells Travis CI the build is mergeable

+
+
+
+
+
+
+ +

Hooray!
Your build passes!

+
+
+
+
+
+
+ +

Travis CI updates the PR that it passed

+
+
+
+
+
+
+ +

You merge in
the PR goodness

+
+
+
+
+
+ +
+
+
+

Some people have said some pretty nice things about us

+
+
+
+ +
+
+

Travis CI makes it so much easier for us to coordinate the thousands of commits and contributors that flow through the Rails code base. The test suite for such a large project is vast, and we wouldn’t be catching issues as quickly or smoothly without the help of Travis.

+

David Heinemeier Hansson

dhh +

Creator of Ruby on Rails

-
-
-
-

The home of
open source testing

-

Over 200k open source projects
and 126k users are testing on Travis CI.

- -
-
+
+ +
+
+

We love Travis CI at @TwitterOSS and use it for the majority of our open source projects on GitHub. Travis CI is simple to use, we love their API to build tooling and adore the new container infrastructure for speedier builds.

+

Chris Aniszczyk

cra +

Head of Open Source at Twitter

-
-
-
- -
-
-

Some pretty awesome companies
and projects are using us.

-
-
+
+
- -
-
-
-
-

Every minute there’s
a new build being run

-

Here are just a few projects
currently running on Travis CI

-
-
-
-
    - {{#each repos as |repo|}} - {{landing-row repo=repo}} - {{else}} - {{loading-indicator}} - {{/each}} -
-
-
-
- -
-
-
-

Testing your open source
project is 10000% free

-

Seriously. Always. We like to think of it as our way of giving
back to a community that gives us so much as well.

-
-
-
- -
-
-
- -
- -
-
-

Have a private project
you’d like to test?

-

Travis CI for private repositories has
plans for every size project.

-
-
-
- -
-
-
- -
-
-
-
-
-

Get set up in seconds

-

Login with GitHub, tell Travis CI to test a project, and then push to GitHub. Could it be any simpler!

-
-
-

Multi-language support

-

Make sure your code runs against all versions of your favorite language without breaking a sweat.

-
-
-

Test your pull requests

-

Make sure every pull request to your project is tested before merging.

-
-
-

Deploy to S3 and Heroku

-

Updating staging or production as soon as your tests pass has never been easier!

-
-
-
-
-

Features created to
help your projects and teams

-
    -
  • Watch your tests as they run
  • -
  • Keep your config with your code
  • -
  • Slack, HipChat, Emails and more
  • -
  • A clean VM for every build
  • -
  • Run your tests in parallel
  • -
  • Linux and Mac (and iOS) supported
  • -
  • Great API and command line tool
  • -
  • Did we say free for Open Source already?
  • -
-
-
-
- -
-
-
-

Branch build flow

-
-
- -

You push your
code to GitHub

-
-
-
-
-
-
- -

GitHub triggers
Travis CI to build

-
-
-
-
-
-
- -

Hooray!
Your build passes!

-
-
-
-
-
-
- -

Travis CI deploys
to Heroku

-
-
-
-
-
-
- -

Travis CI tells the
team all is well

-
-
-

Pull request build flow

-
-
- -

A pull request
is created

-
-
-
-
-
-
- -

GitHub tells Travis CI the build is mergeable

-
-
-
-
-
-
- -

Hooray!
Your build passes!

-
-
-
-
-
-
- -

Travis CI updates the PR that it passed

-
-
-
-
-
-
- -

You merge in
the PR goodness

-
-
-
-
-
- -
-
-
-

Some people have said some pretty nice things about us

-
-
-
- -
-
-

Travis CI makes it so much easier for us to coordinate the thousands of commits and contributors that flow through the Rails code base. The test suite for such a large project is vast, and we wouldn’t be catching issues as quickly or smoothly without the help of Travis.

-

David Heinemeier Hansson

dhh -

Creator of Ruby on Rails

-
- -
- -
-
-

We love Travis CI at @TwitterOSS and use it for the majority of our open source projects on GitHub. Travis CI is simple to use, we love their API to build tooling and adore the new container infrastructure for speedier builds.

-

Chris Aniszczyk

cra -

Head of Open Source at Twitter

-
- -
- -
-
-

Not only is Travis CI the best way to test your software, it is the right way. rm -rf jenkins && touch .travis.yml

-

Alex Gaynor

alex -

PyPy and Python Core Team Member

-
-
-
+
+

Not only is Travis CI the best way to test your software, it is the right way. rm -rf jenkins && touch .travis.yml

+

Alex Gaynor

alex +

PyPy and Python Core Team Member

+
+
+
{{/travis-layout}} From 919857dfadde9fd86e0cfb7306a19c5eff73f61f Mon Sep 17 00:00:00 2001 From: lislis Date: Tue, 5 Apr 2016 12:23:58 +0200 Subject: [PATCH 3/4] update styles for pro pages --- app/styles/app/pages/home-pro.sass | 35 +++++++++++++----------------- app/styles/app/pages/logo.sass | 19 +++++++++------- app/styles/app/pages/plans.sass | 12 +++++----- app/templates/logo.hbs | 8 +++---- 4 files changed, 36 insertions(+), 38 deletions(-) diff --git a/app/styles/app/pages/home-pro.sass b/app/styles/app/pages/home-pro.sass index 7d837021..772785a7 100644 --- a/app/styles/app/pages/home-pro.sass +++ b/app/styles/app/pages/home-pro.sass @@ -1,8 +1,3 @@ -$teal: #40A3AD -$green: #39A85B -$red: #DB4242 -$yellow: #E5C025 -$grey: #858585 .landing-pro @@ -44,10 +39,10 @@ $grey: #858585 border-radius: 2px font-size: 27px text-decoration: none - background-color: $green + background-color: $turf-green &:hover color: white - background-color: #73c78d + background-color: lighten($turf-green, .2) .hero-button @extend .landing-button @@ -199,22 +194,22 @@ $grey: #858585 .h1--grey @extend %h1 @include linkStyle - color: $grey !important + color: $asphalt-grey !important a - color: $grey + color: $asphalt-grey .h1--teal @extend %h1 font-size: 64px - color: #408692 !important + color: $oxide-blue !important .h1--green @extend %h1 - color: $green !important + color: $turf-green !important .h1--red @extend %h1 - color: $red !important + color: $brick-red !important %h2 margin: 0 0 .5em @@ -224,19 +219,19 @@ $grey: #858585 .h2--grey @extend %h2 - color: $grey + color: $asphalt-grey .h2--green @extend %h2 - color: $green + color: $turf-green .h2--red @extend %h2 - color: $red + color: $brick-red .h2--teal @extend %h2 - color: $teal + color: $oxide-blue %h3 margin: .5em 0 @@ -254,19 +249,19 @@ $grey: #858585 .h3--teal @extend %h3 - color: $teal + color: $oxide-blue .h3--red @extend %h3 - color: $red + color: $brick-red .h3--green @extend %h3 - color: $green + color: $turf-green .h3--yellow @extend %h3 - color: $yellow + color: $dozer-yellow .text-big @include linkStyle diff --git a/app/styles/app/pages/logo.sass b/app/styles/app/pages/logo.sass index b3185b6e..4fa8ccb0 100644 --- a/app/styles/app/pages/logo.sass +++ b/app/styles/app/pages/logo.sass @@ -19,13 +19,13 @@ margin: .5em 0 0 .font-light font-weight: 300 - color: $teal + color: $oxide-blue .font-regular font-weight: 400 - color: #D3B01E + color: $dozer-yellow .font-semibold font-weight: 600 - color: $grey + color: $asphalt-grey .list--colors @extend %list @@ -39,15 +39,15 @@ height: 3em margin-bottom: .5em .colors-sample--teal - background-color: $teal + background-color: $oxide-blue .colors-sample--green - background-color: $green + background-color: $turf-green .colors-sample--yellow - background-color: $yellow + background-color: $canary-yellow .colors-sample--red - background-color: $red + background-color: $brick-red .colors-sample--grey - background-color: #666 + background-color: $asphalt-grey .list--mascot @extend %list @@ -91,3 +91,6 @@ margin-bottom: 3em @media #{$medium-up} margin-bottom: 0 + + .text-logo + margin: 0 auto 3em diff --git a/app/styles/app/pages/plans.sass b/app/styles/app/pages/plans.sass index f5c750a1..d3366136 100644 --- a/app/styles/app/pages/plans.sass +++ b/app/styles/app/pages/plans.sass @@ -12,7 +12,7 @@ margin-bottom: 2em border: width: 2px - color: #E8E8E8 + color: rgba($cement-grey, .2) style: solid @media #{$medium-up} @@ -52,19 +52,19 @@ color: $color .plan--red - +colorPlans($red, #FCF0F0, false) + +colorPlans($brick-red, lighten($brick-red, 40), false) .list--check li:before background-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGcgaWQ9IlBhc3NlZCI+Cgk8Zz4KCQk8cGF0aCBmaWxsPSIjREI0MjQyIiBkPSJNOS42LDE0LjRjLTAuMSwwLTAuMy0wLjEtMC40LTAuMWwtNC0zLjNjLTAuMy0wLjItMC4zLTAuNi0wLjEtMC45UzUuOCw5LjgsNi4xLDEwbDMuNCwyLjhsNC45LTcuNQoJCQlDMTQuNiw1LDE1LDQuOSwxNS4zLDUuMWMwLjMsMC4yLDAuNCwwLjYsMC4yLDAuOWwtNS4zLDguMUMxMC4xLDE0LjMsOS45LDE0LjQsOS42LDE0LjRDOS43LDE0LjQsOS43LDE0LjQsOS42LDE0LjR6Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+") .plan--green - +colorPlans($green, #73c78d) + +colorPlans($turf-green, lighten($turf-green, 10)) .list--check li:before background-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGcgaWQ9IlBhc3NlZCI+Cgk8Zz4KCQk8cGF0aCBmaWxsPSIjMzlBODVCIiBkPSJNOS42LDE0LjRjLTAuMSwwLTAuMy0wLjEtMC40LTAuMWwtNC0zLjNjLTAuMy0wLjItMC4zLTAuNi0wLjEtMC45UzUuOCw5LjgsNi4xLDEwbDMuNCwyLjhsNC45LTcuNQoJCQlDMTQuNiw1LDE1LDQuOSwxNS4zLDUuMWMwLjMsMC4yLDAuNCwwLjYsMC4yLDAuOWwtNS4zLDguMUMxMC4xLDE0LjMsOS45LDE0LjQsOS42LDE0LjRDOS43LDE0LjQsOS43LDE0LjQsOS42LDE0LjR6Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+") .plan--teal - +colorPlans($teal, #8CC8CE) + +colorPlans($oxide-blue, lighten($oxide-blue, 10)) .list--check li:before background-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGcgaWQ9IlBhc3NlZCI+Cgk8Zz4KCQk8cGF0aCBmaWxsPSIjNDBBM0FEIiBkPSJNOS42LDE0LjRjLTAuMSwwLTAuMy0wLjEtMC40LTAuMWwtNC0zLjNjLTAuMy0wLjItMC4zLTAuNi0wLjEtMC45UzUuOCw5LjgsNi4xLDEwbDMuNCwyLjhsNC45LTcuNQoJCQlDMTQuNiw1LDE1LDQuOSwxNS4zLDUuMWMwLjMsMC4yLDAuNCwwLjYsMC4yLDAuOWwtNS4zLDguMUMxMC4xLDE0LjMsOS45LDE0LjQsOS42LDE0LjRDOS43LDE0LjQsOS43LDE0LjQsOS42LDE0LjR6Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+") .plan--yellow - +colorPlans($yellow, #EFD97C) + +colorPlans($dozer-yellow, lighten($dozer-yellow, 10)) .list--check li:before background-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjAgMjAiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDIwIDIwIiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPGcgaWQ9IlBhc3NlZCI+Cgk8Zz4KCQk8cGF0aCBmaWxsPSIjRTVDMDI1IiBkPSJNOS42LDE0LjRjLTAuMSwwLTAuMy0wLjEtMC40LTAuMWwtNC0zLjNjLTAuMy0wLjItMC4zLTAuNi0wLjEtMC45UzUuOCw5LjgsNi4xLDEwbDMuNCwyLjhsNC45LTcuNQoJCQlDMTQuNiw1LDE1LDQuOSwxNS4zLDUuMWMwLjMsMC4yLDAuNCwwLjYsMC4yLDAuOWwtNS4zLDguMUMxMC4xLDE0LjMsOS45LDE0LjQsOS42LDE0LjRDOS43LDE0LjQsOS43LDE0LjQsOS42LDE0LjR6Ii8+Cgk8L2c+CjwvZz4KPC9zdmc+") @@ -129,7 +129,7 @@ flex: 0 0 100% padding: 1em 1.5em 1.7em margin-bottom: 2em - border: solid 1px #E8E8E8 + border: solid 1px rgba($cement-grey, .2) @media #{$medium-up} flex: 0 0 48% diff --git a/app/templates/logo.hbs b/app/templates/logo.hbs index b60428de..42607bb0 100644 --- a/app/templates/logo.hbs +++ b/app/templates/logo.hbs @@ -46,19 +46,19 @@
  • -

    Turbo Teal #40A3AD

    +

    Oxide blue #3EAAAF

  • -

    Passing green #44A662

    +

    Turf green #39AA56

  • -

    Building yellow #E5DA3F

    +

    Canary yellow #EDDE3F

  • -

    Failing red #D94341

    +

    Brick red #DB4545

  • From 217618ea71f81ae0e692799652bbe97d58e9ab8c Mon Sep 17 00:00:00 2001 From: lislis Date: Tue, 5 Apr 2016 12:29:32 +0200 Subject: [PATCH 4/4] remove build polling logic from home route --- app/routes/home.js | 48 ---------------------------------------------- 1 file changed, 48 deletions(-) diff --git a/app/routes/home.js b/app/routes/home.js index 406eed42..bb2a210e 100644 --- a/app/routes/home.js +++ b/app/routes/home.js @@ -1,61 +1,13 @@ import BasicRoute from 'travis/routes/basic'; -import config from 'travis/config/environment'; -import limit from 'travis/utils/computed-limit'; import Ember from 'ember'; export default BasicRoute.extend({ - init: function() { - var repos, store; - - store = this.store; - repos = Ember.ArrayProxy.extend({ - isLoadedBinding: 'repos.isLoaded', - repos: [], - sorted: Ember.computed.sort('repos', 'sortedReposKeys'), - content: limit('sorted', 'limit'), - sortedReposKeys: ['sortOrderForLandingPage:desc'], - limit: 3 - }).create(); - - this.set('repos', repos); - this.loadMoreRepos(); - - return this._super.apply(this, arguments); - }, - - loadMoreRepos() { - return this.store.findAll('build').then( (builds) => { - var repoIds, repos; - repoIds = builds.mapBy('data.repo').uniq(); - repos = this.get('repos.repos'); - return this.store.query('repo', { - ids: repoIds - }).then(function(reposFromRequest) { - return reposFromRequest.toArray().forEach(function(repo) { - if (!repos.contains(repo)) { - return repos.pushObject(repo); - } - }); - }); - }); - }, activate() { - var interval; - this._super.apply(this, arguments); - interval = setInterval(() => { - return this.loadMoreRepos(); - }, 60000); - this.set('interval', interval); return this.controllerFor('top').set('landingPage', true); }, deactivate() { - var interval; - this._super.apply(this, arguments); - if (interval = this.get('interval')) { - clearInterval(interval); - } return this.controllerFor('top').set('landingPage', false); },