Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,15 @@ module.exports = {
rules: {
'no-console': 'off',
'camelcase': 'off',
'key-spacing': 'off',
'key-spacing': [
'error', {
'align': {
'beforeColon': true,
'afterColon': true,
'on': 'colon'
}
}
],
'new-cap': 'off',
'ember-suave/require-access-in-comments': 'off',
},
Expand Down
22 changes: 11 additions & 11 deletions app/abilities/organization.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@ const {
export default Ability.extend({
credentials: service(),

isAtLeastAdmin: or('membership.isAdmin', 'membership.isOwner'),
userCanJoinOrganization: empty('membership'),
userCanLeaveOrganization: or('membership.isContributor', 'membership.isAdmin'),
userIsMemberInOrganization: notEmpty('membership'),
isAtLeastAdmin : or('membership.isAdmin', 'membership.isOwner'),
userCanJoinOrganization : empty('membership'),
userCanLeaveOrganization : or('membership.isContributor', 'membership.isAdmin'),
userIsMemberInOrganization : notEmpty('membership'),

isAtLeastContributor: or('membership.isContributor', 'membership.isAdmin', 'membership.isOwner'),

canJoin: alias('userCanJoinOrganization'),
canManage: alias('isAtLeastAdmin'),
canJoin : alias('userCanJoinOrganization'),
canManage : alias('isAtLeastAdmin'),

canCreateIssueTask: true,
canCreateIdeaTask: true,
canCreateTaskTask: alias('isAtLeastContributor'),
canCreateIssueTask : true,
canCreateIdeaTask : true,
canCreateTaskTask : alias('isAtLeastContributor'),

membership: alias('credentials.currentUserMembership'),
organization: alias('model')
membership : alias('credentials.currentUserMembership'),
organization : alias('model')
});
8 changes: 4 additions & 4 deletions app/abilities/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ const {
} = Ember;

export default Ability.extend({
credentials: service(),
currentUser: service(),
credentials : service(),
currentUser : service(),

task: alias('model'),

Expand All @@ -25,8 +25,8 @@ export default Ability.extend({
return taskUserId === currentUserId;
}),

membership: alias('credentials.currentUserMembership'),
userIsAtLeastAdmin: or('membership.isAdmin', 'membership.isOwner'),
membership : alias('credentials.currentUserMembership'),
userIsAtLeastAdmin : or('membership.isAdmin', 'membership.isOwner'),

canEdit: or('userIsAuthor', 'userIsAtLeastAdmin')
});
4 changes: 2 additions & 2 deletions app/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ let App;
Ember.MODEL_FACTORY_INJECTIONS = true;

App = Application.extend({
modulePrefix: config.modulePrefix,
podModulePrefix: config.podModulePrefix,
modulePrefix : config.modulePrefix,
podModulePrefix : config.podModulePrefix,
Resolver
});

Expand Down
14 changes: 7 additions & 7 deletions app/components/category-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ const {
* @extends Ember.Component
*/
export default Component.extend({
classNames: ['category-item'],
classNameBindings: ['selected'],
isLoading: false,
classNames : ['category-item'],
classNameBindings : ['selected'],
isLoading : false,

/**
* @property flashMessages
Expand Down Expand Up @@ -117,10 +117,10 @@ export default Component.extend({
flashMessages.clearMessages();
return flashMessages.add({
message,
type: 'danger',
fixed: true,
sticky: false,
timeout: 5000
type : 'danger',
fixed : true,
sticky : false,
timeout : 5000
});
}
});
4 changes: 2 additions & 2 deletions app/components/code-theme-selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ const {
* @extends Ember.Component
*/
export default Component.extend({
classNames: ['code-theme-selector'],
classNameBindings: ['themeClass'],
classNames : ['code-theme-selector'],
classNameBindings : ['themeClass'],

/**
* @property codeTheme
Expand Down
4 changes: 2 additions & 2 deletions app/components/comment-item.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const {
@extends Ember.Component
*/
export default Component.extend({
classNames: ['comment-item', 'timeline-comment-wrapper'],
classNameBindings: ['isEditing:editing'],
classNames : ['comment-item', 'timeline-comment-wrapper'],
classNameBindings : ['isEditing:editing'],

/**
@property currentUser
Expand Down
4 changes: 2 additions & 2 deletions app/components/create-comment-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const {
@extends Ember.Component
*/
export default Component.extend({
classNames: ['create-comment-form'],
tagName: 'form',
classNames : ['create-comment-form'],
tagName : 'form',

/**
@property session
Expand Down
30 changes: 15 additions & 15 deletions app/components/demo-categories.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ const CONCURRENCY_TIMEOUT = testing ? 0 : 1500;
export default Component.extend({
categories: [
Object.create({
description: 'You want to improve government responsiveness.',
isLoading: false,
name: 'Government',
selected: false,
slug: 'government'
description : 'You want to improve government responsiveness.',
isLoading : false,
name : 'Government',
selected : false,
slug : 'government'
}),
Object.create({
description: 'You want to improve tools for advancing science.',
isLoading: false,
name: 'Science',
selected: false,
slug: 'science'
description : 'You want to improve tools for advancing science.',
isLoading : false,
name : 'Science',
selected : false,
slug : 'science'
}),
Object.create({
description: 'You want to improve software tools and infrastructure.',
isLoading: false,
name: 'Technology',
selected: false,
slug: 'technology'
description : 'You want to improve software tools and infrastructure.',
isLoading : false,
name : 'Technology',
selected : false,
slug : 'technology'
})
],
classNames: ['demo-categories'],
Expand Down
106 changes: 53 additions & 53 deletions app/components/demo-projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,98 +6,98 @@ const {
} = Ember;

export default Component.extend({
classNames: ['demo-projects'],
projects: [
classNames : ['demo-projects'],
projects : [
Object.create({
title: 'Code Corps',
description: 'Building a better future together. Contribute to public software for social good.',
iconLargeUrl: 'https://d3pgew4wbk2vb1.cloudfront.net/images/cc-demo.png',
organizationName: 'Code Corps',
categories: [
{
name: 'Society',
selected: false,
slug: 'society'
title : 'Code Corps',
description : 'Building a better future together. Contribute to public software for social good.',
iconLargeUrl : 'https://d3pgew4wbk2vb1.cloudfront.net/images/cc-demo.png',
organizationName : 'Code Corps',
categories : [
{
name : 'Society',
selected : false,
slug : 'society'
},
{
name: 'Technology',
selected: true,
slug: 'technology'
name : 'Technology',
selected : true,
slug : 'technology'
}
],
skills: [
{
title: 'Ember.js',
matched: true
title : 'Ember.js',
matched : true
},
{
title: 'HTML',
matched: true
title : 'HTML',
matched : true
},
{
title: 'Rails',
matched: true
title : 'Rails',
matched : true
},
{
title: 'Ruby',
matched: true
title : 'Ruby',
matched : true
},
{
title: 'Copywriting',
matched: false
title : 'Copywriting',
matched : false
},
{
title: 'CSS',
matched: false
title : 'CSS',
matched : false
}
]
}),
Object.create({
title: 'Movement',
description: 'We help people elect their representatives and then hold them accountable.',
iconLargeUrl: 'https://d3pgew4wbk2vb1.cloudfront.net/images/movement-demo.png',
organizationName: 'Movement',
categories: [
{
name: 'Government',
selected: true,
slug: 'government'
title : 'Movement',
description : 'We help people elect their representatives and then hold them accountable.',
iconLargeUrl : 'https://d3pgew4wbk2vb1.cloudfront.net/images/movement-demo.png',
organizationName : 'Movement',
categories : [
{
name : 'Government',
selected : true,
slug : 'government'
},
{
name: 'Politics',
selected: false,
slug: 'politics'
name : 'Politics',
selected : false,
slug : 'politics'
},
{
name: 'Society',
selected: false,
slug: 'society'
name : 'Society',
selected : false,
slug : 'society'
}
],
skills: [
{
title: 'Rails',
matched: true
title : 'Rails',
matched : true
},
{
title: 'Ruby',
matched: true
title : 'Ruby',
matched : true
},
{
title: 'Amazon S3',
matched: false
title : 'Amazon S3',
matched : false
},
{
title: 'iOS',
matched: false
title : 'iOS',
matched : false
},
{
title: 'PostgreSQL',
matched: false
title : 'PostgreSQL',
matched : false
},
{
title: 'Swift',
matched: false
title : 'Swift',
matched : false
}
]
})
Expand Down
Loading