Skip to content

Commit a8248bd

Browse files
committed
Merge branch 'v5' of https://github.com/coreui/coreui into v5
2 parents 831ff1b + 8f3e021 commit a8248bd

Some content is hidden

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

58 files changed

+1896
-1320
lines changed

.eslintrc.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"SwitchCase": 1
5252
}
5353
],
54+
"logical-assignment-operators": "off",
5455
"max-params": [
5556
"warn",
5657
5
@@ -75,6 +76,7 @@
7576
"error",
7677
"after"
7778
],
79+
"prefer-object-has-own": "off",
7880
"prefer-template": "error",
7981
"semi": [
8082
"error",

.github/workflows/bundlewatch.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Bundlewatch
2+
3+
on:
4+
push:
5+
branches:
6+
- v5
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
FORCE_COLOR: 2
12+
NODE: 20
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
bundlewatch:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
26+
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "${{ env.NODE }}"
31+
cache: npm
32+
33+
- name: Install npm dependencies
34+
run: npm ci
35+
36+
- name: Run dist
37+
run: npm run dist
38+
39+
- name: Run bundlewatch
40+
run: npm run bundlewatch
41+
env:
42+
BUNDLEWATCH_GITHUB_TOKEN: "${{ secrets.BUNDLEWATCH_GITHUB_TOKEN }}"
43+
CI_BRANCH_BASE: main

.github/workflows/codeql.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: "CodeQL"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- v5
8+
- "!dependabot/**"
9+
pull_request:
10+
branches:
11+
- main
12+
- v5
13+
- "!dependabot/**"
14+
schedule:
15+
- cron: "0 2 * * 4"
16+
workflow_dispatch:
17+
18+
jobs:
19+
analyze:
20+
name: Analyze
21+
runs-on: ubuntu-latest
22+
permissions:
23+
security-events: write
24+
25+
steps:
26+
- name: Checkout repository
27+
uses: actions/checkout@v4
28+
with:
29+
persist-credentials: false
30+
31+
- name: Initialize CodeQL
32+
uses: github/codeql-action/init@v3
33+
with:
34+
config-file: ./.github/codeql/codeql-config.yml
35+
languages: "javascript"
36+
queries: +security-and-quality
37+
38+
- name: Autobuild
39+
uses: github/codeql-action/autobuild@v3
40+
41+
- name: Perform CodeQL Analysis
42+
uses: github/codeql-action/analyze@v3
43+
with:
44+
category: "/language:javascript"

.github/workflows/css.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CSS
2+
3+
on:
4+
push:
5+
branches:
6+
- v5
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
FORCE_COLOR: 2
12+
NODE: 20
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
css:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
26+
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "${{ env.NODE }}"
31+
cache: npm
32+
33+
- name: Install npm dependencies
34+
run: npm ci
35+
36+
- name: Build CSS
37+
run: npm run css
38+
39+
- name: Run CSS tests
40+
run: npm run css-test

.github/workflows/docs.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- v5
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
FORCE_COLOR: 2
12+
NODE: 20
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
docs:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
26+
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "${{ env.NODE }}"
31+
cache: npm
32+
33+
- run: java -version
34+
35+
- name: Install npm dependencies
36+
run: npm ci
37+
38+
- name: Build docs
39+
run: npm run docs-build
40+
41+
- name: Validate HTML
42+
run: npm run docs-vnu
43+
44+
- name: Run linkinator
45+
uses: JustinBeckwith/linkinator-action@v1
46+
with:
47+
paths: _gh-pages
48+
recurse: true
49+
verbosity: error
50+
skip: "^(?!http://localhost)"

.github/workflows/js.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: JS Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- v5
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
FORCE_COLOR: 2
12+
NODE: 20
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
run:
19+
permissions:
20+
# allow coverallsapp/github-action to create new checks issues and fetch code
21+
checks: write
22+
contents: read
23+
name: JS Tests
24+
runs-on: ubuntu-latest
25+
26+
steps:
27+
- name: Clone repository
28+
uses: actions/checkout@v4
29+
with:
30+
persist-credentials: false
31+
32+
- name: Set up Node.js
33+
uses: actions/setup-node@v4
34+
with:
35+
node-version: ${{ env.NODE }}
36+
cache: npm
37+
38+
- name: Install npm dependencies
39+
run: npm ci
40+
41+
- name: Run dist
42+
run: npm run js
43+
44+
- name: Run JS tests
45+
run: npm run js-test
46+
47+
- name: Run Coveralls
48+
uses: coverallsapp/github-action@v2
49+
if: ${{ !github.event.repository.fork }}
50+
with:
51+
github-token: "${{ secrets.GITHUB_TOKEN }}"
52+
path-to-lcov: "./js/coverage/lcov.info"

.github/workflows/lint.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches:
6+
- v5
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
FORCE_COLOR: 2
12+
NODE: 20
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
lint:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
26+
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "${{ env.NODE }}"
31+
cache: npm
32+
33+
- name: Install npm dependencies
34+
run: npm ci
35+
36+
- name: Lint
37+
run: npm run lint

.github/workflows/node-sass.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CSS (node-sass)
2+
3+
on:
4+
push:
5+
branches:
6+
- v5
7+
pull_request:
8+
workflow_dispatch:
9+
10+
env:
11+
FORCE_COLOR: 2
12+
NODE: 20
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
css:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Clone repository
23+
uses: actions/checkout@v4
24+
with:
25+
persist-credentials: false
26+
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: "${{ env.NODE }}"
31+
32+
- name: Build CSS with node-sass
33+
run: |
34+
npx --package node-sass@latest node-sass --version
35+
npx --package node-sass@latest node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 scss/ -o dist-sass/css/
36+
ls -Al dist-sass/css
37+
38+
- name: Check built CSS files for Sass variables
39+
shell: bash
40+
run: |
41+
SASS_VARS_FOUND=$(find "dist-sass/css/" -type f -name "*.css" -print0 | xargs -0 --no-run-if-empty grep -F "\$" || true)
42+
if [[ -z "$SASS_VARS_FOUND" ]]; then
43+
echo "All good, no Sass variables found!"
44+
exit 0
45+
else
46+
echo "Found $(echo "$SASS_VARS_FOUND" | wc -l | bc) Sass variables:"
47+
echo "$SASS_VARS_FOUND"
48+
exit 1
49+
fi

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
Copyright (c) 2023 creativeLabs Łukasz Holeczek
1+
Copyright (c) 2024 creativeLabs Łukasz Holeczek
22

33
This is commercial software. To use it, you have to own a commercial license.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,5 +202,5 @@ CoreUI is an MIT-licensed open source project and is completely free to use. How
202202

203203
## Copyright and license
204204

205-
Copyright 2023 creativeLabs Łukasz Holeczek.
205+
Copyright 2024 creativeLabs Łukasz Holeczek.
206206
This is commercial software. To use it, you have to own a commercial license. Docs released under [Creative Commons](https://creativecommons.org/licenses/by/3.0/).

build/build-plugins.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*!
44
* Script to build our plugins to use them separately.
5-
* Copyright 2020-2023 The Bootstrap Authors
5+
* Copyright 2020-2024 The Bootstrap Authors
66
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
77
*/
88

build/change-version.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*!
44
* Script to update version number references in the project.
5-
* Copyright 2017-2023 The Bootstrap Authors
5+
* Copyright 2017-2024 The Bootstrap Authors
66
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
77
*/
88

build/generate-sri.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Remember to use the same vendor files as the CDN ones,
66
* otherwise the hashes won't match!
77
*
8-
* Copyright 2017-2023 The Bootstrap Authors
8+
* Copyright 2017-2024 The Bootstrap Authors
99
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
1010
*/
1111

build/vnu-jar.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
/*!
44
* Script to run vnu-jar if Java is available.
5-
* Copyright 2017-2023 The Bootstrap Authors
5+
* Copyright 2017-2024 The Bootstrap Authors
66
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
77
*/
88

0 commit comments

Comments
 (0)