GithubHelp home page GithubHelp logo

gk0wk / tiddlyseq Goto Github PK

View Code? Open in Web Editor NEW
31.0 2.0 8.0 48.05 MB

Logseq-like tiddlywiki5 template plugin.

Home Page: https://gk0wk.github.io/TiddlySeq

License: MIT License

JavaScript 27.30% CSS 19.41% TypeScript 52.03% Less 1.25%
tiddlywiki5 tiddlywiki-theme tiddlywiki-template tiddlywiki-plugin

tiddlyseq's Introduction

TiddlySeq

View demo.

tiddlyseq's People

Contributors

fcnaud avatar gk0wk avatar oeyoews avatar oflg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

tiddlyseq's Issues

Tiddlywiki 5.2.7版本中Markdown toc按钮失效

查到 const root = $tw.wiki.parseTiddler(this.tocTitle).tree;这行代码不能返回markdown正文里面的标题导致,相关接口我不太熟悉,不知道怎么修,可以修一下吗

Add background-size property to Cover

I hope you’re still maintaining/developing this plugin - I have fallen in love with its features (having started using Notion just a few months ago), and use it extensively in my TW.

One thing that I’d like to see implemented, however, is the ability to change the background-size property of the cover. Since there is no ‘move cover’ like in Notion, many of the covers that I’d like to use get cut off or misaligned to omit the very thing I wanted to display in the banner. If we could change the background-size property, this problem would be eliminated by being able to choose a value of ‘contain’ or ‘cover’ (depending on the image dimensions), thereby showing the entire image.

I tried to make the change myself, I looked through the css, but could find no instance of ‘background-size’ so either you are not using it, or it’s being done in some other manner that I didn’t find.

I really think this feature would greatly enhance what is already an outstanding addition to TiddlyWiki, (a plugin which I think not many people have discovered, yet!), making it even better. I hope you will consider adding it.

Thank You

–The Chan Droid

PageTOC插件目录加载问题

TiddlyWiki在使用PageTOC插件生成目录时,如果目录过长,无法滑动拉至更往后的内容。

举个例子,假设h1有100个,可能屏幕上只显示前20个,无法通过上下滑动或者其他办法得到目录后面的内容,也就无法完成查看和跳转。

此加载问题的文件类型是Markdown,非TW原生格式。(并未试过原生格式是否存在该问题)

toc插件可以搞一个侧边栏展示

这样就和大多数的博客样式差不多了。

<$let
readtiddler= {{{ [[$:/temp/focussedTiddler]get[text]] }}} >
<$page-toc tiddler=<<readtiddler>> emptyMessage="Empty TOC"/>
</$let>

我这里是简单定义了一个readtiddler变量,这样就能获得当前查看条目的正文了。

image

就能获得上面的效果。

但如果故事河中有很多个条目,而这个长文又不是故事河的条目的话,就看不到了。

而另一个问题是,条目上的按钮如果不是直接放在那一排按钮上,而是放在更多中打开,点击就看不到toc的效果。


所以为了解决上面两个问题,我觉得可以设计一个按钮,点击就会在侧边栏大纲中展示当前条目的大纲。

这个意思就是只有当读者想查看当前条目大纲时,才展示大纲,其他时间不用展示。

稍后我会研究一下能不能实现。如果能实现,可以提pr来帮助处理。

[Violation] Avoid using document.write()


$:/plugins/Gk0Wk/minelixir/widget.js:32
[Violation] Avoid using document.write(). https://developers.google.com/web/updates/2016/08/removing-document-write
  addIcon @ $:/plugins/Gk0Wk/min…elixir/widget.js:32
  eval @ $:/plugins/Gk0Wk/min…elixir/widget.js:32
  eval @ $:/plugins/Gk0Wk/min…elixir/widget.js:49
  $tw.utils.evalGlobal @ $:/boot/boot.js:617
  $tw.modules.execute @ $:/boot/boot.js:905
  (anonymous) @ $:/boot/boot.js:945
  $tw.utils.each @ $:/boot/boot.js:155
  $tw.modules.forEachModuleOfType @ $:/boot/boot.js:944
  $tw.modules.applyMethods @ $:/boot/boot.js:968
  Widget.initialise @ $:/core/modules/widgets/widget.js:55
  Widget @ $:/core/modules/widgets/widget.js:30
  exports.startup @ $:/core/modules/startup.js:60
  $tw.boot.executeNextStartupTask @ $:/boot/boot.js:2580
  $tw.boot.executeNextStartupTask @ $:/boot/boot.js:2584
  $tw.boot.executeNextStartupTask @ $:/boot/boot.js:2584
  $tw.boot.executeNextStartupTask @ $:/boot/boot.js:2584
  $tw.boot.execStartup @ $:/boot/boot.js:2527
  $tw.boot.startup @ $:/boot/boot.js:2537
  (anonymous) @ $:/boot/boot.js:2703
  $tw.boot.decryptEncryptedTiddlers @ $:/boot/boot.js:1763
  $tw.boot.boot @ $:/boot/boot.js:2701
  _boot @ $:/boot/boot.js:2710
  (anonymous) @ $:/boot/boot.js:2720
  executeScriptsAfterStreamChunksToWebView @ VM3:101
  (anonymous) @ VM3:50

toc 插件改用 focused tiddler 插件

toc 插件还需要 hotzone 插件吗?我记得你开发了一个替代 hotzone 的 focused tiddler 插件吧?

主要是 hotzone 有bug,如果启动前在别的 layout 里,会报错

hotzone.js:10 Uncaught TypeError: Cannot read properties of undefined (reading 'children')
    at l (hotzone.js:10:1068)
    at eval (hotzone.js:10:1521)
var i = document.getElementsByClassName(t.classNames.storyRiver)[0];
var f = i.children;

[BUG] - TOC Plugin "hides" the contents of a tiddler.

The plugin hides the contents of a tiddler after viewing the table of contents and scrolling away from the said tiddler. It also happens when closing and reopening the tiddler.

The contents are unhidden when editing the tiddler and then saving it again. However, the contents become hidden again after doing the same steps stated on the first paragraph.

Screenshots:

image
image

editing and saving the tiddler again 'unhides' the contents of the tiddler:

image
image

t.removeAttribute is not a function

uncaught TypeError: t.removeAttribute is not a function
    at ElixirWidget.getThemeButton (widget.js:49:20337)
    at ElixirWidget.render (widget.js:49:16666)
    at Widget.renderChildren (widget.js:632:15)
    at TranscludeWidget.render (transclude.js:36:7)
    at Widget.renderChildren (widget.js:632:15)
    at TranscludeWidget.render (transclude.js:36:7)
    at Widget.renderChildren (widget.js:632:15)
    at RevealWidget.render (reveal.js:49:7)
    at Widget.renderChildren (widget.js:632:15)
    at ImportVariablesWidget.render (importvariables.js:36:7)
logger.js:56 syncer-browser-tiddlyweb: Checking dirty status
logger.js:56 syncer-browser-tiddlyweb: Dispatching 'save' task: 2023-6-14
2logger.js:56 syncer-browser-tiddlyweb: Checking dirty status
logger.js:56 syncer-browser-tiddlyweb: Dispatching 'delete' task: Draft of '2023-6-14' by 林一二
boot.js:214 Uncaught TypeError: Cannot read properties of undefined (reading 'style')
$tw.utils.error @ boot.js:214
popup.js:163 Uncaught TypeError: Cannot read properties of undefined (reading 'style')
    at Reveal.refresh (popup.js:163:18)
    at Widget.refreshChildren (widget.js:705:27)
    at ImportVariablesWidget.refresh (importvariables.js:133:15)
    at Widget.refreshChildren (widget.js:705:27)
    at TranscludeWidget.refresh (transclude.js:431:15)
    at Widget.refreshChildren (widget.js:705:27)
    at ListItemWidget.refresh (list.js:364:14)
    at ListWidget.handleListChanges (list.js:265:39)
    at ListWidget.refresh (list.js:164:17)
    at Widget.refreshChildren (widget.js:705:27)
created: 20230614113511759
creator: 林一二
modified: 20230614113517963
modifier: 林一二
tags: 想法
title: 2023-6-14
type: text/vnd.tiddlywiki

<$mindmap field="map" />

新建条目后,尝试让 map 保存到当前条目的 map 字段,然后点击✅保存就报错了。

刷新页面后,打开这个条目,依然会报第一个错

mindmap插件希望增加的功能

1,希望能插入图片,最好是能显示图床链接的图片,不行的话本地图片也行
2,希望能脑图-大纲转换,类似幕布、xmind有的功能
谢谢佬!!!

notionpage-covericon插件可能会导致tiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder命令失败

当我在任意平台(Win10、Linux)执行这个命令转换含有notionpage-covericon插件的官方空白wiki:mywiki.zip (解压后即可查看)时:tiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder

发生以下错误:

{"level":"error","message":"Tiddlywiki booted failed with error Cannot read properties of undefined (reading 'replace')
TypeError: Cannot read properties of undefined (reading 'replace')
at Object.exports.generateTiddlerFilepath ($:/core/modules/utils/filesystem.js:344:23)
at Object.exports.generateTiddlerFileInfo ($:/core/modules/utils/filesystem.js:278:32)
at WikiFolderMaker.saveTiddler ($:/core/modules/commands/savewikifolder.js:168:27)
at $:/core/modules/commands/savewikifolder.js:156:8
at Object.$tw.utils.each (/home/whitefall/桌面/TidGi-Desktop/node_modules/@tiddlygit/tiddlywiki/boot/boot.js:155:12)
at WikiFolderMaker.saveCustomPlugin ($:/core/modules/commands/savewikifolder.js:155:12)
at $:/core/modules/commands/savewikifolder.js:99:12
at Object.$tw.utils.each (/home/whitefall/桌面/TidGi-Desktop/node_modules/@tiddlygit/tiddlywiki/boot/boot.js:146:12)
at WikiFolderMaker.save ($:/core/modules/commands/savewikifolder.js:79:12)
at Command.execute ($:/core/modules/commands/savewikifolder.js:39:25)","timestamp":"2022-11-12T03:12:43.276Z"}

删除该插件后,Cannot read properties of undefined (reading 'replace')错误消失。

filesystem.js:344:generateTiddlerFilepath方法中局部变量filepath 由 title参数赋值,找到调用 title参数的实际参数为 tiddler.fields.title,由generateTiddlerFileInfo方法的tiddler参数提供的。

savewikifolder.js:168:找到generateTiddlerFileInfo的函数调用,并找到其参数tiddler,由方法WikiFolderMaker.prototype.saveTiddler的参数tiddler提供。找到此函数的调用者WikiFolderMaker.prototype.saveCustomPlugin(pluginTiddler)

var pluginTiddlers = $tw.utils.parseJSONSafe(pluginTiddler.fields.text).tiddlers; // A hashmap of tiddlers in the plugin
	$tw.utils.each(pluginTiddlers,function(tiddler) {
		self.saveTiddler(directory,new $tw.Tiddler(tiddler));//在这个地方调用的。
	});

然后就不知道咋弄了,我一直找不到那个未定义的的那个条目的那个标题或字段。所以就根据打印log查看最后一个输出的插件或条目信息,手动实验禁用或者删除,发现notionpage-covericon插件导致的问题。

这个是空白的wiki文件,只安装了notionpage-covericon插件,但是无法使用HTML转wiki文件夹命令:mywiki.zip (解压后即可查看)

tiddlywiki --load ./mywiki.html --savewikifolder ./mywikifolder

Notion-like Icon And PageCover 使用自定义 svg 出现显示错误

你好,我在添加 Icon 的时候,使用自定义的 svg 会出现两个图片,使用自带的图标就正常。

使用自行添加的 icon
image

使用自带的icon
image

这是使用的 svg

<svg t="1643048526524" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"  p-id="2089" width="32" height="32"><path d="M559.936 144.064l0 745.344 42.112-51.84c6.4-7.872 18.112-9.216 26.176-3.008 1.152 0.896 2.112 1.856 3.008 3.008l0.064-0.128 38.016 46.656L669.312 115.392 559.936 144.064 559.936 144.064zM160.512 558.976C153.536 561.664 145.664 558.208 142.976 551.232 140.288 544.256 143.68 536.384 150.72 533.632c42.496-16.832 88.384-24.768 135.168-24.768 48.512 0 98.24 8.512 146.624 24.512 7.104 2.368 11.008 10.048 8.64 17.216C438.784 557.696 431.104 561.6 424 559.168 378.368 544.128 331.52 536.064 285.888 536.064 242.24 536.064 199.872 543.424 160.512 558.976L160.512 558.976zM160.512 472.064C153.536 474.752 145.664 471.36 142.976 464.32 140.288 457.344 143.68 449.408 150.72 446.72c42.496-16.896 88.384-24.832 135.168-24.832 48.512 0 98.24 8.512 146.624 24.512 7.104 2.368 11.008 10.048 8.64 17.216C438.784 470.784 431.104 474.688 424 472.32 378.368 457.216 331.52 449.152 285.888 449.152 242.24 449.152 199.872 456.448 160.512 472.064L160.512 472.064zM160.512 393.152C153.536 395.904 145.664 392.384 142.976 385.408 140.288 378.432 143.68 370.56 150.72 367.808c42.496-16.896 88.384-24.832 135.168-24.832 48.512 0 98.24 8.576 146.624 24.576 7.104 2.304 11.008 10.048 8.64 17.216C438.784 391.872 431.104 395.776 424 393.344 378.368 378.304 331.52 370.176 285.888 370.176 242.24 370.176 199.872 377.536 160.512 393.152L160.512 393.152zM160.512 310.08c-6.976 2.752-14.848-0.704-17.536-7.68C140.288 295.36 143.68 287.488 150.72 284.736c42.496-16.832 88.384-24.768 135.168-24.768 48.512 0 98.24 8.512 146.624 24.512 7.104 2.368 11.008 10.048 8.64 17.216C438.784 308.864 431.104 312.704 424 310.336 378.368 295.296 331.52 287.232 285.888 287.232 242.24 287.232 199.872 294.528 160.512 310.08L160.512 310.08zM160.512 234.816c-6.976 2.688-14.848-0.704-17.536-7.68C140.288 220.16 143.68 212.224 150.72 209.472 193.216 192.64 239.104 184.704 285.888 184.704c48.512 0 98.24 8.512 146.624 24.512 7.104 2.368 11.008 10.048 8.64 17.216C438.784 233.536 431.104 237.44 424 235.072 378.368 220.032 331.52 211.968 285.888 211.968 242.24 211.968 199.872 219.328 160.512 234.816L160.512 234.816zM983.36 202.56C1005.888 203.776 1024 222.08 1024 244.288l0 570.048c0 22.976-19.392 41.792-43.008 41.792l-274.24 0 0 80.128-0.064 0c0 5.248-2.432 10.624-7.04 14.144-8.128 6.336-19.84 4.992-26.24-2.88l-56.768-69.376-59.776 73.472C553.536 956.608 547.712 960 541.248 960c-10.368 0-18.752-8.256-18.752-18.24l0-85.632L43.008 856.128C19.392 856.128 0 837.312 0 814.336L0 244.288C0 223.36 16.064 205.824 36.8 202.944L36.8 147.008c0-11.904 7.232-22.208 17.728-26.752C135.552 80.448 214.976 62.848 293.12 64c73.984 1.152 146.112 19.072 216.704 50.88C586.944 78.848 662.656 62.912 737.28 64c78.336 1.216 154.624 21.248 229.12 56.64 10.752 5.12 17.024 15.552 17.024 26.368l0 0L983.424 202.56 983.36 202.56zM706.752 676.288c10.112-0.512 20.352-0.704 30.528-0.576 63.232 1.088 125.12 15.36 185.792 40.96l0-551.04c-61.504-27.008-123.776-42.176-186.816-43.2-9.792-0.128-19.648 0.064-29.504 0.64L706.752 676.288 706.752 676.288zM292.16 122.496C228.736 121.536 163.776 134.976 97.088 165.312l0 550.656c66.304-28.544 131.584-41.344 196.032-40.256 63.296 1.088 125.248 15.36 185.92 40.96l0-551.04C417.408 138.624 355.2 123.456 292.16 122.496z" p-id="2090"></path></svg>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.