Skip to content
This repository was archived by the owner on Aug 29, 2023. It is now read-only.

Commit

Permalink
refactor: use ApexCharts from NPM
Browse files Browse the repository at this point in the history
Signed-off-by: Jonah Snider <[email protected]>
  • Loading branch information
jonahsnider committed Aug 10, 2019
1 parent 11ddb6a commit 1839322
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ module.exports = {
es6: false
},
globals: {
ApexCharts: "readonly",
gtag: "readonly"
}
};
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"url": "https://github.com/zws-im/zws/issues"
},
"dependencies": {
"apexcharts": "^3.8.4",
"bulma": "^0.7.5"
},
"devDependencies": {
Expand Down Expand Up @@ -35,7 +36,8 @@
"build": "rm -rf dist; parcel build src/*.html --experimental-scope-hoisting",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"serve": "parcel serve src/*.html"
"serve": "parcel serve src/*.html --no-autoinstall",
"watch": "parcel watch src/*.html --no-autoinstall"
},
"version": "1.13.4"
}
1 change: 1 addition & 0 deletions src/assets/js/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { apexCharts, elements } from "./constants";
import shorten from "./events/shorten";
import stats from "./events/stats";
import ApexCharts from "apexcharts";

elements.forms.shorten.addEventListener("submit", shorten);
elements.forms.stats.addEventListener("submit", stats);
Expand Down
3 changes: 0 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@
<link rel="apple-touch-icon" href="./assets/image/logo-192.png">

<link rel="manifest" href="./assets/manifest.webmanifest">

<!-- Importing Apex Charts normally doesn't work -->
<script src="https://cdn.jsdelivr.net/npm/apexcharts"></script>
</head>

<body>
Expand Down

0 comments on commit 1839322

Please sign in to comment.