Skip to content

Commit

Permalink
refactor: make public/*.{html,json} files prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TheodoreChu committed Jan 5, 2021
1 parent 72ee9a4 commit aa3a3b8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 29 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"server-public": "http-server -p 3000 --cors",
"server-root": "http-server ./ -p 3000 --cors",
"server": "http-server ./build -p 3000 --cors",
"pretty": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md"
"pretty": "prettier --write 'src/**/*.{html,css,scss,js,jsx,ts,tsx,json}' README.md public/*.{html,json}"
},
"dependencies": {
"@testing-library/dom": "^7.29.1",
Expand Down
60 changes: 32 additions & 28 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="%PUBLIC_URL%/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description"
content="The Append Editor is an unofficial editor for Standard Notes, a free, open-source, and end-to-end encrypted notes app. Try the demo at beta.appendeditor.com or learn more at appendeditor.com." />
<link rel="apple-touch-icon" href="%PUBLIC_URL%/icon192.png" />
<!--
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/png" href="%PUBLIC_URL%/icon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="The Append Editor is an unofficial editor for Standard Notes, a free, open-source, and end-to-end encrypted notes app. Try the demo at beta.appendeditor.com or learn more at appendeditor.com."
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/icon192.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Expand All @@ -23,20 +24,24 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="stylesheet" href="%PUBLIC_URL%/katex/v0.12.0/katex.min.css"
integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X" crossorigin="anonymous" />
<title>Append Editor</title>
</head>
<link
rel="stylesheet"
href="%PUBLIC_URL%/katex/v0.12.0/katex.min.css"
integrity="sha384-AfEj0r4/OFrOo5t7NnNe46zW/tFgW6x/bCJG8FqQCEo3+Aro6EYUG4+cU+KJWu/X"
crossorigin="anonymous"
/>
<title>Append Editor</title>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="./monaco/editor.worker.bundle.js"></script>
<script src="./monaco/json.worker.bundle.js"></script>
<script src="./monaco/css.worker.bundle.js"></script>
<script src="./monaco/html.worker.bundle.js"></script>
<script src="./monaco/ts.worker.bundle.js"></script>
<!--
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="./monaco/editor.worker.bundle.js"></script>
<script src="./monaco/json.worker.bundle.js"></script>
<script src="./monaco/css.worker.bundle.js"></script>
<script src="./monaco/html.worker.bundle.js"></script>
<script src="./monaco/ts.worker.bundle.js"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand All @@ -46,6 +51,5 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>

</html>
</body>
</html>

0 comments on commit aa3a3b8

Please sign in to comment.