Commit Graph

5 Commits (4384b85046c3fffe11d0dc459a5b64604337a72f)

Author SHA1 Message Date
wxiaoguang 4d0a72a271
Revert "Prevent possible XSS when using jQuery ()" ()
This reverts commit 661d3d28e9.
Gusted 661d3d28e9
Prevent possible XSS when using jQuery ()
In the case of misuse or misunderstanding from a developer whereby,
if `sel` can receive user-controlled data, jQuery `$(sel)` can lead to the
creation of a new element. Current usage is using hard-coded selectors
in the templates, but nobody prevents that from expanding to
user-controlled somehow.
wxiaoguang bb71ceeeb2
Improve async/await usage, and sort init calls in `index.js` ()
* clean up async/await, and sort init calls in `index.js
* use `const _promise` to indicate that we do not need await an async function
wxiaoguang 2add8fe9be
Frontend refactor, PascalCase to camelCase, remove unused code ()
* Frontend refactor, PascalCase to camelCase, remove unused code

* fix
wxiaoguang 1a7473ff45
Split `index.js` to separate files ()
* split `index.js` to separate files

* tune clipboard

* fix promise

* fix document

* remove intermediate empty file

* fix async event listener

* use `export function` instead of `export {}`, add more comments

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>