Skip to content

Commit 53bd125

Browse files
committed
chore: @coreui/angular v4 alpha initial
1 parent e756214 commit 53bd125

File tree

669 files changed

+14695
-4350
lines changed

Some content is hidden

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

669 files changed

+14695
-4350
lines changed

.browserslistrc

-17
This file was deleted.

.editorconfig

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Editor configuration, see https://editorconfig.org
2+
23
root = true
34

45
[*]
@@ -12,3 +13,4 @@ trim_trailing_whitespace = true
1213
[*.md]
1314
max_line_length = off
1415
trim_trailing_whitespace = false
16+

.eslintrc.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": [
4+
"projects/**/*"
5+
],
6+
"overrides": [
7+
{
8+
"files": [
9+
"*.ts"
10+
],
11+
"parserOptions": {
12+
"project": [
13+
"tsconfig.json"
14+
],
15+
"createDefaultProgram": true
16+
},
17+
"extends": [
18+
"plugin:@angular-eslint/recommended",
19+
"plugin:@angular-eslint/template/process-inline-templates"
20+
],
21+
"rules": {
22+
"@angular-eslint/directive-selector": [
23+
"error",
24+
{
25+
"type": "attribute",
26+
"prefix": "app",
27+
"style": "camelCase"
28+
}
29+
],
30+
"@angular-eslint/component-selector": [
31+
"error",
32+
{
33+
"type": "element",
34+
"prefix": "app",
35+
"style": "kebab-case"
36+
}
37+
],
38+
"@angular-eslint/no-conflicting-lifecycle": "off"
39+
}
40+
},
41+
{
42+
"files": [
43+
"*.html"
44+
],
45+
"extends": [
46+
"plugin:@angular-eslint/template/recommended"
47+
],
48+
"rules": {}
49+
}
50+
]
51+
}

.github/CODE_OF_CONDUCT.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at . The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

.github/COMMIT_CONVENTION.md

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
## Git Commit Message Convention
2+
3+
> This is adapted from [Angular's commit convention](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-angular/convention.md).
4+
5+
#### Examples
6+
7+
Appears under "Features" header, `component` subheader:
8+
9+
```
10+
feat(component): add 'comments' option
11+
```
12+
13+
Appears under "Bug Fixes" header, `sidebar` subheader, with a link to issue #28:
14+
15+
```
16+
fix(sidebar): handle events on blur
17+
18+
close #28
19+
```
20+
21+
Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation:
22+
23+
```
24+
perf(core): improve vdom diffing by removing 'foo' option
25+
26+
BREAKING CHANGE: The 'foo' option has been removed.
27+
```
28+
29+
The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header.
30+
31+
```
32+
revert: feat(compiler): add 'comments' option
33+
34+
This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
35+
```
36+
37+
### Full Message Format
38+
39+
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
40+
41+
```
42+
<type>(<scope>): <subject>
43+
<BLANK LINE>
44+
<body>
45+
<BLANK LINE>
46+
<footer>
47+
```
48+
49+
The **header** is mandatory and the **scope** of the header is optional.
50+
51+
### Revert
52+
53+
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
54+
55+
### Type
56+
57+
If the prefix is `feat`, `fix` or `perf`, it will appear in the changelog. However if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.
58+
59+
Other prefixes are up to your discretion. Suggested prefixes are `docs`, `chore`, `style`, `refactor`, and `test` for non-changelog related tasks.
60+
61+
### Scope
62+
63+
The scope could be anything specifying place of the commit change. For example `core`, `compiler`, `ssr`, `v-model`, `transition` etc...
64+
65+
### Subject
66+
67+
The subject contains succinct description of the change:
68+
69+
* use the imperative, present tense: "change" not "changed" nor "changes"
70+
* don't capitalize first letter
71+
* no dot (.) at the end
72+
73+
### Body
74+
75+
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
76+
The body should include the motivation for the change and contrast this with previous behavior.
77+
78+
### Footer
79+
80+
The footer should contain any information about **Breaking Changes** and is also the place to
81+
reference GitHub issues that this commit **Closes**.
82+
83+
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.

CONTRIBUTING.md .github/CONTRIBUTING.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to CoreUI for Angular
1+
# Contributing to CoreUI
22

33
Looking to contribute something to CoreUI? **Here's how you can help.**
44

@@ -165,8 +165,9 @@ Please use following commit message format.
165165
- When feasible, default color palettes should comply with [WCAG color contrast guidelines](http://www.w3.org/TR/WCAG20/#visual-audio-contrast).
166166
- 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.
167167

168-
### TS
168+
### JS
169169

170+
- No semicolons (in client-side JS)
170171
- 2 spaces (no tabs)
171172
- strict mode
172173
- "Attractive"

.github/FUNDING.yml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
custom: "https://coreui.io/pro/"

.github/ISSUE_TEMPLATE/bug_report.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Bug report
3+
about: Tell us about a bug you may have identified in Bootstrap.
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Before opening:
11+
12+
- [Search for duplicate or closed issues](https://github.com/coreui/coreui-angular/issues?utf8=%E2%9C%93&q=is%3Aissue)
13+
- [Validate](https://html5.validator.nu/) any HTML to avoid common problems
14+
- Read the [contributing guidelines](https://github.com/coreui/coreui-angular/blob/main/.github/CONTRIBUTING.md)
15+
16+
Bug reports must include:
17+
18+
- Operating system and version (Windows, macOS, Android, iOS)
19+
- Browser and version (Chrome, Firefox, Safari, Microsoft Edge, Opera, Android Browser)
20+
- A [reduced test case](https://css-tricks.com/reduced-test-cases/) or suggested fix using [CodePen](https://codepen.io/) or [JS Bin](https://jsbin.com/)
+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for a new feature in CoreUI.
4+
title: ''
5+
labels: feature
6+
assignees: ''
7+
8+
---
9+
10+
Before opening:
11+
12+
- [Search for duplicate or closed issues](https://github.com/coreui/coreui-angular/issues?utf8=%E2%9C%93&q=is%3Aissue)
13+
- Read the [contributing guidelines](https://github.com/coreui/coreui-angular/blob/main/.github/CONTRIBUTING.md)
14+
15+
Feature requests must include:
16+
17+
- As much detail as possible for what we should add and why it's important to Bootstrap
18+
- Relevant links to prior art, screenshots, or live demos whenever possible

.github/SUPPORT.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
### Bug reports
2+
3+
See the [contributing guidelines](CONTRIBUTING.md) for sharing bug reports.
4+
5+
### How-to
6+
7+
For general troubleshooting or help getting started:
8+
9+
- Join [GitHub Discussions](https://github.com/coreui/coreui-angular/discussions).

.github/workflows/daily-project-check.yml

+3-21
Original file line numberDiff line numberDiff line change
@@ -24,26 +24,8 @@ jobs:
2424
- name: project check
2525
run: |
2626
npm i
27-
npm run build-lib:prod
28-
npm run test-lib:prod
29-
npm run lint
27+
npm run build:lib:prod
28+
npm run lint:lib
29+
npm run test:lib:prod
3030
env:
3131
CI: true
32-
33-
e2e-chrome:
34-
35-
runs-on: windows-latest
36-
37-
steps:
38-
- uses: actions/checkout@v1
39-
- name: Use Node.js 14
40-
uses: actions/setup-node@v1
41-
with:
42-
node-version: 14
43-
- name: e2e chrome test
44-
run: |
45-
choco install googlechrome
46-
npm i
47-
npm run e2e
48-
env:
49-
BROWSER: chrome

.github/workflows/project-check.yml

+3-22
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,8 @@ jobs:
2727
- name: project check
2828
run: |
2929
npm i
30-
npm run build-lib:prod
31-
npm run test-lib:prod
32-
npm run lint
30+
npm run build:lib:prod
31+
npm run lint:lib
32+
npm run test:lib:prod
3333
env:
3434
CI: true
35-
36-
e2e-chrome:
37-
38-
runs-on: windows-latest
39-
40-
steps:
41-
- uses: actions/checkout@v1
42-
- name: Use Node.js 14
43-
uses: actions/setup-node@v1
44-
with:
45-
node-version: 14
46-
- name: e2e chrome test
47-
run: |
48-
choco install googlechrome
49-
npm i
50-
npm run build-lib:prod
51-
npm run e2e
52-
env:
53-
BROWSER: chrome

.prettierrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"printWidth": 100,
3+
"semi": true,
4+
"semicolon": true,
5+
"tabs": false,
6+
"tabWidth": 2,
7+
"singleQuote": true,
8+
"jsxBracketSameLine": true,
9+
"quoteProps": "preserve",
10+
"bracketSameLine": true,
11+
"bracketSpacing": true
12+
}

0 commit comments

Comments
 (0)