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
<div class="main"> | |
<div class="header">header</div> | |
<div class="navigation">nav<br/>nav<br/><nav<br/>nav<br/></div> | |
<div class="cols"> | |
<div class="col1 width50">col1<br/><br/></div> | |
<div class="col2 width50"> | |
col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/> | |
col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/> | |
col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/> | |
col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/>col2<br/><br/> |
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
$header-height: 54px | |
$navigation-width: 72px | |
$col-collapsed-width: 96px | |
.header | |
height: $header-height | |
.main | |
height: 100% | |
position: absolute | |
width: 100% |
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
it "should be able to fetch a Shift", -> | |
@shifts.fetch | |
wait: true | |
shift = @shifts.get(window.shifts[0].id) | |
expect(shift instanceof Easypep.Models.Shift).toBeTruthy() | |
# Test if model serializes back to test data | |
expect(shift.toJSON()).toEqual(window.shifts[0]) |
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
class EasypepApi::V1::ShiftsController < EasypepApi::ApplicationController | |
load_and_authorize_resource | |
before_filter :find_shift, :except => [:index, :create] | |
respond_to :json | |
def index | |
@shifts = parent_ressource.shifts.accessible_by(current_ability) | |
respond_with(@shifts) | |
end |
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
// Copyright © 2010-12 Qtrac Ltd. | |
// | |
// This program or package and any associated files are licensed under the | |
// Apache License, Version 2.0 (the "License"); you may not use these files | |
// except in compliance with the License. You can get a copy of the License | |
// at: http://www.apache.org/licenses/LICENSE-2.0. | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
>>>> Ext.define('Test.view.Explorer', { extend: 'Ext.panel.Panel', showProperties: true, title: 'Properties'}); | |
****** In this case, the String 'My Title' is copied to the object behind foo via Ext.applyIf, because that's what happens with passed config (second param to Ext.create) | |
>>>> var foo = Ext.create('Test.view.Explorer', {title: 'My Title'}); | |
>>>> foo.title; | |
"My Title" | |
>>>> var bar = Ext.create('Test.view.Explorer'); |
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
Ext.define("Facade.view.desktop.Desktop",{ | |
extends: 'Ext.container.Viewport', | |
alias: 'desktop-Desktop', | |
requires: [ | |
'Facade.view.desktop.app.Banner', | |
'Facade.view.desktop.app.Container' | |
], | |
id: 'viewport', | |
layout: { |
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
js_property :items, [ | |
{ | |
xtype: 'panel', | |
border: 0, | |
maintainFlex: true, | |
activeItem: 0, | |
layout: { | |
align: 'stretch', | |
type: 'vbox' | |
}, |
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
class Base | |
attr_accessor_with_default :config, OrderedOptions.new | |
def initialize passed, parent | |
# how do we handle class_level default config and delegatestodsl config in a way that it's overridable by the user? | |
@config.merge! passed | |
end | |
def js_config | |
@config.reject { |
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
<script type="text/javascript"> | |
//<![CDATA[ | |
Ext.ns("Netzke.classes.Inspector"); | |
Ext.define('Netzke.classes.Inspector.Summary', Netzke.chainApply({ | |
extend: 'Ext.panel.Panel', | |
alias: 'widget.inspectorsummary', | |
constructor: function(config) { | |
Netzke.aliasMethodChain(this, "initComponent", "netzke"); | |
Netzke.classes.Inspector.Summary.superclass.constructor.call(this, config); |