bootstrap-bookingsync-sass 1.0.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.editorconfig +0 -14
- data/.eslintignore +20 -0
- data/.eslintrc.js +105 -0
- data/.gitignore +15 -7
- data/.npmignore +30 -15
- data/.template-lintrc.js +5 -0
- data/.travis.yml +84 -0
- data/CHANGELOG.md +11 -0
- data/CONTRIBUTING.md +26 -0
- data/LICENSE.md +9 -0
- data/README.md +5 -6
- data/addon/components/bsy-alert.js +6 -8
- data/addon/components/bsy-annotated-section.js +4 -4
- data/addon/components/bsy-annotated-section/annotation.js +4 -4
- data/addon/components/bsy-annotated-section/content.js +4 -4
- data/addon/components/bsy-button.js +16 -21
- data/addon/components/bsy-button/close.js +7 -6
- data/addon/components/bsy-checkbox.js +12 -4
- data/addon/components/bsy-icon.js +33 -0
- data/addon/components/bsy-input-addon.js +10 -2
- data/addon/components/bsy-input-addon/addon.js +4 -4
- data/addon/components/bsy-input-addon/input.js +7 -4
- data/addon/components/bsy-input.js +25 -17
- data/addon/components/bsy-modal.js +5 -5
- data/addon/components/bsy-modal/body.js +4 -4
- data/addon/components/bsy-modal/close.js +3 -3
- data/addon/components/bsy-modal/footer.js +4 -4
- data/addon/components/bsy-modal/header.js +4 -4
- data/addon/components/bsy-nav.js +2 -2
- data/addon/components/bsy-nav/item.js +4 -13
- data/addon/components/bsy-nav/link.js +4 -13
- data/addon/components/bsy-popover.js +5 -0
- data/addon/components/bsy-radio-buttons.js +2 -2
- data/addon/components/bsy-radio-buttons/button.js +8 -10
- data/addon/components/bsy-radio.js +5 -5
- data/addon/components/bsy-select-multiple.js +4 -4
- data/addon/components/bsy-select.js +4 -4
- data/addon/components/bsy-sheet.js +2 -2
- data/addon/components/bsy-sheet/header.js +2 -2
- data/addon/components/bsy-switch.js +15 -0
- data/addon/components/bsy-textarea.js +7 -5
- data/addon/templates/components/bsy-alert.hbs +1 -1
- data/addon/templates/components/bsy-button.hbs +9 -1
- data/addon/templates/components/bsy-checkbox.hbs +4 -3
- data/addon/templates/components/bsy-input-addon/input.hbs +3 -3
- data/addon/templates/components/bsy-input.hbs +3 -3
- data/addon/templates/components/bsy-modal.hbs +2 -2
- data/addon/templates/components/bsy-modal/close.hbs +1 -1
- data/addon/templates/components/bsy-modal/header.hbs +1 -1
- data/addon/templates/components/bsy-nav/item.hbs +1 -1
- data/addon/templates/components/bsy-radio-buttons/button.hbs +5 -4
- data/addon/templates/components/bsy-radio.hbs +5 -4
- data/addon/templates/components/bsy-select-multiple.hbs +1 -1
- data/addon/templates/components/bsy-select.hbs +1 -1
- data/addon/templates/components/bsy-switch.hbs +9 -0
- data/addon/templates/components/bsy-textarea.hbs +2 -2
- data/app/components/bsy-alert.js +1 -1
- data/app/components/bsy-icon.js +1 -0
- data/app/components/bsy-popover.js +1 -0
- data/app/components/bsy-sheet.js +1 -1
- data/app/components/bsy-sheet/header.js +1 -1
- data/app/components/bsy-switch.js +1 -0
- data/assets/javascripts/bookingsync/form.js +15 -15
- data/assets/stylesheets/_bootstrap-bookingsync.scss +2 -0
- data/assets/stylesheets/bookingsync/_buttons.scss +6 -0
- data/assets/stylesheets/bookingsync/_ember-toggle.scss +13 -0
- data/assets/stylesheets/bookingsync/_ember-tooltips.scss +15 -0
- data/assets/stylesheets/bookingsync/_form.scss +20 -1
- data/assets/stylesheets/bookingsync/_icons.scss +521 -98
- data/assets/stylesheets/bookingsync/_menu.scss +25 -4
- data/assets/stylesheets/bookingsync/_variables.scss +100 -36
- data/blueprints/ember-cli-bootstrap-bookingsync-sass/index.js +5 -4
- data/config/ember-try.js +82 -35
- data/config/environment.js +13 -3
- data/docs/content/brand/iconography.md +30 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-icons.svg +24 -1
- data/docs/public/ember/fonts/bookingsync/bookingsync-icons.ttf +0 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-icons.woff +0 -0
- data/docs/public/ember/fonts/bookingsync/bookingsync-icons.woff2 +0 -0
- data/ember-cli-build.js +4 -5
- data/index.js +13 -39
- data/lib/bootstrap/bookingsync/engine.rb +4 -2
- data/lib/bootstrap/bookingsync/version.rb +1 -1
- data/package-lock.json +20985 -0
- data/package.json +64 -44
- data/testem.js +25 -0
- data/tests/dummy/app/app.js +2 -6
- data/tests/dummy/app/components/navbar/component.js +5 -0
- data/tests/dummy/app/{templates/navbar.hbs → components/navbar/template.hbs} +0 -0
- data/tests/dummy/app/components/sidebar/component.js +5 -0
- data/tests/dummy/app/{templates/sidebar.hbs → components/sidebar/template.hbs} +0 -0
- data/tests/dummy/app/controllers/index.js +24 -12
- data/tests/dummy/app/index.html +4 -4
- data/tests/dummy/app/router.js +4 -3
- data/tests/dummy/app/templates/application.hbs +3 -2
- data/tests/dummy/app/templates/index.hbs +106 -70
- data/tests/dummy/config/environment.js +12 -7
- data/tests/dummy/config/optional-features.json +3 -0
- data/tests/dummy/config/targets.js +18 -0
- data/tests/{unit → helpers}/.gitkeep +0 -0
- data/tests/index.html +8 -9
- data/tests/integration/components/bsy-alert-test.js +18 -16
- data/tests/integration/components/bsy-button-test.js +18 -16
- data/tests/integration/components/bsy-checkbox-test.js +77 -0
- data/tests/integration/components/bsy-input-test.js +120 -0
- data/tests/integration/components/bsy-nav-test.js +18 -16
- data/tests/integration/components/bsy-nav/item-test.js +18 -16
- data/tests/integration/components/bsy-nav/link-test.js +18 -16
- data/tests/integration/components/bsy-popover-test.js +28 -0
- data/tests/integration/components/bsy-sheet-test.js +18 -16
- data/tests/integration/components/bsy-sheet/header-test.js +18 -16
- data/tests/integration/components/bsy-switch-test.js +21 -0
- data/tests/integration/components/bsy-textarea-test.js +13 -0
- data/tests/test-helper.js +7 -5
- metadata +32 -19
- data/.bowerrc +0 -4
- data/.travis.yaml +0 -34
- data/bower.json +0 -14
- data/testem.json +0 -12
- data/tests/.jshintrc +0 -52
- data/tests/dummy/public/crossdomain.xml +0 -15
- data/tests/helpers/destroy-app.js +0 -5
- data/tests/helpers/module-for-acceptance.js +0 -23
- data/tests/helpers/start-app.js +0 -18
- data/tests/integration/components/bsy-sheet.header-test.js +0 -24
- data/yarn.lock +0 -5356
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2cad711e92ae3a1dbb83a0ab62ee717aa74070c124a9aa7e4d16abca8815decc
|
4
|
+
data.tar.gz: befbd1e23505ad05f3f5ae3a4801d75281f24be275a7b88a4e5744c899807b99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 757da9516b660e7a5cbb540126f82de13313efb732f645e6fcd87f209d285a694032302adbe3f761fbbc2f5831dd369ec5ef0c427add152df74af5a7646b13c7
|
7
|
+
data.tar.gz: fc092a79587c0e61c20c64ac725b59371a9693bd1a31a62f17ffac89d1fe714ebf6b31c028a856e21ec4e5844f6fbc1edb42a9564048ddc2d988d42cd037d151
|
data/.editorconfig
CHANGED
@@ -13,22 +13,8 @@ insert_final_newline = true
|
|
13
13
|
indent_style = space
|
14
14
|
indent_size = 2
|
15
15
|
|
16
|
-
[*.js]
|
17
|
-
indent_style = space
|
18
|
-
indent_size = 2
|
19
|
-
|
20
16
|
[*.hbs]
|
21
17
|
insert_final_newline = false
|
22
|
-
indent_style = space
|
23
|
-
indent_size = 2
|
24
|
-
|
25
|
-
[*.css]
|
26
|
-
indent_style = space
|
27
|
-
indent_size = 2
|
28
|
-
|
29
|
-
[*.html]
|
30
|
-
indent_style = space
|
31
|
-
indent_size = 2
|
32
18
|
|
33
19
|
[*.{diff,md}]
|
34
20
|
trim_trailing_whitespace = false
|
data/.eslintignore
ADDED
@@ -0,0 +1,20 @@
|
|
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
|
data/.eslintrc.js
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
module.exports = {
|
2
|
+
root: true,
|
3
|
+
parser: 'babel-eslint',
|
4
|
+
parserOptions: {
|
5
|
+
ecmaVersion: 2018,
|
6
|
+
sourceType: 'module'
|
7
|
+
},
|
8
|
+
plugins: [
|
9
|
+
'ember'
|
10
|
+
],
|
11
|
+
extends: [
|
12
|
+
'eslint:recommended',
|
13
|
+
'plugin:ember/recommended'
|
14
|
+
],
|
15
|
+
env: {
|
16
|
+
browser: true
|
17
|
+
},
|
18
|
+
rules: {
|
19
|
+
// JS lints
|
20
|
+
'dot-notation': 'error',
|
21
|
+
'space-infix-ops': 'error',
|
22
|
+
'func-call-spacing': 'error',
|
23
|
+
'no-useless-concat': 'error',
|
24
|
+
'no-trailing-spaces': 'error',
|
25
|
+
|
26
|
+
'curly': ['error', 'all'],
|
27
|
+
'semi': ['error', 'always'],
|
28
|
+
'no-empty': ['error'],
|
29
|
+
'comma-style': ['error', 'last'],
|
30
|
+
'comma-dangle': ['error', 'never'],
|
31
|
+
'dot-location': ['error', 'property'],
|
32
|
+
'spaced-comment': ['error', 'always'],
|
33
|
+
'space-in-parens': ['error', 'never'],
|
34
|
+
'operator-linebreak': ['error', 'before'],
|
35
|
+
'space-before-blocks': ['error', 'always'],
|
36
|
+
'object-curly-spacing': ['error', 'always'],
|
37
|
+
'array-bracket-spacing': ['error', 'never'],
|
38
|
+
'max-statements-per-line': ['error', { 'max': 1 }],
|
39
|
+
'no-multiple-empty-lines': ['error', { 'max': 1 }],
|
40
|
+
'space-before-function-paren': ['error', 'never'],
|
41
|
+
|
42
|
+
'indent': ['error', 2, { 'SwitchCase': 1 }],
|
43
|
+
'quotes': ['error', 'single', { 'avoidEscape': true }],
|
44
|
+
'one-var': ['error', { 'uninitialized': 'always', 'initialized': 'never' }],
|
45
|
+
'camelcase': ['error', { 'properties': 'always' }],
|
46
|
+
'key-spacing': ['error', { 'beforeColon': false, 'afterColon': true }],
|
47
|
+
'brace-style': ['error', '1tbs', { 'allowSingleLine': false }],
|
48
|
+
'semi-spacing': ['error', { 'before': false, 'after': true }],
|
49
|
+
'comma-spacing': ['error', { 'before': false, 'after': true }],
|
50
|
+
'space-unary-ops': ['error', { 'words': false, 'nonwords': false }],
|
51
|
+
'keyword-spacing': ['error', { 'overrides': { 'catch': { 'after': false } } }],
|
52
|
+
'consistent-return': ['error', { 'treatUndefinedAsUnspecified': false }],
|
53
|
+
|
54
|
+
// ES6 lints
|
55
|
+
'no-var': 'error',
|
56
|
+
'prefer-spread': 'error',
|
57
|
+
'prefer-template': 'error',
|
58
|
+
'no-useless-rename': 'error',
|
59
|
+
'prefer-destructuring': 'error',
|
60
|
+
|
61
|
+
'eol-last': ['error', 'always'],
|
62
|
+
'arrow-parens': ['error', 'always'],
|
63
|
+
'object-shorthand': ['error', 'always'],
|
64
|
+
|
65
|
+
'new-cap': ['error', { 'capIsNewExceptions': ['A'] }],
|
66
|
+
'generator-star-spacing': ['error', { 'before': false, 'after': true }],
|
67
|
+
|
68
|
+
// eslint-plugin-ember
|
69
|
+
'ember/no-observers': 1,
|
70
|
+
'ember/use-ember-get-and-set': 0,
|
71
|
+
'ember/named-functions-in-promises': 0
|
72
|
+
},
|
73
|
+
overrides: [
|
74
|
+
// node files
|
75
|
+
{
|
76
|
+
files: [
|
77
|
+
'.eslintrc.js',
|
78
|
+
'.template-lintrc.js',
|
79
|
+
'ember-cli-build.js',
|
80
|
+
'index.js',
|
81
|
+
'testem.js',
|
82
|
+
'blueprints/*/index.js',
|
83
|
+
'config/**/*.js',
|
84
|
+
'tests/dummy/config/**/*.js'
|
85
|
+
],
|
86
|
+
excludedFiles: [
|
87
|
+
'addon/**',
|
88
|
+
'addon-test-support/**',
|
89
|
+
'app/**',
|
90
|
+
'tests/dummy/app/**'
|
91
|
+
],
|
92
|
+
parserOptions: {
|
93
|
+
sourceType: 'script'
|
94
|
+
},
|
95
|
+
env: {
|
96
|
+
browser: false,
|
97
|
+
node: true
|
98
|
+
},
|
99
|
+
plugins: ['node'],
|
100
|
+
rules: Object.assign({}, require('eslint-plugin-node').configs.recommended.rules, {
|
101
|
+
// add your custom rules and overrides for node files here
|
102
|
+
})
|
103
|
+
}
|
104
|
+
]
|
105
|
+
};
|
data/.gitignore
CHANGED
@@ -7,19 +7,27 @@ docs/crash.log
|
|
7
7
|
|
8
8
|
## For Ember Addon
|
9
9
|
# compiled output
|
10
|
-
/dist
|
11
|
-
/tmp
|
10
|
+
/dist/
|
11
|
+
/tmp/
|
12
12
|
|
13
13
|
# dependencies
|
14
|
-
/
|
15
|
-
/
|
14
|
+
/bower_components/
|
15
|
+
/node_modules/
|
16
16
|
|
17
17
|
# misc
|
18
|
+
/.env*
|
19
|
+
/.pnp*
|
18
20
|
/.sass-cache
|
19
21
|
/connect.lock
|
20
|
-
/coverage
|
22
|
+
/coverage/
|
21
23
|
/libpeerconnection.log
|
22
|
-
npm-debug.log
|
23
|
-
|
24
|
+
/npm-debug.log*
|
25
|
+
/yarn-error.log
|
26
|
+
/testem.log
|
24
27
|
/bootstrap-bookingsync-sass.iml
|
25
28
|
/.idea/
|
29
|
+
|
30
|
+
# ember-try
|
31
|
+
/.node_modules.ember-try/
|
32
|
+
/bower.json.ember-try
|
33
|
+
/package.json.ember-try
|
data/.npmignore
CHANGED
@@ -1,16 +1,31 @@
|
|
1
|
-
|
1
|
+
# compiled output
|
2
|
+
/dist/
|
3
|
+
/tmp/
|
4
|
+
|
5
|
+
# dependencies
|
6
|
+
/bower_components/
|
7
|
+
|
8
|
+
# misc
|
9
|
+
/.bowerrc
|
10
|
+
/.editorconfig
|
11
|
+
/.ember-cli
|
12
|
+
/.env*
|
13
|
+
/.eslintignore
|
14
|
+
/.eslintrc.js
|
15
|
+
/.gitignore
|
16
|
+
/.template-lintrc.js
|
17
|
+
/.travis.yml
|
18
|
+
/.watchmanconfig
|
19
|
+
/bower.json
|
2
20
|
/config/ember-try.js
|
3
|
-
/
|
4
|
-
/
|
5
|
-
/
|
6
|
-
|
7
|
-
.
|
8
|
-
.
|
9
|
-
|
10
|
-
|
11
|
-
.
|
12
|
-
.
|
13
|
-
.
|
14
|
-
bower.json
|
15
|
-
ember-cli-build.js
|
16
|
-
testem.json
|
21
|
+
/CONTRIBUTING.md
|
22
|
+
/ember-cli-build.js
|
23
|
+
/testem.js
|
24
|
+
/tests/
|
25
|
+
/yarn.lock
|
26
|
+
.gitkeep
|
27
|
+
|
28
|
+
# ember-try
|
29
|
+
/.node_modules.ember-try/
|
30
|
+
/bower.json.ember-try
|
31
|
+
/package.json.ember-try
|
data/.template-lintrc.js
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
---
|
2
|
+
language: node_js
|
3
|
+
node_js:
|
4
|
+
# we recommend testing addons with the same minimum supported node version as Ember CLI
|
5
|
+
# so that your addon works for all apps
|
6
|
+
- "8"
|
7
|
+
|
8
|
+
sudo: false
|
9
|
+
dist: trusty
|
10
|
+
|
11
|
+
addons:
|
12
|
+
chrome: stable
|
13
|
+
|
14
|
+
cache:
|
15
|
+
yarn: true
|
16
|
+
|
17
|
+
env:
|
18
|
+
global:
|
19
|
+
# See https://git.io/vdao3 for details.
|
20
|
+
- JOBS=1
|
21
|
+
|
22
|
+
branches:
|
23
|
+
only:
|
24
|
+
- master
|
25
|
+
# npm version tags
|
26
|
+
- /^v\d+\.\d+\.\d+/
|
27
|
+
|
28
|
+
jobs:
|
29
|
+
fail_fast: true
|
30
|
+
allow_failures:
|
31
|
+
- env: EMBER_TRY_SCENARIO=ember-canary
|
32
|
+
|
33
|
+
before_install:
|
34
|
+
- curl -o- -L https://yarnpkg.com/install.sh | bash
|
35
|
+
- export PATH=$HOME/.yarn/bin:$PATH
|
36
|
+
|
37
|
+
install:
|
38
|
+
- yarn install --no-lockfile --non-interactive
|
39
|
+
|
40
|
+
script:
|
41
|
+
- yarn lint:js
|
42
|
+
# Usually, it's ok to finish the test scenario without reverting
|
43
|
+
# to the addon's original dependency state, skipping "cleanup".
|
44
|
+
- node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
|
45
|
+
|
46
|
+
include:
|
47
|
+
# runs linting and tests with current locked deps
|
48
|
+
|
49
|
+
- stage: "Tests"
|
50
|
+
name: "Tests"
|
51
|
+
script:
|
52
|
+
- npm run lint:hbs
|
53
|
+
- npm run lint:js
|
54
|
+
- npm test
|
55
|
+
|
56
|
+
# we recommend new addons test the current and previous LTS
|
57
|
+
# as well as latest stable release (bonus points to beta/canary)
|
58
|
+
- stage: "Additional Tests"
|
59
|
+
env: EMBER_TRY_SCENARIO=ember-lts-3.4
|
60
|
+
- env: EMBER_TRY_SCENARIO=ember-lts-3.8
|
61
|
+
- env: EMBER_TRY_SCENARIO=ember-release
|
62
|
+
- env: EMBER_TRY_SCENARIO=ember-beta
|
63
|
+
- env: EMBER_TRY_SCENARIO=ember-canary
|
64
|
+
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
|
65
|
+
|
66
|
+
include:
|
67
|
+
# runs linting and tests with current locked deps
|
68
|
+
|
69
|
+
- stage: "Tests"
|
70
|
+
name: "Tests"
|
71
|
+
script:
|
72
|
+
- npm run lint:hbs
|
73
|
+
- npm run lint:js
|
74
|
+
- npm test
|
75
|
+
|
76
|
+
# we recommend new addons test the current and previous LTS
|
77
|
+
# as well as latest stable release (bonus points to beta/canary)
|
78
|
+
- stage: "Additional Tests"
|
79
|
+
env: EMBER_TRY_SCENARIO=ember-lts-3.4
|
80
|
+
- env: EMBER_TRY_SCENARIO=ember-lts-3.8
|
81
|
+
- env: EMBER_TRY_SCENARIO=ember-release
|
82
|
+
- env: EMBER_TRY_SCENARIO=ember-beta
|
83
|
+
- env: EMBER_TRY_SCENARIO=ember-canary
|
84
|
+
- env: EMBER_TRY_SCENARIO=ember-default-with-jquery
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
### master
|
2
2
|
|
3
|
+
### 2.0.0 - 2020-04-06
|
4
|
+
|
5
|
+
* improvements
|
6
|
+
* upgrade ember to 2.18
|
7
|
+
* add icons `icon-activity`, `icon-bars`, `icon-ban`, `icon-calendar-empty`, `icon-calendar-planning`, `icon-child`, `icon-checkmark`, `icon-circle`, `icon-circle-empty`, `icon-couple`, `icon-cross`, `icon-eye`, `icon-inline`, `icon-invoice`, `icon-lock`, `icon-print`, `icon-star-half`, `icon-error`, `icon-arrow-up`, `icon-arrow-right`, `icon-arrow-down`, `icon-arrow-left`, `icon-file`, `icon-download`, `icon-long-arrow-right`, `icon-users-group`, `icon-pencil`, `icon-bubble-dots`, `icon-megaphone`, `icon-calendars`, `icon-guests`, `icon-envelope`, `icon-rentals`, `icon-reservations`, `icon-small-arrow-up`, `icon-small-arrow-right`, `icon-small-arrow-down`, `icon-small-arrow-left`,`icon-add-note`, `icon-reply`, `icon-angle-up`, `icon-angle-right`, `icon-angle-down`, `icon-angle-left`, `icon-plus`, `icon-star`, `icon-star-empty`, `icon-short-arrow-right`, `icon-warning`, `icon-sort-up`, `icon-sort-right`, `icon-sort-down`, `icon-sort-left`, `icon-minus`, `icon-tripadvisor`, `icon-airbnb`, `icon-booking-com`, `icon-homeaway`, `icon-question-circle`, `icon-minus-circle`, `icon-info-emptystate`, `icon-contacts`, `icon-browser-errorstate`
|
8
|
+
* add `bsy-icon`, `bsy-switch` and `bsy-popover` components
|
9
|
+
* add icon option to `bsy-button` component
|
10
|
+
* add `bsy-dialog` service
|
11
|
+
* remove `one-way-controls`
|
12
|
+
* adjust Rails engine to make it work with Sprockets 4
|
13
|
+
|
3
14
|
### 1.0.5 - 2017-10-01
|
4
15
|
|
5
16
|
* improvements
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# How To Contribute
|
2
|
+
|
3
|
+
## Installation
|
4
|
+
|
5
|
+
* `git clone <repository-url>`
|
6
|
+
* `cd my-addon`
|
7
|
+
* `npm install`
|
8
|
+
|
9
|
+
## Linting
|
10
|
+
|
11
|
+
* `npm run lint:hbs`
|
12
|
+
* `npm run lint:js`
|
13
|
+
* `npm run lint:js -- --fix`
|
14
|
+
|
15
|
+
## Running tests
|
16
|
+
|
17
|
+
* `ember test` – Runs the test suite on the current Ember version
|
18
|
+
* `ember test --server` – Runs the test suite in "watch mode"
|
19
|
+
* `ember try:each` – Runs the test suite against multiple Ember versions
|
20
|
+
|
21
|
+
## Running the dummy application
|
22
|
+
|
23
|
+
* `ember serve`
|
24
|
+
* Visit the dummy application at [http://localhost:4200](http://localhost:4200).
|
25
|
+
|
26
|
+
For more information on using ember-cli, visit [https://ember-cli.com/](https://ember-cli.com/).
|
data/LICENSE.md
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2019
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
+
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -231,14 +231,12 @@ Make sure the file has `.scss` extension (or `.sass` for Sass syntax). If you ha
|
|
231
231
|
#### Prerequisites
|
232
232
|
You will need the following things properly installed on your computer.
|
233
233
|
|
234
|
-
* [Node.js](http://nodejs.org/) (latest stable version,
|
235
|
-
* [Bower](http://bower.io/)
|
234
|
+
* [Node.js](http://nodejs.org/) (latest stable version, v10.16.0 at 2019-05-28)
|
236
235
|
* [Ember CLI](http://www.ember-cli.com/)
|
237
|
-
* [
|
236
|
+
* [npm](https://www.npmjs.com/get-npm)
|
238
237
|
|
239
238
|
#### Installation
|
240
|
-
* `
|
241
|
-
* `bower install`
|
239
|
+
* `npm install`
|
242
240
|
|
243
241
|
#### Starting
|
244
242
|
* `ember server`
|
@@ -252,7 +250,8 @@ You will need the following things properly installed on your computer.
|
|
252
250
|
|
253
251
|
### Building
|
254
252
|
|
255
|
-
|
253
|
+
Usage
|
254
|
+
------------------------------------------------------------------------------
|
256
255
|
|
257
256
|
### Deploying Ember documentation to global styleguide documentation
|
258
257
|
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import Component from '@ember/component';
|
2
|
+
import { computed } from '@ember/object';
|
3
3
|
import layout from '../templates/components/bsy-alert';
|
4
4
|
|
5
|
-
export default
|
5
|
+
export default Component.extend({
|
6
6
|
layout,
|
7
7
|
classNames: 'alert',
|
8
8
|
classNameBindings: ['typeClassName', 'dismissibleClassName'],
|
@@ -11,17 +11,15 @@ export default Ember.Component.extend({
|
|
11
11
|
dismissible: false,
|
12
12
|
|
13
13
|
typeClassName: computed('type', function() {
|
14
|
-
return
|
14
|
+
return `alert-${this.type}`;
|
15
15
|
}),
|
16
16
|
|
17
17
|
dismissibleClassName: computed('dismissible', function() {
|
18
|
-
|
19
|
-
return 'alert-dismissible';
|
20
|
-
}
|
18
|
+
return this.dismissible ? 'alert-dismissible' : '';
|
21
19
|
}),
|
22
20
|
|
23
21
|
actions: {
|
24
|
-
dismiss
|
22
|
+
dismiss() {
|
25
23
|
this._renderNode.destroy();
|
26
24
|
}
|
27
25
|
}
|