@@ -10,7 +10,7 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/bro
10
10
===================================================================
11
11
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
12
12
+++ code-server/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStarted.ts
13
- @@ -62,7 +62,7 @@ import { GettingStartedIndexList } from
13
+ @@ -62,7 +62,7 @@ import { GettingStartedIndexList } from
14
14
import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent';
15
15
import { KeyCode } from 'vs/base/common/keyCodes';
16
16
import { getTelemetryLevel } from 'vs/platform/telemetry/common/telemetryUtils';
@@ -19,32 +19,64 @@ Index: code-server/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/bro
19
19
import { OpenFolderViaWorkspaceAction } from 'vs/workbench/browser/actions/workspaceActions';
20
20
import { OpenRecentAction } from 'vs/workbench/browser/actions/windowActions';
21
21
import { Toggle } from 'vs/base/browser/ui/toggle/toggle';
22
- @@ -753,11 +753,24 @@ export class GettingStartedPage extends
23
- onShowOnStartupChanged();
24
- }));
25
-
26
- - const header = $('.header', {},
27
- + let header = $('.header', {},
28
- $('h1.product-name.caption', {}, this.productService.nameLong),
22
+ @@ -758,6 +758,41 @@ export class GettingStartedPage extends
29
23
$('p.subtitle.description', {}, localize({ key: 'gettingStarted.editingEvolved', comment: ['Shown as subtitle on the Welcome page.'] }, "Editing evolved"))
30
24
);
31
25
26
+ + let gettingStartedCoder: HTMLElement = $('.header', {});
32
27
+ if (this.contextService.contextMatchesRules(IsEnabledCoderGettingStarted)) {
33
- + header = $('.header', {},
34
- + $('h1.product-name.caption', {}, this.productService.nameLong),
35
- + $('p.subtitle.description.coder', {},
36
- + "Using code-server on a team?",
37
- + ),
38
- + $('p.subtitle.description.coder-coder', {},
39
- + "Check out: ",
40
- + $('a', { href: "https://github.com/coder/coder" }, "coder/coder")
41
- + ),
42
- + );
28
+ + gettingStartedCoder = $('.gettingStartedCategory', {},
29
+ + $('h2', {
30
+ + style: 'margin-bottom: 12px',
31
+ + }, 'Next Up'),
32
+ + $('a', {
33
+ + href: 'https://cdr.co/code-server-to-coder',
34
+ + target: '_blank',
35
+ + },
36
+ + $('button.standout', {
37
+ + style: [
38
+ + 'padding: 10px 16px ',
39
+ + 'border-radius: 4px',
40
+ + 'background: linear-gradient(94.04deg, #7934DA 0%, #4D52E0 101.2%)',
41
+ + 'color: white',
42
+ + ].join(';'),
43
+ + },
44
+ + $('h3', {
45
+ + style: [
46
+ + 'margin: 0px 0px 6px',
47
+ + 'font-weight: 500',
48
+ + ].join(';'),
49
+ + }, 'Deploy For Your Team'),
50
+ + $('p', {
51
+ + style: [
52
+ + 'margin: 0',
53
+ + 'font-size: 13px',
54
+ + ].join(';'),
55
+ + }, 'Provision remote development environments on your infrastructure with Coder.')
56
+ + ),
57
+ + ),
58
+ + );
43
59
+ }
44
60
+
45
61
46
62
const leftColumn = $('.categories-column.categories-column-left', {},);
47
63
const rightColumn = $('.categories-column.categories-column-right', {},);
64
+ @@ -775,13 +810,13 @@ export class GettingStartedPage extends
65
+ const layoutLists = () => {
66
+ if (gettingStartedList.itemCount) {
67
+ this.container.classList.remove('noWalkthroughs');
68
+ - reset(leftColumn, startList.getDomElement(), recentList.getDomElement());
69
+ + reset(leftColumn, gettingStartedCoder, startList.getDomElement(), recentList.getDomElement());
70
+ reset(rightColumn, gettingStartedList.getDomElement());
71
+ recentList.setLimit(5);
72
+ }
73
+ else {
74
+ this.container.classList.add('noWalkthroughs');
75
+ - reset(leftColumn, startList.getDomElement());
76
+ + reset(leftColumn, gettingStartedCoder, startList.getDomElement());
77
+ reset(rightColumn, recentList.getDomElement());
78
+ recentList.setLimit(10);
79
+ }
48
80
Index: code-server/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css
49
81
===================================================================
50
82
--- code-server.orig/lib/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/media/gettingStarted.css
0 commit comments