├── .all-contributorsrc
├── .browserslistrc
├── .eslintrc.js
├── .gitignore
├── .travis.yml
├── CHANGELOG.md
├── CODE_OF_CONDUCT.md
├── LICENSE
├── Makefile
├── README.md
├── babel.config.js
├── coverage
├── clover.xml
├── coverage-final.json
├── lcov-report
│ ├── base.css
│ ├── index.html
│ ├── index.vue.html
│ ├── prettify.css
│ ├── prettify.js
│ ├── sort-arrow-sprite.png
│ └── sorter.js
└── lcov.info
├── docs
├── favicon.ico
├── index.html
└── js
│ ├── app.d09607a1.js
│ ├── app.d09607a1.js.map
│ ├── chunk-vendors.0387dd60.js
│ └── chunk-vendors.0387dd60.js.map
├── jest.config.js
├── package-lock.json
├── package.json
├── postcss.config.js
├── public
├── favicon.ico
└── index.html
├── src
├── App.vue
├── _index.scss
├── _variable.scss
├── index.js
├── index.vue
└── main.js
├── tests
└── unit
│ ├── .eslintrc.js
│ └── example.spec.js
└── vue.config.js
/.all-contributorsrc:
--------------------------------------------------------------------------------
1 | {
2 | "files": [
3 | "README.md"
4 | ],
5 | "imageSize": 100,
6 | "commit": false,
7 | "contributors": [
8 | {
9 | "login": "dreambo8563",
10 | "name": "Vincent Guo",
11 | "avatar_url": "https://avatars2.githubusercontent.com/u/6948318?v=4",
12 | "profile": "https://dreambo8563.github.io/",
13 | "contributions": [
14 | "code",
15 | "doc",
16 | "infra"
17 | ]
18 | }
19 | ],
20 | "contributorsPerLine": 7,
21 | "projectName": "vue-circular-progress",
22 | "projectOwner": "dreambo8563",
23 | "repoType": "github",
24 | "repoHost": "https://github.com"
25 | }
26 |
--------------------------------------------------------------------------------
/.browserslistrc:
--------------------------------------------------------------------------------
1 | > 1%
2 | last 2 versions
3 | not ie <= 8
4 |
--------------------------------------------------------------------------------
/.eslintrc.js:
--------------------------------------------------------------------------------
1 | module.exports = {
2 | root: true,
3 | env: {
4 | node: true
5 | },
6 | extends: ["plugin:vue/essential", "@vue/prettier"],
7 | rules: {
8 | "no-console": process.env.NODE_ENV === "production" ? "error" : "off",
9 | "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
10 | },
11 | parserOptions: {
12 | parser: "babel-eslint"
13 | }
14 | };
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | node_modules
3 | /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?
22 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - "lts/*"
4 | install:
5 | - npm i
6 | - npm install -g codecov
7 | before_install:
8 | - npm i -g npm@latest
9 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 |
2 | ## [1.0.4](https://github.com/dreambo8563/easy-circular-progress/compare/v1.0.3...v1.0.4) (2019-06-05)
3 |
4 |
5 | ### Features
6 |
7 | * **default slot:** customize the content in the circle ([89ce5a4](https://github.com/dreambo8563/easy-circular-progress/commit/89ce5a4))
8 |
9 |
10 |
11 |
12 | ## [1.0.3](https://github.com/dreambo8563/easy-circular-progress/compare/v1.0.2...v1.0.3) (2019-05-15)
13 |
14 |
15 | ### Bug Fixes
16 |
17 | * **integer:** fix to support integer ([58f596b](https://github.com/dreambo8563/easy-circular-progress/commit/58f596b))
18 |
19 |
20 |
21 |
22 | ## [1.0.2](https://github.com/dreambo8563/easy-circular-progress/compare/v1.0.1...v1.0.2) (2019-04-23)
23 |
24 |
25 | ### Bug Fixes
26 |
27 | * **css:** container inline-block ([6ca087b](https://github.com/dreambo8563/easy-circular-progress/commit/6ca087b))
28 |
29 |
30 |
31 |
32 | ## [1.0.1](https://github.com/dreambo8563/easy-circular-progress/compare/v1.0.0...v1.0.1) (2019-04-23)
33 |
34 |
35 | ### Features
36 |
37 | * **renaming:** name conflict ([5713a86](https://github.com/dreambo8563/easy-circular-progress/commit/5713a86))
38 |
39 |
40 |
41 |
42 | # [1.0.0](https://github.com/dreambo8563/easy-circular-progress/compare/b79ed35...v1.0.0) (2019-04-23)
43 |
44 |
45 | ### Bug Fixes
46 |
47 | * **package:** rm polyfill ([d0ca37d](https://github.com/dreambo8563/easy-circular-progress/commit/d0ca37d))
48 |
49 |
50 | ### Features
51 |
52 | * **add sample:** demo code for pages ([d3f5771](https://github.com/dreambo8563/easy-circular-progress/commit/d3f5771))
53 | * **basic:** basic component ([b79ed35](https://github.com/dreambo8563/easy-circular-progress/commit/b79ed35))
54 | * **implement:** almost done ([dc2077d](https://github.com/dreambo8563/easy-circular-progress/commit/dc2077d))
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | In the interest of fostering an open and welcoming environment, we as
6 | contributors and maintainers pledge to making participation in our project and
7 | our community a harassment-free experience for everyone, regardless of age, body
8 | size, disability, ethnicity, sex characteristics, gender identity and expression,
9 | level of experience, education, socio-economic status, nationality, personal
10 | appearance, race, religion, or sexual identity and orientation.
11 |
12 | ## Our Standards
13 |
14 | Examples of behavior that contributes to creating a positive environment
15 | include:
16 |
17 | * Using welcoming and inclusive language
18 | * Being respectful of differing viewpoints and experiences
19 | * Gracefully accepting constructive criticism
20 | * Focusing on what is best for the community
21 | * Showing empathy towards other community members
22 |
23 | Examples of unacceptable behavior by participants include:
24 |
25 | * The use of sexualized language or imagery and unwelcome sexual attention or
26 | advances
27 | * Trolling, insulting/derogatory comments, and personal or political attacks
28 | * Public or private harassment
29 | * Publishing others' private information, such as a physical or electronic
30 | address, without explicit permission
31 | * Other conduct which could reasonably be considered inappropriate in a
32 | professional setting
33 |
34 | ## Our Responsibilities
35 |
36 | Project maintainers are responsible for clarifying the standards of acceptable
37 | behavior and are expected to take appropriate and fair corrective action in
38 | response to any instances of unacceptable behavior.
39 |
40 | Project maintainers have the right and responsibility to remove, edit, or
41 | reject comments, commits, code, wiki edits, issues, and other contributions
42 | that are not aligned to this Code of Conduct, or to ban temporarily or
43 | permanently any contributor for other behaviors that they deem inappropriate,
44 | threatening, offensive, or harmful.
45 |
46 | ## Scope
47 |
48 | This Code of Conduct applies both within project spaces and in public spaces
49 | when an individual is representing the project or its community. Examples of
50 | representing a project or community include using an official project e-mail
51 | address, posting via an official social media account, or acting as an appointed
52 | representative at an online or offline event. Representation of a project may be
53 | further defined and clarified by project maintainers.
54 |
55 | ## Enforcement
56 |
57 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
58 | reported by contacting the project team at dreambo8563@outlook.com. All
59 | complaints will be reviewed and investigated and will result in a response that
60 | is deemed necessary and appropriate to the circumstances. The project team is
61 | obligated to maintain confidentiality with regard to the reporter of an incident.
62 | Further details of specific enforcement policies may be posted separately.
63 |
64 | Project maintainers who do not follow or enforce the Code of Conduct in good
65 | faith may face temporary or permanent repercussions as determined by other
66 | members of the project's leadership.
67 |
68 | ## Attribution
69 |
70 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71 | available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72 |
73 | [homepage]: https://www.contributor-covenant.org
74 |
75 | For answers to common questions about this code of conduct, see
76 | https://www.contributor-covenant.org/faq
77 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2019 Vincent Guo
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Makefile:
--------------------------------------------------------------------------------
1 | lint:
2 | npm run lint
3 | local:
4 | npm run serve
5 | build:
6 | npm run build
7 | pages:
8 | npm run pages
9 | report:
10 | npm run report
11 | test:
12 | npm run testm
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://app.codacy.com/app/dreambo8563/easy-circular-progress?utm_source=github.com&utm_medium=referral&utm_content=dreambo8563/easy-circular-progress&utm_campaign=Badge_Grade_Dashboard)
2 | [](#contributors)
3 | [](https://codecov.io/gh/dreambo8563/easy-circular-progress)
4 | [](https://opensource.org/licenses/MIT)
5 | 
6 | [](https://travis-ci.com/dreambo8563/easy-circular-progress)
7 | [](https://app.fossa.io/projects/git%2Bgithub.com%2Fdreambo8563%2Feasy-circular-progress?ref=badge_shield)
8 | [](https://greenkeeper.io/)
9 | [](https://snyk.io/test/github/dreambo8563/easy-circular-progress?targetFile=package.json)
10 |
11 | # easy-circular-progress
12 |
13 | ## Install
14 |
15 | ```
16 | npm install easy-circular-progress --save
17 | ```
18 |
19 | ### Quick Start
20 |
21 | ```vue
22 |
23 |