[deprecations] Remove all of the views we use just for layouts
This commit is contained in:
parent
becde631d5
commit
c3ef9ac5d9
3
app/components/travis-layout.js
Normal file
3
app/components/travis-layout.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Component.extend({});
|
|
@ -1,3 +1,15 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Controller.extend();
|
||||
export default Ember.Controller.extend({
|
||||
layoutName: Ember.computed({
|
||||
get(key) {
|
||||
if(this._layoutName) {
|
||||
return 'layouts/' + this._layoutName;
|
||||
}
|
||||
},
|
||||
|
||||
set(key, value) {
|
||||
return this._layoutName = value;
|
||||
}
|
||||
})
|
||||
});
|
||||
|
|
|
@ -1,3 +1,15 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.Controller.extend();
|
||||
export default Ember.Controller.extend({
|
||||
layoutName: Ember.computed({
|
||||
get(key) {
|
||||
if(this._layoutName) {
|
||||
return 'layouts/' + this._layoutName;
|
||||
}
|
||||
},
|
||||
|
||||
set(key, value) {
|
||||
return this._layoutName = value;
|
||||
}
|
||||
})
|
||||
});
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/simple"}}
|
||||
{{#if redirected}}
|
||||
{{/if}}
|
||||
|
||||
|
@ -14,3 +15,4 @@
|
|||
{{/if}}
|
||||
</a>
|
||||
</p>
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
{{outlet}}
|
||||
{{#travis-layout layoutName="layouts/dashboard" class="dashboard"}}
|
||||
{{outlet}}
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/error" class="error error404"}}
|
||||
<div class="error-bg full-size">
|
||||
<div class="hill-left full-size"></div>
|
||||
<div class="hill-right full-size"></div>
|
||||
|
@ -8,3 +9,4 @@
|
|||
<h1>404: Something's Missing</h1>
|
||||
<p>We're sorry! It seems like this page cannot be found.</p>
|
||||
</div>
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/simple"}}
|
||||
<div id="first_sync" class="row first-sync">
|
||||
<div class="column medium-6 medium-centered">
|
||||
{{#if isSyncing}}
|
||||
|
@ -23,3 +24,4 @@
|
|||
{{/unless}}
|
||||
</div>
|
||||
</div>
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/landing-page" class="landing-pro"}}
|
||||
<div id="landing" class="landing wrapper">
|
||||
<section class="section--hero section--grey">
|
||||
<div class="inner">
|
||||
|
@ -89,3 +90,4 @@
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/landing-page"}}
|
||||
<div id="landing" class="landing">
|
||||
<div class="row hero z-1">
|
||||
<div class="landing-centered-wrapper">
|
||||
|
@ -248,3 +249,4 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/simple"}}
|
||||
<div id="insufficient-permissions">
|
||||
<img src="/images/travis-crying.png" class="sad-travis" width="150">
|
||||
|
||||
|
@ -23,3 +24,4 @@
|
|||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
{{loading-indicator}}
|
||||
{{#travis-layout layoutName=layoutName}}
|
||||
{{loading-indicator}}
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/landing-page" class="landing-pro"}}
|
||||
<div id="landing" class="landing wrapper">
|
||||
<section class="section--white">
|
||||
<div class="inner">
|
||||
|
@ -142,4 +143,5 @@
|
|||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
{{outlet}}
|
||||
{{#travis-layout layoutName="layouts/home" class="main"}}
|
||||
{{outlet}}
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
The requested page was not found.
|
||||
{{#travis-layout layoutName="layouts/simple"}}
|
||||
The requested page was not found.
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/profile" class="owner"}}
|
||||
<header class="owner-header row">
|
||||
<div class="owner-avatar">
|
||||
<img src={{avatarURL}} alt="" width="125" height="125">
|
||||
|
@ -36,3 +37,4 @@
|
|||
</section> --}}
|
||||
</div>
|
||||
</div>
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/landing-page" class="landing-pro"}}
|
||||
<div id="landing" class="landing wrapper">
|
||||
<section class="section--white">
|
||||
<div class="inner">
|
||||
|
@ -133,3 +134,4 @@
|
|||
</div>
|
||||
</section>
|
||||
</div>
|
||||
{{/layout-name}}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
{{#travis-layout layoutName="layouts/profile" class="profile-view"}}
|
||||
<article class="profile-main">
|
||||
{{outlet}}
|
||||
</article>
|
||||
</article>
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
{{#travis-layout layoutName="layouts/landing-page" class="landing-pro"}}
|
||||
<div id="landing" class="landing wrapper">
|
||||
<section class="section--white">
|
||||
<div class="inner">
|
||||
|
@ -13,4 +14,5 @@
|
|||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
{{/travis-layout}}
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.View.extend({
|
||||
layoutName: 'layouts/simple'
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.View.extend({
|
||||
layoutName: 'layouts/dashboard',
|
||||
classNames: ['dashboard']
|
||||
});
|
|
@ -1,10 +0,0 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.View.extend({
|
||||
layoutName: function() {
|
||||
var name;
|
||||
if (name = this.get('controller.layoutName')) {
|
||||
return 'layouts/' + name;
|
||||
}
|
||||
}.property('controller.layoutName')
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
import BasicView from 'travis/views/basic';
|
||||
|
||||
export default BasicView.extend({
|
||||
layoutName: 'layouts/error',
|
||||
classNames: ['error error404']
|
||||
});
|
|
@ -1,5 +0,0 @@
|
|||
import BasicView from 'travis/views/basic';
|
||||
|
||||
export default BasicView.extend({
|
||||
layoutName: 'layouts/simple'
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
import BasicView from 'travis/views/basic';
|
||||
|
||||
export default BasicView.extend({
|
||||
classNames: ['landing-pro'],
|
||||
layoutName: 'layouts/landing-page'
|
||||
});
|
|
@ -1,5 +0,0 @@
|
|||
import BasicView from 'travis/views/basic';
|
||||
|
||||
export default BasicView.extend({
|
||||
layoutName: 'layouts/landing-page'
|
||||
});
|
|
@ -1,5 +0,0 @@
|
|||
import BasicView from 'travis/views/basic';
|
||||
|
||||
export default BasicView.extend({
|
||||
layoutName: 'layouts/simple'
|
||||
});
|
|
@ -1,10 +0,0 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.View.extend({
|
||||
layoutName: (function() {
|
||||
var name;
|
||||
if (name = this.get('controller.layoutName')) {
|
||||
return 'layouts/' + name;
|
||||
}
|
||||
}).property('controller.layoutName')
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
import BasicView from 'travis/views/basic';
|
||||
|
||||
export default BasicView.extend({
|
||||
classNames: ['landing-pro'],
|
||||
layoutName: 'layouts/landing-page'
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.View.extend({
|
||||
layoutName: 'layouts/home',
|
||||
classNames: ['main']
|
||||
});
|
|
@ -1,5 +0,0 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.View.extend({
|
||||
layoutName: 'layouts/simple'
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
import Ember from 'ember';
|
||||
|
||||
export default Ember.View.extend({
|
||||
layoutName: 'layouts/profile',
|
||||
classNames: ['owner']
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
import BasicView from 'travis/views/basic';
|
||||
|
||||
export default BasicView.extend({
|
||||
classNames: ['landing-pro'],
|
||||
layoutName: 'layouts/landing-page'
|
||||
});
|
|
@ -1,12 +0,0 @@
|
|||
import BasicView from 'travis/views/basic';
|
||||
|
||||
export default BasicView.extend({
|
||||
templateName: 'profile/show',
|
||||
layoutName: 'layouts/profile',
|
||||
classNames: ['profile-view'],
|
||||
accountBinding: 'controller.account',
|
||||
|
||||
name: function() {
|
||||
return this.get('account.name') || this.get('account.login');
|
||||
}.property('account.name', 'account.login')
|
||||
});
|
|
@ -1,6 +0,0 @@
|
|||
import BasicView from 'travis/views/basic';
|
||||
|
||||
export default BasicView.extend({
|
||||
classNames: ['landing-pro'],
|
||||
layoutName: 'layouts/landing-page'
|
||||
});
|
Loading…
Reference in New Issue
Block a user