Skip to content

Commit 11964ff

Browse files
authored
chore: reorganize sample files (mykola-digtiar#6)
Reorganizes sample files, in order to make the sample visible on Netlify. - `index.html` is moved to root directory in order to make the Netlify configuration simpler. It's also more compatible to some builders like Vite (see https://vitejs.dev/guide/#index-html-and-project-root) - Remove external libraries copied in the repo, use jscolor from CDN
1 parent 48a48b1 commit 11964ff

File tree

6 files changed

+5
-540
lines changed

6 files changed

+5
-540
lines changed

sample/index.html renamed to index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
66
<meta name="viewport" content="width=device-width, initial-scale=1">
7-
<link rel="stylesheet" type="text/css" href="./style.css">
8-
<link rel="icon" type="image/ico" href="./favicon.ico">
7+
<link rel="stylesheet" type="text/css" href="public/style.css">
8+
<link rel="icon" type="image/ico" href="public/favicon.ico">
99
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/3.8.0/chart.min.js"></script>
10-
<script src="../dist/chartjs-plugin-piechart-outlabels.js"></script>
11-
<script src="./utils.js"></script>
12-
<script src="./jscolor.min.js"></script>
10+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jscolor/2.4.8/jscolor.min.js" integrity="sha512-h+lzXFd8nq3eEICmGk1ocuPCWcOEt7/QRNdmd9OuuDSjAHPR5hJNlS5ghlBm7InTc6vMuUKl5HPY5mJFIuKAOw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
11+
<script src="dist/chartjs-plugin-piechart-outlabels.js"></script>
12+
<script src="public/utils.js"></script>
1313
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
1414
<title>Pie Chart Outlabels</title>
1515
</head>
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)