Skip to content

Commit 1ab9304

Browse files
refactor: updated the library components to latest React structure
1 parent 52037a1 commit 1ab9304

116 files changed

Lines changed: 11302 additions & 11501 deletions

File tree

Some content is hidden

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

.eslintrc.json

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/ISSUE_TEMPLATE.md

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
1-
<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅
2-
Hello there! 😄
3-
To expedite issue processing please search open and closed issues before submitting a new one.
4-
Existing issues often contain information about workarounds, resolution, or progress updates.
5-
🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->
6-
**Describe the bug** 🪲
7-
A clear and concise description of what the bug is.
8-
9-
10-
**To Reproduce** 🪜
11-
Steps to reproduce the behavior:
12-
1. Go to '...'
13-
2. Click on '....'
14-
3. Scroll down to '....'
15-
4. See error
16-
17-
**Expected behavior**
18-
A clear and concise description of what you expected to happen.
19-
20-
**Screenshots** 🖼️
21-
If applicable, add screenshots to help explain your problem.
22-
23-
**Browser Information (please complete the following information):** 🖥️
24-
- OS: [e.g. Windows 10 build 21H1, Ubuntu 20.04 LTS]
25-
- Browser and Version: [e.g. IE Edge 95.0.1020.40 ]
26-
27-
28-
**Additional context**
29-
Add any other context about the problem here.
1+
<!--🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅
2+
Hello there! 😄
3+
To expedite issue processing please search open and closed issues before submitting a new one.
4+
Existing issues often contain information about workarounds, resolution, or progress updates.
5+
🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅🔅-->
6+
7+
**Describe the bug** 🪲
8+
A clear and concise description of what the bug is.
9+
10+
**To Reproduce** 🪜
11+
Steps to reproduce the behavior:
12+
13+
1. Go to '...'
14+
2. Click on '....'
15+
3. Scroll down to '....'
16+
4. See error
17+
18+
**Expected behavior**
19+
A clear and concise description of what you expected to happen.
20+
21+
**Screenshots** 🖼️
22+
If applicable, add screenshots to help explain your problem.
23+
24+
**Browser Information (please complete the following information):** 🖥️
25+
26+
- OS: [e.g. Windows 10 build 21H1, Ubuntu 20.04 LTS]
27+
- Browser and Version: [e.g. IE Edge 95.0.1020.40 ]
28+
29+
**Additional context**
30+
Add any other context about the problem here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
## PR Checklist
2+
23
<!-- Please check if your PR fulfills the following requirements: -->
34

45
- [ ] Unit Tests have been added for new changes
56
- [ ] API tests have been updated if applicable
67
- [ ] All commented code has been removed
78
- [ ] If you've added a dependency, you've ensured license is compatible with Apache 2.0 and clearly outlined the added dependency.
89

9-
1010
## What are you changing?
11-
<!-- Please provide a short description of the updates that are in the PR -->
1211

12+
<!-- Please provide a short description of the updates that are in the PR -->
1313

1414
## Anything the reviewer should know when reviewing this PR?
1515

.github/commitlint.config.cjs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module.exports = {
2-
extends: ['@commitlint/config-conventional'],
3-
rules: {
4-
'body-max-line-length': [2, 'always', 200],
5-
'subject-case': [
6-
1,
7-
'never',
8-
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
9-
],
10-
}
11-
}
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'body-max-line-length': [2, 'always', 200],
5+
'subject-case': [
6+
1,
7+
'never',
8+
['sentence-case', 'start-case', 'pascal-case', 'upper-case']
9+
]
10+
}
11+
}

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
version: 2
22
updates:
33
# Maintain dependencies for npm modules
4-
- package-ecosystem: "npm"
5-
directory: "/"
4+
- package-ecosystem: 'npm'
5+
directory: '/'
66
schedule:
7-
interval: "daily"
7+
interval: 'daily'
88

99
- package-ecosystem: github-actions
1010
directory: /

.github/workflows/ci.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
build:
2323
# The type of runner that the job will run on
2424
permissions:
25-
contents: write # for Git to git push
25+
contents: write # for Git to git push
2626
runs-on: ubuntu-latest
2727

2828
# Steps represent a sequence of tasks that will be executed as part of the job
@@ -38,32 +38,19 @@ jobs:
3838
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
3939
with:
4040
node-version: 24.x
41-
- name: Run NPM CI
42-
run: npm install
41+
- name: Install Dependencies
42+
run: npm ci
4343

4444
- name: Run Lint
4545
run: npm run lint
4646

47-
- name: Run Test
48-
run: npm run test
47+
- name: Run Tests with Coverage
48+
run: npm run test:coverage
4949

50-
- name: Run Coverage
51-
run: npm run coverage
52-
53-
- uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
54-
name: Upload Coverage Results
50+
- name: Upload Coverage Results
51+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
5552
with:
5653
directory: ./coverage/
5754

58-
- name: Run Build Dev
55+
- name: Run Build
5956
run: npm run build
60-
61-
- name: Run Build Externals
62-
run: npm run build-ext
63-
64-
- run: mv junit.xml ui-toolkit-react-unit.xml
65-
- name: Upload JEST Results
66-
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
67-
with:
68-
name: ui-toolkit-react-unit
69-
path: ui-toolkit-react-unit.xml

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
# the `language` matrix defined below to confirm you have the correct set of
1010
# supported CodeQL languages.
1111
#
12-
name: "CodeQL"
12+
name: 'CodeQL'
1313

1414
on:
15-
workflow_dispatch:
15+
workflow_dispatch:
1616
release:
1717
types:
1818
- created
@@ -22,7 +22,7 @@ on:
2222
# The branches below must be a subset of the branches above
2323
branches: [main]
2424
schedule:
25-
- cron: "18 2 * * 6"
25+
- cron: '18 2 * * 6'
2626

2727
permissions:
2828
contents: read
@@ -39,7 +39,7 @@ jobs:
3939
strategy:
4040
fail-fast: false
4141
matrix:
42-
language: ["javascript"]
42+
language: ['javascript']
4343
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
4444
# Learn more:
4545
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
@@ -98,4 +98,4 @@ jobs:
9898
continue-on-error: true
9999
with:
100100
name: report
101-
path: ./*.pdf
101+
path: ./*.pdf

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
permissions:
2121
id-token: write
22-
contents: write # for Git to git push
22+
contents: write # for Git to git push
2323
steps:
2424
- name: Harden Runner
2525
uses: step-security/harden-runner@20cf305ff2072d973412fa9b1e3a4f227bda3c76 # v2.14.0
@@ -33,9 +33,9 @@ jobs:
3333
- name: Use Node.js 24.x
3434
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0
3535
with:
36-
node-version: "24.x"
36+
node-version: '24.x'
3737
- run: npm ci
38-
- run: npm run build-ext --if-present
38+
- run: npm run build
3939
- run: rsync -a package.json README.md ./dist/
4040
- name: Semantic Release
4141
id: semantic
@@ -48,8 +48,8 @@ jobs:
4848
if: steps.semantic.outputs.new_release_published == 'true'
4949
run: |
5050
echo "Publishing @device-management-toolkit/ui-toolkit-react@${{ steps.semantic.outputs.new_release_version }}"
51-
51+
5252
sed -i 's/"@open-amt-cloud-toolkit\/ui-toolkit-react"/"@device-management-toolkit\/ui-toolkit-react"/' dist/package.json
5353
sed -i 's/"version": "[^"]*"/"version": "${{ steps.semantic.outputs.new_release_version }}"/' dist/package.json
5454
cd dist
55-
npm publish
55+
npm publish

.github/workflows/scorecard.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
schedule:
1313
- cron: '44 11 * * 6'
1414
push:
15-
branches: [ "main" ]
15+
branches: ['main']
1616

1717
# Declare default permissions as read only.
1818
permissions: read-all
@@ -36,12 +36,12 @@ jobs:
3636
with:
3737
egress-policy: audit
3838

39-
- name: "Checkout code"
39+
- name: 'Checkout code'
4040
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
4141
with:
4242
persist-credentials: false
4343

44-
- name: "Run analysis"
44+
- name: 'Run analysis'
4545
uses: ossf/scorecard-action@4eaacf0543bb3f2c246792bd56e8cdeffafb205a # v2.4.3
4646
with:
4747
results_file: results.sarif
@@ -63,15 +63,15 @@ jobs:
6363

6464
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6565
# format to the repository Actions tab.
66-
- name: "Upload artifact"
66+
- name: 'Upload artifact'
6767
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v3.1.0
6868
with:
6969
name: SARIF file
7070
path: results.sarif
7171
retention-days: 5
7272

7373
# Upload the results to GitHub's code scanning dashboard.
74-
- name: "Upload to code-scanning"
74+
- name: 'Upload to code-scanning'
7575
uses: github/codeql-action/upload-sarif@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v2.1.27
7676
with:
7777
sarif_file: results.sarif

.github/workflows/semantic.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "Semantic Pull Request"
1+
name: 'Semantic Pull Request'
22

33
on:
44
pull_request:

0 commit comments

Comments
 (0)