Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Remove orgs listing until it is redesigned
Alexis Sellier committed 3 years ago
commit 4f86bf13a29adc719db05f509fb032a328c2c47d
parent 5d34f77bc3ead0eac4e772202f67f5ce4b44449d
5 files changed +4 -22
modified src/App.svelte
@@ -88,7 +88,7 @@
          <Vesting {config} session={$session} />
        </Route>
        <Registrations {config} session={$session} />
-
        <Orgs {config} />
+
        <Orgs />
        <Seeds {config} session={$session} />
        <Faucet {config} />
        <Users />
modified src/Header.svelte
@@ -165,7 +165,6 @@
      <Search />
    </div>
    <div class="nav">
-
      <a use:link class="nav-link" href="/orgs/">Orgs</a>
      <a use:link class="nav-link" href="/registrations">Register</a>

      {#if session && Object.keys(session.siwe).length > 0}
modified src/base/home/Index.svelte
@@ -1,5 +1,4 @@
<script lang="ts">
-
  import { navigate } from 'svelte-routing';
  import type { Config } from '@app/config';
  import { Profile } from '@app/profile';
  import { Org } from '@app/base/orgs/Org';
@@ -32,10 +31,6 @@
  const getEntities = Promise.all([getUsers, getOrgs, getSeeds]).then(([users, orgs, seeds]) => {
    return { users, orgs, seeds };
  });
-

-
  const viewMore = () => {
-
    navigate("/orgs");
-
  };
</script>

<style>
@@ -61,10 +56,6 @@
  .loading {
    padding-top: 2rem;
  }
-
  .actions {
-
    margin-top: 1rem;
-
    text-align: center;
-
  }
  @media (max-width: 720px) {
    .blurb {
      max-width: none;
@@ -106,11 +97,6 @@
      <Cards {config} profiles={entities.users} orgs={entities.orgs}>
        <div class="empty">There are no orgs or users.</div>
      </Cards>
-
      <div class="actions">
-
        <button class="small secondary" on:click={viewMore}>
-
          View all
-
        </button>
-
      </div>
    {/if}
  {:catch}
    <div class="padding">
modified src/base/orgs/Routes.svelte
@@ -1,14 +1,11 @@
<script lang="ts">
  import { Route } from "svelte-routing";
-
  import Index from '@app/base/orgs/Index.svelte';
-
  import type { Config } from '@app/config';
  import Redirect from "@app/Redirect.svelte";
-

-
  export let config: Config;
+
  import NotFound from "@app/NotFound.svelte";
</script>

<Route path="/orgs">
-
  <Index {config} />
+
  <NotFound title="404" subtitle="Radicle Orgs are in the process of being re-designed." />
</Route>

<Route path="/orgs/:addressOrName" let:params>
modified src/base/projects/Header.svelte
@@ -202,7 +202,7 @@
    <div class="stat issue-count clickable widget" class:active={content == ProjectContent.Issues} on:click={toggleIssues}>
      <strong>{groupIssues(issues).open.length}</strong> issue(s)
    </div>
-
  {:catch e}
+
  {:catch}
    <div class="stat issue-count not-allowed widget" title="Not supported">
      0 issue(s)
    </div>