GithubHelp home page GithubHelp logo

tiddly-gittly / tidgi-mobile Goto Github PK

View Code? Open in Web Editor NEW
30.0 0.0 2.0 2.02 MB

A Note App that is local-first, uses tid/md pure text file, all-in-one with calendar/todo/diary widget, lazy-loading, backlink & outline & Zettelkasten, and syncs with the open-source TidGi-Desktop.

Home Page: https://tidgi.fun/#:TidGi-Mobile

License: MIT License

JavaScript 2.71% TypeScript 87.39% HTML 9.90%
sync-service synchronization tiddlywiki tiddlywiki-plugin tiddlywiki5 tidgi all-in-one backlinks local-first zettelkasten

tidgi-mobile's Introduction

TidGi Mobile

Mobile Tiddlywiki app is A Note App that is local-first, uses tid/md pure text file, all-in-one with calendar/todo/diary widget, lazy-loading, backlink & outline & Zettelkasten, and syncs with the open-source TidGi-Desktop.

GitHub Releases

Screenshots

Adding Wiki by Scanning QR Code on TidGi-Desktop.

Adding Wiki by Scanning QR Wiki UI in TidGi Mobile
Screenshot of Adding Wiki by Scanning QR Screenshot of Wiki UI in TidGi Mobile

Switch Language on Preference, and edit server or wiki config in the list.

Preference Edit Wiki list item by long press
Screenshot of Adding Wiki by Scanning QR Screenshot of Wiki UI in TidGi Mobile

More Screenshots on metadata/en-US/images/phoneScreenshots/

Usage

Install tw-mobile-sync plugin.

tw-mobile-sync >= 0.6.0 works with TidGi-Mobile >= v0.3

How it stores and uses data

When syncing from a TidGi-Desktop app:

  1. HTML, contains some of core tw things like $:/boot and raw HTML created by $:/tags/RawMarkup
    1. To update the TiddlyWiki version or the raw markup, you need to perform a full-resync (delete and recreate)
  2. SQLite, When adding wiki, we fetch all skinny-tiddlers of your tid/md file, then store them in SQLite DB to speed up booting and save memory.
  3. JSON, When adding wiki, we fetch all plugins's full content as JSON, this will not be updated
  4. Files, binary files like images are stored as files on your phone.

Later, we use a Sync-Adaptor to only load the file you need lazily, to increase performance on a huge wiki. Also, reduce the memory and CPU consumption of your phone.

Drawbacks

Currently, only normal tiddlers in SQLite are certainly synced back to TidGi-Desktop. HTML Javascript tiddler, and JSON plugins are never tested (Feel free to have a try and report to me!). So if you want to add new plugins, you may need to backup data to Desktop, add plugins on Desktop, and perform a full resync (delete and recreate) from TidGi-Desktop (If this is not necessary, report to me!).

Permissions

All these features can be accessible from tiddlywiki plugin, so you can develop plugins to notify you about ToDo, or record locations of visited places, etc.

  1. Notification: We use notification to switch between full-screen wiki and menu, and also allow plugin to show notification.
  2. Location: To store server location, later can show them on a map.

tidgi-mobile's People

Contributors

linonetwo 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

Forkers

mfkiwl ccczone

tidgi-mobile's Issues

同步后,过一段事件同步功能失效。

手机是mimu14,电脑是最新win10,同一网络下。
为什么有时候刚开始同步没问题,后来不知道为啥,就无法同步了,手机和电脑的地址没有做任何改动,两个客户端和插件都是最新的。某一天后就突然不行了,两个客户端都打开的情况下,点击wiki立即同步云端那个按钮变成了x立即同步云端,点一下,转一下,但是并没有同步成功。

feature: 在tiddler页面查找并高亮特定文本

Description 描述


图片为安卓edge浏览器的“在页面上查找”功能,可参考此功能。

  • 功能描述
    • 在已经打开的tiddler页面中查找特定文本,高亮特定文本,同时跳转到特定文本位置,

Additional Context 额外上下文

找到的各种搜索高亮插件都只能通过键盘中的"Ctrl+F"或"Ctrl+G"等快捷键使用,不知该如何在"TidGi-Mobile"中实现“在页面上查找”功能。

如果在"TidGi-Mobile"中已经可以通过特定方法在已经打开的tiddler页面中实现“在页面上查找”功能,烦请告知。

bug: webview refresh 2 times

Environment 环境信息

No response

Description 描述

No response

Steps to Reproduce 复现方式

目前第一次打开的时候,都会再刷新一次,然后导致有的样式表顺序错误,导致侧边栏不显示

Additional Context 额外上下文

No response

创建全新知识库

应该得等模板列表网站弄好吧,之后就从HTML新建,做点处理,把里面的JSON取出来

然后还得允许保存HTML并做拆分等等

feature: 设置后台同步间隔

Description 描述

目前写死了 30 分钟,有点长了

Additional Context 额外上下文

而且目前不知道这个有没有生效,得调短了测一下

TidGi-Mobile V0.0.4 版本中 KaTex 公式渲染问题

背景信息

  • 软件:TidGi-Mobile(Android版)与 TidGi-Desktop(Windows版)
  • 使用版本:
    • TidGi-Mobile:V0.0.4
    • TidGi-Desktop:v0.8.1-prerelease6
    • tw-mobile-sync 插件:0.6.0
    • KaTex 插件:5.3.0
  • 所有上述版本均为最新版。

问题描述

在 TidGi-Desktop 上,我有一个包含 KaTex 公式的条目。
该公式在 TidGi-Desktop 客户端上能够正常渲染(如配图一所示),

2023-09-06_00003

并且编辑框中的 KaTex 按钮也正常显示(如配图二所示)。

2023-09-06_00004

但当我使用 tw-mobile-sync 插件同步该条目到 TidGi-Mobile 后,遇到以下问题:

  1. KaTex 公式在 TidGi-Mobile 上无法正常渲染,并显示报错:ParseError:KaTeX parse error:KaTeX doesn't work in quirks mode.(如配图三所示)。
Screenshot_2023_0906_225933
  1. 编辑框中的 KaTex 按钮也无法正常显示,并显示同样的报错信息ParseError:KaTeX parse error:KaTeX doesn't work in quirks mode.(如配图四所示)。
Screenshot_2023_0906_230022

bug: 同步私有设置条目有问题

Environment 环境信息

$:/plugins/linonetwo/tw-calendar/settings/frequently-used-tags

移动端改了之后,同步到手机上变空了

Description 描述

No response

Steps to Reproduce 复现方式

移动端上给 $:/plugins/linonetwo/tw-calendar/settings/frequently-used-tags 加一个标签,然后同步,桌面端的text变空白

Additional Context 额外上下文

No response

bug: 同步功能反向优化(?

Environment 环境信息

  • 操作系统: Windows 10 专业工作站版 22H2
  • TidGi-Mobile: V0.4.3
  • TidGi-Desktop: v0.8.1-prerelease6
  • tw-mobile-sync 插件: 0.6.4

Description 描述

  • 两种需要同步的操作
    • "重命名条目"
    • "删除条目"
  • 两个版本
    • V0.4.2
    • V0.4.3
  • 两种同步方向
    • 从电脑端到手机端
    • 从手机端到电脑端

共有八种同步情况,“八种情况”详情见“复现方式”。

Steps to Reproduce 复现方式

output

Additional Context 额外上下文

复现方式皆为“手动测试”,若发现其存在问题请指出。

鉴于同步功能目的是:把“电脑端不在身边时的手机编辑操作”成功同步到电脑端。

所以,仅关注于“把手机端操作同步到电脑端”,V0.4.2 TidGi-Mobile 可以成功同步"重命名条目"和"删除条目"这两个操作,但 V0.4.3 TidGi-Mobile 不能成功同步"重命名条目"和"删除条目"这两个操作。

希望在后续版本中,能重新实现---对于“把手机端操作同步到电脑端”,可以成功同步"重命名条目"和"删除条目"这两个操作。

若其优化有特殊原因,不能重新实现上述同步功能,也请告知。

bug: [all[current]links[]] 大部分时候失效

Environment 环境信息

v0.3.0 安卓

Description 描述

No response

Steps to Reproduce 复现方式

[all[current]links[]] 大部分时候失效,查看反向链接插件的链入或者BrainMap即可发现,电脑端正常显示,手机端links[]返回空

Additional Context 额外上下文

No response

feature: 定义返回键功能

Description 描述

如果在非默认视图,就返回默认。

如在默认,则关闭当前条目返回上个条目,当只有最后一个条目时,才退出

Additional Context 额外上下文

No response

变更记录频繁变更时自动合并到上一个

锁键解锁的编辑器修改会导致很频繁的变更,如果发现上一个变都是同类的,而且同年就自动合并了上一个啊或是进修改上一个的最终时间

之后云同步可能也可以用这个原理来优化

feature: 超速启动模式

Description 描述

仅加载最近100条条目,减小筛选器计算压力。并且自动打开某个布局,例如日历或者iMessage布局,方便仅录入的情况。

设置克隆一个当前工作区然后设为默认工作区,或设置当前工作区默认自动打开时,用这种方式打开,手动打开时是正常打开。(也就是可以退出重开一下进入正常模式)

Additional Context 额外上下文

No response

feature: 开启时自动同步

Description 描述

即将离开电脑出门时,总是要打开详情然后手动同步。最好简化这个过程。

除非之后出云同步,随时随地同步,不然就总是要在离开电脑前手动同步一次,得让这一次变简单。

Additional Context 额外上下文

No response

bug: 手机端中的wiki扫码缺少权限,不可用

Environment 环境信息

安卓 v0.3.0

Description 描述

No response

Steps to Reproduce 复现方式

进入wiki后,点击mobilesync,点击扫描二维码,出现 unable to access video stream (please make sure you have a webcam enabled)

Additional Context 额外上下文

No response

允许超速启动模式根据筛选器加载关键条目

因为目前还没有字段表,所以可能还需要在完整模式才启动一次,然后用另一个表记录筛选结果的条目的行ID。

或者根据筛选期结果重新排序,把他们都排到最后面去。就在完整打开的时候才触发。这还得定期执行,不然又会被新增的条目给顶掉。但这需要把行整体平移,感觉性能损耗大,也不大现实。

或者用一个下拉框直接允许搜索和选中某些行外加载,这样性能高就是用户会觉得麻烦一点,不过这样也用一个表来存,基本等价于跑筛选器然后自动的填这个表。

feature: 分享到app

Description 描述

类似 Tiddloid,分享任意图片或文本、url,会插入排名第一的wiki里变成条目

Additional Context 额外上下文

No response

feature: Sync on start

Description 描述

加个设置,启动时自动同步一次,注意变更有没有通过 sse 传到前端

Additional Context 额外上下文

No response

bug: 同步问题——"TidGi-Desktop" 清空 "tiddler" 正文内容后,无法同步至 "TidGi-Mobile"

Environment 环境信息

  • 操作系统: Windows 10 专业工作站版 22H2
  • TidGi-Mobile: V0.3.5
  • TidGi-Desktop: v0.8.1-prerelease6
  • tw-mobile-sync 插件: 0.6.4

Description 描述

当在 "TidGi-Desktop" 上清空某 "tiddler" 的正文内容并尝试同步时,该内容在 "TidGi-Mobile" 上未更新为清空状态。但相同操作在 "TidGi-Mobile" 上进行时,"TidGi-Desktop" 上的内容得到了同步并清空。

Steps to Reproduce 复现方式

  1. 打开 "TidGi-Desktop",创建一个新的 "wiki"。
  2. 启用 启用HTTP API 设置,并将 tw-mobile-sync 插件 更新至最新版。
  3. 按照 “同步流程”,同步新 "wiki" 至 "TidGi-Mobile"。
  4. 在 "TidGi-Desktop" 上添加 “新条目”,输入正文 “123”。
  5. 使用 “同步流程” 将 “新条目” 同步至 "TidGi-Mobile"。
  6. 尝试对 "新条目" 进行 "清空全部正文内容" 的操作并同步:
    • 第一种情况:
      • 在 "TidGi-Desktop" 上操作,尝试同步至 "TidGi-Mobile"。
      • 结果:同步失败,"TidGi-Mobile" 上的 “新条目” 正文保持为 “123”。
    • 第二种情况:
      • 在 "TidGi-Mobile" 上操作,尝试同步至 "TidGi-Desktop"。
      • 结果:同步成功,"TidGi-Desktop" 的 “新条目” 正文已清空。

Additional Context 额外上下文

  • 所有软件均使用的是最新版本。
  • 该问题可能导致 "TidGi-Mobile" 与 "TidGi-Desktop" 的数据不同步,给用户带来困惑。

bug: 快速同步按钮同步完显示无连接

Environment 环境信息

No response

Description 描述

No response

Steps to Reproduce 复现方式

好像是有多个时,如果第一个是无连接的

Additional Context 额外上下文

No response

feature: Expo似乎支持IOS系统的打包

Description 描述

一个小想法:Expo似乎支持IOS系统的打包,这样IOS与IPad也跟随安卓一块覆盖了。

弥补了IOS与IPad的短板与不足。

Additional Context 额外上下文

No response

bug: 工作区设置页面一直抖

Environment 环境信息

No response

Description 描述

可能是一直在重新渲染

Steps to Reproduce 复现方式

打开工作区页面,点击同步,之后同步成功按钮一直抖

Additional Context 额外上下文

No response

database is locked

Call to function 'ExpoSQLite.exec' has been rejected.
→ Caused by: android.database.sqlite.SQLiteDatabaseLockedException: database is locked (code 5 SQLITE_BUSY): , while compiling: PRAGMA journal_mode

估计是哪里没 close
后台放一会儿,分享东西过去,然后删除条目就会这样了。

bug: 重启后卡在加载

Environment 环境信息

0.4.2

Description 描述

在后台一段时间不用之后再打开页面会自动重新刷新,但有时候刷新后它就卡在加载页面,并没有执行后续的JS。

目前已加log,下次发布可以看看

Steps to Reproduce 复现方式

打开任意较长条目,就默认故事流。

后台放一段时间,以至于打开app后触发系统回收webview导致的页面刷新

刷新后,卡在loading界面

Additional Context 额外上下文

退出重进就可以暂时解决问题。

mdns

好像可以用来自动在局域网发现设备

TODO: fetch large file using HTTP from TidGi-Desktop

Description 描述

以及在插件侧边栏,或者同步适配器的图标里触发对所有二进制文件的加载

需要并行加载,不能一个个加载太慢了

Additional Context 额外上下文

No response

feature: 在插件里直接同步

Description 描述

在太微里的插件上点同步。

可以用 sync adaptor 插件的菜单来做,也就是在页面按钮栏上就好,不一定在侧边栏。

Additional Context 额外上下文

No response

feature: 拉取插件更新

Description 描述

现在插件会一直保留在 preload store 里,不知道同步来的更新的插件,能不能覆盖它。最好想办法也更新 preload store 里的插件内容,例如流式地读取然后重新写入这个json。

Additional Context 额外上下文

No response

bug: Loading page and page workspace is still Chinese

Environment 环境信息

No response

Description 描述

No response

Steps to Reproduce 复现方式

Add tidgi template, and switch to english in app, see loading page is still Chinese, and wiki name can't change.

Additional Context 额外上下文

No response

feature: Logger 和查看log的debug工具

Description 描述

方便排查问题。

由于 Android ios 都不方便查看本地文件,所以得写个log查看器

Additional Context 额外上下文

No response

Sync error while processing load of '白色夹竹桃.png': Error: Tiddler "白色夹竹桃.png" is not synced yet.

Environment 环境信息

v0.3.5

Description 描述

syncer-browser-tidgi-mobile-fs - 2023年09月11日 17:48
Sync error while processing load of '白色夹竹桃.png': Error: Tiddler "白色夹竹桃.png" is not synced yet.

Steps to Reproduce 复现方式

同步成功后,打开引用图片条目的条目即可产生该问题。

例如[img[图片]]

Additional Context 额外上下文

No response

feature: 调整wiki的顺序

Description 描述

目前默认打开第一个wiki、分享到第一个wiki,需要能调整列表顺序。

Additional Context 额外上下文

No response

bug: 所见即所得编辑器无法加载内容

Environment 环境信息

No response

Description 描述

可能和懒加载的方式有关,虽然太记桌面版也是懒加载,但可能有哪里不一样?难道是有字段没删干净,让所见即所得编辑器不加载内容?

Steps to Reproduce 复现方式

对于一个已经完成懒加载的条目,打开所见即所得编辑器

Additional Context 额外上下文

No response

feature: 保持storylist

Description 描述

现在每次都会打开index

Additional Context 额外上下文

No response

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.