Skip to content

Commit

Permalink
feat: add neotw-play-sound plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Sep 30, 2024
1 parent bba9538 commit ad6450d
Show file tree
Hide file tree
Showing 10 changed files with 73 additions and 1 deletion.
1 change: 1 addition & 0 deletions config/dev-plugins.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[
"neotw-play-sound",
"neotw-bot",
"neotw-ui",
"neotw-cmp",
Expand Down
8 changes: 8 additions & 0 deletions docs/plugins/neotw-play-sound.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# neotw-play-sound

> your neotw-play-sound description
## 插件在线地址

<TwPlugin name="neotw-play-sound" />

16 changes: 16 additions & 0 deletions plugins/oeyoews/neotw-play-sound/plugin.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"title": "$:/plugins/oeyoews/neotw-play-sound",
"description": "neotw-play-sound",
"author": "oeyoews",
"version": "0.0.1",
"core-version": ">=5.3.0",
"type": "application/json",
"plugin-type": "plugin",
"name": "neotw-play-sound",
"meat#disabled": "yes",
"qrcode": "yes",
"created": "2024/09-30",
"dependents": [],
"stability": "STABILITY_2_STABLE",
"list": "readme"
}
22 changes: 22 additions & 0 deletions plugins/oeyoews/neotw-play-sound/readme.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
title: $:/plugins/oeyoews/neotw-play-sound/readme
description: neotw-play-sound

[[在线文档|https://neotw.vercel.app/docs/plugins/neotw-play-sound]]

> sounds from https://github.com/joshwcomeau/use-sound/tree/main/stories/sounds

!! 使用

```html
<$button message="neotw-play-sound"> play sound </$button>
<$button>
Play pop sound
<$action-sendmessage $message="neotw-play-sound" audioTiddler="$:/plugins/oeyoews/neotw-play-sound/sounds/pop.mp3" />
</$button>
```

<$button message="neotw-play-sound"> play sound </$button>
<$button>
Play pop sound
<$action-sendmessage $message="neotw-play-sound" audioTiddler="$:/plugins/oeyoews/neotw-play-sound/sounds/pop.mp3" />
</$button>
4 changes: 4 additions & 0 deletions plugins/oeyoews/neotw-play-sound/tiddlers/menu-open.mp3.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type: audio/mpeg
title: $:/plugins/oeyoews/neotw-play-sound/menu-open.mp3

SUQzAwAAAAAwB1RZRVIAAAAGAAAAMjAyMABUREFUAAAABgAAADEzMDIAVElNRQAAAAYAAAAwNzA4AFBSSVYAAA/NAABYTVAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDAgNzkuMTYwNDUxLCAyMDE3LzA1LzA2LTAxOjA4OjIxICAgICAgICAiPgogPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgeG1sbnM6eG1wRE09Imh0dHA6Ly9ucy5hZG9iZS5jb20veG1wLzEuMC9EeW5hbWljTWVkaWEvIgogICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iCiAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bXA6TWV0YWRhdGFEYXRlPSIyMDIwLTAyLTEzVDA3OjA4OjI0LTA1OjAwIgogICB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIEF1ZGl0aW9uIENDIDIwMTguMCAoTWFjaW50b3NoKSIKICAgeG1w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ICAgICBzdEV2dDppbnN0YW5jZUlEPSJ4bXAuaWlkOjlkYWUyZGFhLWI0MzEtNGY2OC1iYWE4LTlhM2ExZmI3YjJmNCIKICAgICAgc3RFdnQ6d2hlbj0iMjAyMC0wMi0xM1QwNzowODoyNC0wNTowMCIKICAgICAgc3RFdnQ6c29mdHdhcmVBZ2VudD0iQWRvYmUgQXVkaXRpb24gQ0MgMjAxOC4wIChNYWNpbnRvc2gpIgogICAgICBzdEV2dDpjaGFuZ2VkPSIvbWV0YWRhdGEiLz4KICAgICA8cmRmOmxpCiAgICAgIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIKICAgICAgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDo4OTk4YzQwNC1mNmRkLTQwNDgtYWIxZS1lYTFhMTQ4YTIwZmQiCiAgICAgIHN0RXZ0OndoZW49IjIwMjAtMDItMTNUMDc6MDg6MjQtMDU6MDAiCiAgICAgIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIEF1ZGl0aW9uIENDIDIwMTguMCAoTWFjaW50b3NoKSIvPgogICAgPC9yZGY6U2VxPgogICA8L3htcE1NOkhpc3Rvcnk+CiAgPC9yZGY6RGVzY3JpcHRpb24+CiA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgCjw/eHBhY2tldCBlbmQ9InciPz4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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3fc9hrSoIUiwKqmavRyKVxGvPDNq2sdVlbRJhgqX1Amg99iVwXVeV4GQUzKYxPsbcHstjt7VNO3/+7TAaYAa4TtT7GMNu0+naDWn4bfpduGkAUu+/+2skjCXamRqNwZiLosOQdWsjLF52MiElA88imY+UOBilULGYIG4BiIIL49jeJWdANkCZZQ2iDGUdRWj5HyJIHUOouSvU5A2QOIIMIeLpfe+IvzLpdD8loYazgGt9aLQw6VWWNcp7U7DLwXnhdK3SSGBI85FA9+VDEIdf9jK51F3fSraC8C7QsFriZqfbflxED0byqNWxppkADlCmkKQMgOC7CoVtrULRMbV6HAUYCDNfTGVEHESXfeQu05VuHHSfCHqWjkERdmZtTWdLlFbykwBS7bfW2ySMOulMYPYAJALhtEQfWgg/FwwFZ3AU38tiFqHoCoGwxslUkK/stgKgqUkGPdWazAlPKJNQTc7blki+Txrucd5Uh6JwzAc1RyWtZhcMTkN0VPDsg5PzsDyNmDrw7hBdDFKkXiV2rK3CwlS1Wiy6TMsUdJkyhZK/1N3cZGmk4ixigCgir4Laexiqjay0OanKx9PYim9ynbEEmknAhL+OinaudoIVW+8Tl0JAgGh07/MNeaWyyDmtvxGITDV67LLFLalm3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5Bm32+ttkkYEhyapsyZGxSye0eBqEAIWjeqokeIwxMD/+7TAqYAmbTtBreMNuykn6DWsYbcg+OWp+il1pORNYs6JUnfgyOX52MW8r71agp8JPcwxopVOSm3LKaJXZXHLd+xJY/E5S2WGqfleXNdpLkYfyNOrHZRLJ58L1M9fYRlVbC+8alUMO82aEQRUElQYs1gz7KHpjJnInF3gh7U4EUqTwhCXaWsZYu8jSVwKByxdDOywJB1MqI3oESLgEoOEEbugJXsomFSszZjDq/4som/L+YwNWlEOzON7CXY3/gARNWh3d322tkgHhZGUG7ZhwSYKCMNLRMlRCUvIABBRkbZo3FiwkxlsXSubV0WFYQOSRQVtPnI7gHW/ZV2s4b4ykTLe4Kdvi9WXZfU5Vdl24RJK0M0cC5TcniE3Sw1UjTj1Xjk1dtH7WrI6tDBspqs7fZm1hiSk34kslYm+jJlpUcBP41qM0TIncZU8UGN7TN2bk3Ry2GtlfSCWtPCluquXBYXTLQW+7Q0RfbuWY6kAw+PKZpfqH1YvIm5WV7RqVUkNyOTXqbWc3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////kF37ba22Rxgtg4IE2zbQ8iAncFgt8l8BwuFQpQNVH3bXCUR6mP/+7TAwAArXT9H7b8Nuz8np/W34bccgq8qib3YiXL7MvPpWE6mlAp1VqxyVp+RU2dSgc3FSsa28jvA3Ny52H2cymVwPFYalkegPsHS1/m4U7stifB+ph51yX4OZ/CYaXu/Lrv4wOXO9DL0sNe90XAk9+HV4QZBcajEYXHMtxdlcKaKcjsMjUxTHHgE1VdN0UYd4u6KBSjLPPq1FLUw9DhF9wiwmAMamc3zuKljbCGt3Uen2ZfI4dpHLm41QxivTrggrbbfW7SSMBBqMhAApQadDIG2IunGgCAl+F8kQMIQyT2T2Rq6cDzYDoU4R0b6RZVYo1Ou2CA9ZHJUJ5kiMzOhcICwMMSddCJm8T4+U8xRl0XeZwWcLwdBLxMh3Z9rc3GqRyGKWHsjztVaj8uVDkReyMwLukidHFWuN82ZvpRfEA0EjdHKESh4SCBhTgKNILweqgttX6HBgCtqA0FHY6vkSQFTpEgmClgKW5EGMsWGTrU5ZsNXWAghMlPpH8eEzluSPEKicgm5uejEMy+kgeljsct340Q//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8REmZ4d322ttgRpW+JDg+QciImKxoQO8Y0CxgYmFgRgINGBAUmO7aAgOesG5F6Jw42Z/npZxAz/+7TAwAApKTtBrb8Nu4an6P3MYbb1Rl/4xFGjOO6cik7LWXTDlPhDsinpRJIm7EMUztPy6ENYR+eZ1I/cuGHqUpsQ277lOJFaSDXuSNfSV0TuWWjONXZu5DJWjRJoLYW6wMylXTOW5p0y0sgrhBMXtLSvwqYo8w9A5+Q7RUibyioAeYvkuBSsKwXWjEIwIjMlIiJEKAgqCQU+h6YHo/DonXL8pgJXIIFvvs3FgmL3xSH2lO62ryvQ/EDWr2FJf9QQAjRoiI//2tgSyWBIIRnZp0LQZUMAmSnBQxlpMLdoVPqiamMFTQFhIcH+GiMSV83irXmbKs5JVYZbqYrtp7IAGpMQZEj0lkv5TSHSz7ikQ2UIWL7jSqjfLoZKoAper9fsEqxOXPwt5GcT8Exx7WZPMth9GGLvlbTGlMSft1mWvp13qSlc9kj6IKt1TnaaqsnRfl7OHzexn6yGIhQ5dGCU64REF4OmyZTpGt0UmEZGBMBLkv0lGpa19lQUCIxtajK8npWoyGWLoQRgpONmAXcuR3Kdv0NPPUcV1FyzDX//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////gAgaLDxG221sAcBp1G5fwAZR3kJkQAedWt04uFgAPAzKHYcChQIOWQQ6yZJrI97stjLnF7VMBoTcVKX/+7TAwAAopTVL7WMNu5em6T3MYbd0gXQWekhCWpPy7oXArGZDpKEzi8xb5uKcKD0fR8SDBxQsNPhQJ71owzAUubnkzCYXgXaj8MP07S2FupIohKHtMVUQGqTkEQS9UUlzK18Q2nK5YIar6AiYbQHyVyoE5C13RbA/L+JwI4xJXLUyEUMIfIOvUk0NBROTCddnkST6YAglCyEf0oZKoclYhTAsCg0y4V+wWyp7qRmzLEwG+kDUI1Ca0PxftNLy6iY0EUZ4iI//2toLcwIrswwJf5oI4G2tOIiam4kNDASQIsFdsaT8rFs7oiLNF77Kp+xioOXFSGfE5WTUTSNlyL3vMSkTr1ZWu2aabPbrrH3MrD55mazvLT0Qkbv1LqAlJqYtQ8crSbzRVWIi+B01eMSESzVlaUgbEsWpz1IsbSB8WTptZeASi0dF8WgSJQyBsOQDi0HJFdSiYTRFodJYuvR3QMV/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+7TAwAA/5TdR7TGNuK+FpPGMJJ3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////ukl/W3AAAL3KOtYLgoThkZFE0oJDqXiyWnFsU7lJRIQzqrOBTYuL/9//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+7TAwAA/8AEuAAAAIK4AJcAAAAT///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABUQUcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAyMDIwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
title: $:/plugins/oeyoews/neotw-play-sound/sounds/pop.mp3
20 changes: 20 additions & 0 deletions plugins/oeyoews/neotw-play-sound/tiddlers/startup.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/*\
title: $:/plugins/oeyoews/neotw-play-sound/startup.js
type: application/javascript
module-type: startup
play sound
\*/

// https://stackoverflow.com/questions/17762763/play-wav-sound-file-encoded-in-base64-with-javascript
exports.startup = function () {
const pluginTitle = '$:/plugins/oeyoews/neotw-play-sound';
$tw.rootWidget.addEventListener('neotw-play-sound', (event) => {
const { audioTiddler } = event.paramObject || {
audioTiddler: pluginTitle + '/menu-open.mp3',
};
const soundBase64 = $tw.wiki.getTiddlerText(audioTiddler);
const sound = new Audio('data:audio/mp3;base64,' + soundBase64);
sound.play();
});
};
2 changes: 1 addition & 1 deletion plugins/oeyoews/neotw/tiddlers/startup/prevent-js.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ https://talk.tiddlywiki.org/t/prevent-prevent-leave-you-have-unsaved-changes/819

exports.startup = function () {
$tw.unloadTasks = $tw.unloadTasks.filter(
(task) => !task.toString().includes('confirmationMessage')
(task) => !task.toString().includes('confirmationMessage'),
);
};
File renamed without changes.

0 comments on commit ad6450d

Please sign in to comment.