Skip to content

Commit

Permalink
fix: window is not defined in monitorLocationChange
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Mar 19, 2024
1 parent 9366705 commit f17190c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/plugins/syncadaptor-ui.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"author":"LinOnetwo","core-version":">=5.1.22","dependents":"$:/plugins/linonetwo/expo-file-system-syncadaptor","description":"UI for $:/plugins/linonetwo/expo-file-system-syncadaptor","list":"readme tree","name":"TidGi","plugin-priority-comment":"Shouldn't add priority, otherwise content won't load.","plugin-type":"plugin","text":"{\"tiddlers\":{\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/readme\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/readme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! UI\\n\\nTo fix [[https://github.com/Jermolene/TiddlyWiki5/issues/7553]]\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/tree\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/tree\",\"caption\":\"{{$:/language/SideBar/Explorer/Caption}}\",\"text\":\"<<tree \\\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/\\\">>\\n\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/icon/cloud\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/icon/cloud\",\"tags\":\"$:/tags/Image\",\"text\":\"<svg class=\\\"tc-image-cloud tc-image-button\\\" width=\\\"22pt\\\" height=\\\"22pt\\\" viewBox=\\\"0 0 128 128\\\"><g><path d=\\\"M24 103C10.745 103 0 92.255 0 79c0-9.697 5.75-18.05 14.027-21.836A24.787 24.787 0 0114 56c0-13.255 10.745-24 24-24 1.373 0 2.718.115 4.028.337C48.628 24.2 58.707 19 70 19c19.882 0 36 16.118 36 36v.082c12.319 1.016 22 11.336 22 23.918 0 12.239-9.16 22.337-20.999 23.814L107 103H24z\\\"/><path class=\\\"tc-image-cloud-idle\\\" d=\\\"M57.929 84.698a6 6 0 01-8.485 0L35.302 70.556a6 6 0 118.485-8.485l9.9 9.9L81.97 43.686a6 6 0 018.485 8.486L57.929 84.698z\\\"/><path class=\\\"tc-image-cloud-progress tc-animate-rotate-slow\\\" d=\\\"M44.8 40a3.6 3.6 0 100 7.2h2.06A23.922 23.922 0 0040 64c0 13.122 10.531 23.785 23.603 23.997L64 88l.001-7.2c-9.171 0-16.626-7.348-16.798-16.477L47.2 64c0-5.165 2.331-9.786 5.999-12.868L53.2 55.6a3.6 3.6 0 107.2 0v-12a3.6 3.6 0 00-3.6-3.6h-12zM64 40v7.2c9.278 0 16.8 7.522 16.8 16.8 0 5.166-2.332 9.787-6 12.869V72.4a3.6 3.6 0 10-7.2 0v12a3.6 3.6 0 003.6 3.6h12a3.6 3.6 0 100-7.2l-2.062.001A23.922 23.922 0 0088 64c0-13.255-10.745-24-24-24z\\\"/></g></svg>\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/save/offline\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/save/offline\",\"text\":\"\\\\import [subfilter{$:/core/config/GlobalImportFilter}]\\n\\\\define saveTiddlerFilter()\\n[is[tiddler]] -[[$:/boot/boot.css]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[[$:/plugins/tiddlywiki/filesystem]] -[[$:/plugins/linonetwo/expo-file-system-syncadaptor-ui]] -[prefix[$:/temp/]] +[sort[title]] $(publishFilter)$\\n\\\\end\\n{{$:/core/templates/tiddlywiki5.html}}\\n\"},\"$:/core/ui/Buttons/save-wiki\":{\"title\":\"$:/core/ui/Buttons/save-wiki\",\"tags\":\"$:/tags/PageControls\",\"caption\":\"{{$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/icon/cloud}} TidGi status\",\"description\":\"Status of synchronisation with TidGi\",\"text\":\"\\\\whitespace trim\\n\\\\define config-title()\\n$:/config/PageControlButtons/Visibility/$(listItem)$\\n\\\\end\\n<$button popup=<<qualify \\\"$:/state/popup/save-wiki\\\">> tooltip=\\\"Status of synchronisation with server\\\" aria-label=\\\"Server status\\\" class=<<tv-config-toolbar-class>> selectedClass=\\\"tc-selected\\\">\\n<span class=\\\"tc-dirty-indicator\\\">\\n<$list filter=\\\"[<tv-config-toolbar-icons>match[yes]]\\\">\\n{{$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/icon/cloud}}\\n</$list>\\n<$list filter=\\\"[<tv-config-toolbar-text>match[yes]]\\\">\\n<span class=\\\"tc-btn-text\\\"><$text text=\\\"Server status\\\"/></span>\\n</$list>\\n</span>\\n</$button>\\n<$reveal state=<<qualify \\\"$:/state/popup/save-wiki\\\">> type=\\\"popup\\\" position=\\\"belowleft\\\" animate=\\\"yes\\\">\\n<div class=\\\"tc-drop-down\\\">\\n<$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/TidgiSyncadaptorDropdown]!has[draft.of]]\\\" variable=\\\"listItem\\\">\\n<$transclude tiddler=<<listItem>>/>\\n</$list>\\n</div>\\n</$reveal>\\n\"},\"$:/config/SaveWikiButton/Template\":{\"title\":\"$:/config/SaveWikiButton/Template\",\"text\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/save/offline\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/styles\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/styles\",\"tags\":\"[[$:/tags/Stylesheet]]\",\"text\":\"\\\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock\\n\\nbody.tc-dirty span.tc-dirty-indicator svg {\\n\\ttransition: fill 250ms ease-in-out;\\n}\\n\\nbody .tc-image-cloud-idle {\\n\\tfill: <<colour background>>;\\n\\ttransition: opacity 250ms ease-in-out;\\n\\topacity: 1;\\n\\tdisplay: unset;\\n}\\n\\nbody.tc-dirty .tc-image-cloud-idle {\\n\\topacity: 0;\\n\\tdisplay: none;\\n}\\n\\nbody .tc-image-cloud-progress {\\n\\ttransition: opacity 250ms ease-in-out;\\n\\ttransform-origin: 50% 50%;\\n\\ttransform: rotate(359deg);\\n\\tanimation: animation-rotate-slow 2s infinite linear;\\n\\tfill: <<colour background>>;\\n\\tdisplay: none;\\n\\topacity: 0;\\n}\\n\\nbody.tc-dirty .tc-image-cloud-progress {\\n\\topacity: 1;\\n\\tdisplay: unset;\\n}\\n\\n@keyframes animation-rotate-slow {\\n\\tfrom {\\n\\t\\ttransform: rotate(0deg);\\n\\t}\\n\\tto {\\n\\t\\ttransform: scale(359deg);\\n\\t}\\n}\\n\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/copy-logs\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/copy-logs\",\"tags\":\"$:/tags/TidgiSyncadaptorDropdown\",\"text\":\"<$button message=\\\"tm-copy-syncer-logs-to-clipboard\\\" class=\\\"tc-btn-invisible\\\">\\n{{$:/core/images/copy-clipboard}} Copy TidGi syncer logs to clipboard\\n</$button>\\n\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/refresh\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/refresh\",\"tags\":\"$:/tags/TidgiSyncadaptorDropdown\",\"text\":\"<$reveal state=\\\"$:/status/IsLoggedIn\\\" type=\\\"match\\\" text=\\\"yes\\\">\\n<$button tooltip=\\\"Sync from TidGi main process\\\" aria-label=\\\"Refresh from server\\\" class=\\\"tc-btn-invisible\\\">\\n<$action-sendmessage $message=\\\"tm-server-refresh\\\"/>\\n{{$:/core/images/refresh-button}}<span class=\\\"tc-btn-text\\\"><$text text=\\\"Sync from TidGi main process\\\"/></span>\\n</$button>\\n</$reveal>\\n\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/save-snapshot\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/save-snapshot\",\"tags\":\"$:/tags/TidgiSyncadaptorDropdown\",\"text\":\"<$button class=\\\"tc-btn-invisible\\\">\\n<$wikify name=\\\"site-title\\\" text={{$:/config/SaveWikiButton/Filename}}>\\n<$action-sendmessage $message=\\\"tm-download-file\\\" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>\\n</$wikify>\\n{{$:/core/images/download-button}} Save snapshot for offline use\\n</$button>\\n\"},\"$:/tags/TidgiSyncadaptorDropdown\":{\"title\":\"$:/tags/TidgiSyncadaptorDropdown\",\"list\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/refresh $:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/save-snapshot $:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/copy-logs\"}}}","title":"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui","type":"application/json","version":"0.1.0","Modern.TiddlyDev#SHA256-Hashed":"88bca903073179cd366f1d6a3f190cc94553f0257cbcf2c0f7097b417faea987"}
{"author":"LinOnetwo","core-version":">=5.1.22","dependents":"$:/plugins/linonetwo/expo-file-system-syncadaptor","description":"UI for $:/plugins/linonetwo/expo-file-system-syncadaptor","list":"readme tree","name":"TidGi","plugin-priority-comment":"Shouldn't add priority, otherwise content won't load.","plugin-type":"plugin","text":"{\"tiddlers\":{\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/readme\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/readme\",\"type\":\"text/vnd.tiddlywiki\",\"text\":\"!! UI\\n\\nTo fix [[https://github.com/Jermolene/TiddlyWiki5/issues/7553]]\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/tree\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/tree\",\"caption\":\"{{$:/language/SideBar/Explorer/Caption}}\",\"text\":\"<<tree \\\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/\\\">>\\n\"},\"$:/config/SaveWikiButton/Template\":{\"title\":\"$:/config/SaveWikiButton/Template\",\"text\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/save/offline\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/icon/cloud\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/icon/cloud\",\"tags\":\"$:/tags/Image\",\"text\":\"<svg class=\\\"tc-image-cloud tc-image-button\\\" width=\\\"22pt\\\" height=\\\"22pt\\\" viewBox=\\\"0 0 128 128\\\"><g><path d=\\\"M24 103C10.745 103 0 92.255 0 79c0-9.697 5.75-18.05 14.027-21.836A24.787 24.787 0 0114 56c0-13.255 10.745-24 24-24 1.373 0 2.718.115 4.028.337C48.628 24.2 58.707 19 70 19c19.882 0 36 16.118 36 36v.082c12.319 1.016 22 11.336 22 23.918 0 12.239-9.16 22.337-20.999 23.814L107 103H24z\\\"/><path class=\\\"tc-image-cloud-idle\\\" d=\\\"M57.929 84.698a6 6 0 01-8.485 0L35.302 70.556a6 6 0 118.485-8.485l9.9 9.9L81.97 43.686a6 6 0 018.485 8.486L57.929 84.698z\\\"/><path class=\\\"tc-image-cloud-progress tc-animate-rotate-slow\\\" d=\\\"M44.8 40a3.6 3.6 0 100 7.2h2.06A23.922 23.922 0 0040 64c0 13.122 10.531 23.785 23.603 23.997L64 88l.001-7.2c-9.171 0-16.626-7.348-16.798-16.477L47.2 64c0-5.165 2.331-9.786 5.999-12.868L53.2 55.6a3.6 3.6 0 107.2 0v-12a3.6 3.6 0 00-3.6-3.6h-12zM64 40v7.2c9.278 0 16.8 7.522 16.8 16.8 0 5.166-2.332 9.787-6 12.869V72.4a3.6 3.6 0 10-7.2 0v12a3.6 3.6 0 003.6 3.6h12a3.6 3.6 0 100-7.2l-2.062.001A23.922 23.922 0 0088 64c0-13.255-10.745-24-24-24z\\\"/></g></svg>\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/save/offline\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/save/offline\",\"text\":\"\\\\import [subfilter{$:/core/config/GlobalImportFilter}]\\n\\\\define saveTiddlerFilter()\\n[is[tiddler]] -[[$:/boot/boot.css]] -[prefix[$:/HistoryList]] -[status[pending]plugin-type[import]] -[type[application/javascript]library[yes]] -[[$:/boot/boot.js]] -[[$:/boot/bootprefix.js]] -[[$:/plugins/tiddlywiki/filesystem]] -[[$:/plugins/linonetwo/expo-file-system-syncadaptor-ui]] -[prefix[$:/temp/]] +[sort[title]] $(publishFilter)$\\n\\\\end\\n{{$:/core/templates/tiddlywiki5.html}}\\n\"},\"$:/core/ui/Buttons/save-wiki\":{\"title\":\"$:/core/ui/Buttons/save-wiki\",\"tags\":\"$:/tags/PageControls\",\"caption\":\"{{$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/icon/cloud}} TidGi status\",\"description\":\"Status of synchronisation with TidGi\",\"text\":\"\\\\whitespace trim\\n\\\\define config-title()\\n$:/config/PageControlButtons/Visibility/$(listItem)$\\n\\\\end\\n<$button popup=<<qualify \\\"$:/state/popup/save-wiki\\\">> tooltip=\\\"Status of synchronisation with server\\\" aria-label=\\\"Server status\\\" class=<<tv-config-toolbar-class>> selectedClass=\\\"tc-selected\\\">\\n<span class=\\\"tc-dirty-indicator\\\">\\n<$list filter=\\\"[<tv-config-toolbar-icons>match[yes]]\\\">\\n{{$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/icon/cloud}}\\n</$list>\\n<$list filter=\\\"[<tv-config-toolbar-text>match[yes]]\\\">\\n<span class=\\\"tc-btn-text\\\"><$text text=\\\"Server status\\\"/></span>\\n</$list>\\n</span>\\n</$button>\\n<$reveal state=<<qualify \\\"$:/state/popup/save-wiki\\\">> type=\\\"popup\\\" position=\\\"belowleft\\\" animate=\\\"yes\\\">\\n<div class=\\\"tc-drop-down\\\">\\n<$list filter=\\\"[all[shadows+tiddlers]tag[$:/tags/TidgiSyncadaptorDropdown]!has[draft.of]]\\\" variable=\\\"listItem\\\">\\n<$transclude tiddler=<<listItem>>/>\\n</$list>\\n</div>\\n</$reveal>\\n\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/styles\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/styles\",\"tags\":\"[[$:/tags/Stylesheet]]\",\"text\":\"\\\\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline macrocallblock\\n\\nbody.tc-dirty span.tc-dirty-indicator svg {\\n\\ttransition: fill 250ms ease-in-out;\\n}\\n\\nbody .tc-image-cloud-idle {\\n\\tfill: <<colour background>>;\\n\\ttransition: opacity 250ms ease-in-out;\\n\\topacity: 1;\\n\\tdisplay: unset;\\n}\\n\\nbody.tc-dirty .tc-image-cloud-idle {\\n\\topacity: 0;\\n\\tdisplay: none;\\n}\\n\\nbody .tc-image-cloud-progress {\\n\\ttransition: opacity 250ms ease-in-out;\\n\\ttransform-origin: 50% 50%;\\n\\ttransform: rotate(359deg);\\n\\tanimation: animation-rotate-slow 2s infinite linear;\\n\\tfill: <<colour background>>;\\n\\tdisplay: none;\\n\\topacity: 0;\\n}\\n\\nbody.tc-dirty .tc-image-cloud-progress {\\n\\topacity: 1;\\n\\tdisplay: unset;\\n}\\n\\n@keyframes animation-rotate-slow {\\n\\tfrom {\\n\\t\\ttransform: rotate(0deg);\\n\\t}\\n\\tto {\\n\\t\\ttransform: scale(359deg);\\n\\t}\\n}\\n\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/copy-logs\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/copy-logs\",\"tags\":\"$:/tags/TidgiSyncadaptorDropdown\",\"text\":\"<$button message=\\\"tm-copy-syncer-logs-to-clipboard\\\" class=\\\"tc-btn-invisible\\\">\\n{{$:/core/images/copy-clipboard}} Copy TidGi syncer logs to clipboard\\n</$button>\\n\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/refresh\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/refresh\",\"tags\":\"$:/tags/TidgiSyncadaptorDropdown\",\"text\":\"<$reveal state=\\\"$:/status/IsLoggedIn\\\" type=\\\"match\\\" text=\\\"yes\\\">\\n<$button tooltip=\\\"Sync from TidGi main process\\\" aria-label=\\\"Refresh from server\\\" class=\\\"tc-btn-invisible\\\">\\n<$action-sendmessage $message=\\\"tm-server-refresh\\\"/>\\n{{$:/core/images/refresh-button}}<span class=\\\"tc-btn-text\\\"><$text text=\\\"Sync from TidGi main process\\\"/></span>\\n</$button>\\n</$reveal>\\n\"},\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/save-snapshot\":{\"title\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/save-snapshot\",\"tags\":\"$:/tags/TidgiSyncadaptorDropdown\",\"text\":\"<$button class=\\\"tc-btn-invisible\\\">\\n<$wikify name=\\\"site-title\\\" text={{$:/config/SaveWikiButton/Filename}}>\\n<$action-sendmessage $message=\\\"tm-download-file\\\" $param={{$:/config/SaveWikiButton/Template}} filename=<<site-title>>/>\\n</$wikify>\\n{{$:/core/images/download-button}} Save snapshot for offline use\\n</$button>\\n\"},\"$:/tags/TidgiSyncadaptorDropdown\":{\"title\":\"$:/tags/TidgiSyncadaptorDropdown\",\"list\":\"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/refresh $:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/save-snapshot $:/plugins/linonetwo/expo-file-system-syncadaptor-ui/syncer-actions/copy-logs\"}}}","title":"$:/plugins/linonetwo/expo-file-system-syncadaptor-ui","type":"application/json","version":"0.1.0","Modern.TiddlyDev#SHA256-Hashed":"a7355b2c053dc4697907ae40fefe0fd75be22628e499337b8aceec25befb5c8f"}
Loading

0 comments on commit f17190c

Please sign in to comment.