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
0af10ec
commit d401501
Showing
15 changed files
with
121 additions
and
21 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
Empty file.
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,4 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Controller.extend({ | ||
}); |
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,7 @@ | ||
import Ember from 'ember'; | ||
|
||
export default Ember.Route.extend({ | ||
model(params) { | ||
return this.store.findRecord('user', params.user_id); | ||
} | ||
}); |
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 @@ | ||
{{file-browser userId=model.id}} |
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
Empty file.
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,5 +1,20 @@ | ||
{{!-- The following component displays Ember's default welcome message. --}} | ||
{{welcome-page}} | ||
{{!-- Feel free to remove this! --}} | ||
<div> | ||
{{new-osf-navbar}} | ||
|
||
{{outlet}} | ||
{{maintenance-banner}} | ||
</div> | ||
<br /> | ||
<br /> | ||
<br /> | ||
|
||
<div id="main" class="container"> | ||
<div class="row"> | ||
<div class="col-md-12" role="main"> | ||
{{outlet}} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{{osf-footer}} | ||
{{osf-copyright class='text-center'}} | ||
{{osf-mode-footer}} |
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,5 +1,8 @@ | ||
{ | ||
"name": "ember-quickfiles", | ||
"dependencies": { | ||
"osf-style": "https://github.com/CenterforOpenScience/osf-style.git#1.3.0", | ||
"dropzone": "~4.3.0", | ||
"jquery": "^2.2.4" | ||
} | ||
} |
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,30 @@ | ||
######## ember-osf settings ######## | ||
## This file is solely for developer convenience. Any of these settings may alternately be passed in as | ||
# environment variables in your deployment environment | ||
|
||
### Login settings | ||
# Default is ability to read and write all data associated with a user's account. Some apps may not need full account | ||
# privileges. If your app only reads data, best practice is to limit permission requests to only what you need. | ||
OAUTH_SCOPES: osf.full_write | ||
# Where to send the user on the site after they authenticated. Usually this is a page enabled to handle the oauth flow. | ||
REDIRECT_URI: http://localhost:4200/login | ||
# The developer app client ID (not client secret!). This is needed for your app to let users log in via the OSF. | ||
CLIENT_ID: null | ||
# Credentials for only a single user. This setting will be ignored except for local development; NEVER commit to github | ||
PERSONAL_ACCESS_TOKEN: null | ||
|
||
### In general, you can leave the items below commented out; ember-osf already knows how to talk to many common OSF | ||
## backends. Only use the below if running against a new or custom OSF instance where you need to control the URLs. | ||
## These values WILL be ignored unless you explicitly specify `BACKEND=env`. | ||
#OSF_URL: 'http://localhost:5000/' | ||
#OSF_API_URL: 'http://localhost:8000' | ||
#OSF_RENDER_URL: 'http://localhost:7778/render' | ||
#OSF_FILE_URL: 'http://localhost:7777/' | ||
#OSF_HELP_URL: 'http://localhost:4200/help' | ||
|
||
|
||
## Where to direct the user for cookie based authentication | ||
#OSF_COOKIE_LOGIN_URL: 'http://localhost:8080/login' | ||
|
||
## Where to direct the user for oauth-based authentication | ||
#OSF_OAUTH_URL: 'http://localhost:8080/oauth2/profile' |
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,24 +1,31 @@ | ||
/*jshint node:true*/ | ||
/* global require, module */ | ||
const path = require('path'); | ||
|
||
var EmberApp = require('ember-cli/lib/broccoli/ember-app'); | ||
|
||
module.exports = function(defaults) { | ||
var app = new EmberApp(defaults, { | ||
// Add options here | ||
}); | ||
var app = new EmberApp(defaults, { | ||
'ember-bootstrap': { | ||
'bootstrapVersion': 3, | ||
'importBootstrapFont': true, | ||
'importBootstrapCSS': true | ||
} | ||
}); | ||
|
||
// Use `app.import` to add additional libraries to the generated | ||
// output files. | ||
// | ||
// If you need to use different assets in different | ||
// environments, specify an object as the first parameter. That | ||
// object's keys should be the environment name and the values | ||
// should be the asset to use in that environment. | ||
// | ||
// If the library that you are including contains AMD or ES6 | ||
// modules that you would like to import into your application | ||
// please specify an object with the list of modules as keys | ||
// along with the exports of each module as its value. | ||
// osf-style | ||
app.import(path.join(app.bowerDirectory, 'osf-style/vendor/prism/prism.css')); | ||
app.import(path.join(app.bowerDirectory, 'osf-style/page.css')); | ||
app.import(path.join(app.bowerDirectory, 'osf-style/css/base.css')); | ||
app.import(path.join(app.bowerDirectory, 'loaders.css/loaders.min.css')); | ||
app.import(path.join(app.bowerDirectory, 'osf-style/img/cos-white2.png'), { | ||
destDir: 'img' | ||
}); | ||
app.import(path.join(app.bowerDirectory, 'dropzone/dist/basic.css')); | ||
app.import(path.join(app.bowerDirectory, 'dropzone/dist/dropzone.css')); | ||
app.import(path.join(app.bowerDirectory, 'dropzone/dist/dropzone.js')); | ||
|
||
app.import('vendor/assets/ember-osf.css'); | ||
|
||
return app.toTree(); | ||
return app.toTree(); | ||
}; |
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,12 @@ | ||
import { moduleFor, test } from 'ember-qunit'; | ||
|
||
moduleFor('controller:quickfiles', 'Unit | Controller | quickfiles', { | ||
// Specify the other units that are required for this test. | ||
// needs: ['controller:foo'] | ||
}); | ||
|
||
// Replace this with your real tests. | ||
test('it exists', function(assert) { | ||
let controller = this.subject(); | ||
assert.ok(controller); | ||
}); |
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 { moduleFor, test } from 'ember-qunit'; | ||
|
||
moduleFor('route:quickfiles', 'Unit | Route | quickfiles', { | ||
// Specify the other units that are required for this test. | ||
// needs: ['controller:foo'] | ||
}); | ||
|
||
test('it exists', function(assert) { | ||
let route = this.subject(); | ||
assert.ok(route); | ||
}); |