Commit graph

121 commits

Author SHA1 Message Date
e35124f5ac Make focus and folding robust against reordering
Now paths use the same keys as vue's key property instead of being
purely index-based.
2025-02-07 23:00:44 +01:00
363f88edcf Edit existing notes 2025-02-07 22:51:21 +01:00
32193376bc Show mouse controls on hover instead of focus
Saves a click in most scenarios.
2025-02-07 22:23:45 +01:00
9ce2169931 Fix editor key events bubbling up 2025-02-07 22:16:06 +01:00
6c1ee3a3fc Make note and editor structure similar
In preparation for using the editor to edit the note
2025-02-07 22:04:07 +01:00
b70903ef6f Set printWidth to 100 for code files 2025-02-07 21:53:19 +01:00
2531e7d640 Display multiline note text correctly 2025-02-07 21:44:41 +01:00
1295db8283 Refactor child note editor
I plan on using the same editor component when editing a note itself, in
which case the plus symbol and padding is unnecessary. The editor is
meant to be used in-place of note text.
2025-02-07 21:43:15 +01:00
5c6c607ea4 Move focus upwards when pressing Escape 2025-02-07 21:09:08 +01:00
903d137cda Render empty notes nicer 2025-02-07 21:07:47 +01:00
aab2a502ab Leave some space so scroll bar does not overlap buttons 2025-02-07 14:49:53 +01:00
02aed54ca3 Add basic key bindings for note creator 2025-02-07 14:47:25 +01:00
56ab7c2613 Focus on note once created 2025-02-07 14:47:06 +01:00
3d2941791e Save created notes to store 2025-02-07 14:21:33 +01:00
5fa8a0466e Resize note creator input to fit contents 2025-02-07 14:06:34 +01:00
cda2ddee32 Grey out fold symbol if note is stuck open 2025-02-07 02:22:43 +01:00
dd19497426 Store paths of unfolded nodes in ui state 2025-02-07 02:22:13 +01:00
e62f277ee4 Fix navbar dropdown not closing when clicking outside 2025-02-07 01:28:00 +01:00
ae1bcf4746 Fix navbar dropdown disappearing behind notes 2025-02-06 02:59:34 +01:00
8453f6ee53 Add nonfunctional text box to create new notes 2025-02-06 02:55:33 +01:00
6c785ce566 Add title text to navbar buttons 2025-02-05 22:50:22 +01:00
21cd015ada Focus on and fold notes by clicking
Also tweaks the look a bit, of course.
2025-02-05 22:44:15 +01:00
37f1b0e9d1 Highlight focused element by path
Also force all its parents to be open, similar to forceOpen from the
previous commit (which, incidentally, this commit removes again).
2025-02-05 21:18:40 +01:00
af99414d6a Add forceOpen prop to CNote 2025-02-05 20:07:56 +01:00
89c0396778 Add proper keys for notes 2025-02-05 15:51:18 +01:00
bb665d3b7d Render notes from store 2025-02-05 02:22:02 +01:00
6fb900fe4b Disable bundling in build
For one, it fails on arch linux, which is what I'm developing on:
https://github.com/tauri-apps/tauri/issues/8929
https://github.com/tauri-apps/tauri/issues/11149
https://github.com/linuxdeploy/linuxdeploy/issues/272

At the moment, I plan on distributing Linux and Windows binaries as well
as an APK for Android. If I'll ever include any bundles in the CI, they
can be manually triggered using --bundles.
2025-02-02 16:19:20 +01:00
fb5aa6a25c Update tsconfig
Reorganize keys and make checks a bit more strict
2025-01-29 01:01:25 +01:00
5b04ca821c Create component for navbar buttons 2025-01-28 22:26:57 +01:00
d9722e13f7 Rename navbar components 2025-01-28 22:26:47 +01:00
e18e898102 Display very basic tree of nodes 2025-01-28 22:18:05 +01:00
ef9679e18c Tweak formatting 2025-01-28 22:17:53 +01:00
0beaecb317 Make install-android a bit more robust
Not sure if this is absolutely necessary, but it doesn't hurt either.
2025-01-28 15:04:27 +01:00
2febfca78f Update dependencies 2025-01-28 13:31:52 +01:00
4f16dc4c5d Update dropdown size and position 2025-01-28 13:26:01 +01:00
739af21519 Overflow dropdown menu 2025-01-28 13:06:55 +01:00
ccc41f96d8 AdSelect and delete repos 2025-01-28 12:53:27 +01:00
136e736a51 Add meta/check script 2025-01-28 12:51:58 +01:00
4d798dd2e2 Abbreviate selected repo name if too long 2025-01-28 02:55:14 +01:00
45d97388ee Create navbar dropdown menu 2025-01-28 02:55:14 +01:00
160c8a626d Set up pinia 2025-01-27 20:29:54 +01:00
7ac29857ef Remove unused logos 2025-01-27 20:29:54 +01:00
9864c4b8a7 Disable zoom on android 2025-01-27 20:29:54 +01:00
d67acb1caa Set up vue dev tools 2025-01-27 20:29:54 +01:00
1457187f5e Set up @ path alias 2025-01-27 20:29:54 +01:00
54773a144c Add more meta scripts 2025-01-27 20:29:54 +01:00
1b94d5573c Use Remix icons and set up navbar properly
Too lazy to separate these changes into multiple commits.
2025-01-27 19:35:07 +01:00
14e85207e9 Embed and use FiraGo
It doesn't seem to be working correctly on Android though. A quick
google implies that my Android might not support woff2 files, so maybe
I should try ttf or woff instead.

Edit: Apparently, it *does* just work on my phone now. No idea why it
didn't work before.
2025-01-27 19:00:21 +01:00
d1f0d28dac Set up prettier and tailwind even harder
JS tooling breaks at the slightest whiff of nonstandard setups. God
forbid you set up your js project in a subdirectory of the repository
instead of in the root...
2025-01-26 23:57:28 +01:00
f0ec43f468 Set up tailwindcss 2025-01-26 20:40:34 +01:00