From eadf81f72e0b4c2d712208e29c5136f0e33d1b29 Mon Sep 17 00:00:00 2001 From: lianahus Date: Tue, 9 Jul 2024 11:02:16 +0200 Subject: [PATCH 1/2] fixes on learneth --- apps/learneth/src/components/BackButton/index.tsx | 8 +++++--- apps/learneth/src/pages/StepDetail/index.tsx | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/apps/learneth/src/components/BackButton/index.tsx b/apps/learneth/src/components/BackButton/index.tsx index 63b8c39975..908df5e378 100644 --- a/apps/learneth/src/components/BackButton/index.tsx +++ b/apps/learneth/src/components/BackButton/index.tsx @@ -31,9 +31,11 @@ function BackButton({entity}: any) { {isDetailPage && (
  • - (window as any)._paq.push(['trackEvent', 'learneth', 'back_to_menu_step', entity && entity.name])}> - - + Tutorial menu}> + (window as any)._paq.push(['trackEvent', 'learneth', 'back_to_menu_step', entity && entity.name])}> + + +
  • )} diff --git a/apps/learneth/src/pages/StepDetail/index.tsx b/apps/learneth/src/pages/StepDetail/index.tsx index c689add02d..8ce821cf67 100644 --- a/apps/learneth/src/pages/StepDetail/index.tsx +++ b/apps/learneth/src/pages/StepDetail/index.tsx @@ -41,7 +41,7 @@ function StepDetailPage() { }, [errors, success]) return ( - <> +
    @@ -223,7 +223,7 @@ function StepDetailPage() { )} )} - +
    ) } From fe6e344d00550a9d5bd59376d6960e5975703d11 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Wed, 10 Jul 2024 15:38:11 +0200 Subject: [PATCH 2/2] set clone depth --- .../home-tab/src/lib/components/homeTabGetStarted.tsx | 3 ++- libs/remix-ui/workspace/src/lib/actions/workspace.ts | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx b/libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx index bcbc5e17b1..2215b6942d 100644 --- a/libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx +++ b/libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx @@ -129,7 +129,8 @@ function HomeTabGetStarted({ plugin }: HomeTabGetStartedProps) { { url: metadata.url, branch: metadata.branch, - workspaceName: templateDisplayName + workspaceName: templateDisplayName, + depth: 10 }) } else if (metadata && metadata.type === 'plugin') { await plugin.appManager.activatePlugin('filePanel') diff --git a/libs/remix-ui/workspace/src/lib/actions/workspace.ts b/libs/remix-ui/workspace/src/lib/actions/workspace.ts index 0cea011610..b40afef632 100644 --- a/libs/remix-ui/workspace/src/lib/actions/workspace.ts +++ b/libs/remix-ui/workspace/src/lib/actions/workspace.ts @@ -224,7 +224,7 @@ export const createWorkspaceTemplate = async (workspaceName: string, template: W if ((await workspaceExists(workspaceName)) && template === 'remixDefault') throw new Error('workspace already exists') else if (metadata && metadata.type === 'git') { dispatch(cloneRepositoryRequest()) - await dgitPlugin.call('dgitApi', 'clone', { url: metadata.url, branch: metadata.branch, workspaceName: workspaceName }) + await dgitPlugin.call('dgitApi', 'clone', { url: metadata.url, branch: metadata.branch, workspaceName: workspaceName, depth: 10 }) dispatch(cloneRepositorySuccess()) } else { const workspaceProvider = plugin.fileProviders.workspace @@ -645,7 +645,7 @@ export const getWorkspaces = async (): Promise<{ name: string; isGitRepo: boolea export const cloneRepository = async (url: string) => { const config = plugin.registry.get('config').api const token = config.get('settings/gist-access-token') - const repoConfig: cloneInputType = { url, token } + const repoConfig: cloneInputType = { url, token, depth: 10 } if (plugin.registry.get('platform').api.isDesktop()) { try { @@ -662,7 +662,7 @@ export const cloneRepository = async (url: string) => { const repoName = await getRepositoryTitle(url) await createWorkspace(repoName, 'blank', null, true, null, true, false) - const promise = dgitPlugin.call('dgitApi', 'clone', { ...repoConfig, workspaceExists: true, workspaceName: repoName }) + const promise = dgitPlugin.call('dgitApi', 'clone', { ...repoConfig, workspaceExists: true, workspaceName: repoName, depth:10 }) dispatch(cloneRepositoryRequest()) promise