-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: support sendBeacon network * chore: add sendBeacon dev * feat: print unhandledrejection log * refactor: change 'unhandledrejection' to 'Uncaught (in promise)' * Update issue templates * chore: rename functions * chore(log): use `addEventListener("error", ...)` instead of `window.onerror`. * docs: update usage * fix(storage): Fix the issue that the cookie of the non-first-level domain cannot be deleted. (issue #398) * chore: Use TypeScript. * Feat(Network): Display "Type" (Request Type) in "General", including `xhr|fetch|ping`. * chore(Network): Optimization mockSendBeacon(). * fix(Network): Display fetch response as formatted JSON. * chore(Network): Optimization mockFetch(), convert response body into text according to the `content-type`. * Fix(Network): Recover original `window.fetch()` method when remove Network panel. * Fix(Element): Fix issue that elements are rendered as nested when `attributes` or `characterData` changed. (issue #399) * chore: add test file. * chore: remove console.log * docs: update docs * chore: build v3.6.0 Co-authored-by: cola119 <[email protected]> Co-authored-by: zimv <[email protected]>
- Loading branch information
1 parent
ec4e845
commit ad3a9cf
Showing
34 changed files
with
1,694 additions
and
1,081 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
vConsole Version: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, viewport-fit=cover"> | ||
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> | ||
<title>Test: Element</title> | ||
<link href="../example/lib/weui.min.css" rel="stylesheet"/> | ||
<link href="../example/lib/demo.css" rel="stylesheet"/> | ||
|
||
<script type="module" src="../dist/vconsole.min.js"></script> | ||
</head> | ||
<body ontouchstart> | ||
<div id="page" class="page"> | ||
<h1 id="title" class="page_title">Element</h1> | ||
<div id="text" class="weui_text_area"> | ||
Hello World! | ||
</div> | ||
<a onclick="changeAttr()" href="javascript:;" class="weui_btn weui_btn_default">changeAttr</a> | ||
<a onclick="changeCharacterData()" href="javascript:;" class="weui_btn weui_btn_default">changeCharacterData</a> | ||
</div> | ||
</body> | ||
</html> | ||
|
||
<script type="module"> | ||
import '../dist/vconsole.min.js'; | ||
|
||
window.vConsole = new window.VConsole({ | ||
maxLogNumber: 1000, | ||
// disableLogScrolling: true, | ||
onReady: function() { | ||
console.log('vConsole is ready.'); | ||
}, | ||
onClearLog: function() { | ||
console.log('on clearLog'); | ||
} | ||
}); | ||
</script> | ||
|
||
<script> | ||
let handleMethod; | ||
function changeAttr() { | ||
handleMethod = () => { | ||
console.log('changeAttr'); | ||
document.body.style.background = `hsl(${(Math.random() * 255) | 0}, 92%, 67%)`; | ||
document.getElementById('page').style.background = `hsl(${(Math.random() * 255) | 0}, 92%, 67%)`; | ||
}; | ||
} | ||
function changeCharacterData() { | ||
handleMethod = () => { | ||
console.log('changeCharacterData'); | ||
const node = document.getElementById('title').firstChild; | ||
node.textContent = Math.random(); | ||
}; | ||
} | ||
|
||
document.addEventListener("click", () => { | ||
if (handleMethod) { | ||
handleMethod(); | ||
} | ||
}); | ||
</script> |
Oops, something went wrong.