mirror of
https://github.com/liriliri/eruda.git
synced 2026-02-02 09:49:00 +08:00
feat: add snippet for loading touches plugin
This commit is contained in:
@@ -112,6 +112,7 @@ eruda.init({
|
||||
* [eruda-geolocation](https://github.com/liriliri/eruda-geolocation): Test geolocation.
|
||||
* [eruda-dom](https://github.com/liriliri/eruda-dom): Navigate dom tree.
|
||||
* [eruda-orientation](https://github.com/liriliri/eruda-orientation): Test orientation api.
|
||||
* [eruda-touches](https://github.com/liriliri/eruda-touches): Visualize screen touches.
|
||||
|
||||
If you want to create a plugin yourself, follow the guides [here](./doc/PLUGIN.md).
|
||||
|
||||
|
||||
@@ -113,6 +113,7 @@ eruda.init({
|
||||
* [eruda-geolocation](https://github.com/liriliri/eruda-geolocation):测试地理位置接口。
|
||||
* [eruda-dom](https://github.com/liriliri/eruda-dom):浏览 dom 树。
|
||||
* [eruda-orientation](https://github.com/liriliri/eruda-orientation):测试重力感应接口。
|
||||
* [eruda-touches](https://github.com/liriliri/eruda-orientation):可视化屏幕 Touch 事件触发。
|
||||
|
||||
如果你想要自己编写插件,可以查看这里的[教程](./PLUGIN.md)。
|
||||
|
||||
|
||||
@@ -127,6 +127,13 @@ export default [
|
||||
},
|
||||
desc: 'Test orientation api'
|
||||
},
|
||||
{
|
||||
name: 'Load Touches Plugin',
|
||||
fn() {
|
||||
loadPlugin('touches')
|
||||
},
|
||||
desc: 'Visualize screen touches'
|
||||
},
|
||||
{
|
||||
name: 'Restore Settings',
|
||||
fn() {
|
||||
@@ -217,5 +224,6 @@ const pluginVersion = {
|
||||
benchmark: '1.0.0',
|
||||
geolocation: '1.1.0',
|
||||
dom: '1.1.0',
|
||||
orientation: '1.0.0'
|
||||
orientation: '1.0.0',
|
||||
touches: '1.0.0'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user