Skip to content

Commit

Permalink
chore: cleanup examples related code
Browse files Browse the repository at this point in the history
  • Loading branch information
molant committed Sep 21, 2021
1 parent 627de10 commit 37fb4ad
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 178 deletions.
168 changes: 0 additions & 168 deletions data/examples/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,62 +27,6 @@
"documentation": ""
}
},
{
"name": "Clipboard access",
"electron": {
"gist": "https://gist.github.com/8ea53811186140e4c4c9d9729fcb2353",
"status": "Available since 10-x-y with flag",
"documentation": ""
},
"pwa": {
"gist": "",
"status": "https://crbug.com/897289",
"documentation": "https://github.com/WICG/raw-clipboard-access/blob/master/explainer.md"
},
"react-native": {
"gist": "",
"status": "",
"documentation": ""
},
"webview2": {
"gist": "",
"status": "",
"documentation": ""
},
"xamarin": {
"gist": "",
"status": "",
"documentation": ""
}
},
{
"name": "Compression codecs",
"electron": {
"gist": "https://gist.github.com/6038c9a6ad902b7b0dbab813dfbf600a",
"status": "Available since 8-x-y",
"documentation": ""
},
"pwa": {
"gist": "",
"status": "https://crbug.com/897298",
"documentation": "https://github.com/WICG/compression/blob/master/explainer.md"
},
"react-native": {
"gist": "",
"status": "",
"documentation": ""
},
"webview2": {
"gist": "",
"status": "",
"documentation": ""
},
"xamarin": {
"gist": "",
"status": "",
"documentation": ""
}
},
{
"name": "Custom title bar",
"electron": {
Expand Down Expand Up @@ -223,34 +167,6 @@
"documentation": ""
}
},
{
"name": "Human Interface access",
"electron": {
"gist": "https://gist.github.com/3239fa09314baae55ff2bab76e3285ed",
"status": "https://github.com/electron/electron/pull/30213",
"documentation": ""
},
"pwa": {
"gist": "",
"status": "https://crbug.com/890096",
"documentation": "https://web.dev/hid/"
},
"react-native": {
"gist": "",
"status": "",
"documentation": ""
},
"webview2": {
"gist": "",
"status": "",
"documentation": ""
},
"xamarin": {
"gist": "",
"status": "",
"documentation": ""
}
},
{
"name": "Idle detection",
"electron": {
Expand Down Expand Up @@ -279,62 +195,6 @@
"documentation": ""
}
},
{
"name": "Multi-screen window placement",
"electron": {
"gist": "",
"status": "",
"documentation": ""
},
"pwa": {
"gist": "",
"status": "https://crbug.com/897300",
"documentation": "https://web.dev/multi-screen-window-placement/"
},
"react-native": {
"gist": "",
"status": "",
"documentation": ""
},
"webview2": {
"gist": "",
"status": "",
"documentation": ""
},
"xamarin": {
"gist": "",
"status": "",
"documentation": ""
}
},
{
"name": "Notifications",
"electron": {
"gist": "",
"status": "",
"documentation": ""
},
"pwa": {
"gist": "",
"status": "",
"documentation": "https://web.dev/push-notifications-overview/"
},
"react-native": {
"gist": "",
"status": "",
"documentation": ""
},
"webview2": {
"gist": "",
"status": "",
"documentation": ""
},
"xamarin": {
"gist": "",
"status": "",
"documentation": ""
}
},
{
"name": "Run on OS login",
"electron": {
Expand Down Expand Up @@ -475,34 +335,6 @@
"documentation": ""
}
},
{
"name": "Using local fonts",
"electron": {
"gist": "",
"status": "",
"documentation": ""
},
"pwa": {
"gist": "",
"status": "https://crbug.com/535764 ",
"documentation": "https://web.dev/local-fonts/"
},
"react-native": {
"gist": "",
"status": "",
"documentation": ""
},
"webview2": {
"gist": "",
"status": "",
"documentation": ""
},
"xamarin": {
"gist": "",
"status": "",
"documentation": ""
}
},
{
"name": "Video codecs",
"electron": {
Expand Down
5 changes: 0 additions & 5 deletions docs/examples-list.pmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@
| Feature | Electron | React Native | WebView2 | Xamarin |
| --- | :---: | :---: | :---: | :---: |
| Bluetooth access |✅ | | | |
| Clipboard access |✅ | | | |
| Compression codecs |✅ | | | |
| Custom title bar |🛠 | | | |
| File System access |✅ | | | |
| Gamepad access | | | | |
| Generic sensor access | | | | |
| Geolocation | | | | |
| Human Interface access |🛠 | | | |
| Idle detection | | | | |
| Multi-screen window placement | | | | |
| Notifications | | | | |
| Run on OS login | | | | |
| Serial access |✅ | | | |
| URL handler | | | | |
| [URL protocol handler](/docs/examples/url-protocol-handler) |✅ ([Docs](https://www.electronjs.org/docs/latest/tutorial/launch-app-from-url-in-another-app)) | | | |
| USB access | | | | |
| Using local fonts | | | | |
| Video codecs | | | | |
2 changes: 1 addition & 1 deletion scripts/examples/features-tracker.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ QuicTransport https://web.dev/webtransport/ https://crbug.com/1011392 Data
IndexedDB https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API Data
Streams API: transferable streams Transferable Streams Explainer Available since 11-x-y https://gist.github.com/jkleinsc/019452af710adab23bdf13a04ffae95f https://crbug.com/894838 Data/Streams
WebSocketStream https://web.dev/websocketstream/ Available since 8-x-y https://gist.github.com/bc39d84ce53330c9502e8fd80aaf7b68 https://crbug.com/983030 Data/Streams
PointerLock unadjustedMovement https://web.dev/disable-mouse-acceleration/ Available since 11-x-y https://gist.github.com/b48732f4d0580a2ad081ef0f86c4798f https://crbug.com/982379 Device pressing "ESC" to exit pointer lock requires a small bit of code to enable: document.addEventListener('keydown', function(event) { if (event.key === "Escape") { document.exitPointerLock(); } });
PointerLock unadjustedMovement https://web.dev/disable-mouse-acceleration/ Available since 11-x-y https://gist.github.com/b48732f4d0580a2ad081ef0f86c4798f https://crbug.com/982379 Device pressing ESC to exit pointer lock requires a small bit of code to enable
Web Serial API https://web.dev/serial/ Available since 12-x-y https://gist.github.com/284893c7f01d3cb4559508ca06919481 https://crbug.com/884928 Device
WebHID (Human Interface Device) https://web.dev/hid/ https://github.com/electron/electron/pull/30213 https://gist.github.com/3239fa09314baae55ff2bab76e3285ed https://crbug.com/890096 Device
Multi-Screen Window Placement https://web.dev/multi-screen-window-placement/ https://crbug.com/897300 Device
Expand Down
4 changes: 0 additions & 4 deletions scripts/process-examples-sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@ const globby = require('globby');
* us to rename the feature to something more generic we can use for that goal.
*/
const ALIASES = new Map([
['Compression codecs', 'Compression codecs'],
['Web Serial API', 'Serial access'],
['WebHID (Human Interface Device)', 'Human Interface access'],
['Multi-Screen Window Placement', 'Multi-screen window placement'],
['Web Bluetooth', 'Bluetooth access'],
['Generic sensor API', 'Generic sensor access'],
['Geolocation API', 'Geolocation'],
Expand All @@ -29,7 +26,6 @@ const ALIASES = new Map([
['File System Access', 'File System access'],
['WebCodecs', 'Video codecs'],
['Push Notifications', 'Notifications'],
['Local Font Access', 'Using local fonts'],
['Idle Detection', 'Idle detection'],
['Run PWA on OS Login', 'Run on OS login'],
['URL Protocol Handler Registration for PWAs', 'URL protocol handler'],
Expand Down

0 comments on commit 37fb4ad

Please sign in to comment.