forked from CenterForOpenScience/ember-osf-web
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
9135e53
commit 3b8214e
Showing
49 changed files
with
730 additions
and
162 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 |
---|---|---|
|
@@ -18,6 +18,7 @@ const App = Application.extend({ | |
'i18n', | ||
'session', | ||
'store', | ||
'theme', | ||
'router', | ||
], | ||
}, | ||
|
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
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,40 @@ | ||
import { attr, hasMany } from '@ember-decorators/data'; | ||
import DS from 'ember-data'; | ||
import License from './license'; | ||
import OsfModel from './osf-model'; | ||
import Taxonomy from './taxonomy'; | ||
|
||
/* eslint-disable camelcase */ | ||
|
||
interface Assets { | ||
favicon: string; | ||
powered_by_share: string; | ||
sharing: string; | ||
square_color_no_transparent: string; | ||
square_color_transparent: string; | ||
style: string; | ||
wide_black: string; | ||
wide_color: string; | ||
wide_white: string; | ||
} | ||
|
||
/* eslint-enable camelcase */ | ||
|
||
export default abstract class Provider extends OsfModel { | ||
@attr('fixstring') name!: string; // eslint-disable-line no-restricted-globals | ||
@attr('fixstring') description!: string; | ||
@attr('string') advisoryBoard!: string; | ||
@attr('fixstring') example!: string; | ||
@attr('string') domain!: string; | ||
@attr('boolean') domainRedirectEnabled!: boolean; | ||
@attr('fixstring') footerLinks!: string; | ||
@attr('fixstring') emailSupport!: string; | ||
@attr('string') facebookAppId!: string; | ||
@attr('boolean') allowSubmissions!: boolean; | ||
@attr('boolean') allowCommenting!: boolean; | ||
@attr() assets!: Assets; // TODO: camelize in transform | ||
|
||
@hasMany('taxonomy') taxonomies!: DS.PromiseManyArray<Taxonomy>; | ||
@hasMany('taxonomy') highlightedTaxonomies!: DS.PromiseManyArray<Taxonomy>; | ||
@hasMany('license', { inverse: null }) licensesAcceptable!: DS.PromiseManyArray<License>; | ||
} |
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 @@ | ||
// @import '../../../app/styles/variables'; |
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,17 @@ | ||
/* eslint-env node */ | ||
|
||
module.exports = { | ||
name: 'app-components', | ||
|
||
isDevelopingAddon() { | ||
return true; | ||
}, | ||
|
||
options: { | ||
cssModules: { | ||
headerModules: [ | ||
'app-components/styles/headers', | ||
], | ||
}, | ||
}, | ||
}; |
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,22 @@ | ||
{ | ||
"name": "app-components", | ||
"keywords": [ | ||
"ember-addon" | ||
], | ||
"dependencies": { | ||
"ember-bootstrap": "*", | ||
"ember-bootstrap-datepicker": "*", | ||
"ember-cli-babel": "*", | ||
"ember-cli-htmlbars": "*", | ||
"ember-cli-htmlbars-inline-precompile": "*", | ||
"ember-cli-sass": "*", | ||
"ember-cli-template-lint": "*", | ||
"ember-cli-typescript": "*", | ||
"ember-component-attributes": "*", | ||
"ember-cp-validations": "*", | ||
"ember-css-modules": "*", | ||
"ember-css-modules-sass": "*", | ||
"ember-i18n": "*", | ||
"ember-i18n-inject": "*" | ||
} | ||
} |
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
Oops, something went wrong.