Browse Source

Adds links to cloud patches

main
Keith Daulton 1 year ago
parent
commit
a507615cb0
5 changed files with 42 additions and 0 deletions
  1. +9
    -0
      package.json
  2. +3
    -0
      src/commands/showView.ts
  3. +1
    -0
      src/constants.ts
  4. +15
    -0
      src/webviews/apps/home/home.html
  5. +14
    -0
      src/webviews/apps/welcome/welcome.html

+ 9
- 0
package.json View File

@ -5094,6 +5094,11 @@
"category": "GitLens"
},
{
"command": "gitlens.showDraftsView",
"title": "Show Cloud Patches View",
"category": "GitLens"
},
{
"command": "gitlens.showFileHistoryView",
"title": "Show File History View",
"category": "GitLens"
@ -8598,6 +8603,10 @@
"when": "gitlens:enabled"
},
{
"command": "gitlens.showDraftsView",
"when": "gitlens:enabled"
},
{
"command": "gitlens.showFileHistoryView",
"when": "gitlens:enabled"
},

+ 3
- 0
src/commands/showView.ts View File

@ -13,6 +13,7 @@ export class ShowViewCommand extends Command {
Commands.ShowCommitDetailsView,
Commands.ShowCommitsView,
Commands.ShowContributorsView,
Commands.ShowDraftsView,
Commands.ShowFileHistoryView,
Commands.ShowGraphView,
Commands.ShowHomeView,
@ -44,6 +45,8 @@ export class ShowViewCommand extends Command {
return this.container.commitsView.show();
case Commands.ShowContributorsView:
return this.container.contributorsView.show();
case Commands.ShowDraftsView:
return this.container.draftsView.show();
case Commands.ShowFileHistoryView:
return this.container.fileHistoryView.show();
case Commands.ShowHomeView:

+ 1
- 0
src/constants.ts View File

@ -242,6 +242,7 @@ export const enum Commands {
ShowCommitsInView = 'gitlens.showCommitsInView',
ShowCommitsView = 'gitlens.showCommitsView',
ShowContributorsView = 'gitlens.showContributorsView',
ShowDraftsView = 'gitlens.showDraftsView',
ShowFileHistoryView = 'gitlens.showFileHistoryView',
ShowFocusPage = 'gitlens.showFocusPage',
ShowGraph = 'gitlens.showGraph',

+ 15
- 0
src/webviews/apps/home/home.html View File

@ -216,6 +216,21 @@
>
<a
class="nav-list__item"
href="command:gitlens.showDraftsView"
title="Show Cloud Patches view"
aria-label="Show Cloud Patches view"
data-requires="repo"
><code-icon class="nav-list__icon" icon="cloud"></code-icon
><span class="nav-list__label">Cloud Patches</span
><span
class="nav-list__access"
title="Requires an account and access is based on your plan, e.g. Free, Pro, etc"
aria-label="Requires an account and access is based on your plan, e.g. Free, Pro, etc"
>☁️</span
></a
>
<a
class="nav-list__item"
href="command:gitlens.showWorkspacesView"
title="Show GitKraken Workspaces view"
aria-label="Show GitKraken Workspaces view"

+ 14
- 0
src/webviews/apps/welcome/welcome.html View File

@ -231,6 +231,13 @@
><code-icon icon="gl-search-view" size="20"></code-icon>Search &amp; Compare</a
>
<a
href="command:gitlens.showDraftsView"
data-requires="repo"
title="Show Cloud Patches view"
aria-label="Show Cloud Patches view"
><code-icon icon="cloud" size="20"></code-icon>Cloud Patches ☁️</a
>
<a
href="command:gitlens.showWorkspacesView"
data-requires="repo"
title="Show GitKraken Workspaces view"
@ -484,6 +491,13 @@
><code-icon icon="gl-search-view"></code-icon>Search &amp; Compare</a
>
<a
href="command:gitlens.showDraftsView"
data-requires="repo"
title="Show Cloud Patches view"
aria-label="Show Cloud Patches view"
><code-icon icon="cloud"></code-icon>Cloud Patches ☁️</a
>
<a
href="command:gitlens.showWorkspacesView"
data-requires="repo"
title="Show GitKraken Workspaces view"

Loading…
Cancel
Save