@codingame/monaco-vscode-github-authentication-default-extension 18.3.1 → 19.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +8 -7
- package/package.json +2 -2
- package/resources/auth.css.txt +93 -58
- package/resources/code-icon.svg +1 -0
- package/resources/extension.js +1 -1
- package/resources/extension.js.map +1 -1
- package/resources/favicon.ico +0 -0
- package/resources/index.html +43 -16
- package/resources/package.json +1 -1
package/resources/favicon.ico
CHANGED
|
Binary file
|
package/resources/index.html
CHANGED
|
@@ -10,26 +10,53 @@
|
|
|
10
10
|
</head>
|
|
11
11
|
|
|
12
12
|
<body>
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
<div class="container">
|
|
14
|
+
<div class="content">
|
|
15
|
+
<div class="icon-container">
|
|
16
|
+
<img src="code-icon.svg" class="vscode-icon">
|
|
17
|
+
</div>
|
|
18
|
+
<h1 class="title">Launching <span class="app-name"></span></h1>
|
|
19
|
+
<div class="message">
|
|
20
|
+
<div class="success-message">
|
|
21
|
+
<p class="subtitle">You will be redirected in a few moments.</p>
|
|
22
|
+
<p class="detail">If nothing happens, <a href="#" id="fallback-link">open this link in your browser</a>.</p>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="error-message">
|
|
25
|
+
<p class="subtitle">An error occurred while signing in:</p>
|
|
26
|
+
<div class="detail"></div>
|
|
27
|
+
</div>
|
|
28
|
+
</div>
|
|
23
29
|
</div>
|
|
24
30
|
</div>
|
|
25
31
|
<script>
|
|
26
|
-
|
|
27
|
-
|
|
32
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
33
|
+
const appName = urlParams.get('app_name');
|
|
34
|
+
document.querySelectorAll('.app-name').forEach(e => e.innerText = appName);
|
|
35
|
+
|
|
36
|
+
// if name contains 'insiders', update filter CSS variables
|
|
37
|
+
if (appName.toLowerCase().includes('insiders')) {
|
|
38
|
+
document.documentElement.style.setProperty('--vscode-filter-0', 'var(--vscode-insiders-filter-0)');
|
|
39
|
+
document.documentElement.style.setProperty('--vscode-filter-50', 'var(--vscode-insiders-filter-50)');
|
|
40
|
+
document.documentElement.style.setProperty('--vscode-filter-70', 'var(--vscode-insiders-filter-70)');
|
|
41
|
+
document.documentElement.style.setProperty('--vscode-filter-100', 'var(--vscode-insiders-filter-100)');
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const error = urlParams.get('error');
|
|
45
|
+
const redirectUri = urlParams.get('redirect_uri');
|
|
28
46
|
if (error) {
|
|
29
|
-
document.querySelector('.error-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
47
|
+
document.querySelector('.error-message > .detail').textContent = error;
|
|
48
|
+
document.querySelector('body').classList.add('error');
|
|
49
|
+
} else if (redirectUri) {
|
|
50
|
+
// Set up the fallback link
|
|
51
|
+
const fallbackLink = document.getElementById('fallback-link');
|
|
52
|
+
if (fallbackLink) {
|
|
53
|
+
fallbackLink.href = redirectUri;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Redirect after a delay
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
window.location = redirectUri;
|
|
59
|
+
}, 1000);
|
|
33
60
|
}
|
|
34
61
|
</script>
|
|
35
62
|
</body>
|
package/resources/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"github-authentication","displayName":"%displayName%","description":"%description%","publisher":"vscode","license":"MIT","version":"0.0.2","engines":{"vscode":"^1.41.0"},"icon":"images/icon.png","categories":["Other"],"api":"none","extensionKind":["ui","workspace"],"enabledApiProposals":["authIssuers"],"activationEvents":[],"capabilities":{"virtualWorkspaces":true,"untrustedWorkspaces":{"supported":"limited","restrictedConfigurations":["github-enterprise.uri"]}},"contributes":{"authentication":[{"label":"GitHub","id":"github","authorizationServerGlobs":["https://github.com/login/oauth"]},{"label":"GitHub Enterprise Server","id":"github-enterprise","authorizationServerGlobs":["*"]}],"configuration":[{"title":"%config.github-enterprise.title%","properties":{"github-enterprise.uri":{"type":"string","markdownDescription":"%config.github-enterprise.uri.description%","pattern":"^(?:$|(https?)://(?!github\\.com).*)"}}}]},"aiKey":"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255","main":"./dist/extension.js","browser":"./dist/browser/extension.js","repository":{"type":"git","url":"https://github.com/microsoft/vscode.git"}}
|
|
1
|
+
{"name":"github-authentication","displayName":"%displayName%","description":"%description%","publisher":"vscode","license":"MIT","version":"0.0.2","engines":{"vscode":"^1.41.0"},"icon":"images/icon.png","categories":["Other"],"api":"none","extensionKind":["ui","workspace"],"enabledApiProposals":["authIssuers","authProviderSpecific"],"activationEvents":[],"capabilities":{"virtualWorkspaces":true,"untrustedWorkspaces":{"supported":"limited","restrictedConfigurations":["github-enterprise.uri"]}},"contributes":{"authentication":[{"label":"GitHub","id":"github","authorizationServerGlobs":["https://github.com/login/oauth"]},{"label":"GitHub Enterprise Server","id":"github-enterprise","authorizationServerGlobs":["*"]}],"configuration":[{"title":"%config.github-enterprise.title%","properties":{"github-enterprise.uri":{"type":"string","markdownDescription":"%config.github-enterprise.uri.description%","pattern":"^(?:$|(https?)://(?!github\\.com).*)"}}}]},"aiKey":"0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255","main":"./dist/extension.js","browser":"./dist/browser/extension.js","repository":{"type":"git","url":"https://github.com/microsoft/vscode.git"}}
|