Commit Graph
167 Commits
Author SHA1 Message Date
Rūdolfs Ošiņš da14ca6505 Remove Post comment keyboard shortcut 2024-07-23 09:50:33 +02:00
Sebastian Martinez dd61f5cf5c Remove local httpd features and experimental features
Updates API version to 2.0.0
2024-07-04 11:48:41 +02:00
Sebastian Martinez b8171e3a3f Simplify sidebar context boxes
Also starts removing features that relied on the web client handling
local httpd instances
2024-07-02 12:49:35 +02:00
Sebastian Martinez 4b579d13a9 Add InlineTitle component
This new component doesn't rely on marked.js but escapes any special
characters and then replaces any backtick with a <code> HTML tag to
render any inline codeblocks in all titles.
2024-07-01 13:05:08 +02:00
Sebastian Martinez f21a80167c Display user agent instead of version 2024-06-28 21:43:32 +02:00
Sebastian Martinez e326f48cbf Update seeding policy schema 2024-06-28 13:59:35 +02:00
Konstantinos Maninakis b0bd692dd4 Add syntax highlighting for new file types 2024-06-24 17:54:45 +02:00
Konstantinos Maninakis b9eddb69b7 Add syntax highlighting for additional grammars 2024-06-24 17:54:45 +02:00
Sebastian Martinez 0901f04ffd Start using new marked renderer syntax 2024-06-24 14:08:58 +02:00
Sebastian Martinez 894ab2e0aa Update node config 2024-06-21 13:24:11 +02:00
Sebastian Martinez 2ee8bae82e Rename httpd-client to http-client 2024-06-07 12:22:28 +02:00
Sebastian Martinez 655ccf1d0f Add a new plain marked instance 2024-06-03 20:31:50 +02:00
Sebastian Martinez 3d13bc03ae Navigate seed nodes from explore section 2024-05-29 16:32:40 +02:00
Sebastian Martinez 0c7ea70c1b Update eslint config to flat config
Since the legacy config is being deprecated at the end of 2024, we
should start moving to the eslint flat config.

I avoided the tseslint config helper function so we avoid wrapping
magic.

This seems to have triggered more checking since any checks in svelte
files have appeared and the $$Generic type that is being deprecated had
to be rewritten.

Also fixes some any types that weren't caught previously
2024-05-27 17:35:16 +02:00
Lorenz Leutgeb fb32e01a2f Connect to .onion via HTTP instead of HTTPS 2024-05-24 11:09:09 +02:00
Sebastian Martinez 46e514dcd8 Refactor config json into a virtual module 2024-05-17 15:35:00 +02:00
Sebastian Martinez 2fc03f3312 Add apiVersion to config and httpd request
We have a new apiVersion value in the config json that needs to be
changed for each breaking change on httpd so we can simulate a new
resource to the cache and get it cleared.

Also improves the ResponseParseError giving the user more information
on, if the node or the web client is outdated
2024-05-03 08:34:08 +02:00
Sebastian Martinez 0c46e67f88 Handle absolute markdown links with leading slash
This commit also handles relative linking when there is no path yet.
Aka not having `/tree/..` in the URL.
2024-04-04 22:24:53 +02:00
Rūdolfs Ošiņš 127efc49a5 Revert "Handle absolute markdown links with leading slash"
This reverts commit 2efd0ad58e.

There's a bug with root-level links in markdown docs.
2024-03-29 16:48:28 +01:00
Sebastian Martinez 2efd0ad58e Handle absolute markdown links with leading slash 2024-03-29 11:54:54 +01:00
Sebastian Martinez 1c54038055 Handle error in AssigneeInput when chars outside of the bs58 charset
Also improves the UX and only shows validation errors on submit, and not
during input.
2024-03-22 09:00:47 +01:00
Sebastian Martinez 7f2f03efc3 Make SeedButton blue again in read-only mode 2024-03-21 07:19:43 +01:00
Sebastian Martinez 91866f6292 Add prefers-color-scheme query for theme fallback 2024-03-19 10:28:06 +01:00
Sebastian Martinez 999c292b1d Revert URL.canParse to try catch 2024-03-15 14:49:19 +01:00
Rūdolfs Ošiņš 841f1a4e8a Rewrite tab syncing 2024-03-15 13:13:13 +01:00
Rūdolfs Ošiņš 00ff5c1c38 Simplify authentication logic 2024-03-15 13:13:13 +01:00
Rūdolfs Ošiņš a1db517346 Disable authentication in read-only mode
Tell the user how to enable experimental mode where authentication
works.
2024-03-14 16:57:36 +01:00
Sebastian Martinez d7521a4608 Don't store the entire node config in the httpd state
This should also fix the race condition, since we don't compare it for
running the checkState fn
2024-03-14 11:07:21 +01:00
Sebastian Martinez 0918d38be9 Add title attribute to anchor tags 2024-03-13 17:11:58 +01:00
Rūdolfs Ošiņš ad1fdca446 Show RID on ProjectCard 2024-03-13 10:39:59 +01:00
Sebastian Martinez 192524fe90 Add experimental switch in settings
Hide all read/write functionality behind this setting.
2024-03-07 10:35:21 +01:00
Sebastian Martinez 273dff2da4 Add target="_blank" attribute to external markdown links 2024-03-06 15:34:22 +01:00
Thomas Scholtes 67e16ea7dd Consolidate and optimize data fetching for ProjectCard
We consolidate the code that fetches the data for `ProjectCard` in one
module, adjacent to the `ProjectCard` component. We also consolidate all
the data into one interface to simplify the component API.

With the data loading in one place we can eliminate duplicate code and a
handful of helper functions.

The consolidation also allows us to discover some optimizations to
fetching: We parallelize requests and we use the commit detail endpoint
instead of the commit list endpoint. For the latter to pay off, we need
to deploy caching to the API.
2024-03-05 10:49:25 +01:00
Sebastian Martinez 16e858bd7a Update footnote regex to handle footnotes with spaces 2024-03-04 16:35:22 +01:00
Sebastian Martinez 4bb0e72841 Remove hash routing
Since we don't have or want any deployments on IPFS, and we don't have
much use for hash routing else, we can clean up some code and remove
some tests.
2024-03-04 14:39:36 +01:00
Thomas Scholtes 69429cb08f Re-use project-level data when browsing source code
We make source code browsing faster by re-using project-level data when
navigating between files. This comes at a cost: Project info (like the
issue counter), remotes and branches are only updated when the page is
hard-refreshed or the user navigates away from the source code view.
2024-02-28 14:15:58 +00:00
Sebastian Martinez add8a9ad94 Display images in source browser and diffs, enable preview for svgs 2024-02-27 16:59:07 +00:00
Rūdolfs Ošiņš 4a5e67dd2b Improve authentication error modal
We tell users to check their firewall and ad blocker settings in case
they bump into authentication problems. This also separates out the
modal to be only used by the session view.
2024-02-26 13:03:44 +00:00
Rūdolfs Ošiņš 41435951c1 Refactor BaseUrl string conversion
We're only using this as a string, so no need to convert it to an URL.
2024-02-23 15:46:28 +00:00
Rūdolfs Ošiņš 3cfddf8647 Show seed policy and scope in "online" button 2024-02-23 11:37:01 +00:00
Sebastian Martinez 1471fb1709 Add edited label to patches 2024-02-23 07:53:48 -03:00
Rūdolfs Ošiņš 975d1823a2 Show only pinned projects on node view
And style them visually similar to the landing page.
2024-02-22 05:33:36 +00:00
Sebastian Martinez dbfb56f37b Remove node config from httpdStore and poll only active tab and browser 2024-02-20 12:02:41 +00:00
dnlklmn 0bee4f1e03 Show absolute timestamps on edited markers 2024-02-19 22:26:11 +01:00
Rūdolfs Ošiņš f833fc506e Improve error message when local project is unavailable 2024-02-16 16:38:18 +00:00
Sebastian Martinez d216caec7d Improve catching of errors when loading routes
- Handle ResponseParseErros, ResponseErrors and normal errors
  differently.
- Show them all in the same `LoadError` view
- Add a subtitle to give users some more information on what could have
  gone wrong.
- Add more properties to the copyable error message to make debugging
  easier.
2024-02-15 13:26:11 -03:00
Sebastian Martinez 389ecc95ba Fix prefferedSeeds typo 2024-02-15 09:38:28 -03:00
Sebastian Martinez 0cd667c925 Add supportWebsite config param 2024-02-15 09:38:28 -03:00
Sebastian Martinez 364844f47f Remove unused error.ts file 2024-02-15 09:38:28 -03:00
Rūdolfs Ošiņš b5977588ae Show correct meta key on Linux/macOS in hotkeys modal 2024-02-13 13:53:58 +00:00