Commit Graph
644 Commits
Author SHA1 Message Date
Jeremy Ruston c6e402127f Introduce _is_skinny field for indicating that a tiddler is subject to lazy loading 2019-12-06 15:24:43 +00:00
Jeremy Ruston 209cc2c995 Lazy loading: include skinny versions of lazily loaded tiddlers in the index.html 2019-12-05 16:50:12 +00:00
Jeremy Ruston 4cff716b59 Guard against missing adaptor info 2019-11-29 16:05:58 +00:00
Jeremy Ruston e2b4ef7f06 Don't transition the dirty indicator container colour, just the SVG's colour 2019-11-21 11:32:46 +00:00
Jeremy Ruston 711ea5f905 Merge branch 'master' into fix-syncer 2019-11-20 17:41:25 +00:00
Jeremy Ruston d2323cb1f4 Add Elixir to languages supported by Highlight plugin
Fixes #4378
2019-11-20 09:51:00 +00:00
Jeremy Ruston 94a96846b9 Refactor syncadaptor creation and logging
The goal is for the syncadaptor to be able to log to the same logger as the syncer, so that the "copy syncer logs to clipboard" data is more useful.
2019-11-19 11:15:13 +00:00
Jeremy Ruston 590ee451af Break the actions from the syncer dropdown into separate tiddlers
@pmario I think this makes things a bit easier to follow
2019-11-19 10:38:06 +00:00
Jeremy Ruston ac619b3d3e Tweak animation durations 2019-11-19 10:20:54 +00:00
Jeremy Ruston 77adee2c46 Further icon, UI and copy text tweaks
Move the icons and styles from the core into the TiddlyWeb plugin
2019-11-18 23:06:39 +00:00
Jeremy Ruston b5c274c5cd Remove indentation from save-wiki button
@pmario the annoying thing is that using `\trim whitespace` trims significant whitespace too, so it means we have to use <$text text=" "/> when we need a space that won't be trimmed. For the moment, I've removed the indentation but will keep thinking about it.
2019-11-18 22:21:19 +00:00
Jeremy Ruston d45501b7a0 Add a menu item to copy syncer logs to the clipboard 2019-11-18 13:53:57 +00:00
Jeremy Ruston cd2e1c7723 Switch between cloud icons according to dirty status 2019-11-18 13:41:52 +00:00
Jeremy Ruston 956312845f Fix spacing in dropdown menu items 2019-11-18 13:41:22 +00:00
Jeremy Ruston a3435de93b Add indentation to the save-wiki button 2019-11-18 12:22:14 +00:00
Jeremy Ruston 21af1551cc Remove the "Server" control panel tab
We don't need it with the enhanced sync dropdown
2019-11-18 11:29:36 +00:00
Jeremy Ruston 5a7d160c66 Replace save-wiki button with popup sync menu 2019-11-18 11:27:11 +00:00
Jeremy Ruston 499c5ee398 Synchronise system tiddlers and deletions from the server
Fixes two long-standing issues:

* Changes to system tiddlers are not synchronised from the server to the browser
* Deletions of tiddlers on the server are not propagated to browser clients
2019-11-16 21:02:01 +00:00
Jeremy Ruston ca94cd3cf7 First commit 2019-11-14 22:04:44 +00:00
Marica Odagaki 613f0b2559 Upgrade to Jasmine 3 (#4226)
* process.exit() only exist in a node.js environment

* updateInterval has been removed from upstream

From upstream commit:
https://github.com/jasmine/jasmine/commit/b6eb9a4d5e7ea886e3ec1c270930b6098e75efc0

* Update Jasmine to 3.4.0

* Reuse the evalInContext helper

* Fix expected parse result to match the actual result

* 'describe' cannot be nested inside 'it' blocks

Jasmine started to explicitly raise an error in these cases since:
https://github.com/jasmine/jasmine/pull/1411

* Be consistent about how to refer to library files

* Update link to Jasmine's official website
2019-11-12 21:42:38 +00:00
Jeremy Ruston 7beee4f9ce Fix comment plugin typo 2019-11-02 12:37:07 +00:00
Jeremy Ruston 16c1cbee29 Comment plugin: Add link to top post 2019-11-02 09:31:36 +00:00
Jeremy Ruston ac66d863aa Simplify GitHub fork ribbon plugin metadata 2019-10-14 13:19:27 +01:00
Simon Huber 920f0869c4 Fix: remove cancelPopups from codemirror engine (#4310) 2019-10-12 16:40:51 +01:00
Simon Huber d8fd2f75d6 Two missing whitespace trims for PageControls (#4296)
* add whitespace trim to help button

* add whitespace trim to new markdown button

* Update help.tid
2019-10-07 18:50:30 +01:00
Jeremy Ruston e752ba7c6a Use the dependents and parent-plugin fields to automatically install dependencies 2019-09-25 21:57:22 +01:00
Jeremy Ruston 92340d81cc Introduce "parent-plugin" field to control how plugins are displayed in the chooser
"Sub-plugins" are displayed within the dropdown of their parent plugin.

This is a more elaborate version of #4109. It doesn't address dependent plugins (yet), this is just about grouping addon plugins under their parent.
2019-09-25 16:16:28 +01:00
Jeremy Ruston bf9aeb5755 Improve plugin metadata, and add a "name" field
The "name" is optional, but makes the library listing much clearer.
2019-09-19 13:04:10 +01:00
Jeremy Ruston 83954582f4 Text-slicer: Only show slice button for text tiddlers 2019-09-16 16:16:18 +01:00
Jeremy Ruston 68163684a2 Fix publishFilter in save templates
Fixes #4252
2019-09-11 11:40:45 +01:00
Jeremy Ruston 996ee52cf9 External-attachments plugin: Fix bug on Windows
Fixes #4237
2019-09-06 17:40:03 +01:00
Jeremy Ruston bb036ced93 Translators plugin: Minor layout fixes 2019-09-06 15:40:36 +01:00
Rob Hoelz 0402dbd48d Pass pathFilters as an array (#4174)
* Pass pathFilters as an array

Otherwise, when we try to iterate over pathFilters in the filesystem
utils module, we end up iterating over each character in the filter
string, which ends up generating 'Filter error_ Missing [ in filter
expression.tid' as the tiddler's filename

Fixes GH #4173

* Allow for multiple path filters to be specified

...via $:/config/FileSystemPaths, split by newlines
2019-08-22 10:24:40 +02:00
Simon Huber 0903fd2fec Update katex plugin to latest v0.10.2 (#4133)
* update katex.min.js to v0.10.2

* update katex-without-fontface.min.js to latest

* Update katex.min.css

* Update katex.js

* update katex fonts

* Delete katex.js ...

... we're using katex.min.js

* add version number to plugin.info

* Update readme.tid

* Create katex.js

* Update plugin.info
2019-08-03 17:36:40 +01:00
Simon Huber 217670cdf3 Update engine.js 2019-07-10 09:57:59 +02:00
Simon Huber 91db09bd1e Katex dropdown: add description hint (#4048)
* katex dropdown: add description hint

* Update katex-dropdown.tid
2019-07-02 15:04:57 +01:00
Jeremy Ruston a6500ba711 DynaView: Suppress local storage errors 2019-06-21 15:19:51 +01:00
Jeremy Ruston c80fcf19c0 More browser storage fixes
See 698733a4a
2019-05-29 09:37:48 +01:00
Jeremy Ruston 698733a4ad Fix crashes when localStorage not available
As reported by @bimlas in https://github.com/Jermolene/TiddlyWiki5/issues/3945#issuecomment-496797809
2019-05-29 09:01:11 +01:00
Jeremy Ruston 94d18a2f18 KaTeX: Fix bug with embedded SVGs
See https://github.com/Jermolene/TiddlyWiki5/issues/2500#issuecomment-489976530
2019-05-11 17:31:35 +01:00
Talha Mansoor 04a4a0f92e Add support of language aliases in highlight.js plugin (#3898)
listLanguages() returns a list of supported languages. It does not
return language aliases.

highlight.js has extensive support of language aliases which can be 
viewed here

https://highlightjs.readthedocs.io/en/latest/css-classes-reference.html#language-names-and-aliases

But because of using listLanguages(), TW does not take advantage of 
alias.

getLanguage() method on the other hand supports aliases.

https://highlightjs.readthedocs.io/en/latest/api.html#getlanguage-name

To summarize, now user can use javascript, js or jsx for the code block. getLanguage() will return an object which means highlight.js supports
this language.
2019-04-15 18:45:45 +01:00
Jermolene 7fcd2f132e Filesystemadaptor: Improve handling of JSON files
Fixes #3875

* Use .json files (instead of .tid) for any tiddler whose fields contain values that can't be stored as a .tid file
* Save application/json tiddlers as .json files
* Refactor most of the file handling as re-usable utilities
2019-04-13 14:59:44 +01:00
Jermolene d38b42f7c7 AWS Plugin: Don't error when no files to load 2019-03-22 17:27:20 +00:00
Jermolene fffd0ee9e1 AWS: Add command for setting credentials profile 2019-03-22 09:20:25 +00:00
Jermolene 9f0d726f7d Dynaview: Simplify visibility tracking logic 2019-03-21 12:56:26 +00:00
Jermolene 7709192cc8 DynaView: Simplify visibility processing
And add a table of contents to the demo
2019-03-20 18:24:29 +00:00
Jermolene a89991cc46 Dynaview: Fix crash 2019-03-16 13:25:45 +00:00
Simon Huber efd7aa3a53 Make codemirror use tiddler-editor-border palette color (#3819) 2019-03-12 16:41:22 +00:00
Simon Huber a4b24670f6 Update highlight.js to latest release v9.15.6 (#3635)
* update highlight.js to latest release v9.13.1

* update to v9.13.1 default.css

does the current default.css include adjustments for the different languages?

* Update highlight.pack.js

* Update readme.tid

* update highlight.pack to 9.15.6

* update version number + included languages
2019-03-12 12:04:38 +00:00
Jermolene a9e595c3f6 Dynaview: Add support for saving/restoring scroll position from local storage 2019-03-04 16:59:39 +00:00