From c76a61e50abc965613d8795014a98102b87981ca Mon Sep 17 00:00:00 2001
From: tglide <26071571+TGlide@users.noreply.github.com>
Date: Mon, 24 Jul 2023 11:09:09 +0100
Subject: [PATCH] feat: import from org settings
---
src/lib/commandCenter/commandCenter.svelte | 1 -
src/lib/commandCenter/commands.ts | 2 -
src/lib/commandCenter/panels/template.svelte | 14 ++--
src/lib/elements/forms/inputText.svelte | 1 -
src/routes/console/+layout.svelte | 39 ++---------
.../organization-[organization]/+page.svelte | 67 ++++++++++++++-----
.../console/project-[project]/+layout.svelte | 30 ++++++++-
.../migrations/(import)/wizard.svelte | 2 +-
8 files changed, 93 insertions(+), 63 deletions(-)
diff --git a/src/lib/commandCenter/commandCenter.svelte b/src/lib/commandCenter/commandCenter.svelte
index 447ccb336..5fc9aad48 100644
--- a/src/lib/commandCenter/commandCenter.svelte
+++ b/src/lib/commandCenter/commandCenter.svelte
@@ -14,7 +14,6 @@
};
export const toggleCommandCenter = () => {
- console.log('toggleCommandCenter');
if (get(subPanels).length > 0) {
clearSubPanels();
} else {
diff --git a/src/lib/commandCenter/commands.ts b/src/lib/commandCenter/commands.ts
index c6a8afdfe..386536396 100644
--- a/src/lib/commandCenter/commands.ts
+++ b/src/lib/commandCenter/commands.ts
@@ -288,7 +288,6 @@ export const registerSearchers = {
runner((...searchers: Searcher[]) => {
searchersMap.update((curr) => {
- console.log(curr);
curr.set(uuid, [...searchers]);
return curr;
});
@@ -296,7 +295,6 @@ export const registerSearchers = {
return () => {
searchersMap.update((curr) => {
- console.log('deleting', curr, uuid);
curr.delete(uuid);
return curr;
});
diff --git a/src/lib/commandCenter/panels/template.svelte b/src/lib/commandCenter/panels/template.svelte
index bfc1bdcaa..043d6b22b 100644
--- a/src/lib/commandCenter/panels/template.svelte
+++ b/src/lib/commandCenter/panels/template.svelte
@@ -81,18 +81,15 @@
if (selectedIdx === 0) {
contentEl.scrollTo({
- top: 0,
- behavior: 'smooth'
+ top: 0
});
} else if (selectedIdx === resultEls.length - 1) {
contentEl.scrollTo({
- top: contentEl.scrollHeight,
- behavior: 'smooth'
+ top: contentEl.scrollHeight
});
} else if (selectedEl) {
selectedEl.scrollIntoView({
- block: 'nearest',
- behavior: 'smooth'
+ block: 'nearest'
});
}
});
@@ -272,10 +269,7 @@
class:first-nested={isFirstNested(i)}
class:last-nested={isLastNested(i)}>
{#if isSelected}
-
+
{/if}