Merge branch 'master' into statusbar-updates

pull/4960/head
Joseph Izang 7 months ago committed by GitHub
commit 137c359cf4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      apps/learneth/src/components/BackButton/index.tsx
  2. 4
      apps/learneth/src/pages/StepDetail/index.tsx
  3. 3
      libs/remix-ui/home-tab/src/lib/components/homeTabGetStarted.tsx
  4. 6
      libs/remix-ui/workspace/src/lib/actions/workspace.ts

@ -31,9 +31,11 @@ function BackButton({entity}: any) {
</li>
{isDetailPage && (
<li className="nav-item">
<Link className="btn" to={`/list?id=${entity.id}`} title="Tutorial menu" onClick={() => (window as any)._paq.push(['trackEvent', 'learneth', 'back_to_menu_step', entity && entity.name])}>
<i className="fas fa-bars" />
</Link>
<OverlayTrigger placement="right" overlay={<Tooltip id="tooltip-rightTutorialMenu">Tutorial menu</Tooltip>}>
<Link className="btn" to={`/list?id=${entity.id}`} onClick={() => (window as any)._paq.push(['trackEvent', 'learneth', 'back_to_menu_step', entity && entity.name])}>
<i className="fas fa-bars" />
</Link>
</OverlayTrigger>
</li>
)}
</ul>

@ -41,7 +41,7 @@ function StepDetailPage() {
}, [errors, success])
return (
<>
<div className='pb-4'>
<div className="fixed-top">
<div className="bg-light">
<BackButton entity={entity} />
@ -223,7 +223,7 @@ function StepDetailPage() {
)}
</>
)}
</>
</div>
)
}

@ -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')

@ -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

Loading…
Cancel
Save