Skip to content

Commit 6e5835c

Browse files
committed
v2 initial release
1 parent fb100f3 commit 6e5835c

21 files changed

+2153
-12940
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = false
12+
insert_final_newline = false

.eslintignore

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

.eslintrc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser', // Specifies the ESLint parser
3+
parserOptions: {
4+
ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features
5+
sourceType: 'module', // Allows for the use of imports
6+
extraFileExtensions: ['.vue'],
7+
ecmaFeatures: {
8+
jsx: true,
9+
},
10+
},
11+
extends: [
12+
'plugin:@typescript-eslint/recommended', // Uses the recommended rules from the @typescript-eslint/eslint-plugin
13+
'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
14+
'eslint:recommended',
15+
'plugin:vue/vue3-recommended',
16+
],
17+
// plugins: ['@typescript-eslint'],
18+
rules: {
19+
// Place to specify ESLint rules. Can be used to overwrite rules specified from the extended configs
20+
// e.g. "@typescript-eslint/explicit-function-return-type": "off",
21+
},
22+
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Enforce Unix newlines
2+
* text=auto eol=lf

.gitignore

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,5 @@
11
.DS_Store
2+
.git
3+
.idea
24
node_modules
35
dist
4-
5-
# local env files
6-
.env.local
7-
.env.*.local
8-
9-
# Log files
10-
npm-debug.log*
11-
yarn-debug.log*
12-
yarn-error.log*
13-
14-
# Editor directories and files
15-
.idea
16-
.vscode
17-
*.suo
18-
*.ntvs*
19-
*.njsproj
20-
*.sln
21-
*.sw*

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build/

.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
semi: false,
3+
trailingComma: "all",
4+
singleQuote: true,
5+
printWidth: 100,
6+
tabWidth: 2
7+
};

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.defaultFormatter": "esbenp.prettier-vscode"
3+
}

README.md

Lines changed: 36 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,43 @@
1-
# Coreui Vue Chartjs library
1+
# CoreUI Icons Vue
22

3-
![NPM](https://img.shields.io/npm/v/@coreui/vue-chartjs/latest?style=flat&color=brightgreen)
4-
![Downloads](https://img.shields.io/npm/dm/@coreui/vue-chartjs.svg?style=flat)
5-
![Chart.js](https://img.shields.io/badge/Chart.js-^2.9.3-brightgreen.svg)
6-
![Vue](https://img.shields.io/badge/Vue-^2.6.10-brightgreen.svg)
3+
[![NPM](https://img.shields.io/npm/v/@coreui/icons-vue/latest?style=flat-square&color=brightgreen)][coreui]
4+
[![Downloads](https://img.shields.io/npm/dm/@coreui/icons-vue.svg?style=flat-square)][coreui]
5+
[![License](https://img.shields.io/npm/l/@coreui/vue?style=flat-square)][coreui]
76

8-
## Description
7+
[coreui]: https://coreui.io/icons
98

10-
Dedicated components used to implement [Chart.js](https://www.chartjs.org/) in Vue.js. You can find the **CoreUI Vue library documentation** here [https://coreui.io/vue/docs »](https://coreui.io/vue/docs/components/charts)
9+
## CIcon component
1110

12-
## Features
11+
Dedicated component used to implement [CoreUI Icons SVG set](https://coreui.io/icons/) in Vue.js.
1312

14-
- Implementation with ease - **You only need to pass 'datasets' prop and you have your chart working**. Optionally you can pass labels, options and plugins according to
15-
[Chart.js docs](https://www.chartjs.org/docs/latest/getting-started/usage.html). The rest of chart.js configuration issues are already resolved,
16-
- Chart will be rendered, even if you don't pass the labels, as empty labels will be generated automatically. You can also assign months or numeric indexes to labels (see prop description),
17-
- If you don't pass tooltip options, coreui-custom-tooltips, would be used by default. They are resolving the chart.js issue with tooltip beeing cut, when exceeding the canvas.
18-
- Dynamic updates of passed configuration. This feature makes your chart.js configuration automatically reactive to changes.
13+
### Features
1914

20-
## Copyright and license
15+
- Can load icons in three ways:
16+
- stored globally in Vue root object,
17+
- directly passed SVG tag content,
18+
- source link to SVG file
19+
- Greatly reduce icons bundle size, when imported as single icons,
20+
- Full functionality of 'svg' html tag,
21+
- Clean API
2122

22-
Copyright 2019 creativeLabs Łukasz Holeczek. Code released under the MIT license.
23+
For component description visit [CIcon component documentation](https://coreui.io/vue/docs/components/icon)
24+
25+
### Installation
26+
27+
If you already have installed [CoreUI Vue component library](https://coreui.io/vue/docs) plugin, then you have CIcon component already installed, otherwise install package by:
28+
29+
```shell
30+
npm install @coreui/icons-vue --save
31+
```
32+
33+
### License
34+
35+
CoreUI Icons Free is free, open source, and GPL friendly. You can use it for
36+
commercial projects, open source projects, or really almost whatever you want.
37+
38+
- Icons — CC BY 4.0 License
39+
- In the CoreUI Icons Free download, the CC BY 4.0 license applies to all icons packaged as .svg and .js files types.
40+
- Fonts — SIL OFL 1.1 License
41+
- In the CoreUI Icons Free download, the SIL OLF license applies to all icons packaged as web and desktop font files.
42+
- Code — MIT License
43+
- In the CoreUI Icons Free download, the MIT license applies to all non-font and non-icon files.

babel.config.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1-
module.exports = {
2-
presets: [
3-
['@babel/preset-env']
1+
// babel.config.js
2+
module.exports = function (api) {
3+
api.cache(true)
4+
5+
const presets = [
6+
['@babel/preset-env', { targets: { node: 'current' } }],
7+
'@babel/preset-typescript',
48
]
9+
const plugins = []
10+
11+
return {
12+
presets,
13+
plugins,
14+
}
515
}

0 commit comments

Comments
 (0)