File tree 35 files changed +8507
-0
lines changed
35 files changed +8507
-0
lines changed Original file line number Diff line number Diff line change
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 = 2
15
+
16
+ [* .hbs ]
17
+ insert_final_newline = false
18
+
19
+ [* .{diff,md} ]
20
+ trim_trailing_whitespace = false
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
1
+ # unconventional js
2
+ /blueprints /* /files /
3
+ /vendor /
4
+
5
+ # compiled output
6
+ /dist /
7
+ /tmp /
8
+
9
+ # dependencies
10
+ /bower_components /
11
+ /node_modules /
12
+
13
+ # misc
14
+ /coverage /
15
+ ! . *
16
+
17
+ # ember-try
18
+ /.node_modules.ember-try /
19
+ /bower.json.ember-try
20
+ /package.json.ember-try
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ root : true ,
3
+ parserOptions : {
4
+ ecmaVersion : 2017 ,
5
+ sourceType : 'module'
6
+ } ,
7
+ plugins : [
8
+ 'ember'
9
+ ] ,
10
+ extends : [
11
+ 'eslint:recommended' ,
12
+ 'plugin:ember/recommended'
13
+ ] ,
14
+ env : {
15
+ browser : true
16
+ } ,
17
+ rules : {
18
+ } ,
19
+ overrides : [
20
+ // node files
21
+ {
22
+ files : [
23
+ '.eslintrc.js' ,
24
+ '.template-lintrc.js' ,
25
+ 'ember-cli-build.js' ,
26
+ 'testem.js' ,
27
+ 'blueprints/*/index.js' ,
28
+ 'config/**/*.js' ,
29
+ 'lib/*/index.js'
30
+ ] ,
31
+ parserOptions : {
32
+ sourceType : 'script' ,
33
+ ecmaVersion : 2015
34
+ } ,
35
+ env : {
36
+ browser : false ,
37
+ node : true
38
+ }
39
+ }
40
+ ]
41
+ } ;
Original file line number Diff line number Diff line change
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
+ /bower_components /
9
+ /node_modules /
10
+
11
+ # misc
12
+ /.sass-cache
13
+ /connect.lock
14
+ /coverage /
15
+ /libpeerconnection.log
16
+ /npm-debug.log *
17
+ /testem.log
18
+ /yarn-error.log
19
+
20
+ # ember-try
21
+ /.node_modules.ember-try /
22
+ /bower.json.ember-try
23
+ /package.json.ember-try
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ module . exports = {
4
+ extends : 'recommended'
5
+ } ;
Original file line number Diff line number Diff line change
1
+ ---
2
+ language : node_js
3
+ node_js :
4
+ - " 6"
5
+
6
+ sudo : false
7
+ dist : trusty
8
+
9
+ addons :
10
+ chrome : stable
11
+
12
+ cache :
13
+ yarn : true
14
+
15
+ env :
16
+ global :
17
+ # See https://git.io/vdao3 for details.
18
+ - JOBS=1
19
+
20
+ before_install :
21
+ - curl -o- -L https://yarnpkg.com/install.sh | bash
22
+ - export PATH=$HOME/.yarn/bin:$PATH
23
+
24
+ install :
25
+ - yarn install --non-interactive
26
+
27
+ script :
28
+ - yarn lint:hbs
29
+ - yarn lint:js
30
+ - yarn test
Original file line number Diff line number Diff line change
1
+ {
2
+ "ignore_dirs" : [" tmp" , " dist" ]
3
+ }
Original file line number Diff line number Diff line change
1
+ # c2jweb
2
+
3
+ This README outlines the details of collaborating on this Ember application.
4
+ A short introduction of this app could easily go here.
5
+
6
+ ## Prerequisites
7
+
8
+ You will need the following things properly installed on your computer.
9
+
10
+ * [ Git] ( https://git-scm.com/ )
11
+ * [ Node.js] ( https://nodejs.org/ )
12
+ * [ Yarn] ( https://yarnpkg.com/ )
13
+ * [ Ember CLI] ( https://ember-cli.com/ )
14
+ * [ Google Chrome] ( https://google.com/chrome/ )
15
+
16
+ ## Installation
17
+
18
+ * ` git clone <repository-url> ` this repository
19
+ * ` cd c2jweb `
20
+ * ` yarn install `
21
+
22
+ ## Running / Development
23
+
24
+ * ` ember serve `
25
+ * Visit your app at [ http://localhost:4200 ] ( http://localhost:4200 ) .
26
+ * Visit your tests at [ http://localhost:4200/tests ] ( http://localhost:4200/tests ) .
27
+
28
+ ### Code Generators
29
+
30
+ Make use of the many generators for code, try ` ember help generate ` for more details
31
+
32
+ ### Running Tests
33
+
34
+ * ` ember test `
35
+ * ` ember test --server `
36
+
37
+ ### Linting
38
+
39
+ * ` yarn lint:hbs `
40
+ * ` yarn lint:js `
41
+ * ` yarn lint:js --fix `
42
+
43
+ ### Building
44
+
45
+ * ` ember build ` (development)
46
+ * ` ember build --environment production ` (production)
47
+
48
+ ### Deploying
49
+
50
+ Specify what it takes to deploy your app.
51
+
52
+ ## Further Reading / Useful Links
53
+
54
+ * [ ember.js] ( https://emberjs.com/ )
55
+ * [ ember-cli] ( https://ember-cli.com/ )
56
+ * Development Browser Extensions
57
+ * [ ember inspector for chrome] ( https://chrome.google.com/webstore/detail/ember-inspector/bmdblncegkenkacieihfhpjfppoconhi )
58
+ * [ ember inspector for firefox] ( https://addons.mozilla.org/en-US/firefox/addon/ember-inspector/ )
Original file line number Diff line number Diff line change
1
+ import Application from '@ember/application' ;
2
+ import Resolver from './resolver' ;
3
+ import loadInitializers from 'ember-load-initializers' ;
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 ;
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ < head >
4
+ < meta charset ="utf-8 ">
5
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
+ < title > C2jweb</ title >
7
+ < meta name ="description " content ="">
8
+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
9
+
10
+ {{content-for "head"}}
11
+
12
+ < link integrity ="" rel ="stylesheet " href ="{{rootURL}}assets/vendor.css ">
13
+ < link integrity ="" rel ="stylesheet " href ="{{rootURL}}assets/c2jweb.css ">
14
+
15
+ {{content-for "head-footer"}}
16
+ </ head >
17
+ < body >
18
+ {{content-for "body"}}
19
+
20
+ < script src ="{{rootURL}}assets/vendor.js "> </ script >
21
+ < script src ="{{rootURL}}assets/c2jweb.js "> </ script >
22
+
23
+ {{content-for "body-footer"}}
24
+ </ body >
25
+ </ html >
Original file line number Diff line number Diff line change
1
+ import Resolver from 'ember-resolver' ;
2
+
3
+ export default Resolver ;
Original file line number Diff line number Diff line change
1
+ import EmberRouter from '@ember/routing/router' ;
2
+ import config from './config/environment' ;
3
+
4
+ const Router = EmberRouter . extend ( {
5
+ location : config . locationType ,
6
+ rootURL : config . rootURL
7
+ } ) ;
8
+
9
+ Router . map ( function ( ) {
10
+ } ) ;
11
+
12
+ export default Router ;
Original file line number Diff line number Diff line change
1
+ {{!-- The following component displays Ember's default welcome message. --}}
2
+ {{ welcome-page }}
3
+ {{!-- Feel free to remove this! --}}
4
+
5
+ {{ outlet }}
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ module . exports = function ( environment ) {
4
+ let ENV = {
5
+ modulePrefix : 'c2jweb' ,
6
+ environment,
7
+ rootURL : '/' ,
8
+ locationType : 'auto' ,
9
+ EmberENV : {
10
+ FEATURES : {
11
+ // Here you can enable experimental features on an ember canary build
12
+ // e.g. 'with-controller': true
13
+ } ,
14
+ EXTEND_PROTOTYPES : {
15
+ // Prevent Ember Data from overriding Date.parse.
16
+ Date : false
17
+ }
18
+ } ,
19
+
20
+ APP : {
21
+ // Here you can pass flags/options to your application instance
22
+ // when it is created
23
+ }
24
+ } ;
25
+
26
+ if ( environment === 'development' ) {
27
+ // ENV.APP.LOG_RESOLVER = true;
28
+ // ENV.APP.LOG_ACTIVE_GENERATION = true;
29
+ // ENV.APP.LOG_TRANSITIONS = true;
30
+ // ENV.APP.LOG_TRANSITIONS_INTERNAL = true;
31
+ // ENV.APP.LOG_VIEW_LOOKUPS = true;
32
+ }
33
+
34
+ if ( environment === 'test' ) {
35
+ // Testem prefers this...
36
+ ENV . locationType = 'none' ;
37
+
38
+ // keep test console output quieter
39
+ ENV . APP . LOG_ACTIVE_GENERATION = false ;
40
+ ENV . APP . LOG_VIEW_LOOKUPS = false ;
41
+
42
+ ENV . APP . rootElement = '#ember-testing' ;
43
+ ENV . APP . autoboot = false ;
44
+ }
45
+
46
+ if ( environment === 'production' ) {
47
+ // here you can enable a production-specific feature
48
+ }
49
+
50
+ return ENV ;
51
+ } ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "jquery-integration" : true
3
+ }
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ const browsers = [
4
+ 'last 1 Chrome versions' ,
5
+ 'last 1 Firefox versions' ,
6
+ 'last 1 Safari versions'
7
+ ] ;
8
+
9
+ const isCI = ! ! process . env . CI ;
10
+ const isProduction = process . env . EMBER_ENV === 'production' ;
11
+
12
+ if ( isCI || isProduction ) {
13
+ browsers . push ( 'ie 11' ) ;
14
+ }
15
+
16
+ module . exports = {
17
+ browsers
18
+ } ;
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+
3
+ const EmberApp = require ( 'ember-cli/lib/broccoli/ember-app' ) ;
4
+
5
+ module . exports = function ( defaults ) {
6
+ let app = new EmberApp ( defaults , {
7
+ // Add options here
8
+ } ) ;
9
+
10
+ // Use `app.import` to add additional libraries to the generated
11
+ // output files.
12
+ //
13
+ // If you need to use different assets in different
14
+ // environments, specify an object as the first parameter. That
15
+ // object's keys should be the environment name and the values
16
+ // should be the asset to use in that environment.
17
+ //
18
+ // If the library that you are including contains AMD or ES6
19
+ // modules that you would like to import into your application
20
+ // please specify an object with the list of modules as keys
21
+ // along with the exports of each module as its value.
22
+
23
+ return app . toTree ( ) ;
24
+ } ;
You can’t perform that action at this time.
0 commit comments