@lark-apaas/devtool-kits 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/error.html +21 -25
- package/package.json +1 -1
package/dist/error.html
CHANGED
|
@@ -105,27 +105,6 @@
|
|
|
105
105
|
background-color: #1E40AF; /* active:bg-blue-700 */
|
|
106
106
|
}
|
|
107
107
|
</style>
|
|
108
|
-
</head>
|
|
109
|
-
<body>
|
|
110
|
-
<div class="container">
|
|
111
|
-
<div class="content">
|
|
112
|
-
<img
|
|
113
|
-
src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/template/render_error.svg"
|
|
114
|
-
alt="render error"
|
|
115
|
-
class="error-image"
|
|
116
|
-
/>
|
|
117
|
-
<p class="title">哎呀,写错代码了</p>
|
|
118
|
-
<p class="description">可复制错误信息,或告诉妙搭进行修复</p>
|
|
119
|
-
<div class="button-group">
|
|
120
|
-
<button class="button button-copy" id="copyBtn">
|
|
121
|
-
复制错误信息
|
|
122
|
-
</button>
|
|
123
|
-
<button class="button button-repair" id="repairBtn">
|
|
124
|
-
告诉妙搭修复
|
|
125
|
-
</button>
|
|
126
|
-
</div>
|
|
127
|
-
</div>
|
|
128
|
-
</div>
|
|
129
108
|
|
|
130
109
|
<script>
|
|
131
110
|
// 全局错误对象
|
|
@@ -134,10 +113,6 @@
|
|
|
134
113
|
};
|
|
135
114
|
// 初始化页面
|
|
136
115
|
function init() {
|
|
137
|
-
// 绑定事件
|
|
138
|
-
document.getElementById('copyBtn').addEventListener('click', handleCopy);
|
|
139
|
-
document.getElementById('repairBtn').addEventListener('click', handleRepair);
|
|
140
|
-
|
|
141
116
|
// 通知前端,渲染错误页面已准备就绪
|
|
142
117
|
sendPostMessage({
|
|
143
118
|
type: 'PreviewReady'
|
|
@@ -276,5 +251,26 @@
|
|
|
276
251
|
init();
|
|
277
252
|
}
|
|
278
253
|
</script>
|
|
254
|
+
</head>
|
|
255
|
+
<body>
|
|
256
|
+
<div class="container">
|
|
257
|
+
<div class="content">
|
|
258
|
+
<img
|
|
259
|
+
src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylcylz_fsph_ryhs/ljhwZthlaukjlkulzlp/feisuda/template/render_error.svg"
|
|
260
|
+
alt="render error"
|
|
261
|
+
class="error-image"
|
|
262
|
+
/>
|
|
263
|
+
<p class="title">哎呀,写错代码了</p>
|
|
264
|
+
<p class="description">可复制错误信息,或告诉妙搭进行修复</p>
|
|
265
|
+
<div class="button-group">
|
|
266
|
+
<button class="button button-copy" id="copyBtn" onclick="handleCopy()">
|
|
267
|
+
复制错误信息
|
|
268
|
+
</button>
|
|
269
|
+
<button class="button button-repair" id="repairBtn" onclick="handleRepair()">
|
|
270
|
+
告诉妙搭修复
|
|
271
|
+
</button>
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
279
275
|
</body>
|
|
280
276
|
</html>
|