Skip to content

Commit 1a30ed6

Browse files
committed
refactor: move custom tooltips to seperate folder
1 parent 970449f commit 1a30ed6

Some content is hidden

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

42 files changed

+8491
-8046
lines changed

custom-tooltips/.babelrc.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
presets: [
3+
[
4+
'@babel/env',
5+
{
6+
loose: true,
7+
modules: false,
8+
exclude: ['transform-typeof-symbol']
9+
}
10+
]
11+
],
12+
plugins: [
13+
process.env.PLUGINS && 'transform-es2015-modules-strip',
14+
['@babel/proposal-object-rest-spread', {loose: true, useBuiltIns: true}]
15+
].filter(Boolean),
16+
env: {
17+
test: {
18+
plugins: [ 'istanbul', "external-helpers" ]
19+
}
20+
}
21+
};

custom-tooltips/.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
end_of_line = lf
7+
indent_size = 2
8+
indent_style = space
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
12+
[*.md]
13+
max_line_length = off
14+
trim_trailing_whitespace = false

custom-tooltips/.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
**/*.min.js
2+
**/dist/

custom-tooltips/.eslintrc.json

Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
{
2+
"root": true,
3+
"parser": "babel-eslint",
4+
"env": {
5+
"browser": true,
6+
"es6": true
7+
},
8+
"extends": "eslint:recommended",
9+
"plugins": ["compat"],
10+
"rules": {
11+
// Possible Errors
12+
"no-await-in-loop": "error",
13+
"no-extra-parens": "error",
14+
"no-prototype-builtins": "error",
15+
"no-template-curly-in-string": "error",
16+
"compat/compat": "error",
17+
"valid-jsdoc": "error",
18+
19+
// Best Practices
20+
"accessor-pairs": "error",
21+
"array-callback-return": "error",
22+
"block-scoped-var": "error",
23+
"class-methods-use-this": "off",
24+
"complexity": "error",
25+
"consistent-return": "error",
26+
"curly": "error",
27+
"default-case": "error",
28+
"dot-location": ["error", "property"],
29+
"dot-notation": "error",
30+
"eqeqeq": "error",
31+
"guard-for-in": "error",
32+
"no-alert": "error",
33+
"no-caller": "error",
34+
"no-div-regex": "error",
35+
"no-else-return": "error",
36+
"no-empty-function": "error",
37+
"no-eq-null": "error",
38+
"no-eval": "error",
39+
"no-extend-native": "error",
40+
"no-extra-bind": "error",
41+
"no-extra-label": "error",
42+
"no-floating-decimal": "error",
43+
"no-implicit-coercion": "error",
44+
"no-implicit-globals": "error",
45+
"no-implied-eval": "error",
46+
"no-invalid-this": "off",
47+
"no-iterator": "error",
48+
"no-labels": "error",
49+
"no-lone-blocks": "error",
50+
"no-loop-func": "error",
51+
"no-magic-numbers": ["error", {
52+
"ignore": [-1, 0, 1],
53+
"ignoreArrayIndexes": true
54+
}
55+
],
56+
"no-multi-spaces": ["error", {
57+
"ignoreEOLComments": true,
58+
"exceptions": {
59+
"AssignmentExpression": true,
60+
"ArrowFunctionExpression": true,
61+
"CallExpression": true,
62+
"VariableDeclarator": true
63+
}
64+
}
65+
],
66+
"no-multi-str": "error",
67+
"no-new": "error",
68+
"no-new-func": "error",
69+
"no-new-wrappers": "error",
70+
"no-octal-escape": "error",
71+
"no-param-reassign": "off",
72+
"no-proto": "error",
73+
"no-restricted-properties": "error",
74+
"no-return-assign": "error",
75+
"no-return-await": "error",
76+
"no-script-url": "error",
77+
"no-self-compare": "error",
78+
"no-sequences": "error",
79+
"no-throw-literal": "error",
80+
"no-unmodified-loop-condition": "error",
81+
"no-unused-expressions": "error",
82+
"no-useless-call": "error",
83+
"no-useless-concat": "error",
84+
"no-useless-return": "error",
85+
"no-void": "error",
86+
"no-warning-comments": "off",
87+
"no-with": "error",
88+
"prefer-promise-reject-errors": "error",
89+
"radix": "error",
90+
"require-await": "error",
91+
"vars-on-top": "error",
92+
"wrap-iife": "error",
93+
"yoda": "error",
94+
95+
// Strict Mode
96+
"strict": "error",
97+
98+
// Variables
99+
"init-declarations": "off",
100+
"no-catch-shadow": "error",
101+
"no-label-var": "error",
102+
"no-restricted-globals": "error",
103+
"no-shadow": "off",
104+
"no-shadow-restricted-names": "error",
105+
"no-undef-init": "error",
106+
"no-undefined": "error",
107+
"no-use-before-define": "off",
108+
109+
// Node.js and CommonJS
110+
"callback-return": "off",
111+
"global-require": "error",
112+
"handle-callback-err": "error",
113+
"no-mixed-requires": "error",
114+
"no-new-require": "error",
115+
"no-path-concat": "error",
116+
"no-process-env": "error",
117+
"no-process-exit": "error",
118+
"no-restricted-modules": "error",
119+
"no-sync": "error",
120+
121+
// Stylistic Issues
122+
"array-bracket-spacing": "error",
123+
"block-spacing": "error",
124+
"brace-style": "error",
125+
"camelcase": "error",
126+
"capitalized-comments": "off",
127+
"comma-dangle": "error",
128+
"comma-spacing": "error",
129+
"comma-style": "error",
130+
"computed-property-spacing": "error",
131+
"consistent-this": "error",
132+
"eol-last": "error",
133+
"func-call-spacing": "error",
134+
"func-name-matching": "error",
135+
"func-names": "off",
136+
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
137+
"id-blacklist": "error",
138+
"id-length": "off",
139+
"id-match": "error",
140+
"indent": ["error", 2, { "SwitchCase": 1 }],
141+
"jsx-quotes": "error",
142+
"key-spacing": "off",
143+
"keyword-spacing": "error",
144+
"linebreak-style": 0,
145+
"line-comment-position": "off",
146+
"lines-around-comment": "off",
147+
"lines-around-directive": "error",
148+
"max-depth": ["error", 10],
149+
"max-len": "off",
150+
"max-lines": "off",
151+
"max-nested-callbacks": "error",
152+
"max-params": "off",
153+
"max-statements": "off",
154+
"max-statements-per-line": "error",
155+
"multiline-ternary": "off",
156+
"new-cap": ["error", { "capIsNewExceptionPattern": "$.*" }],
157+
"newline-after-var": "off",
158+
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 5 }],
159+
"new-parens": "error",
160+
"no-array-constructor": "error",
161+
"no-bitwise": ["error", { "int32Hint": true }],
162+
"no-continue": "off",
163+
"no-inline-comments": "off",
164+
"no-lonely-if": "error",
165+
"no-mixed-operators": "off",
166+
"no-multi-assign": "error",
167+
"no-multiple-empty-lines": "error",
168+
"nonblock-statement-body-position": "error",
169+
"no-negated-condition": "off",
170+
"no-nested-ternary": "error",
171+
"no-new-object": "error",
172+
"no-plusplus": "off",
173+
"no-restricted-syntax": "error",
174+
"no-tabs": "error",
175+
"no-ternary": "off",
176+
"no-trailing-spaces": "error",
177+
"no-underscore-dangle": "off",
178+
"no-unneeded-ternary": "error",
179+
"no-whitespace-before-property": "error",
180+
"object-curly-newline": ["error", { "minProperties": 1 }],
181+
"object-curly-spacing": ["error", "always"],
182+
"object-property-newline": "error",
183+
"one-var": ["error", "never"],
184+
"one-var-declaration-per-line": "error",
185+
"operator-assignment": "error",
186+
"operator-linebreak": "error",
187+
"padded-blocks": ["error", "never"],
188+
"padding-line-between-statements": "off",
189+
"quote-props": ["error", "as-needed"],
190+
"quotes": ["error", "single"],
191+
"require-jsdoc": "off",
192+
"semi": ["error", "never"],
193+
"semi-spacing": "error",
194+
"sort-keys": "off",
195+
"sort-vars": "error",
196+
"space-before-blocks": "error",
197+
"space-before-function-paren": ["error", {
198+
"anonymous": "always",
199+
"named": "never"
200+
}],
201+
"space-in-parens": "error",
202+
"space-infix-ops": "error",
203+
"space-unary-ops": "error",
204+
"spaced-comment": "error",
205+
"template-tag-spacing": "error",
206+
"unicode-bom": "error",
207+
"wrap-regex": "off",
208+
209+
// ECMAScript 6
210+
"arrow-body-style": ["error", "as-needed"],
211+
"arrow-parens": "error",
212+
"arrow-spacing": "error",
213+
"generator-star-spacing": "error",
214+
"no-confusing-arrow": "error",
215+
"no-duplicate-imports": "error",
216+
"no-restricted-imports": "error",
217+
"no-useless-computed-key": "error",
218+
"no-useless-constructor": "error",
219+
"no-useless-rename": "error",
220+
"no-var": "error",
221+
"object-shorthand": "error",
222+
"prefer-arrow-callback": "error",
223+
"prefer-const": "error",
224+
"prefer-destructuring": "off",
225+
"prefer-numeric-literals": "error",
226+
"prefer-rest-params": "error",
227+
"prefer-spread": "error",
228+
"prefer-template": "error",
229+
"rest-spread-spacing": "error",
230+
"sort-imports": "error",
231+
"symbol-description": "error",
232+
"template-curly-spacing": "error",
233+
"yield-star-spacing": "error"
234+
}
235+
}

custom-tooltips/.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.css text eol=lf
2+
*.js text eol=lf

custom-tooltips/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
.idea
3+
node_modules

custom-tooltips/CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## [CoreUI](https:/coreui.io) Chart.js CustomTooltips plugin
2+
3+
### v1.3.1
4+
- fix: tooltip position out of view area
5+
6+
##### dependencies update
7+
- update `@babel/core` to `^7.4.5`
8+
- update `@babel/plugin-proposal-object-rest-spread` to `^7.4.4`
9+
- update `@babel/cli` to `^7.4.4`
10+
- update `@babel/preset-env` to `^7.4.5`
11+
- update `babel-eslint` to `^10.0.1`
12+
- update `babel-plugin-istanbul` to `^5.1.4`
13+
- update `babel-preset-minify` to `^0.5.0`
14+
- update `eslint` to `^5.16.0`
15+
- update `eslint-plugin-compat` to `^3.1.0`
16+
- update `nodemon` to `^1.19.1`
17+
- update `rollup` to `^1.12.5`
18+
- update `rollup-plugin-babel-minify` to `^8.0.0`
19+
- update `rollup-plugin-commonjs` to `^10.0.0`
20+
- update `rollup-plugin-node-resolve` to `^5.0.0`
21+
- update `rollup-plugin-uglify` to `^6.0.2`
22+
- update `uglify-js` to `^3.5.1`
23+
- chore(rollup.config): update `uglify` plugin call
24+
25+
### v1.3.0
26+
- fix: named exports
27+
28+
##### dependencies update
29+
- update `@babel/cli` to `^7.4.3`
30+
- update `@babel/core` to `^7.4.3`
31+
- update `@babel/plugin-proposal-object-rest-spread` to `^7.4.3`
32+
- update `@babel/preset-env` to `^7.4.3`
33+
- update `babel-eslint` to `^10.0.1`
34+
- update `rollup-plugin-babel` to `^4.3.2`
35+
36+
### v1.2.0
37+
- chore: add `rollup.js` module bundler
38+
- chore: adjust linebreak-style eslint rule
39+
- refactor: extract _setCanvasId function
40+
- refactor: generate and set random _chart.canvas.id if none
41+
- chore: dependencies update

custom-tooltips/LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
The MIT License (MIT)
3+
4+
Copyright (c) 2019 creativeLabs Lukasz Holeczek
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in
14+
all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
THE SOFTWARE.

0 commit comments

Comments
 (0)