Commit Graph

538 Commits (f8ebafcbb46888211bbbbcb71b82e34556e39664)

Author SHA1 Message Date
István Szekeres fdd3d1b650
Fix encoding of inline content (#1186)
Inline content with the file containing e.g. a `:` cannot be displayed
as the file name is set as the img src, and the browser treats the part
before the : as the protocol, instead of as a file name.

This change encodes the file name so `:` becomes `%3A`, fixing the
issue.

Fixes #1182.
2025-01-07 19:56:45 +01:00
David Lawrence df9edc5d64
Allow clicking Remember me label to toggle checkbox (#1194) 2024-12-31 07:19:17 +01:00
TR Staake 2020e85a6f
Update how tags are rendered to allow for custom styling (#1179)
* Updated how tags are rendered to allow for custom styling via space-styles

* Wrapped the existing span for a tag with an anchor element <a> to
improve ux for screen readers
* Added data-tag-name attribute to tags so that given a tag `#my-tag` it
will have the attribute `data-tag-name="my-tag"` added to the new `<a>`
element wrapper allowing for end users to target tags for styling with a
css selector such as `.sb-hashtag[data-tag-name="my-tag"]{...}`

* Updated Docs
2024-12-14 09:57:46 +01:00
Michael Kolb cfbe8959d0
fix case sensitive property (#1167) 2024-11-24 09:21:34 +01:00
Peter Weston 046a0df868
Simple protection against brute force attacks (#1152) 2024-11-15 16:51:18 +01:00
Vighnesh Shenoy 3132d9e9f2
Allow tab press to autocomplete (#1150) 2024-11-13 21:15:40 +01:00
Ohad Lutzky 916c84e9c1
Fix Enter for vim mode (#1146)
This is a workaround for https://github.com/replit/codemirror-vim/issues/182

Fixes https://github.com/silverbulletmd/silverbullet/pull/1145 (harder)
2024-11-11 13:57:19 +01:00
Ohad Lutzky 4457927416
Do not use standardKeymap in vim mode (#1145)
The standard keymap conflicts with the vim mode, e.g. not allowing arrow
keys to move through the vim commandline for `/` and `:` commands. The
keys described in
https://codemirror.net/docs/ref/#commands.standardKeymap seem to work
just fine without it in vim mode.

Fixes https://github.com/silverbulletmd/silverbullet/issues/976
2024-11-11 12:38:01 +01:00
Mufeed Ali c52e9e71f0
Few dark mode fixes and top bar improvements (#1137)
* fix: Fix progress bar coloring and remove % on indicator

Fixes #1129

* fix: Improve header, action buttons and progress bar spacing

* fix: Fix caret color on sb-mini-editor
2024-11-07 21:28:14 +01:00
Vighnesh Shenoy 68ead02975
fix: update unused scss variable for directive mark color (#1142)
Signed-off-by: Vighnesh shenoy <vighneshq@gmail.com>
2024-11-07 21:19:37 +01:00
aekaisato 64bbe67912
Create "remember me" functionality for basic auth, which sets an unexpiring jwt and refreshes the cookie during requests (#1132)
* Create "remember me" functionality for basic auth, which sets an unexpiring jwt and refreshes the cookie during requests
2024-10-28 14:09:32 +01:00
Michael Kolb e83f3ebc66
Enabler to make scripts loaded from CDN more secure (#1127)
* added integrity property to load scripts

* fix contribution
2024-10-25 10:38:37 +02:00
Zef Hemel 8acb112e4e Lua stack frame refactor 2024-10-20 15:06:23 +02:00
Marek S. Łukasiewicz f37cf23ba7
Space config for smart quotes (close #1114) (#1121) 2024-10-17 22:34:47 +02:00
Zef Hemel 5765540a3a Widget: alt-click to move cursor into widget 2024-10-16 20:50:38 +02:00
Zef Hemel 2842183568 Lua widgets: support inline for HTML widgets 2024-10-15 16:58:39 +02:00
Zef Hemel 6ec6f0cd6d First Lua docs 2024-10-14 20:59:10 +02:00
Zef Hemel c1a20af981 Lua: widgets 2024-10-13 15:14:22 +02:00
Zef Hemel 4b6cd183a8 Dependency bumps 2024-10-11 16:59:06 +02:00
Zef Hemel 64e398fd90 deno fmt 2024-10-11 15:34:27 +02:00
Zef Hemel 6a30284bab Migration to Deno 2.0 2024-10-10 12:52:28 +02:00
Zef Hemel 3319c7f21c More lua progress: JS Interop 2024-10-09 20:35:11 +02:00
Fernando Serboncini 7731b28203
auto close brackets setting (#1110) 2024-10-08 21:06:33 +02:00
Zef Hemel 899c2556cb Lua: more fixes and work on stdlib 2024-10-08 19:53:09 +02:00
Zef Hemel f74bab0aca Lua: inline directives improvements 2024-10-07 19:17:12 +02:00
Zef Hemel 6c71862641 Lua: multi-line string literals 2024-10-07 09:08:36 +02:00
Zef Hemel 41a856636a Lint 2024-10-05 15:38:28 +02:00
Zef Hemel 1299d85e9a First simple Lua directive Live Preview 2024-10-05 15:37:36 +02:00
Zef Hemel 3cf7b72ebb First integration of Lua into the core (via space-lua code blocks) 2024-10-03 17:55:51 +02:00
Zef Hemel 2ef43bd56d Fixes #1100 2024-09-29 13:39:08 +02:00
Zef Hemel 28f3e454b6 Slightly different way of addressing #1085
saving files after local update with setTexrt
2024-09-24 17:34:46 +02:00
Zef Hemel 4bc6ed719c
Update index.html
Removed random s
2024-09-13 08:03:44 +02:00
Zef Hemel d8b4295af4 Fix double page reloads 2024-09-10 14:54:15 +02:00
Zef Hemel d9aa6ef1c4 New window command 2024-09-10 14:38:41 +02:00
Ruibin Xing bddb1b5da9
Export PDF through print. (#1065)
Add print button for markdown panel
2024-08-28 17:32:29 +02:00
Zef Hemel 80f9c14b96
Change how attribute indexing and completion works (#1061)
* Creation of separate aspring-page objects for pages linked to, but not created
* Show "No results" instead of broken markdown table for no query results
* Show schema validation errors
* Deno upgrade
* Adds config support to plugs (see examples)
* Moves all builtin schemas to plug config
* Adds core plug just for builtin schemas
* Changes how attributes are indexed and completed, now attempts to derive a JSON schema for ad hoc attributes
2024-08-24 12:35:09 +02:00
Zef Hemel efc5fa6b2c Fix RO mode 2024-08-22 14:24:40 +02:00
jcgurango eea8326220
Use setText instead of replacing entire editor state (#1056)
* Fix diffAndPrepareChanges
* Use setText instead of replacing editor state
* Isolate editor.setText transaction
2024-08-21 21:36:50 +02:00
jcgurango eeb54738f2
Fix diffAndPrepareChanges (#1055) 2024-08-21 20:03:30 +02:00
Zef Hemel 0c4838e45c Fix copy code edge case 2024-08-20 10:52:08 +02:00
Zef Hemel b8081d970c Fixes #1049 centralizes page URL encoding and decoding 2024-08-20 09:38:56 +02:00
Zef Hemel 225443aef1 Fixes #984 adds Page: Rename Linked Page command 2024-08-18 15:24:18 +02:00
Zef Hemel 3ac21498f3 Fixes #680 all times and dates are now local (to the environment) 2024-08-18 13:04:51 +02:00
Zef Hemel cf054fa186 Should fix #1019 and #1035 2024-08-18 10:39:04 +02:00
Ruibin Xing 770b4b3b59
Added ctrl-p/n keybindings for filters (#1006) (#1036)
Co-authored-by: Ruibin Xing <xingruibin@kanyun.com>
2024-08-15 16:41:15 +02:00
Zef Hemel 074aa323c2 Initial schema implementation #104 2024-08-15 16:39:06 +02:00
Zef Hemel 94d745c7a7 Fixes #1030 2024-08-15 14:36:15 +02:00
Zef Hemel b7c56a8379 Fix some things with transclusions, and added a renderWidgets page decoration 2024-08-12 20:12:28 +02:00
onespaceman 7c23e8d622
Widget buttons for transclusions (#942) (#1013)
Widget buttons for transclusions
2024-08-08 20:19:41 +02:00
Zef Hemel 6b69449d05
More JSR (#1027)
* Move all syscalls to JSR-style package naming
* Eliminating some prefixes in import maps
2024-08-06 20:11:38 +02:00
Zef Hemel ea6e4ce079 Emit config:loaded event 2024-08-03 20:59:53 +02:00
Zef Hemel 47f504f2ce deno fmt 2024-08-02 17:14:40 +02:00
Zef Hemel 64b6d9e2df
Space config (#1011)
Space config + a whole bunch of other tweaks
2024-08-02 16:47:36 +02:00
onespaceman 45166ccd93
Embed video, audio and pdf (#1008) 2024-08-02 16:30:39 +02:00
Zef Hemel 357a50f820 Fix JS error 2024-07-31 13:06:10 +02:00
onespaceman 70cb0fc226
Per-tag page styling (#945)
PageDecorator add cssClasses

---------

Co-authored-by: Zef Hemel <zef@zef.me>
2024-07-31 11:28:31 +02:00
Zef Hemel c111f72e09 Lint error removal 2024-07-30 17:33:33 +02:00
Zef Hemel 9f353f7de1 More JSR dependency moves 2024-07-30 17:24:17 +02:00
Zef Hemel 64e116f75e lint cleanup 2024-07-30 15:17:34 +02:00
Zef Hemel 75471fa86b
Object decorators (#995)
Implemented objectDecorators to replace pageDecorations in SETTINGS
2024-07-29 21:21:16 +02:00
Marek S. Łukasiewicz a0f3f7ef41
Support linking to and moving to line number in pages (#988)
Support linking to and moving to line number in pages
2024-07-28 20:31:37 +02:00
Joe Krill 86bee00e5e
Use aliased preact import in Panel (#989) 2024-07-28 17:03:32 +02:00
Zef Hemel 830ae9c83d Fix meta picker breaking with broken links 2024-07-27 11:01:28 +02:00
Zef Hemel ec88543a14 Fix meta picker breaking with broken links 2024-07-27 10:55:45 +02:00
Zef Hemel 161cd004a7 Cleaning e2e encryption stuff 2024-07-25 20:29:13 +02:00
Zef Hemel 3ca132e16a Fixes #154 2024-07-25 15:19:06 +02:00
Zef Hemel cff343a66b Import clean 2024-07-25 15:19:06 +02:00
Ross 7fa1aabf3e
Unified the size of headers and sb-line-headers (#972)
* Unified the size of headers and sb-line-headers
2024-07-23 21:10:36 +02:00
Zef Hemel 234a17c608 Fixes #955 2024-07-23 16:49:27 +02:00
Zef Hemel 731e246264 Fixes #967 2024-07-23 14:53:36 +02:00
Zef Hemel c81237d93c Fix late settings loading 2024-07-20 06:25:04 +02:00
Marek S. Łukasiewicz e2cb2ab6e7
Add setting for smart quotes (#960) 2024-07-19 19:08:49 +02:00
Marek S. Łukasiewicz 1fc061ac6a
Auto complete folder in Page Picker (#961) 2024-07-19 17:10:39 +02:00
Marek S. Łukasiewicz 75cd4b1383
Hide pages from auto complete with Page Decorations (#962) 2024-07-19 17:06:40 +02:00
onespaceman 5fe77083ae
Fix #850 (#964) 2024-07-19 17:00:13 +02:00
Zef Hemel 11967b82a6
Meta links (#954)
Add carret page link support (for meta pages)
2024-07-17 17:03:25 +02:00
Ross 5162ea7bf2
chore: Update index.html to include norefer (#951) 2024-07-17 07:37:05 +02:00
Zef Hemel e050c7a4cf Support creating a slashCommand as a command shortcut 2024-07-14 19:57:06 +02:00
Zef Hemel e4da0b7849 Refined implementation of #560 2024-07-14 11:29:43 +02:00
Zef Hemel 71b2199dd4 Include prefix in browser title 2024-07-13 15:00:04 +02:00
Zef Hemel dcde6aaf7c Better updating of decorations 2024-07-13 14:55:35 +02:00
Deepak Narayan 850c06fd70
Fixes #560 and provides an initial implementation for assigning (#940)
decorators to tags.

This patch enables decorations for user specified tags - starting
with handling only a single decoration - a 'prefix' to be added
to the page name. Prefix is handled in the top bar title,
page navigator, wiki-links appearing within a page as well as
page autocomplete suggestions.
2024-07-13 13:56:00 +02:00
Zef Hemel f3a84e35c0 Cleaned up path file extension checking and handling conflicting copies 2024-07-13 13:51:49 +02:00
onespaceman be8c3303a4
fix serving files with numbers in extension (#931) 2024-07-11 22:37:58 +02:00
Zef Hemel 25d14031c9
Fixes #926
Libraries have been rethought, see associated documentation.
2024-07-11 20:36:26 +02:00
Ethan Yoo 776206db90
Check only the primary pointing device's accuracy (#929) 2024-07-11 06:03:33 +02:00
Zef Hemel c7f5645075 Fixes #927 2024-07-10 08:50:54 +02:00
Zef Hemel fb21377bef
Transclosure support for pages (#925)
Transclusion implementation
2024-07-09 09:22:08 +02:00
Zef Hemel d6f0f61d30 Rebrand Template Picker to Meta Picker
As well as associated documentation changes
2024-07-07 12:12:05 +02:00
Zef Hemel 7ddd7c4011 Style a line containng only "#" as if it were to become a tag instead of a header 2024-07-07 10:32:13 +02:00
Zef Hemel 25720c63e0 Fixes #822 2024-07-06 20:29:38 +02:00
Zef Hemel 104b6356df Fixes #902 2024-07-06 15:45:04 +02:00
Zef Hemel a6450d3179 Fixes #704 implementing read-only mode and mobile only button 2024-07-04 21:22:37 +02:00
MrMugame c412bed98e
Add `drawSelection()` (#917) 2024-07-04 07:05:58 +02:00
MrMugame 5c28b1a73f
Change selection behaviour (#904)
* Change selection behaviour
* turn mouseup/mousedown events into click
* Remove `drawSelection()`
* Add custom cursor
2024-07-03 19:13:54 +02:00
Zef Hemel 1e58d220eb Fixes #911 2024-07-02 20:13:41 +02:00
MrMugame 1ea652a730
Hides the '\' from escaped characters (#901) 2024-06-26 15:55:56 +02:00
MrMugame 2a2cdef0f4
Added automatic quote insertion (#897) 2024-06-23 05:33:16 +02:00
MrMugame b6d95ec632
Redirect to initial url after authentication (#893) 2024-06-22 12:45:23 +02:00
Zef Hemel bd3e91ba65 Fix regression reloading pages changed "on disk" 2024-06-14 08:44:46 +02:00