-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
119 changed files
with
2,196 additions
and
1,943 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "public/assets/osf-assets"] | ||
path = public/assets/osf-assets | ||
url = https://github.com/CenterForOpenScience/osf-assets.git |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
language: node_js | ||
|
||
sudo: false | ||
sudo: required | ||
dist: trusty | ||
addons: | ||
chrome: stable | ||
|
||
env: | ||
global: | ||
|
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import Ember from 'ember'; | ||
import Analytics from 'ember-osf/mixins/analytics'; | ||
/** | ||
* @module ember-preprints | ||
* @submodule components | ||
*/ | ||
|
||
/** | ||
* Displays additional SHARE sources for preprints index page | ||
* | ||
* Sample usage: | ||
* ```handlebars | ||
* {{additional-provider-list | ||
* additionalProviders=additionalProviders | ||
* }} | ||
* ``` | ||
* @class additional-provider-list | ||
*/ | ||
export default Ember.Component.extend(Analytics, { | ||
theme: Ember.inject.service(), | ||
sortedList: Ember.computed('additionalProviders', function() { | ||
if (!this.get('additionalProviders')) { | ||
return; | ||
} | ||
const sortedList = this.get('additionalProviders').sort(); | ||
const pairedList = []; | ||
for (let i = 0; i < sortedList.get('length'); i += 2) { | ||
let pair = []; | ||
pair.pushObject(sortedList.objectAt(i)); | ||
if (sortedList.objectAt(i + 1)) { | ||
pair.pushObject(sortedList.objectAt(i + 1)); | ||
} | ||
pairedList.pushObject(pair); | ||
} | ||
return pairedList; | ||
}) | ||
}); |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Ember from 'ember'; | ||
import config from 'ember-get-config'; | ||
import buildProviderAssetPath from '../utils/build-provider-asset-path'; | ||
|
||
export default Ember.Helper.extend({ | ||
theme: Ember.inject.service(), | ||
compute(params) { | ||
let [providerId, assetName] = params; | ||
return buildProviderAssetPath(config, providerId, assetName, this.get('theme.isDomain')); | ||
} | ||
}); |
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
Oops, something went wrong.