diff --git a/.ember-cli b/.ember-cli
index ee64cfe..4ccb4bf 100644
--- a/.ember-cli
+++ b/.ember-cli
@@ -5,5 +5,11 @@
Setting `disableAnalytics` to true will prevent any data from being sent.
*/
- "disableAnalytics": false
+ "disableAnalytics": false,
+
+ /**
+ Setting `isTypeScriptProject` to true will force the blueprint generators to generate TypeScript
+ rather than JavaScript by default, when a TypeScript version of a given blueprint is available.
+ */
+ "isTypeScriptProject": false
}
diff --git a/.env-sample b/.env-sample
index 807a242..e69de29 100644
--- a/.env-sample
+++ b/.env-sample
@@ -1,4 +0,0 @@
-API_KEY="**Update this!** Copy this file and save as .env, rewrite this value with Firebase Api Key"
-AUTH_DOMAIN="**Update this!** e.g.: your-app.firebaseapp.com"
-DATABASE_URL="**Update this!** e.g.: https://some-app.firebaseio.com"
-PROJECT_ID="**Update this!** Add your project ID here e.g.: project-12341234"
diff --git a/.eslintignore b/.eslintignore
index 72df373..d474a40 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -13,8 +13,13 @@
# misc
/coverage/
!.*
+.*/
+.eslintcache
# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
+/npm-shrinkwrap.json.ember-try
/package.json.ember-try
+/package-lock.json.ember-try
+/yarn.lock.ember-try
diff --git a/.eslintrc.js b/.eslintrc.js
index 269c19d..f8cad9e 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,3 +1,5 @@
+'use strict';
+
module.exports = {
root: true,
parser: 'babel-eslint',
@@ -8,7 +10,7 @@ module.exports = {
legacyDecorators: true,
},
},
- plugins: ['ember', 'prettier'],
+ plugins: ['ember'],
extends: ['plugin:prettier/recommended', 'eslint:recommended', 'plugin:ember/recommended'],
env: {
browser: true,
@@ -21,14 +23,15 @@ module.exports = {
// node files
{
files: [
- '.eslintrc.js',
- '.template-lintrc.js',
- 'ember-cli-build.js',
- 'testem.js',
- 'blueprints/*/index.js',
- 'config/**/*.js',
- 'lib/*/index.js',
- 'server/**/*.js',
+ './.eslintrc.js',
+ './.prettierrc.js.js',
+ './.template-lintrc.js',
+ './ember-cli-build.js',
+ './testem.js',
+ './blueprints/*/index.js',
+ './config/**/*.js',
+ './lib/*/index.js',
+ './server/**/*.js',
],
parserOptions: {
sourceType: 'script',
@@ -38,13 +41,17 @@ module.exports = {
node: true,
},
plugins: ['node'],
- rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
- // add your custom rules and overrides for node files here
-
+ extends: ['plugin:node/recommended'],
+ rules: {
// this can be removed once the following is fixed
// https://github.com/mysticatea/eslint-plugin-node/issues/77
'node/no-unpublished-require': 'off',
- }),
+ },
+ },
+ {
+ // test files
+ files: ['tests/**/*-test.{js,ts}'],
+ extends: ['plugin:qunit/recommended'],
},
],
};
diff --git a/.gitignore b/.gitignore
index cd668a1..7790924 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,4 +31,12 @@ jsconfig.json
# ember-try
/.node_modules.ember-try/
/bower.json.ember-try
+/npm-shrinkwrap.json.ember-try
/package.json.ember-try
+/package-lock.json.ember-try
+/yarn.lock.ember-try
+
+# broccoli-debug
+/DEBUG/
+
+.eslintcache
diff --git a/.prettierignore b/.prettierignore
index d1045f3..cfaeb52 100644
--- a/.prettierignore
+++ b/.prettierignore
@@ -1,7 +1,30 @@
+# unconventional js
+/blueprints/*/files/
+/vendor/
+
+# compiled output
+/dist/
+/tmp/
+
+# dependencies
+/bower_components/
+/node_modules/
+
+# misc
+/coverage/
+!.*
+.eslintcache
+.lint-todo/
+
+# ember-try
+/.node_modules.ember-try/
+/bower.json.ember-try
+/npm-shrinkwrap.json.ember-try
+/package.json.ember-try
+/package-lock.json.ember-try
+/yarn.lock.ember-try
+
+
.firebase
-coverage
-dist
-node_modules
-tmp
yarn.lock
firebase.json
diff --git a/.prettierrc b/.prettierrc
deleted file mode 100644
index 3f584f6..0000000
--- a/.prettierrc
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "printWidth": 120,
- "singleQuote": true
-}
diff --git a/.prettierrc.js b/.prettierrc.js
new file mode 100644
index 0000000..0429736
--- /dev/null
+++ b/.prettierrc.js
@@ -0,0 +1,6 @@
+'use strict';
+
+module.exports = {
+ printWidth: 120,
+ singleQuote: true,
+};
diff --git a/.template-lintrc.js b/.template-lintrc.js
index f9a8ac4..f35f61c 100644
--- a/.template-lintrc.js
+++ b/.template-lintrc.js
@@ -1,5 +1,5 @@
'use strict';
module.exports = {
- extends: ['recommended', 'octane'],
+ extends: 'recommended',
};
diff --git a/README.md b/README.md
index dccfa82..430102d 100644
--- a/README.md
+++ b/README.md
@@ -24,8 +24,6 @@ Live demo: [library-app.firebaseapp.com](https://library-app.firebaseapp.com/)
I assume, you have Node.js on your computer. [Node.js installation](http://yoember.com/nodejs/the-best-way-to-install-node-js/)
-- Please create an app on [Firebase](http://www.firebase.com) first. You can register there with one click and create a new app. You have to setup this app name in `config/environment.js`. (This will be your own cloud based database.)
-
- Clone this repository in your project folder
```
@@ -41,15 +39,13 @@ $ cd library-app
- Install node packages
```
-$ npm install
+$ yarn install
```
-- Copy `.env-sample` file and save as `.env`. Update the `API_KEY` and `PROJECT_ID`.
-
* Launch the application with Ember server.
```
-$ ember server
+$ yarn start
```
- Open the application in your browser
diff --git a/app/adapters/application.js b/app/adapters/application.js
index 1ef46e8..efd89c2 100644
--- a/app/adapters/application.js
+++ b/app/adapters/application.js
@@ -1,3 +1 @@
-import RealtimeDatabaseAdapter from 'emberfire/adapters/realtime-database';
-
-export default class ApplicationAdapter extends RealtimeDatabaseAdapter {}
+export { default } from 'ember-local-storage/adapters/local';
diff --git a/app/app.js b/app/app.js
index d8e2088..e10556d 100644
--- a/app/app.js
+++ b/app/app.js
@@ -1,7 +1,7 @@
import Application from '@ember/application';
import Resolver from 'ember-resolver';
import loadInitializers from 'ember-load-initializers';
-import config from './config/environment';
+import config from 'library-app/config/environment';
export default class App extends Application {
modulePrefix = config.modulePrefix;
diff --git a/app/components/abc-buttons.hbs b/app/components/abc-buttons.hbs
index 9fe72df..4b7baed 100644
--- a/app/components/abc-buttons.hbs
+++ b/app/components/abc-buttons.hbs
@@ -1,3 +1,3 @@
- {{#each this.atoz as |letter|}}
-
Address: {{@item.address}}
-Phone: {{@item.phone}}
+Address: {{@item.address}}
+Phone: {{@item.phone}}
ID | diff --git a/app/templates/admin/invitations.hbs b/app/templates/admin/invitations.hbs index bc27c1a..ef33323 100644 --- a/app/templates/admin/invitations.hbs +++ b/app/templates/admin/invitations.hbs @@ -1,5 +1,5 @@
---|
ID | diff --git a/app/templates/admin/seeder.hbs b/app/templates/admin/seeder.hbs index ece04a5..82a7b9b 100644 --- a/app/templates/admin/seeder.hbs +++ b/app/templates/admin/seeder.hbs @@ -1,17 +1,17 @@
---|