用 bun fmt 格式化全部代码和文档
- bunfig.toml 的 [fmt]:不写分号、单引号、一行最长 160,和原来的写法一致 - .prettierignore:docs/教材摘要/ 是书上的摘录,不格式化 - 模板里一行写两条语句的事件处理(@keydown.delete、@dblclick)改成调用方法:去掉分号后拆成两行,Vue 编译不过 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d4b8bf9241
commit
de277d3e9d
102 files changed
+1971
-1059
No files matched your search
+8
-2
@@ -22,10 +22,16 @@
|
||||
if (!app || app.hasAttribute('data-v-app')) return
|
||||
app.innerHTML =
|
||||
'<div style="max-width:560px;margin:80px auto;padding:0 16px;font:16px/1.8 sans-serif;color:#333">' +
|
||||
'<h2 style="margin:0 0 12px">' + title + '</h2><p>' + text + '</p>' +
|
||||
'<h2 style="margin:0 0 12px">' +
|
||||
title +
|
||||
'</h2><p>' +
|
||||
text +
|
||||
'</p>' +
|
||||
'<p>用 360 浏览器、QQ 浏览器时,请点地址栏右边的闪电图标,切换到<b>极速模式</b>;或者换用新版的 <b>Chrome</b>、<b>Edge</b>。' +
|
||||
'还是打不开的话,请把下面这行文字告诉老师:</p>' +
|
||||
'<p style="font-size:13px;color:#888;word-break:break-all">' + navigator.userAgent.replace(/</g, '<') + '</p></div>'
|
||||
'<p style="font-size:13px;color:#888;word-break:break-all">' +
|
||||
navigator.userAgent.replace(/</g, '<') +
|
||||
'</p></div>'
|
||||
}
|
||||
window.addEventListener('error', function (event) {
|
||||
if (event && event.error instanceof SyntaxError) {
|
||||
|
||||
Reference in new issue
Block a user