Skip to content

Commit 2cd870f

Browse files
committed
chore: update markdown files
1 parent 83fe458 commit 2cd870f

File tree

4 files changed

+247
-25
lines changed

4 files changed

+247
-25
lines changed

CONTRIBUTING.md

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
# Contributing to CoreUI Vue
2+
3+
Looking to contribute something to CoreUI Vue? **Here's how you can help.**
4+
5+
Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
6+
7+
Following these guidelines helps to communicate that you respect the time of the developers managing and developing this open source project. In return, they should reciprocate that respect in addressing your issue or assessing patches and features.
8+
9+
## Using the issue tracker
10+
11+
The [issue tracker](https://github.com/coreui/coreui-vue/issues) is the preferred channel for [bug reports](#bug-reports), [features requests](#feature-requests) and [submitting pull requests](#pull-requests), but please respect the following restrictions:
12+
13+
* Please **do not** use the issue tracker for personal support requests.
14+
15+
* Please **do not** post comments consisting solely of "+1" or ":thumbsup:".
16+
Use [GitHub's "reactions" feature](https://github.com/blog/2119-add-reactions-to-pull-requests-issues-and-comments)
17+
instead.
18+
19+
* Please **do not** open issues or pull requests regarding the code in:
20+
- [`@coreui/free-vue-admin-template`](https://github.com/coreui/coreui-free-vue-admin-template)
21+
- [`@coreui/coreui`](https://github.com/coreui/coreui)
22+
- [`@coreui/coreui-icons-vue`](https://github.com/coreui/coreui-icons-vue)
23+
- [`@coreui/coreui-vue-chartjs`](https://github.com/coreui/coreui-vue-chartjs)
24+
25+
Open them in their respective repositories.
26+
27+
## Bug reports
28+
29+
A bug is a _demonstrable problem_ that is caused by the code in the repository.
30+
Good bug reports are extremely helpful, so thanks!
31+
32+
Guidelines for bug reports:
33+
34+
0. **Validate and lint your code** — to ensure your problem isn't caused by a simple error in your own code.
35+
36+
1. **Use the GitHub issue search** — check if the issue has already been reported.
37+
38+
2. **Check if the issue has been fixed** — try to reproduce it using the latest `master` or development branch in the repository.
39+
40+
3. **Isolate the problem** — ideally create a [reduced test case](https://css-tricks.com/reduced-test-cases/) and a live example. [This JS Bin](http://jsbin.com/lefey/1/edit?html,output) is a helpful template.
41+
42+
43+
A good bug report shouldn't leave others needing to chase you up for more
44+
information. Please try to be as detailed as possible in your report. What is
45+
your environment? What steps will reproduce the issue? What browser(s) and OS
46+
experience the problem? Do other browsers show the bug differently? What
47+
would you expect to be the outcome? All these details will help people to fix
48+
any potential bugs.
49+
50+
Example:
51+
52+
> Short and descriptive example bug report title
53+
>
54+
> A summary of the issue and the browser/OS environment in which it occurs. If
55+
> suitable, include the steps required to reproduce the bug.
56+
>
57+
> 1. This is the first step
58+
> 2. This is the second step
59+
> 3. Further steps, etc.
60+
>
61+
> `<url>` - a link to the reduced test case
62+
>
63+
> Any other information you want to share that is relevant to the issue being
64+
> reported. This might include the lines of code that you have identified as
65+
> causing the bug, and potential solutions (and your opinions on their
66+
> merits).
67+
68+
## Feature requests
69+
70+
Feature requests are welcome. Before opening a feature request, please take a moment to find out whether your idea
71+
fits with the scope and aims of the project. It's up to *you* to make a strong
72+
case to convince the project's developers of the merits of this feature. Please
73+
provide as much detail and context as possible.
74+
75+
76+
## Pull requests
77+
78+
Good pull requests—patches, improvements, new features—are a fantastic
79+
help. They should remain focused in scope and avoid containing unrelated
80+
commits.
81+
82+
**Please ask first** before embarking on any significant pull request (e.g.
83+
implementing features, refactoring code, porting to a different language),
84+
otherwise you risk spending a lot of time working on something that the
85+
project's developers might not want to merge into the project.
86+
87+
Adhering to the following process is the best way to get your work
88+
included in the project:
89+
90+
1. [Fork](https://help.github.com/fork-a-repo/) the project, clone your fork,
91+
and configure the remotes:
92+
93+
```bash
94+
# Clone your fork of the repo into the current directory
95+
git clone https://github.com/<your-username>/free-bootstrap-admin-template.git
96+
# Navigate to the newly cloned directory
97+
cd free-bootstrap-admin-template
98+
# Assign the original repo to a remote called "upstream"
99+
git remote add upstream https://github.com/coreui/coreui-free-bootstrap-admin-template.git
100+
```
101+
102+
2. If you cloned a while ago, get the latest changes from upstream:
103+
104+
```bash
105+
git checkout master
106+
git pull upstream master
107+
```
108+
109+
3. Create a new topic branch (off the main project development branch) to
110+
contain your feature, change, or fix:
111+
112+
```bash
113+
git checkout -b <topic-branch-name>
114+
```
115+
116+
4. Commit your changes in logical chunks. Please adhere to these [git commit
117+
message guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html)
118+
or your code is unlikely to be merged into the main project. Use Git's
119+
[interactive rebase](https://help.github.com/articles/interactive-rebase)
120+
feature to tidy up your commits before making them public.
121+
122+
5. Locally merge (or rebase) the upstream development branch into your topic branch:
123+
124+
```bash
125+
git pull [--rebase] upstream master
126+
```
127+
128+
6. Push your topic branch up to your fork:
129+
130+
```bash
131+
git push origin <topic-branch-name>
132+
```
133+
134+
7. [Open a Pull Request](https://help.github.com/articles/using-pull-requests/) with a clear title and description against the `master` branch.
135+
136+
**IMPORTANT**: By submitting a patch, you agree to allow the project owners to license your work under the terms of the [MIT License](LICENSE).
137+
138+
### Semantic Git commit messages
139+
140+
Inspired by Sparkbox's awesome article on [semantic commit messages](http://seesparkbox.com/foundry/semantic_commit_messages). Please use following commit message format.
141+
142+
* chore (updating npm tasks etc; no production code change) -> ```git test -m 'chore: commit-message-here'```
143+
* docs (changes to documentation) -> ```git commit -m 'docs: commit-message-here'```
144+
* feat (new feature) -> ```git commit -m 'feat: commit-message-here'```
145+
* fix (bug fix) -> ```git commit -m 'fix: commit-message-here'```
146+
* refactor (refactoring production code) -> ```git commit -m 'refactor: commit-message-here'```
147+
* style (formatting, missing semi colons, etc; no code change) -> ```git commit -m 'style: commit-message-here'```
148+
* test (adding missing tests, refactoring tests; no production code change) -> ```git test -m 'refactor: commit-message-here'```
149+
150+
151+
## Code guidelines
152+
153+
### HTML
154+
155+
[Adhere to the Code Guide.](http://codeguide.co/#html)
156+
157+
- Use tags and elements appropriate for an HTML5 doctype (e.g., self-closing tags).
158+
- Use CDNs and HTTPS for third-party JS when possible. We don't use protocol-relative URLs in this case because they break when viewing the page locally via `file://`.
159+
- Use [WAI-ARIA](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA) attributes in documentation examples to promote accessibility.
160+
161+
### CSS
162+
163+
[Adhere to the Code Guide.](http://codeguide.co/#css)
164+
165+
- When feasible, default color palettes should comply with [WCAG color contrast guidelines](http://www.w3.org/TR/WCAG20/#visual-audio-contrast).
166+
- Except in rare cases, don't remove default `:focus` styles (via e.g. `outline: none;`) without providing alternative styles. See [this A11Y Project post](http://a11yproject.com/posts/never-remove-css-outlines) for more details.
167+
168+
### JS
169+
170+
- No semicolons (in client-side JS)
171+
- 2 spaces (no tabs)
172+
- strict mode
173+
- "Attractive"
174+
- Don't use [jQuery event alias convenience methods](https://github.com/jquery/jquery/blob/master/src/event/alias.js) (such as `$().focus()`). Instead, use [`$().trigger(eventType, ...)`](http://api.jquery.com/trigger/) or [`$().on(eventType, ...)`](http://api.jquery.com/on/), depending on whether you're firing an event or listening for an event. (For example, `$().trigger('focus')` or `$().on('focus', function (event) { /* handle focus event */ })`) We do this to be compatible with custom builds of jQuery where the event aliases module has been excluded.
175+
176+
## License
177+
178+
By contributing your code, you agree to license your contribution under the [MIT License](LICENSE).

ISSUE_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Before opening an issue:
2+
3+
- [Search for duplicate or closed issues](https://github.com/coreui/coreui-vue/issues?q=is%3Aissue+is%3Aclosed)
4+
- Read the [contributing guidelines](https://github.com/coreui/coreui-vue/blob/v3-next/CONTRIBUTING.md)
5+
6+
When asking general "how to" questions:
7+
8+
- Please do not open an issue here
9+
10+
When reporting a bug, include:
11+
12+
- Operating system and version (Windows, Mac OS X, Android, iOS, Win10 Mobile)
13+
- Browser and version (Chrome, Firefox, Safari, IE, MS Edge, Opera 15+, Android Browser)
14+
- Reduced test cases and potential fixes using [CodePen](https://codepen.io/) or [JS Bin](https://jsbin.com/)
15+
16+
When suggesting a feature, include:
17+
18+
- As much detail as possible for what we should add and why it's important to CoreUI Vue library
19+
- Relevant links to prior art, screenshots, or live demos whenever possible

LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2018 Łukasz Holeczek
1+
Copyright (c) 2019 Łukasz Holeczek
22

33
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:
44

README.md

Lines changed: 49 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,82 @@
1-
# @coreui/vue
1+
# Introduction
22

33
[![Npm badge](https://img.shields.io/npm/v/@coreui/vue.svg)][npm]
44
[![NPM downloads][npm-download]][npm]
5-
![Rollup badge](https://img.shields.io/badge/Rollup-^0.59.4-ff69b4.svg)
6-
![Jest](https://img.shields.io/badge/Jest-^23.6.0-blue.svg)
7-
![Vue](https://img.shields.io/badge/Vue-^2.5.17-brightgreen.svg)
5+
![Jest](https://img.shields.io/badge/Jest-^24.9.0-blue.svg)
6+
![Vue](https://img.shields.io/badge/Vue-^2.6.10-brightgreen.svg)
87

98
[npm]: https://www.npmjs.com/package/@coreui/vue
109
[npm-download]: https://img.shields.io/npm/dm/@coreui/vue.svg?style=flat-square
1110

12-
> A [@coreui/vue](https://coreui.io/vue) `v3` library project
11+
> A [@coreui/vue](https://coreui.io/vue) `v3` components library project
1312
14-
for use with [CoreUI](https://coreui.io/vue/) `v3-alpha` Open Source Bootstrap Admin Template
13+
## Over 90 bootstrap based Vue.js components and directives!
14+
Check out template build on top of this library: [CoreUI](https://coreui.io/vue/) Open Source Bootstrap Admin Template
1515

1616
## Installation
1717
```
1818
npm install @coreui/vue
1919
```
20-
@coreui/vue can be used as a module in both CommonJS and ES modular environments.
20+
</br>
2121

22-
When in non-modular environment, @coreui/vue will register all the components to vue by itself.</p>
23-
24-
### ES6
22+
### Registering components
2523
```js
26-
//
27-
// You can register a component manually
28-
//
29-
import { CSwitch } from '@coreui/vue';
24+
// Installing whole package
25+
import CoreuiVue from '@coreui/vue';
26+
Vue.use(CoreuiVue);
27+
28+
// Registering a single component
29+
import { CSwitch, CButton } from '@coreui/vue';
30+
31+
// globally
32+
Vue.component('CButton', CButton)
3033

3134
export default {
3235
...
36+
// locally
3337
components: {
3438
CSwitch
3539
},
3640
...
37-
};
41+
}
42+
```
43+
</br>
3844

39-
//
40-
// or register the whole module with vue
41-
//
42-
import ModuleLibrary from '@coreui/vue';
45+
### Registering directives
46+
```js
47+
// Registering single directives
48+
import { CEmitRootEvent, CTooltip } from '@coreui/vue';
4349

44-
// Install this library
45-
Vue.use(ModuleLibrary);
50+
// globally
51+
Vue.directive('c-emit-root-event', CEmitRootEvent)
52+
53+
export default {
54+
...
55+
// locally
56+
directives: {
57+
'c-tooltip': CTooltip
58+
},
59+
...
60+
}
4661
```
47-
## Credits
62+
</br>
4863

49-
A lot of components were build based on Bootstrap-Vue library (https://bootstrap-vue.js.org/)
64+
### Optimization
65+
Components are imported from CommonJS module by default, if you want to use only specific components you can import them from source to enable treeshaking.
66+
67+
```js
68+
// Import components this way to allow tree shaking
69+
import { CDataTable } from '@coreui/vue/src';
70+
```
5071

5172
## Changelog
5273

5374
See the GitHub [release history](https://github.com/coreui/coreui-vue/releases).
5475

5576
## Contributing
5677

57-
See [CONTRIBUTING.md](.github/CONTRIBUTING.md).
78+
See [CONTRIBUTING.md](https://github.com/coreui/coreui-vue/blob/v3-next/CONTRIBUTING.md).
79+
80+
## Credits
81+
82+
Some design ideas and solutions in this library are inspired by [Bootstrap-Vue library](https://bootstrap-vue.js.org/)

0 commit comments

Comments
 (0)