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
#= require ./store | |
#= require_tree ./models | |
#= require_tree ./controllers | |
#= require_tree ./views | |
#= require_tree ./helpers | |
#= require_tree ./components | |
#= require_tree ./templates | |
#= require_tree ./routes | |
#= require ./router | |
#= require_self |
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
# app/assets/javascripts/ember-app/templates/partials/_header.js.coffee | |
%nav.navbar.navbar-default.navbar-fixed-top | |
.container | |
.navbar-header | |
%btn.navbar-toggle{ data: { target: '.navbar-collapse', toggle: 'collapse' }, type: 'button' } | |
%span.sr-only Toggle Navigation | |
%span.icon-bar | |
%span.icon-bar | |
%span.icon-bar | |
= hb 'link-to "index" class="navbar-brand"' do |
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
# app/assets/javascripts/ember-app/controllers/dream_symbol_controllers.js.coffee | |
App.DreamSymbolsShowController = Ember.ArrayController.extend | |
dreamSymbolsCount: (-> | |
@get 'model.length' | |
).property '@each' | |
App.DreamSymbolsEditController = Ember.ObjectController.extend | |
actions: | |
delete: -> |
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
# Show Route | |
App.DreamSymbolsShowRoute = Ember.Route.extend | |
model: (params)-> | |
self = @ | |
@store.find('dream_symbol', params.id).then (symbol)-> | |
Ember.RSVP.hash | |
symbol: symbol | |
siblings: self.store.findByIds 'dream_symbol', symbol.siblings | |
setupController: (controller, model)-> |
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
attr = DS.attr | |
App.DreamSymbol = DS.Model.extend | |
image: attr 'string' | |
name: attr 'string' | |
description: attr 'string' | |
user: DS.belongsTo 'user' | |
parents: DS.hasMany('dream_symbol', { embedded: 'always' }) | |
children: DS.hasMany('dream_symbol', { embedded: 'always' }) |
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
App.DreamSymbolsNewController = Ember.ObjectController.extend | |
value: null | |
categories: (-> | |
# [ | |
# { | |
# id: 1 | |
# name: "red" | |
# } | |
# { |
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
.form-group | |
%label.control-label.col-sm-2 | |
Name | |
.col-sm-10 | |
= hb 'input type="text" value=symbol.name class="form-control input-group-large"' | |
.form-group | |
%label.control-label.col-sm-2 | |
Category | |
.col-sm-10 |
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
<?php | |
/* | |
Plugin Name: REW Twitter Feed Copy | |
Description: Sidebar Twitter feed | |
*/ | |
class RewTwitterFeedCopy extends WP_Widget | |
{ | |
function RewTwitterFeed() | |
{ |
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
# Show action | |
App.DreamSymbolsShowController = Ember.ObjectController.extend | |
checkParent: (value)-> | |
parent = @get 'model.parent' | |
value = value or 'name' | |
if parent | |
parent.get value | |
else | |
if value is 'name' then 'Dream Symbol' else 'Dream Symbols' |
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
//my-file.scss | |
$my-new-variable: #ccc; | |
@import 'third-party/third-party-file'; |
OlderNewer