Skip to content

Commit ad87ebe

Browse files
committed
Merge branch 'release/0.1.0'
2 parents 7dad0d1 + 2f24597 commit ad87ebe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+11418
-0
lines changed

.dockerignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.git
2+
**/bower_components
3+
**/dist
4+
**/node_modules
5+
**/tmp

.editorconfig

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
indent_style = space
14+
indent_size = 4
15+
16+
[*.js]
17+
indent_style = space
18+
indent_size = 4
19+
20+
[*.hbs]
21+
insert_final_newline = false
22+
23+
[*.{diff,md}]
24+
trim_trailing_whitespace = false
25+
26+
[{package.json,.travis.yml}]
27+
indent_style = space
28+
indent_size = 2

.ember-cli

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
/**
3+
Ember CLI sends analytics information by default. The data is completely
4+
anonymous, but there are times when you might want to disable this behavior.
5+
6+
Setting `disableAnalytics` to true will prevent any data from being sent.
7+
*/
8+
"disableAnalytics": false,
9+
"usePods": true
10+
}

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
coverage
2+
dist
3+
docs
4+
tmp

.eslintrc.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module.exports = {
2+
root: true,
3+
parserOptions: {
4+
ecmaVersion: 2017,
5+
sourceType: 'module'
6+
},
7+
extends: '@centerforopenscience/eslint-config/ember',
8+
env: {
9+
browser: true,
10+
es6: true
11+
},
12+
rules: {}
13+
};

.github/PULL_REQUEST_TEMPLATE.md

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<!-- Before you submit your Pull Request, make sure you picked the right branch:
2+
3+
- For hotfixes, select "master" as the target branch
4+
- For new features and non-hotfix bugfixes, select "develop" as the target branch
5+
- For release feature fixes, select the relevant release branch (release/X.Y.Z) as the target branch -->
6+
7+
## Purpose
8+
9+
10+
11+
## Summary of Changes
12+
13+
14+
15+
## Side Effects / Testing Notes
16+
17+
18+
19+
## Ticket
20+
21+
https://openscience.atlassian.net/browse/EOSF-
22+
23+
# Reviewer Checklist
24+
25+
- [ ] meets requirements
26+
- [ ] easy to understand
27+
- [ ] DRY
28+
- [ ] testable and includes test(s)
29+
- [ ] ~~changes described in `CHANGELOG.md`~~ *(don't have initial release yet)*
30+
31+
<!-- Please strike through any checks that you think are not relevant for this PR and indicate why, e.g.
32+
33+
- [ ] ~~easy to understand~~ *(necessarily complex)*
34+
-->

.gitignore

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
7+
# dependencies
8+
/node_modules
9+
/bower_components
10+
11+
# misc
12+
/.sass-cache
13+
/connect.lock
14+
/coverage/*
15+
/libpeerconnection.log
16+
npm-debug.log*
17+
testem.log
18+
yarn-debug.log
19+
yarn-error.log

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8

.stylelintrc.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
extends: stylelint-config-sass-guidelines
2+
rules:
3+
indentation: 4
4+
max-nesting-depth: 2
5+
scss/selector-no-redundant-nesting-selector: null
6+
selector-class-pattern:
7+
- "^([A-Z][a-z]*)+(__[a-z-]+)*(--[a-z-]+)*$"
8+
- { resolveNestedSelectors: true }

.template-lintrc.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* eslint-env node */
2+
'use strict';
3+
4+
module.exports = {
5+
extends: 'recommended',
6+
7+
rules: {
8+
'block-indentation': 4,
9+
'bare-strings': true,
10+
'nested-interactive': false,
11+
}
12+
};

.travis.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
language: node_js
2+
3+
sudo: false
4+
dist: trusty
5+
6+
addons:
7+
chrome: stable
8+
firefox: latest
9+
10+
env:
11+
global:
12+
- SUPPRESS_NO_CONFIG_WARNING=true
13+
14+
cache:
15+
yarn: true
16+
directories:
17+
- node_modules
18+
19+
before_install:
20+
- curl -o- -L https://yarnpkg.com/install.sh | bash
21+
- export PATH=$HOME/.yarn/bin:$PATH
22+
23+
install:
24+
- yarn --prefer-offline --frozen-lockfile --ignore-engines
25+
26+
script:
27+
- yarn test:cover
28+
29+
after_success:
30+
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js

.watchmanconfig

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"ignore_dirs": ["tmp", "dist"]
3+
}

.yarnrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--ignore-engines true

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
7+
## [0.1.0] - 2018-02-07
8+
### Added
9+
- Quick Files

Dockerfile

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
### App code
2+
FROM quay.io/centerforopenscience/ember-base AS app
3+
4+
COPY ./package.json ./yarn.lock ./.yarnrc ./
5+
RUN yarn --frozen-lockfile
6+
7+
COPY ./ ./
8+
9+
ARG GIT_COMMIT=
10+
ENV GIT_COMMIT ${GIT_COMMIT}
11+
12+
RUN yarn build --environment=production
13+
14+
### Dist
15+
FROM node:8-alpine AS dist
16+
17+
RUN mkdir -p /code
18+
WORKDIR /code
19+
20+
COPY --from=app /code/dist /code/dist
21+
22+
### Dev
23+
FROM app AS dev
24+
25+
EXPOSE 4200
26+
27+
CMD ["yarn", "start"]

README.md

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# ember-osf-web
2+
3+
`master` Build Status: [![Build Status](https://travis-ci.org/CenterForOpenScience/ember-osf-web.svg?branch=master)](https://travis-ci.org/CenterForOpenScience/ember-osf-web)
4+
[![Coverage Status](https://coveralls.io/repos/github/CenterForOpenScience/ember-osf-web/badge.svg?branch=master)](https://coveralls.io/github/CenterForOpenScience/ember-osf-web?branch=master)
5+
6+
`develop` Build Status: [![Build Status](https://travis-ci.org/CenterForOpenScience/ember-osf-web.svg?branch=develop)](https://travis-ci.org/CenterForOpenScience/ember-osf-web)
7+
[![Coverage Status](https://coveralls.io/repos/github/CenterForOpenScience/ember-osf-web/badge.svg?branch=develop)](https://coveralls.io/github/CenterForOpenScience/ember-osf-web?branch=develop)
8+
9+
This README outlines the details of collaborating on this Ember application.
10+
A short introduction of this app could easily go here.
11+
12+
## Prerequisites
13+
14+
You will need the following things properly installed on your computer.
15+
16+
* [Git](https://git-scm.com/)
17+
* [Node.js](https://nodejs.org/) (with NPM)
18+
* [Ember CLI](https://ember-cli.com/)
19+
20+
## Installation
21+
22+
* `git clone <repository-url>` this repository
23+
* `cd ember-osf-web`
24+
* `yarn --frozen-lockfile`
25+
26+
## Running / Development
27+
28+
* `ember serve`
29+
* Visit your app at [http://localhost:4200](http://localhost:4200).
30+
31+
### Code Generators
32+
33+
Make use of the many generators for code, try `ember help generate` for more details
34+
35+
### Running Tests
36+
37+
* `ember test`
38+
* `ember test --server`
39+
40+
### Building
41+
42+
* `ember build` (development)
43+
* `ember build --environment production` (production)
44+
45+
### Deploying
46+
47+
Specify what it takes to deploy your app.
48+
49+
## Further Reading / Useful Links
50+
51+
* [ember.js](http://emberjs.com/)
52+
* [ember-cli](https://ember-cli.com/)
53+
* Development Browser Extensions
54+
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
55+
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)

app/app.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import Application from '@ember/application';
2+
import loadInitializers from 'ember-load-initializers';
3+
import Resolver from './resolver';
4+
import config from './config/environment';
5+
6+
const App = Application.extend({
7+
modulePrefix: config.modulePrefix,
8+
podModulePrefix: config.podModulePrefix,
9+
Resolver,
10+
});
11+
12+
loadInitializers(App, config.modulePrefix);
13+
14+
export default App;

app/application/controller.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import $ from 'jquery';
2+
import Controller from '@ember/controller';
3+
import config from 'ember-get-config';
4+
import pathJoin from 'ember-osf/utils/path-join';
5+
import OSFAgnosticAuthControllerMixin from 'ember-osf/mixins/osf-agnostic-auth-controller';
6+
7+
export default Controller.extend(OSFAgnosticAuthControllerMixin, {
8+
signupUrl: `${pathJoin(config.OSF.url, 'register')}?${$.param({ next: window.location.href })}`,
9+
});

app/application/route.js

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Route from '@ember/routing/route';
2+
import { inject as service } from '@ember/service';
3+
import OSFAgnosticAuthRouteMixin from 'ember-osf/mixins/osf-agnostic-auth-route';
4+
5+
export default Route.extend(OSFAgnosticAuthRouteMixin, {
6+
moment: service(),
7+
8+
beforeModel() {
9+
this.get('moment').setTimeZone('UTC');
10+
11+
return this._super(...arguments);
12+
},
13+
});

app/application/template.hbs

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{{title 'OSF'}}
2+
<div>
3+
{{new-osf-navbar signupUrl=signupUrl loginAction=(action 'login')}}
4+
5+
{{maintenance-banner}}
6+
</div>
7+
8+
<br>
9+
<br>
10+
<br>
11+
12+
<div id="main" class="container">
13+
<div class="row">
14+
<div class="col-md-12 {{routeStyleNamespaceClassSet}}" role="main">
15+
{{outlet}}
16+
</div>
17+
</div>
18+
</div>
19+
20+
{{osf-footer}}
21+
{{osf-copyright class='text-center'}}
22+
{{osf-mode-footer}}

app/components/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)