@@ -81,3 +72,12 @@
{/if}
{/await}
+
+
diff --git a/src/pages/app/ActionBar.svelte b/src/pages/app/ActionBar.svelte
index 08d1991d2..b92b8e90c 100644
--- a/src/pages/app/ActionBar.svelte
+++ b/src/pages/app/ActionBar.svelte
@@ -24,69 +24,6 @@
let editVisible = false;
-
-
{#if !$layout.loading}
@@ -152,3 +89,66 @@
+
+
diff --git a/src/pages/app/Anonymous.svelte b/src/pages/app/Anonymous.svelte
index c76d6dff0..617dbf60d 100644
--- a/src/pages/app/Anonymous.svelte
+++ b/src/pages/app/Anonymous.svelte
@@ -15,6 +15,55 @@
}
+
+
+
+
+
{$_("anonymous.title")}
+
+ {@html documentSilhouetteSvg}
+
+
+
+ {$_("anonymous.p1", { values: { n: $search?.results?.count ?? 0 } })}
+
+
+ {@html $_("anonymous.p2")}
+
+
+ {$_("anonymous.p3")}
+
+
+
+ {@html $_("anonymous.p4")}
+
+
+
+
-
-
-
-
-
-
{$_("anonymous.title")}
-
- {@html documentSilhouetteSvg}
-
-
-
- {$_("anonymous.p1", { values: { n: $search?.results?.count ?? 0 } })}
-
-
- {@html $_("anonymous.p2")}
-
-
- {$_("anonymous.p3")}
-
-
-
- {@html $_("anonymous.p4")}
-
-
-
diff --git a/src/pages/app/AuthSection.svelte b/src/pages/app/AuthSection.svelte
index 06400e8be..e98f95d36 100644
--- a/src/pages/app/AuthSection.svelte
+++ b/src/pages/app/AuthSection.svelte
@@ -45,31 +45,6 @@
$: individualOrg = pickOne(orgs.filter((org) => org.individual));
-
-
+
+
diff --git a/src/pages/app/Document.svelte b/src/pages/app/Document.svelte
index 956e39906..1180a0407 100644
--- a/src/pages/app/Document.svelte
+++ b/src/pages/app/Document.svelte
@@ -62,186 +62,6 @@
const TAG_KEY = process.env.TAG_KEY;
-
-
{#if $orgsAndUsers.loggedIn && !embed && !dialog}
@@ -459,3 +279,183 @@
+
+
diff --git a/src/pages/app/DocumentThumbnail.svelte b/src/pages/app/DocumentThumbnail.svelte
index b8e4780f5..dce61c8fe 100644
--- a/src/pages/app/DocumentThumbnail.svelte
+++ b/src/pages/app/DocumentThumbnail.svelte
@@ -32,6 +32,65 @@
$: pageCount = document == null ? null : $documents.pageCountMap[document.id];
+
+
+ {#if document.viewable}
+ {#if dialog}
+ emit.pick(document)}
+ src={document.thumbnail}
+ />
+ {:else if embed && document.publishedUrl != null && document.publishedUrl.trim().length > 0}
+
+ {:else}
+
+
+
+ {/if}
+ {:else if document.pending}
+
+
+ {#if realProgress != null}
+
{Math.floor(realProgress * 100)}%
+ {#if pagesProcessed != null}
+
+ {pagesProcessed} / {pageCount}
+ {$_("documentThumbnail.pages")}
+
+ {/if}
+ {:else}{$_("documentThumbnail.loading")}{/if}
+
+
+ {document.status}
+
+
+ {:else}
+
+ {@html errorIconSvg}
+
+ {/if}
+
+ {#if noteCount > 0}
+
+ {$_("document.noteCount", { values: { n: noteCount } })}
+
+
+ {#if publicNote}
+ {@html publicTagSvg}
+ {/if}
+ {#if orgNote}
+ {@html organizationTagSvg}
+ {/if}
+ {#if privateNote}
+ {@html privateTagSvg}
+ {/if}
+
+ {/if}
+
+
-
-
-
- {#if document.viewable}
- {#if dialog}
- emit.pick(document)}
- src={document.thumbnail}
- />
- {:else if embed && document.publishedUrl != null && document.publishedUrl.trim().length > 0}
-
- {:else}
-
-
-
- {/if}
- {:else if document.pending}
-
-
- {#if realProgress != null}
-
{Math.floor(realProgress * 100)}%
- {#if pagesProcessed != null}
-
- {pagesProcessed} / {pageCount}
- {$_("documentThumbnail.pages")}
-
- {/if}
- {:else}{$_("documentThumbnail.loading")}{/if}
-
-
- {document.status}
-
-
- {:else}
-
- {@html errorIconSvg}
-
- {/if}
-
- {#if noteCount > 0}
-
- {$_("document.noteCount", { values: { n: noteCount } })}
-
-
- {#if publicNote}
- {@html publicTagSvg}
- {/if}
- {#if orgNote}
- {@html organizationTagSvg}
- {/if}
- {#if privateNote}
- {@html privateTagSvg}
- {/if}
-
- {/if}
-
diff --git a/src/pages/app/Documents.svelte b/src/pages/app/Documents.svelte
index 07887cb69..25c81eecf 100644
--- a/src/pages/app/Documents.svelte
+++ b/src/pages/app/Documents.svelte
@@ -135,6 +135,97 @@
}
+
+
+
+ {#if !embed}
+ {#if $layout.uploading && !$layout.error}
+
($layout.uploading = false)}
+ component={UploadDialog}
+ properties={{ initialFiles: preUploadFiles }}
+ />
+ {/if}
+
+ {#if $orgsAndUsers.loggedIn}
+
+ {/if}
+
+ {/if}
+ {#if embed && $layout.projectEmbedTitle != null}
+ {$layout.projectEmbedTitle}
+ {/if}
+ {#if !dialog && embed && $search.params != null && $search.params.projectEmbedId != null && $layout.projectEmbedSearchBar}
+
+
+ {:else if !embed || dialog}
+
+
+ {/if}
+
+
+ {#if !embed}
+
+
+
+
+
+ {/if}
+
+
+
+
+ {#if !$orgsAndUsers.loggedIn && $search.params?.query === "" && !anonymousClosed}
+
+ {:else}
+ {#each $documents.documents as document (document.id)}
+
+
+
+ {/each}
+ {/if}
+ {#if $documents.documents.length == 0 && !$layout.loading}
+
+ {/if}
+ {#if $orgsAndUsers.loggedIn}
+
+
{$_("documents.dropFile")}
+
+ {/if}
+
+
+
+ {#if embed}
+
+ {:else}
+
+ {/if}
+
+
+
-
-
-
-
- {#if !embed}
- {#if $layout.uploading && !$layout.error}
-
($layout.uploading = false)}
- component={UploadDialog}
- properties={{ initialFiles: preUploadFiles }}
- />
- {/if}
-
- {#if $orgsAndUsers.loggedIn}
-
- {/if}
-
- {/if}
- {#if embed && $layout.projectEmbedTitle != null}
- {$layout.projectEmbedTitle}
- {/if}
- {#if !dialog && embed && $search.params != null && $search.params.projectEmbedId != null && $layout.projectEmbedSearchBar}
-
-
- {:else if !embed || dialog}
-
-
- {/if}
-
-
- {#if !embed}
-
-
-
-
-
- {/if}
-
-
-
-
- {#if !$orgsAndUsers.loggedIn && $search.params?.query === "" && !anonymousClosed}
-
- {:else}
- {#each $documents.documents as document (document.id)}
-
-
-
- {/each}
- {/if}
- {#if $documents.documents.length == 0 && !$layout.loading}
-
- {/if}
- {#if $orgsAndUsers.loggedIn}
-
-
{$_("documents.dropFile")}
-
- {/if}
-
-
-
- {#if embed}
-
- {:else}
-
- {/if}
-
-
diff --git a/src/pages/app/EmbedFooter.svelte b/src/pages/app/EmbedFooter.svelte
index 54566ee63..8cef95fdd 100644
--- a/src/pages/app/EmbedFooter.svelte
+++ b/src/pages/app/EmbedFooter.svelte
@@ -5,6 +5,18 @@
export let dialog = false;
+
+
-
-
diff --git a/src/pages/app/File.svelte b/src/pages/app/File.svelte
index 58ff70c9e..56772b3ee 100644
--- a/src/pages/app/File.svelte
+++ b/src/pages/app/File.svelte
@@ -33,6 +33,37 @@
}
+{#if !uploadMode || !data.done}
+
+
+ {@html documentIconSvg}
+
+
+
+ {#if uploadMode}
+
+ {/if}
+
+
+
+
{size}
+ {#if !uploadMode}
+
+
+ {@html closeInlineSvg}
+
+
+ {/if}
+
+{/if}
+
-
-{#if !uploadMode || !data.done}
-
-
- {@html documentIconSvg}
-
-
-
- {#if uploadMode}
-
- {/if}
-
-
-
-
{size}
- {#if !uploadMode}
-
-
- {@html closeInlineSvg}
-
-
- {/if}
-
-{/if}
diff --git a/src/pages/app/MainContainer.svelte b/src/pages/app/MainContainer.svelte
index b65afe1d4..e0a99c793 100644
--- a/src/pages/app/MainContainer.svelte
+++ b/src/pages/app/MainContainer.svelte
@@ -60,39 +60,6 @@
let containerElem = null;
-
-
@@ -148,3 +115,36 @@
{/if}
+
+
diff --git a/src/pages/app/NoDocuments.svelte b/src/pages/app/NoDocuments.svelte
index 165e20c89..029a3a810 100644
--- a/src/pages/app/NoDocuments.svelte
+++ b/src/pages/app/NoDocuments.svelte
@@ -8,49 +8,6 @@
import emptyResultsSvg from "@/assets/empty_results.svg?raw";
-
-
{#if $orgsAndUsers.me == null || $search.params.oneUserSearch != $orgsAndUsers.me.id || !$search.params.noStatus || !$search.params.noAccess}
{$_("noDocuments.noSearchResults")}
@@ -98,3 +55,46 @@
{/if}
+
+
diff --git a/src/pages/app/Paginator.svelte b/src/pages/app/Paginator.svelte
index 87e4315f3..02e3f0cca 100644
--- a/src/pages/app/Paginator.svelte
+++ b/src/pages/app/Paginator.svelte
@@ -7,6 +7,37 @@
import rightPaginatorSvg from "@/assets/page_arrow_right.svg?raw";
+
+ {#if $search.hasResults}
+
+ {@html leftPaginatorSvg}
+
+
+
+ {#if $search.results.onlyPage}
+ {$search.results.rawResults.results.length}
+ {:else}
+
+ {$search.start}
+ -
+ {$search.end}
+
+ {#if $search.results.count}
+ {$_("paginator.of")}
+ {$search.results.count}
+ {/if}
+ {/if}
+
+
+ {$_("paginator.document", { values: { n: $search.results.count } })}
+
+
+
+ {@html rightPaginatorSvg}
+
+ {/if}
+
+
-
-
- {#if $search.hasResults}
-
- {@html leftPaginatorSvg}
-
-
-
- {#if $search.results.onlyPage}
- {$search.results.rawResults.results.length}
- {:else}
-
- {$search.start}
- -
- {$search.end}
-
- {#if $search.results.count}
- {$_("paginator.of")}
- {$search.results.count}
- {/if}
- {/if}
-
-
- {$_("paginator.document", { values: { n: $search.results.count } })}
-
-
-
- {@html rightPaginatorSvg}
-
- {/if}
-
diff --git a/src/pages/app/ProcessingBar.svelte b/src/pages/app/ProcessingBar.svelte
index dd885c166..ce9071653 100644
--- a/src/pages/app/ProcessingBar.svelte
+++ b/src/pages/app/ProcessingBar.svelte
@@ -17,6 +17,26 @@
});
+{#if !$documents.doneProcessing || !dismissed}
+
+
+ {#if $documents.doneProcessing}
+ {$_("processingBar.doneProcessing")}
+
+ (dismissed = true)}>
+ {$_("dialog.dismiss")}
+
+
+ {:else}
+ {$_("processingBar.processingDocuments", {
+ values: { n: $documents.numProcessing },
+ })}
+ {/if}
+
+
+
+{/if}
+
-
-{#if !$documents.doneProcessing || !dismissed}
-
-
- {#if $documents.doneProcessing}
- {$_("processingBar.doneProcessing")}
-
- (dismissed = true)}>
- {$_("dialog.dismiss")}
-
-
- {:else}
- {$_("processingBar.processingDocuments", {
- values: { n: $documents.numProcessing },
- })}
- {/if}
-
-
-
-{/if}
diff --git a/src/pages/app/SearchBar.svelte b/src/pages/app/SearchBar.svelte
index 4bfdb43ab..cd0daec6a 100644
--- a/src/pages/app/SearchBar.svelte
+++ b/src/pages/app/SearchBar.svelte
@@ -53,6 +53,31 @@
});
+
+
+ {#if !embed && !example}
+
+
+ {@html $_("searchBar.tips")}
+
+
+ {$_("searchBar.learnMore")}
+
+
+ {/if}
+
+
-
-
-
- {#if !embed && !example}
-
-
- {@html $_("searchBar.tips")}
-
-
- {$_("searchBar.learnMore")}
-
-
- {/if}
-
diff --git a/src/pages/app/SearchInput.svelte b/src/pages/app/SearchInput.svelte
index ff94ac7e3..31586bc1f 100644
--- a/src/pages/app/SearchInput.svelte
+++ b/src/pages/app/SearchInput.svelte
@@ -463,8 +463,8 @@
$: autocomplete = noCompletion
? ""
: selectedCompletion == null
- ? completions[0].feed
- : selectedCompletion.feed;
+ ? completions[0].feed
+ : selectedCompletion.feed;
function handleBlur() {
handleCursor();
@@ -570,6 +570,104 @@
});
+
+ {@html searchIconSvg}
+
+
+ {#each highlights as highlight}
+ {#if highlight.type == "field"}
+
+
+ {highlight.field}
+ {highlight.value}
+
+
+ {:else if highlight.type == "quote"}
+
+ {highlight.text}
+
+ {:else if highlight.type == "operator"}
+
+ {highlight.text}
+
+ {:else}
+ {#each highlight.text.split(/( )/g) as rawText}
+
+ {#if rawText != ""} {rawText} {/if}
+ {/each}
+ {/if}
+ {/each}
+ {#if autocomplete.length > 0}
+ {autocomplete}
+ {/if}
+
+ {#if !example && value.length != 0}
+
(value = "")}>
+ {@html closeInlineSvg}
+
+ {/if}
+
+
+ {#if processedCompletions == null}
+
+
Loading...
+ {:else}
+ {#each processedCompletions.completions as completion}
+
{
+ if (completion.index != null) completionIndex = completion.index;
+ }}
+ on:mouseout={() => {
+ if (completion.index != null) completionIndex = null;
+ }}
+ on:mousedown|preventDefault={() =>
+ triggerCompletion(
+ completion,
+ fieldPost != null ? fieldPost.length : 0,
+ )}
+ class:groupstart={completion.type == "groupstart"}
+ >
+
+
+
+ {#each completion.text as letter, i}
+ {#if completion.highlightLetters != null && completion.highlightLetters.includes(i)}
+ {letter}
+ {:else}{letter} {/if}
+ {/each}
+
+
+ {#if completion.info != null}
+
{completion.info}
+ {/if}
+
+ {/each}
+ {/if}
+
+
+
+
-
-
- {@html searchIconSvg}
-
-
- {#each highlights as highlight}
- {#if highlight.type == "field"}
-
-
- {highlight.field}
- {highlight.value}
-
-
- {:else if highlight.type == "quote"}
-
- {highlight.text}
-
- {:else if highlight.type == "operator"}
-
- {highlight.text}
-
- {:else}
- {#each highlight.text.split(/( )/g) as rawText}
-
- {#if rawText != ""} {rawText} {/if}
- {/each}
- {/if}
- {/each}
- {#if autocomplete.length > 0}
- {autocomplete}
- {/if}
-
- {#if !example && value.length != 0}
-
(value = "")}>
- {@html closeInlineSvg}
-
- {/if}
-
-
- {#if processedCompletions == null}
-
-
Loading...
- {:else}
- {#each processedCompletions.completions as completion}
-
{
- if (completion.index != null) completionIndex = completion.index;
- }}
- on:mouseout={() => {
- if (completion.index != null) completionIndex = null;
- }}
- on:mousedown|preventDefault={() =>
- triggerCompletion(
- completion,
- fieldPost != null ? fieldPost.length : 0,
- )}
- class:groupstart={completion.type == "groupstart"}
- >
-
-
-
- {#each completion.text as letter, i}
- {#if completion.highlightLetters != null && completion.highlightLetters.includes(i)}
- {letter}
- {:else}{letter} {/if}
- {/each}
-
-
- {#if completion.info != null}
-
{completion.info}
- {/if}
-
- {/each}
- {/if}
-
-
-
diff --git a/src/pages/app/SearchLink.svelte b/src/pages/app/SearchLink.svelte
index e69f58929..8bf6ce10d 100644
--- a/src/pages/app/SearchLink.svelte
+++ b/src/pages/app/SearchLink.svelte
@@ -6,6 +6,14 @@
export let link = "";
+
+
+
-
-
-
diff --git a/src/pages/app/UploadDialog.svelte b/src/pages/app/UploadDialog.svelte
index a8892bf1b..f489e066d 100644
--- a/src/pages/app/UploadDialog.svelte
+++ b/src/pages/app/UploadDialog.svelte
@@ -171,49 +171,6 @@
}
-
-
{#if !uploadMode}
@@ -368,3 +325,46 @@
{/if}
+
+
diff --git a/src/pages/app/accounts/AccountNavigation.svelte b/src/pages/app/accounts/AccountNavigation.svelte
index 5e7f4c9c8..712320130 100644
--- a/src/pages/app/accounts/AccountNavigation.svelte
+++ b/src/pages/app/accounts/AccountNavigation.svelte
@@ -27,6 +27,21 @@
const getUserPromise = getUser();
+
+
+ {#await getUserPromise then}
+
+ {#if user}
+
+ {/if}
+ {/await}
+
+
+
+
-
-
-
- {#await getUserPromise then}
-
- {#if user}
-
- {/if}
- {/await}
-
-
-
diff --git a/src/pages/app/accounts/HelpMenu.svelte b/src/pages/app/accounts/HelpMenu.svelte
index 2270d0cbf..317fb6d0b 100644
--- a/src/pages/app/accounts/HelpMenu.svelte
+++ b/src/pages/app/accounts/HelpMenu.svelte
@@ -18,16 +18,6 @@
} from "svelte-octicons";
-
-
@@ -72,3 +62,13 @@
+
+
diff --git a/src/pages/app/accounts/LanguageMenu.svelte b/src/pages/app/accounts/LanguageMenu.svelte
index ccb1bb3f3..74af60286 100644
--- a/src/pages/app/accounts/LanguageMenu.svelte
+++ b/src/pages/app/accounts/LanguageMenu.svelte
@@ -19,16 +19,6 @@
}
-
-
{#if langs.length > 1}
@@ -51,3 +41,13 @@
{/if}
+
+
diff --git a/src/pages/app/accounts/OrgMemberList.svelte b/src/pages/app/accounts/OrgMemberList.svelte
index ce1d7c237..1b4521511 100644
--- a/src/pages/app/accounts/OrgMemberList.svelte
+++ b/src/pages/app/accounts/OrgMemberList.svelte
@@ -25,6 +25,47 @@
}
+{#await promise}
+
+{:then users}
+ {#if users.length > 0}
+
+ {$_("authSection.org.userCount", { values: { n: users.length } })}
+
+
+ {#each users as user}
+
+
+
+ {#if user.avatar_url}
+
+ {:else}
+
+ {/if}
+
{user.name}
+ {#if user.admin_organizations.includes(orgId)}
+
{$_("authSection.org.adminRole")}
+ {/if}
+
+
+
+ {/each}
+
+ {:else}
+
+
+
{$_("authSection.org.memberListEmpty")}
+
+ {/if}
+{:catch}
+
+
+
+
{$_("authSection.org.memberListError")}
+
Retry
+
+{/await}
+
-
-{#await promise}
-
-{:then users}
- {#if users.length > 0}
-
- {$_("authSection.org.userCount", { values: { n: users.length } })}
-
-
- {#each users as user}
-
-
-
- {#if user.avatar_url}
-
- {:else}
-
- {/if}
-
{user.name}
- {#if user.admin_organizations.includes(orgId)}
-
{$_("authSection.org.adminRole")}
- {/if}
-
-
-
- {/each}
-
- {:else}
-
-
-
{$_("authSection.org.memberListEmpty")}
-
- {/if}
-{:catch}
-
-
-
-
{$_("authSection.org.memberListError")}
-
Retry
-
-{/await}
diff --git a/src/pages/app/accounts/OrgMenu.svelte b/src/pages/app/accounts/OrgMenu.svelte
index 796880aaa..24a97497f 100644
--- a/src/pages/app/accounts/OrgMenu.svelte
+++ b/src/pages/app/accounts/OrgMenu.svelte
@@ -51,30 +51,6 @@
let listOrgsPromise = listUserOrgs(user);
-
-
{#await getOrgPromise}
@@ -173,3 +149,27 @@
{/if}
{/await}
+
+
diff --git a/src/pages/app/accounts/OrgPicker.svelte b/src/pages/app/accounts/OrgPicker.svelte
index f5bf8843c..cdc0ecc83 100644
--- a/src/pages/app/accounts/OrgPicker.svelte
+++ b/src/pages/app/accounts/OrgPicker.svelte
@@ -15,32 +15,6 @@
export let handleChange: (org: Org) => void = () => {};
-
-
Switch organization
@@ -74,3 +48,29 @@
+
+
diff --git a/src/pages/app/accounts/PremiumMenu.svelte b/src/pages/app/accounts/PremiumMenu.svelte
index e756bab5a..0bb33b144 100644
--- a/src/pages/app/accounts/PremiumMenu.svelte
+++ b/src/pages/app/accounts/PremiumMenu.svelte
@@ -38,32 +38,6 @@
} = org);
-
-
@@ -137,3 +111,29 @@
+
+
diff --git a/src/pages/app/accounts/UserMenu.svelte b/src/pages/app/accounts/UserMenu.svelte
index d737d3a3c..20cf6922a 100644
--- a/src/pages/app/accounts/UserMenu.svelte
+++ b/src/pages/app/accounts/UserMenu.svelte
@@ -24,21 +24,6 @@
}
-
-
{#if user}
@@ -68,3 +53,18 @@
{:else}
{$_("authSection.user.signIn")}
{/if}
+
+
diff --git a/src/pages/app/menus/AddonsMenu.svelte b/src/pages/app/menus/AddonsMenu.svelte
index 67c8bd71a..1d3ec2cc1 100644
--- a/src/pages/app/menus/AddonsMenu.svelte
+++ b/src/pages/app/menus/AddonsMenu.svelte
@@ -21,18 +21,6 @@
}
-
-
{#each alphabetizedAddons as addon}
@@ -61,3 +49,15 @@
{$_("addonsMenu.learnMore")}
+
+
diff --git a/src/pages/app/menus/EditMenu.svelte b/src/pages/app/menus/EditMenu.svelte
index c8c659edb..53d4c210b 100644
--- a/src/pages/app/menus/EditMenu.svelte
+++ b/src/pages/app/menus/EditMenu.svelte
@@ -53,16 +53,6 @@
}
-
-
editDocumentInfoSelected()}>
{$_("editMenu.editDocInfo")}
@@ -110,3 +100,13 @@
{/if}
+
+
diff --git a/src/pages/app/menus/ProjectMenuItem.svelte b/src/pages/app/menus/ProjectMenuItem.svelte
index aff533b6e..cd88a02f7 100644
--- a/src/pages/app/menus/ProjectMenuItem.svelte
+++ b/src/pages/app/menus/ProjectMenuItem.svelte
@@ -30,14 +30,6 @@
}
-
-
{project.title}
@@ -46,3 +38,11 @@
+
+
diff --git a/src/pages/app/menus/ProjectsMenu.svelte b/src/pages/app/menus/ProjectsMenu.svelte
index 201acebe2..cf58d3656 100644
--- a/src/pages/app/menus/ProjectsMenu.svelte
+++ b/src/pages/app/menus/ProjectsMenu.svelte
@@ -18,14 +18,6 @@
$: alphabetizedProjects = sort($projects.addRemoveableProjects);
-
-
{$_("projectsMenu.newProject")}
@@ -47,3 +39,11 @@
{/if}
+
+
diff --git a/src/pages/app/sidebar/Project.svelte b/src/pages/app/sidebar/Project.svelte
index 17886fa93..c0853e016 100644
--- a/src/pages/app/sidebar/Project.svelte
+++ b/src/pages/app/sidebar/Project.svelte
@@ -9,6 +9,20 @@
export let project;
+
+
+ {project.title}
+ {#if project.editAccess}
+ editProject(project)}
+ >
+ {@html pencilSvg}
+
+ {/if}
+
+
+
-
-
-
- {project.title}
- {#if project.editAccess}
- editProject(project)}
- >
- {@html pencilSvg}
-
- {/if}
-
-
diff --git a/src/pages/app/sidebar/ProjectFilters.svelte b/src/pages/app/sidebar/ProjectFilters.svelte
index 6b8dca4f2..b2a72005c 100644
--- a/src/pages/app/sidebar/ProjectFilters.svelte
+++ b/src/pages/app/sidebar/ProjectFilters.svelte
@@ -5,6 +5,29 @@
import { _ } from "svelte-i18n";
+
+
+
{$_("projects.allDocuments")}
+
+ {#if $orgsAndUsers.me !== null}
+
+
{$_("projects.yourDocuments")}
+
+
+
{$_("projects.yourPubDocuments")}
+
+ {#if $orgsAndUsers.me.organization != null && !$orgsAndUsers.me.organization.individual}
+
+
+ {$_("projects.orgDocuments", {
+ values: { name: $orgsAndUsers.me.organization.name },
+ })}
+
+
+ {/if}
+ {/if}
+
+
-
-
-
-
{$_("projects.allDocuments")}
-
- {#if $orgsAndUsers.me !== null}
-
-
{$_("projects.yourDocuments")}
-
-
-
{$_("projects.yourPubDocuments")}
-
- {#if $orgsAndUsers.me.organization != null && !$orgsAndUsers.me.organization.individual}
-
-
- {$_("projects.orgDocuments", {
- values: { name: $orgsAndUsers.me.organization.name },
- })}
-
-
- {/if}
- {/if}
-
diff --git a/src/pages/app/sidebar/Projects.svelte b/src/pages/app/sidebar/Projects.svelte
index b00e07a78..f83c2606d 100644
--- a/src/pages/app/sidebar/Projects.svelte
+++ b/src/pages/app/sidebar/Projects.svelte
@@ -20,6 +20,26 @@
$: alphabetizedProjects = sort($projects.projects);
+
+
+
+
{$_("projects.header")}
+ {$_("projects.newProject")}
+
+
+
+ {#if alphabetizedProjects.length > 0}
+ {#each alphabetizedProjects as project}
+
+ {/each}
+ {:else}
+
{$_("projects.createProject")}
+ {/if}
+
+
+
-
-
-
-
-
{$_("projects.header")}
- {$_("projects.newProject")}
-
-
-
- {#if alphabetizedProjects.length > 0}
- {#each alphabetizedProjects as project}
-
- {/each}
- {:else}
-
{$_("projects.createProject")}
- {/if}
-
-
diff --git a/src/pages/app/sidebar/Sidebar.svelte b/src/pages/app/sidebar/Sidebar.svelte
index 981382a04..51f447d24 100644
--- a/src/pages/app/sidebar/Sidebar.svelte
+++ b/src/pages/app/sidebar/Sidebar.svelte
@@ -17,6 +17,23 @@
export let expanded;
+
+
-
-
diff --git a/src/pages/embed/note/Note.svelte b/src/pages/embed/note/Note.svelte
index 5113e4a24..21b022bad 100644
--- a/src/pages/embed/note/Note.svelte
+++ b/src/pages/embed/note/Note.svelte
@@ -62,118 +62,6 @@
});
-
-
{#if doc != null && note != null && canonicalNoteUrl != "" && title != ""}
@@ -283,3 +171,122 @@
{/if}
{/if}
+
+
diff --git a/src/pages/embed/page/Annotation.svelte b/src/pages/embed/page/Annotation.svelte
index a5af4715f..dd94e4951 100644
--- a/src/pages/embed/page/Annotation.svelte
+++ b/src/pages/embed/page/Annotation.svelte
@@ -47,6 +47,19 @@
: `top:${note.y2 * 100}%`;
+