forked from apexcharts/apexcharts.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Flared/maxc/bump_to_3_54_1
Bumped fork to 3.54.1
- Loading branch information
Showing
426 changed files
with
54,091 additions
and
28,880 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# This workflow will do the following when a pull request is made against the main branch: | ||
# 1. Clone base repository (apexcharts/apexcharts.js), install npm packages, build samples, and then generate e2e snapshots | ||
# 2. Clone head repository (the repository with the code in the pull request), install npm packages, build samples, get snapshots generated from the base repository, run tests, and then generate an apexcharts build | ||
# Test coverage results, base repository snapshots, head repository snapshots and diffs, sample HTML, and the apexcharts build are all uploaded to the workflow artifacts | ||
# The diffs, build, and coverage results get uploaded even if the test fails for manual inspection and to make debugging easier | ||
|
||
name: Node.js CI | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
name: Test & Build | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x, 20.x, 22.x] | ||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ | ||
|
||
steps: | ||
- name: Create base repository artifacts folder | ||
run: mkdir -p ${{ runner.temp }}/artifacts/base-repository | ||
- name: Create head repository artifacts folder | ||
run: mkdir -p ${{ runner.temp }}/artifacts/head-repository | ||
|
||
- name: Checkout base repository | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ github.event.pull_request.base.repo.full_name }} | ||
ref: ${{ github.event.pull_request.base.ref }} | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install base repository's packages | ||
run: npm ci | ||
- name: Generate base repository's samples | ||
run: npm run build:samples | ||
- name: Copy Base Repository Samples To Artifacts Folder | ||
run: cp -r samples/vanilla-js ${{ runner.temp }}/artifacts/base-repository/samples | ||
- name: Generate base repository's e2e snapshots | ||
run: npm run e2e:update | ||
- name: Copy Base Repository e2e Snapshots To Artifacts Folder | ||
run: cp -r tests/e2e/snapshots ${{ runner.temp }}/artifacts/base-repository/snapshots | ||
|
||
- name: Checkout head repository | ||
uses: actions/checkout@v4 | ||
- name: Install head repository's packages | ||
run: npm ci | ||
- name: Generate head repository's samples | ||
run: npm run build:samples | ||
- name: Copy Head Repository Samples To Artifacts Folder | ||
run: cp -r samples/vanilla-js ${{ runner.temp }}/artifacts/head-repository/samples | ||
- name: Delete snapshots folder | ||
run: rm -r tests/e2e/snapshots | ||
- name: Copy snapshots from base repository | ||
run: cp -r ${{ runner.temp }}/artifacts/base-repository/snapshots tests/e2e | ||
- name: Run tests | ||
run: npm run test:ci | ||
- name: Copy Head Repository Diffs To Artifacts Folder | ||
if: '!cancelled()' | ||
run: cp -r tests/e2e/diffs ${{ runner.temp }}/artifacts/head-repository/diffs | ||
- name: Build apexcharts | ||
if: '!cancelled()' | ||
run: npm run build --if-present | ||
- name: Copy Head Repository Build To Artifacts Folder | ||
if: '!cancelled()' | ||
run: cp -r dist ${{ runner.temp }}/artifacts/head-repository/build | ||
- name: Copy Head Repository Test Coverage To Artifacts Folder | ||
if: '!cancelled()' | ||
run: cp -r coverage ${{ runner.temp }}/artifacts/head-repository/coverage | ||
- name: Upload Artifacts | ||
if: '!cancelled()' | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: node${{ matrix.node-version }}${{ runner.os }}results | ||
path: ${{ runner.temp }}/artifacts | ||
|
||
test-reproducibility: | ||
name: Test Reproducibility | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
node-version: [18.x, 20.x, 22.x] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
- name: Setup Node ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install packages | ||
run: npm ci | ||
- name: Build samples | ||
run: npm run build:samples | ||
- name: Generate snapshots | ||
run: npm run e2e:update | ||
- name: Run tests | ||
run: npm run test:ci | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Lint | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js 22.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22.x | ||
- run: npm ci | ||
- name: Lint | ||
run: npm run lint |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ tests/e2e/diffs | |
.nyc_output | ||
.vscode | ||
bundle-analysis.html | ||
/nbproject/private/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,12 +24,6 @@ | |
|
||
<br /> | ||
|
||
## Browsers support | ||
|
||
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/>Safari | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="Edge" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/> Edge | [<img src="https://user-images.githubusercontent.com/17712401/124668393-30772d00-de87-11eb-9360-3199c3b68b95.png" alt="IE" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/> IE11 | | ||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | ||
| 31+ ✔ | 35+ ✔ | 6+ ✔ | Edge ✔ | [(IE11)](#using-it-with-ie11) ✔ | | ||
|
||
## Download and Installation | ||
|
||
##### Installing via npm | ||
|
@@ -180,16 +174,6 @@ apexcharts/ | |
└── samples/ | ||
``` | ||
|
||
## Using it with IE11 | ||
|
||
If you need to make it work with IE11, you need to include these polyfills before including ApexCharts | ||
|
||
- [promise-polyfill](https://cdn.jsdelivr.net/npm/promise-polyfill@8/dist/polyfill.min.js) | ||
- [classlist.js](https://cdn.jsdelivr.net/npm/eligrey-classlist-js-polyfill) | ||
- [ResizeObserver polyfill](https://cdn.jsdelivr.net/npm/@juggle/resize-observer) | ||
- [findIndex](https://cdn.jsdelivr.net/npm/findindex_polyfill_mdn) - You will need this only if you require timeline/rangebar charts | ||
- [canvg](https://unpkg.com/[email protected]/lib/umd.js) - You will need this only if you require PNG download of your charts | ||
|
||
## Development | ||
|
||
#### Install dependencies and run the project | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.