Skip to content

Commit

Permalink
Merge branch 'release/0.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescdavis committed Feb 7, 2018
2 parents 7dad0d1 + 2f24597 commit ad87ebe
Show file tree
Hide file tree
Showing 73 changed files with 11,418 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git
**/bower_components
**/dist
**/node_modules
**/tmp
28 changes: 28 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
indent_style = space
indent_size = 4

[*.js]
indent_style = space
indent_size = 4

[*.hbs]
insert_final_newline = false

[*.{diff,md}]
trim_trailing_whitespace = false

[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
10 changes: 10 additions & 0 deletions .ember-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
/**
Ember CLI sends analytics information by default. The data is completely
anonymous, but there are times when you might want to disable this behavior.

Setting `disableAnalytics` to true will prevent any data from being sent.
*/
"disableAnalytics": false,
"usePods": true
}
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
coverage
dist
docs
tmp
13 changes: 13 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module.exports = {
root: true,
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module'
},
extends: '@centerforopenscience/eslint-config/ember',
env: {
browser: true,
es6: true
},
rules: {}
};
34 changes: 34 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<!-- Before you submit your Pull Request, make sure you picked the right branch:
- For hotfixes, select "master" as the target branch
- For new features and non-hotfix bugfixes, select "develop" as the target branch
- For release feature fixes, select the relevant release branch (release/X.Y.Z) as the target branch -->

## Purpose



## Summary of Changes



## Side Effects / Testing Notes



## Ticket

https://openscience.atlassian.net/browse/EOSF-

# Reviewer Checklist

- [ ] meets requirements
- [ ] easy to understand
- [ ] DRY
- [ ] testable and includes test(s)
- [ ] ~~changes described in `CHANGELOG.md`~~ *(don't have initial release yet)*

<!-- Please strike through any checks that you think are not relevant for this PR and indicate why, e.g.
- [ ] ~~easy to understand~~ *(necessarily complex)*
-->
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp

# dependencies
/node_modules
/bower_components

# misc
/.sass-cache
/connect.lock
/coverage/*
/libpeerconnection.log
npm-debug.log*
testem.log
yarn-debug.log
yarn-error.log
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8
8 changes: 8 additions & 0 deletions .stylelintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
extends: stylelint-config-sass-guidelines
rules:
indentation: 4
max-nesting-depth: 2
scss/selector-no-redundant-nesting-selector: null
selector-class-pattern:
- "^([A-Z][a-z]*)+(__[a-z-]+)*(--[a-z-]+)*$"
- { resolveNestedSelectors: true }
12 changes: 12 additions & 0 deletions .template-lintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* eslint-env node */
'use strict';

module.exports = {
extends: 'recommended',

rules: {
'block-indentation': 4,
'bare-strings': true,
'nested-interactive': false,
}
};
30 changes: 30 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
language: node_js

sudo: false
dist: trusty

addons:
chrome: stable
firefox: latest

env:
global:
- SUPPRESS_NO_CONFIG_WARNING=true

cache:
yarn: true
directories:
- node_modules

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH

install:
- yarn --prefer-offline --frozen-lockfile --ignore-engines

script:
- yarn test:cover

after_success:
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
3 changes: 3 additions & 0 deletions .watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"ignore_dirs": ["tmp", "dist"]
}
1 change: 1 addition & 0 deletions .yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--ignore-engines true
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.1.0] - 2018-02-07
### Added
- Quick Files
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
### App code
FROM quay.io/centerforopenscience/ember-base AS app

COPY ./package.json ./yarn.lock ./.yarnrc ./
RUN yarn --frozen-lockfile

COPY ./ ./

ARG GIT_COMMIT=
ENV GIT_COMMIT ${GIT_COMMIT}

RUN yarn build --environment=production

### Dist
FROM node:8-alpine AS dist

RUN mkdir -p /code
WORKDIR /code

COPY --from=app /code/dist /code/dist

### Dev
FROM app AS dev

EXPOSE 4200

CMD ["yarn", "start"]
55 changes: 55 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# ember-osf-web

`master` Build Status: [![Build Status](https://travis-ci.org/CenterForOpenScience/ember-osf-web.svg?branch=master)](https://travis-ci.org/CenterForOpenScience/ember-osf-web)
[![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)

`develop` Build Status: [![Build Status](https://travis-ci.org/CenterForOpenScience/ember-osf-web.svg?branch=develop)](https://travis-ci.org/CenterForOpenScience/ember-osf-web)
[![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)

This README outlines the details of collaborating on this Ember application.
A short introduction of this app could easily go here.

## Prerequisites

You will need the following things properly installed on your computer.

* [Git](https://git-scm.com/)
* [Node.js](https://nodejs.org/) (with NPM)
* [Ember CLI](https://ember-cli.com/)

## Installation

* `git clone <repository-url>` this repository
* `cd ember-osf-web`
* `yarn --frozen-lockfile`

## Running / Development

* `ember serve`
* Visit your app at [http://localhost:4200](http://localhost:4200).

### Code Generators

Make use of the many generators for code, try `ember help generate` for more details

### Running Tests

* `ember test`
* `ember test --server`

### Building

* `ember build` (development)
* `ember build --environment production` (production)

### Deploying

Specify what it takes to deploy your app.

## Further Reading / Useful Links

* [ember.js](http://emberjs.com/)
* [ember-cli](https://ember-cli.com/)
* Development Browser Extensions
* [ember inspector for chrome](https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi)
* [ember inspector for firefox](https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/)
14 changes: 14 additions & 0 deletions app/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Application from '@ember/application';
import loadInitializers from 'ember-load-initializers';
import Resolver from './resolver';
import config from './config/environment';

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

loadInitializers(App, config.modulePrefix);

export default App;
9 changes: 9 additions & 0 deletions app/application/controller.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import $ from 'jquery';
import Controller from '@ember/controller';
import config from 'ember-get-config';
import pathJoin from 'ember-osf/utils/path-join';
import OSFAgnosticAuthControllerMixin from 'ember-osf/mixins/osf-agnostic-auth-controller';

export default Controller.extend(OSFAgnosticAuthControllerMixin, {
signupUrl: `${pathJoin(config.OSF.url, 'register')}?${$.param({ next: window.location.href })}`,
});
13 changes: 13 additions & 0 deletions app/application/route.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Route from '@ember/routing/route';
import { inject as service } from '@ember/service';
import OSFAgnosticAuthRouteMixin from 'ember-osf/mixins/osf-agnostic-auth-route';

export default Route.extend(OSFAgnosticAuthRouteMixin, {
moment: service(),

beforeModel() {
this.get('moment').setTimeZone('UTC');

return this._super(...arguments);
},
});
22 changes: 22 additions & 0 deletions app/application/template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{{title 'OSF'}}
<div>
{{new-osf-navbar signupUrl=signupUrl loginAction=(action 'login')}}

{{maintenance-banner}}
</div>

<br>
<br>
<br>

<div id="main" class="container">
<div class="row">
<div class="col-md-12 {{routeStyleNamespaceClassSet}}" role="main">
{{outlet}}
</div>
</div>
</div>

{{osf-footer}}
{{osf-copyright class='text-center'}}
{{osf-mode-footer}}
Empty file added app/components/.gitkeep
Empty file.
Loading

0 comments on commit ad87ebe

Please sign in to comment.