cloudrider 0.2.14 → 0.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/generica/app/assets/javascripts/components/cookie-splash.js.em +3 -1
  3. data/generica/app/assets/javascripts/components/preload-billboard.js.em +3 -1
  4. data/generica/app/assets/javascripts/config/router.js.ls +2 -0
  5. data/generica/app/assets/javascripts/routes/application_route.js.em +1 -1
  6. data/generica/app/assets/javascripts/routes/contacts_route.js.em +4 -0
  7. data/generica/app/assets/javascripts/routes/index_route.js.em +1 -3
  8. data/generica/app/assets/javascripts/templates/about.emblem +3 -0
  9. data/generica/app/assets/javascripts/templates/components/cookie-splash.emblem +3 -3
  10. data/generica/app/assets/javascripts/templates/components/hero-splash/_splash-cta.emblem +1 -1
  11. data/generica/app/assets/javascripts/templates/components/site-nav/_material-nav.emblem +4 -4
  12. data/generica/app/assets/javascripts/templates/contacts.emblem +3 -0
  13. data/generica/app/assets/javascripts/templates/index.emblem +1 -6
  14. data/generica/app/varissets/javascripts/routes/index_route.js.em.erb +8 -0
  15. data/generica/app/varissets/javascripts/templates/about.emblem.erb +3 -0
  16. data/generica/app/varissets/javascripts/templates/components/site-nav.emblem.erb +9 -9
  17. data/generica/app/varissets/javascripts/templates/contacts.emblem.erb +3 -0
  18. data/generica/app/varissets/javascripts/templates/index.emblem.erb +8 -6
  19. data/lib/cloudrider/apiv1/about_emblem.rb +11 -0
  20. data/lib/cloudrider/apiv1/contacts_emblem.rb +11 -0
  21. data/lib/cloudrider/apiv1/index_emblem.rb +4 -4
  22. data/lib/cloudrider/apiv1/index_route_ember.rb +17 -0
  23. data/lib/cloudrider/apiv1/site_nav_component.rb +27 -0
  24. data/lib/cloudrider/application_commander.rb +6 -1
  25. data/lib/cloudrider/version.rb +1 -1
  26. metadata +10 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6967eb055cd609bc20a3084658005853119579c5
4
- data.tar.gz: 138e14c5edef36a724e82ced54539805276dac43
3
+ metadata.gz: 01b101e2344f6cf24a6cefe5e5bddf776b412095
4
+ data.tar.gz: acb45e6e80c715bc8dc745a6a70f68d601e35bfe
5
5
  SHA512:
6
- metadata.gz: 7cba9bfd29fb31b84e25b5aa25e2738e7d9b3e1efa72b02ae046ee3b8b7b56bc6086d39f950a041097ac86658a939b43ba7d649c40a5bd1ff8c486d907bc23e6
7
- data.tar.gz: 39a235621e0e888b3fda3f2ee58725d19bca277ff7db50ea1ad6c11e34f8c8fdd230efcfbe9727758bec2e6d64fc0388aae28eb375cbb0515e7a99d523c7241d
6
+ metadata.gz: 2e13b9dc710d32e2c948448b00eae35ac5226731a0721e9a9ea772e501b9b17f02a22a36f7413a44c5ca5737522fc941bc9b3b84b745665cd50a15b4c3b1fcc1
7
+ data.tar.gz: bfb4d7bf37f3999b5151eca69872443af26aede767236097be62dfa4ac129e16b5b37cc8e2c95249c7d754040c64e87f5060041c863ff0fac9bb90f889b09a36
@@ -1,2 +1,4 @@
1
1
  class Apiv1.CookieSplashComponent extends Ember.Component
2
- classNames: ['cookie-splash']
2
+ classNames: ['cookie-splash']
3
+ logo: "assets/cookie-splash/california.png"
4
+ path: "products"
@@ -1,6 +1,6 @@
1
1
  class Apiv1.PreloadBillboardComponent extends Ember.Component
2
2
  classNames: ["preload-billboard"]
3
-
3
+ alreadyLoaded: false
4
4
  +computed Apiv1.ImagePreloader.instance.isLoading
5
5
  stillLoading: -> Apiv1.ImagePreloader.instance.get "isLoading"
6
6
 
@@ -9,10 +9,12 @@ class Apiv1.PreloadBillboardComponent extends Ember.Component
9
9
 
10
10
  +observer Apiv1.ImagePreloader.instance.isLoading
11
11
  manageWhichToHide: ->
12
+ return if @alreadyLoaded
12
13
  if @stillLoading
13
14
  $("#billboard-holder").show()
14
15
  $("#everything-else-holder").hide()
15
16
  if @finishedLoading
17
+ @alreadyLoaded = true
16
18
  $("#everything-else-holder").show()
17
19
  $("#billboard-holder").hide "puff", 750
18
20
 
@@ -1,4 +1,6 @@
1
1
  Apiv1.Router.map ->
2
+ @route "about"
3
+ @route "contacts"
2
4
  @resource "products", path: "/products", ->
3
5
  @resource "products.product", path: "/product/:product_id", ->
4
6
  @route "show"
@@ -5,7 +5,7 @@ class Apiv1.ApplicationRoute extends Ember.Route
5
5
  outlet: 'modal'
6
6
  parentView: 'application'
7
7
  modalModelFor: (modalName) ->
8
- return @store.createRecord("adminSession") if modalName is "login"
8
+ @store.createRecord("adminSession") if modalName is "login"
9
9
  actions:
10
10
  displayModal: (modalName) ->
11
11
  $(".modal-background").show()
@@ -0,0 +1,4 @@
1
+ class Apiv1.ContactsRoute extends Ember.Route
2
+ model: ->
3
+ employees: @store.find("employee", per: 5)
4
+ message: @store.createRecord("message")
@@ -1,5 +1,3 @@
1
1
  class Apiv1.IndexRoute extends Ember.Route
2
2
  model: ->
3
- products: @store.find("product", per: 3, order: "showcase")
4
- employees: @store.find("employee", per: 5)
5
- message: @store.createRecord("message")
3
+ products: @store.find("product", per: 3, order: "showcase")
@@ -0,0 +1,3 @@
1
+ cookie-splash path="about"
2
+
3
+ introductory-lobby id="about"
@@ -1,13 +1,13 @@
1
1
  .splash-background.standard-container
2
2
  .page-intro
3
3
  .active-page-title
4
- tr-span en="products"
5
- img.th.product-icon src="assets/cookie-splash/california.png"
4
+ tr-span en=path
5
+ preload-image class="th product-icon" source=logo
6
6
 
7
7
  .standard-container
8
8
  .cookiecrumbs
9
9
  .small-6.medium-4.large-3.columns.crumb
10
- link-to "index" (query-params anchor="products")
10
+ link-to "index"
11
11
  .show-for-small-only
12
12
  i.fa.fa-chevron-left
13
13
  .hide-for-small-only.upcase
@@ -1,7 +1,7 @@
1
1
  .splash-cta
2
2
  .cta-container
3
3
  .small-12.medium-4.columns
4
- link-to "index" (query-params anchor="about") class="button expand"
4
+ link-to "about" class="button expand"
5
5
  span.call-to-action.spacebar
6
6
  tr-span en="about us"
7
7
  i.fa.fa-caret-down
@@ -1,5 +1,5 @@
1
1
  .row.collapse
2
- link-to "index" (query-params anchor="") class="small-3 medium-6 large-9 columns"
2
+ link-to "index" class="small-3 medium-6 large-9 columns"
3
3
  .title-area
4
4
  span.hide-for-medium-up
5
5
  i.fa.fa-home
@@ -7,8 +7,8 @@
7
7
  i.fa.fa-rocket
8
8
 
9
9
 
10
- link-to "index" (query-params anchor="about") class="small-3 medium-2 large-1 columns"
11
- .menu-tab
10
+ link-to "about" class="small-3 medium-2 large-1 columns"
11
+ .menu-tab
12
12
  span.hide-for-medium-up
13
13
  i.fa.fa-info-circle
14
14
  span.menu-nav.show-for-medium-up
@@ -21,7 +21,7 @@
21
21
  span.menu-nav.show-for-medium-up
22
22
  tr-span en="products"
23
23
 
24
- link-to "index" (query-params anchor="contacts") class="small-3 medium-2 large-1 columns"
24
+ link-to "contacts" class="small-3 medium-2 large-1 columns"
25
25
  .menu-tab
26
26
  span.hide-for-medium-up
27
27
  i.fa.fa-envelope
@@ -0,0 +1,3 @@
1
+ cookie-splash path="contacts"
2
+
3
+ table-booths id="contacts" contacts=model.employees message=model.message
@@ -1,8 +1,3 @@
1
1
  hero-splash
2
2
 
3
- introductory-lobby id="about"
4
-
5
- products-showcase id="products" products=model.products
6
-
7
- table-booths id="contacts" contacts=model.employees message=model.message
8
-
3
+ products-showcase products=model.products
@@ -0,0 +1,8 @@
1
+ class Apiv1.IndexRoute extends Ember.Route
2
+ model: ->
3
+ products: @store.find("product", per: 3, order: "showcase")
4
+ <% case index_style %>
5
+ <% when :product_first, :about_first %>
6
+ employees: @store.find("employee", per: 5)
7
+ message: @store.createRecord("message")
8
+ <% end %>
@@ -0,0 +1,3 @@
1
+ cookie-splash path="about"
2
+
3
+ introductory-lobby id="about"
@@ -5,17 +5,17 @@
5
5
  i.fa.fa-home
6
6
  span.capitalize.prespace <%= my_company_name %>
7
7
  .nav-button
8
- link-to "index" (query-params anchor="about") class="side-nav"
8
+ link-to <%= about_link %> class="side-nav"
9
9
  i.fa.fa-info-circle
10
10
  span.capitalize.prespace
11
11
  tr-span en="about"
12
12
  .nav-button
13
- link-to "products.index" class="side-nav"
13
+ link-to <%= products_link %> class="side-nav"
14
14
  i.fa.fa-tags
15
15
  span.capitalize.prespace
16
16
  tr-span en="products"
17
17
  .nav-button
18
- link-to "index" (query-params anchor="contacts") class="side-nav"
18
+ link-to <%= contacts_link %> class="side-nav"
19
19
  i.fa.fa-envelope
20
20
  span.capitalize.prespace
21
21
  tr-span en="contacts"
@@ -27,17 +27,17 @@
27
27
  .company-name.show-for-medium-up <%= my_company_name %>
28
28
 
29
29
  section.options-menu
30
- link-to "index" (query-params anchor="about") class="menu-tab"
30
+ link-to <%= about_link %> class="menu-tab"
31
31
  .hide-for-medium-up
32
32
  i.fa.fa-info-circle
33
33
  .menu-nav.show-for-medium-up
34
34
  tr-span en="about"
35
- link-to "products.index" class="menu-tab"
35
+ link-to <%= products_link %> class="menu-tab"
36
36
  .hide-for-medium-up
37
37
  i.fa.fa-tags
38
38
  .menu-nav.show-for-medium-up
39
39
  tr-span en="products"
40
- link-to "index" (query-params anchor="contacts") class="menu-tab"
40
+ link-to <%= contacts_link %> class="menu-tab"
41
41
  .hide-for-medium-up
42
42
  i.fa.fa-envelope
43
43
  .menu-nav.show-for-medium-up
@@ -53,21 +53,21 @@
53
53
  i.fa.fa-rocket
54
54
 
55
55
 
56
- link-to "index" (query-params anchor="about") class="small-3 medium-2 large-1 columns"
56
+ link-to <%= about_link %> class="small-3 medium-2 large-1 columns"
57
57
  .menu-tab
58
58
  span.hide-for-medium-up
59
59
  i.fa.fa-info-circle
60
60
  span.menu-nav.show-for-medium-up
61
61
  tr-span en="about"
62
62
 
63
- link-to "products.index" class="small-3 medium-2 large-1 columns"
63
+ link-to <%= products_link %> class="small-3 medium-2 large-1 columns"
64
64
  .menu-tab
65
65
  span.hide-for-medium-up
66
66
  i.fa.fa-tags
67
67
  span.menu-nav.show-for-medium-up
68
68
  tr-span en="products"
69
69
 
70
- link-to "index" (query-params anchor="contacts") class="small-3 medium-2 large-1 columns"
70
+ link-to <%= contacts_link %> class="small-3 medium-2 large-1 columns"
71
71
  .menu-tab
72
72
  span.hide-for-medium-up
73
73
  i.fa.fa-envelope
@@ -0,0 +1,3 @@
1
+ cookie-splash path="contacts"
2
+
3
+ table-booths id="contacts" contacts=model.employees message=model.message
@@ -1,11 +1,13 @@
1
1
  hero-splash
2
-
3
- <% if products_first? %>
2
+ <% case index_style %>
3
+ <% when :pages %>
4
+ products-showcase id="products" products=model.products
5
+ <% when :product_first %>
4
6
  products-showcase id="products" products=model.products
5
7
  introductory-lobby id="about"
6
- <% else %>
7
- introductory-lobby id="about"
8
+ table-booths id="contacts" contacts=model.employees
9
+ <% when :about_first %>
8
10
  products-showcase id="products" products=model.products
9
- <% end %>
10
-
11
+ introductory-lobby id="about"
11
12
  table-booths id="contacts" contacts=model.employees
13
+ <% end %>
@@ -0,0 +1,11 @@
1
+ class Cloudrider::Apiv1::AboutEmblem < Cloudrider::Apiv1::Base
2
+ class Context
3
+ attr_accessor :index_style
4
+ end
5
+ private
6
+ def _context
7
+ Context.new.tap do |c|
8
+ c.index_style = (@style || :pages).to_sym
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ class Cloudrider::Apiv1::ContactsEmblem < Cloudrider::Apiv1::Base
2
+ class Context
3
+ def products_first?
4
+ false
5
+ end
6
+ end
7
+ private
8
+ def _context
9
+ Context.new
10
+ end
11
+ end
@@ -1,11 +1,11 @@
1
1
  class Cloudrider::Apiv1::IndexEmblem < Cloudrider::Apiv1::Base
2
2
  class Context
3
- def products_first?
4
- false
5
- end
3
+ attr_accessor :index_style
6
4
  end
7
5
  private
8
6
  def _context
9
- Context.new
7
+ Context.new.tap do |c|
8
+ c.index_style = (@style || :pages).to_sym
9
+ end
10
10
  end
11
11
  end
@@ -0,0 +1,17 @@
1
+ class Cloudrider::Apiv1::IndexRouteEmber < Cloudrider::Apiv1::Base
2
+ class Context
3
+ attr_accessor :index_style
4
+ end
5
+ private
6
+ def _folder
7
+ "app/assets/javascripts/templates/routes"
8
+ end
9
+ def _source_folder
10
+ "app/varissets/javascripts/templates/routes"
11
+ end
12
+ def _context
13
+ Context.new.tap do |c|
14
+ c.index_style = (@style || :pages).to_sym
15
+ end
16
+ end
17
+ end
@@ -4,6 +4,33 @@ class Cloudrider::Apiv1::SiteNavComponent < Cloudrider::Apiv1::Base
4
4
  def my_company_name
5
5
  "Cloudrider"
6
6
  end
7
+
8
+ def about_link
9
+ if pages?
10
+ '"about"'
11
+ else
12
+ '"index" (query-params anchor="about")'
13
+ end
14
+ end
15
+
16
+ def products_link
17
+ if pages?
18
+ '"products.index"'
19
+ else
20
+ '"index" (query-params anchor="products")'
21
+ end
22
+
23
+ def contacts_link
24
+ if pages?
25
+ '"contacts"'
26
+ else
27
+ '"index" (query-params anchor="contacts")'
28
+ end
29
+ end
30
+
31
+ def pages?
32
+ true
33
+ end
7
34
  end
8
35
 
9
36
  private
@@ -52,7 +52,12 @@ class Cloudrider::ApplicationCommander
52
52
  [Cloudrider::Apiv1::ProductListingComponent, Cloudrider::Apiv1::ProductListingSass]
53
53
  end
54
54
  def _index
55
- [Cloudrider::Apiv1::IndexEmblem]
55
+ [
56
+ Cloudrider::Apiv1::IndexEmblem,
57
+ Cloudrider::Apiv1::AboutEmblem,
58
+ Cloudrider::Apiv1::ContactsEmblem,
59
+ Cloudrider::Apiv1::IndexRouteEmber
60
+ ]
56
61
  end
57
62
  def _cookie_splash
58
63
  [Cloudrider::Apiv1::CookieSplashComponent, Cloudrider::Apiv1::CookieSplashSass]
@@ -1,3 +1,3 @@
1
1
  module Cloudrider
2
- VERSION = "0.2.14"
2
+ VERSION = "0.2.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudrider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Chen
@@ -224,10 +224,12 @@ files:
224
224
  - generica/app/assets/javascripts/routes/admin/translations/index_route.js.em
225
225
  - generica/app/assets/javascripts/routes/admin_route.js.em
226
226
  - generica/app/assets/javascripts/routes/application_route.js.em
227
+ - generica/app/assets/javascripts/routes/contacts_route.js.em
227
228
  - generica/app/assets/javascripts/routes/index_route.js.em
228
229
  - generica/app/assets/javascripts/routes/products/index_route.js.em
229
230
  - generica/app/assets/javascripts/routes/products_route.js.em
230
231
  - generica/app/assets/javascripts/templates/.gitkeep
232
+ - generica/app/assets/javascripts/templates/about.emblem
231
233
  - generica/app/assets/javascripts/templates/admin.emblem
232
234
  - generica/app/assets/javascripts/templates/admin/employees/index.emblem
233
235
  - generica/app/assets/javascripts/templates/admin/employees/new.emblem
@@ -279,6 +281,7 @@ files:
279
281
  - generica/app/assets/javascripts/templates/components/tree-taxon-li.emblem
280
282
  - generica/app/assets/javascripts/templates/components/tree-taxon-ul.emblem
281
283
  - generica/app/assets/javascripts/templates/components/tree-taxon-wrapper.emblem
284
+ - generica/app/assets/javascripts/templates/contacts.emblem
282
285
  - generica/app/assets/javascripts/templates/employees/index.emblem
283
286
  - generica/app/assets/javascripts/templates/index.emblem
284
287
  - generica/app/assets/javascripts/templates/messages/new.emblem
@@ -384,6 +387,8 @@ files:
384
387
  - generica/app/models/apiv1/translation_machine.rb
385
388
  - generica/app/models/concerns/.keep
386
389
  - generica/app/models/i18n/backend/active_record.rb
390
+ - generica/app/varissets/javascripts/routes/index_route.js.em.erb
391
+ - generica/app/varissets/javascripts/templates/about.emblem.erb
387
392
  - generica/app/varissets/javascripts/templates/application.emblem.erb
388
393
  - generica/app/varissets/javascripts/templates/components/cookie-splash.emblem.erb
389
394
  - generica/app/varissets/javascripts/templates/components/hero-splash.emblem.erb
@@ -395,6 +400,7 @@ files:
395
400
  - generica/app/varissets/javascripts/templates/components/site-footer.emblem.erb
396
401
  - generica/app/varissets/javascripts/templates/components/site-nav.emblem.erb
397
402
  - generica/app/varissets/javascripts/templates/components/table-booths.emblem.erb
403
+ - generica/app/varissets/javascripts/templates/contacts.emblem.erb
398
404
  - generica/app/varissets/javascripts/templates/employees/index.emblem.erb
399
405
  - generica/app/varissets/javascripts/templates/index.emblem.erb
400
406
  - generica/app/varissets/javascripts/templates/messages/new.emblem.erb
@@ -521,15 +527,18 @@ files:
521
527
  - generica/vendor/assets/stylesheets/.keep
522
528
  - lib/cloudrider.rb
523
529
  - lib/cloudrider/apiv1.rb
530
+ - lib/cloudrider/apiv1/about_emblem.rb
524
531
  - lib/cloudrider/apiv1/application_emblem.rb
525
532
  - lib/cloudrider/apiv1/application_sass.rb
526
533
  - lib/cloudrider/apiv1/base.rb
534
+ - lib/cloudrider/apiv1/contacts_emblem.rb
527
535
  - lib/cloudrider/apiv1/cookie_splash_component.rb
528
536
  - lib/cloudrider/apiv1/cookie_splash_sass.rb
529
537
  - lib/cloudrider/apiv1/employees_index_emblem.rb
530
538
  - lib/cloudrider/apiv1/hero_splash_component.rb
531
539
  - lib/cloudrider/apiv1/hero_splash_sass.rb
532
540
  - lib/cloudrider/apiv1/index_emblem.rb
541
+ - lib/cloudrider/apiv1/index_route_ember.rb
533
542
  - lib/cloudrider/apiv1/introductory_lobby_component.rb
534
543
  - lib/cloudrider/apiv1/introductory_lobby_sass.rb
535
544
  - lib/cloudrider/apiv1/messages_new_emblem.rb