Commit Graph
82 Commits
Author SHA1 Message Date
Sebastian Martinez f38893407a Add hash routing
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-15 15:24:12 +01:00
Sebastian Martinez cd60ad7298 Convert emojis to twemojis
To provide the same emoji experience on all browsers and OS we use
Twemoji and replace all emojis where possible.

Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-15 15:10:48 +01:00
Sebastian Martinez 489039c6e3 Add switch between rendered markdown and raw file
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-07 14:30:36 +01:00
Sebastian MartinezandRūdolfs Ošiņš f8ddbbf5da Remove svelte-routing and add custom routing
Co-authored-by: Rūdolfs Ošiņš <rudolfs@osins.org>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2022-11-07 08:57:37 +01:00
Rūdolfs Ošiņš ae49c6fc56 Extract global layout classes into own file
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-10-18 18:02:21 +02:00
Osama El Hariri 9cb3928481 Make file tree sticky
Signed-off-by: Osama El Hariri <osama.hariri.dev@gmail.com>
2022-10-05 11:49:41 +02:00
Rūdolfs OšiņšandBrandon Oxendine b35d46752f Add theme switching button
Co-authored-by: Brandon Oxendine <brandon.oxendine@gmail.com>
Signed-off-by: Brandon Oxendine <brandon.oxendine@gmail.com>
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-15 12:45:56 +02:00
Rūdolfs Ošiņš 591c19a256 Refactor typography styles
- Move all global typography styles to its own file. This makes it
  easier to find all the typography related definitions for newcomers.

- Prefix all typography related global CSS classes with a unique prefix
  `.txt-`. This allows us to grep the codebase and see exactly where
  they are applied. Another benefit of this convention is that it helps
  to avoid accidentally mixing global and local styles. Having global
  CSS classes that sometimes overlap with component CSS classes makes it
  very hard to reason about the resulting visuals and making changes
  unpredictable.

- Introduce CSS variables for standardised typography sizes and apply
  them to the whole codebase consistently. This way we can adjust the
  size in one place and it will be applied everywhere.

- Avoid using predefined HTML tags which might have differing styling
  from browser to browser, e.g. `<h1>`, `<strong>`. We should stick to
  applying styling either by adding a specific global CSS class or using
  the predefined CSS variables, this way we can be sure that the styles
  won't be overridden by browser defaults.

- Have a minimal set of modifiers `.txt-monospace` and `.txt-bold` and
  apply them consistently. Since `.txt-monospace` is defined via a CSS
  variable, we'll be able to switch out fonts via a user setting in the
  future.

Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-09 14:50:26 +02:00
Rūdolfs Ošiņš dc8a8f883c Extract Button component
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-09-06 11:36:31 +02:00
Rūdolfs Ošiņš b3cec1f314 Format *.ts, *.js, *.css, *.html, *.json and *.svelte
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-31 17:47:07 +02:00
Rūdolfs Ošiņš 94329d612f Require === and !== comparisons
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2022-08-30 12:09:27 +02:00
Brandon Oxendine b687d37b03 Unify button heights
Signed-off-by: Brandon Oxendine <brandon.oxendine@gmail.com>
2022-07-13 13:51:32 +02:00
Alexis Sellier e045b92297 Handle empty source tree better
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-30 14:23:19 +02:00
Alexis Sellier a84b5d0ec0 Mobile fixes for project view
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-27 11:57:41 +02:00
Alexis Sellier 8e77f9f5ae Load images in markdown documents
This loads images asynchronously inside markdown documents.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-21 12:39:39 +01:00
Alexis Sellier 0a830432f7 Make project head optional
This is useful since some seeds may not have delegates synced.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-02 14:41:04 +01:00
Alexis Sellier cfc5f4a095 Improve project error handling
Fail gracefully if we can't load a peer.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-02 11:50:25 +01:00
Alexis Sellier 26e25895ce Don't be so negative about no READMEs
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-03-01 18:53:10 +01:00
Alexis Sellier cfb695d592 Show which line is highlighted
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-25 16:56:33 +01:00
Sebastian Martinez a41c3cd293 Add link to code line numbers
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-25 16:03:13 +01:00
Sebastian Martinez ee507215fb Refactor projects
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-21 22:42:52 -03:00
Alexis Sellier c58db9d278 Implement more simplifications
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-12 00:37:00 +01:00
Alexis Sellier b9c4cda4cf Refactor project reactivity
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-11 16:21:03 +01:00
Alexis Sellier e6f4441be7 Revise seed config
No longer use `Config` to store the seed config.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-02-09 13:27:12 +01:00
Sebastian Martinez a43ac33ddc Refactor org and user routes
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-02-08 10:16:45 +01:00
Sebastian Martinez 7ba5ce0f60 Refactor source params into separate object
We had a lot variables that we had to pass down from the project view,
and only very few where important to the reactivity of the components.

By using the resolved Promise from `getProject` as transport we can use
now the `source` variable and get the required params by destructuring
it.

In short we can pack now the following params:
```
urn, org, user, seed, peer, project, branches, peers, config, anchors
```

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-26 10:03:26 +01:00
Sebastian Martinez 83373ca507 Add peer selector
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-17 13:08:36 +01:00
Alexis Sellier 05ed8e15a0 Support for browsing seed projects
Eg. /seeds/seed.cloudhead.io/projects/:urn

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-14 12:23:34 +01:00
Alexis Sellier 298fe26e76 Replace event dispatching with bindings
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-13 16:33:56 +01:00
Alexis Sellier 5ec1654676 Fix reactivity when browsing source
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-13 12:42:22 +01:00
Alexis Sellier 145f479a42 Fix indentation
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2022-01-13 12:42:17 +01:00
Sebastian Martinez ddf7b27f55 Add branch browsing and selector
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2022-01-13 10:37:01 +01:00
Sebastian Martinez 02eb4463c1 Add commits listing
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-12-20 13:39:05 +01:00
Sebastian Martinez 4b2c14e42e Refactor project browser
Extracts the header part of the project browser into a separate
component, some props and functions not necessary anymore in `Browser`
are passed into `Header` or into the superior project `View` and the
clickable parts of the header part are managed by Svelte Events.

This prepares the stage for commit listing and commit details.

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-12-17 22:42:30 +01:00
Sebastian Martinez b3929fef74 Add stale anchors feature
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-12-10 16:06:49 +01:00
Alexis Sellier 721ccff81b Improve code browsing text on mobile
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-07 13:48:19 +01:00
Alexis Sellier da9eccdd25 Source tree padding only on mobile
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-07 13:48:19 +01:00
Sebastian Martinez 68395bceb2 Refactor responsive and fix mobile toggle nav
- Removes the base property from vite.config, until a better solution
  has been found, wasn't able to reproduce it locally in production
  build though.
- Moves desktop and mobile classes from components to index.css
- Used a own CSS hide mechanism for the ellipsis menu.
- Shortens the addresses in org and users view, and wraps orgs in user
  view

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-12-07 10:44:53 +01:00
Sebastian Martinez 04ec3319e4 Add Responsive Layout
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-12-04 12:39:41 +01:00
Alexis Sellier 1b7a259515 Allow overriding eth.radicle.seed.host record
Adds two new records:

* eth.radicle.seed.api
* eth.radicle.seed.git

When specified, these override `eth.radicle.seed.host` for Git
and the HTTP API, respectively.

Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-11-23 13:06:39 +01:00
Alexis Sellier 53365e18f3 Fix commit hash being too dark
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-29 14:52:32 +02:00
Alexis Sellier b2949d9910 Show branch name when project is at head
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-29 11:04:56 +02:00
Alexis Sellier 24aa0d5f80 Anchor is not clickable if already at head
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-29 10:02:27 +02:00
Sebastian Martinez 2c3f6c3238 Add toggle function to project anchor label
Signed-off-by: Sebastian Martinez <sebastinez@me.com>
2021-10-29 08:52:12 +02:00
Alexis Sellier 18b28010bb Users can specify anchors address in ENS
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-11 18:42:33 +02:00
Alexis Sellier 398f5c8d09 Get anchors work in user projects
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-11 16:02:55 +02:00
Alexis Sellier 6d447622a2 Show seed address in org view
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-10-01 10:26:12 +02:00
Alexis Sellier 2821409418 Show Seed ID on project page
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-22 18:14:21 +02:00
Alexis Sellier fd5b617850 Move 'Clone' button so the pop-up doesn't spill
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-22 17:32:23 +02:00
Alexis Sellier 8bbc7ec0f1 Add "Clone" button to projects
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2021-09-16 14:32:03 +02:00