Skip to content

Commit

Permalink
feat: Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed Mar 13, 2024
1 parent 0b28e75 commit 3b0cd2b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/examples/src/js/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ export function syntaxHighlight(
const PARSE_RE = /("(\\u[a-zA-Z0-9]{4}|\\[^u]|[^\\"])*"(\s*:)?|\b(true|false|null)\b|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)/g;

return json
.replace(/&/g, '&')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/&/g, '&amp;')
.replace(PARSE_RE, match => {
let className = numberClassName;

Expand Down
2 changes: 1 addition & 1 deletion packages/examples/static/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"/><title>二维码</title><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="public/favicon.ico"/><script defer="defer" src="public/js/b584651746e68a5c.js"></script><script defer="defer" src="public/js/bd9d04b8347386b1.js"></script><script defer="defer" src="public/js/c533eae195aeccb9.js"></script><link href="public/css/be1a0c0d225bc424.css" rel="stylesheet"/></head><body><noscript>您已禁用 JavaScript,网站无法正常工作,请启用 JavaScript!</noscript><div id="app"></div></body></html>
<!doctype html><html lang="zh-CN"><head><meta charset="UTF-8"/><title>二维码</title><meta name="viewport" content="width=device-width,initial-scale=1"/><link rel="icon" href="public/favicon.ico"/><script defer="defer" src="public/js/e3f70f93e92c8a03.js"></script><script defer="defer" src="public/js/bd9d04b8347386b1.js"></script><script defer="defer" src="public/js/c533eae195aeccb9.js"></script><link href="public/css/be1a0c0d225bc424.css" rel="stylesheet"/></head><body><noscript>您已禁用 JavaScript,网站无法正常工作,请启用 JavaScript!</noscript><div id="app"></div></body></html>

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion packages/examples/static/public/js/b584651746e68a5c.js

This file was deleted.

1 change: 1 addition & 0 deletions packages/examples/static/public/js/e3f70f93e92c8a03.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b0cd2b

Please sign in to comment.