Skip to content

Commit 79d8507

Browse files
authored
Add Kiro option and remove Sourcegraph option as it no longer works
1 parent 8c76b36 commit 79d8507

File tree

7 files changed

+25
-21
lines changed

7 files changed

+25
-21
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Services currently supported:
2121
* [StackBlitz](https://stackblitz.com/)
2222
* [Glitch](https://glitch.com/)
2323
* [Google IDX](https://idx.google.com/)
24-
* [Sourcegraph](https://sourcegraph.com/)
2524
* [JsDelivr](https://www.jsdelivr.com/)
2625
* [Active Forks](https://techgaun.github.io/active-forks/)
2726
* [Useful Forks](https://useful-forks.github.io/)
@@ -32,9 +31,13 @@ Services currently supported:
3231
* Clone in Cursor (locally)
3332
* Clone in Windsurf (locally)
3433
* Clone in Windsurf Next (locally)
34+
* Clone in Kiro (locally)
3535

3636

3737
### What's changed?
38+
* v2.0.12
39+
* Add Clone in Kiro option.
40+
* Remove Sourcegraph option as it no longer works.
3841
* v2.0.11
3942
* Add Clone in Windsurf Next option.
4043
* Fix selectors for GitHub new design.
@@ -71,7 +74,7 @@ Services currently supported:
7174
* v1.0.11 Dark mode support.
7275
* v1.0.10 Open current selected branch.
7376
* v1.0.8 GitLab support, Glitch link added.
74-
* v1.0.7 Sourcegraph link added.
77+
* v1.0.7 ~Sourcegraph link added.~
7578
* v1.0.4 Clone in VSCode option added.
7679

7780
### ToDo:

src/html/options.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ <h2 class="Subhead-heading">Enabled IDE list</h2>
122122
Google IDX
123123
</label>
124124
</div>
125-
<div class="form-checkbox">
126-
<label>
127-
<input type="checkbox" id="sourcegraph" />
128-
Sourcegraph
129-
</label>
130-
</div>
131125
<div class="form-checkbox">
132126
<label>
133127
<input type="checkbox" id="jsDelivr" />
@@ -188,6 +182,12 @@ <h2 class="Subhead-heading">Enabled IDE list</h2>
188182
Clone in Windsurf Next
189183
</label>
190184
</div>
185+
<div class="form-checkbox">
186+
<label>
187+
<input type="checkbox" id="cloneInKiro" />
188+
Clone in Kiro
189+
</label>
190+
</div>
191191

192192
<div class="Subhead mt-6">
193193
<h2 class="Subhead-heading">Opening options</h2>

src/js/main.js

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@ const ideWebsitesList = [
7272
platforms: ['github'],
7373
icon: '<svg width="16" height="16" viewBox="0 0 192 192" fill="none"><rect x="28" y="156" width="88" height="24" rx="12" fill="currentColor"></rect><rect x="104" y="120" width="36" height="24" rx="12" fill="currentColor"></rect><rect x="56" y="120" width="36" height="24" rx="12" fill="currentColor"></rect><rect x="84" y="84" width="52" height="24" rx="12" fill="currentColor"></rect><rect x="148" y="84" width="24" height="24" rx="12" fill="currentColor"></rect><rect x="56" y="48" width="88" height="24" rx="12" fill="currentColor"></rect><rect x="64" y="12" width="52" height="24" rx="12" fill="currentColor"></rect><rect x="28" y="12" width="24" height="24" rx="12" fill="currentColor"></rect></svg>'
7474
},
75-
{
76-
title: 'Sourcegraph',
77-
name: 'sourcegraph',
78-
baseurl: `https://sourcegraph.com/${platform}.com/`,
79-
platforms: ['github', 'gitlab'],
80-
icon: '<svg width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M17.897 3.84a2.38 2.38 0 1 1 3.09 3.623l-3.525 3.006-2.59-.919-.967-.342-1.625-.576 1.312-1.12.78-.665 3.525-3.007zm-8.27 13.313.78-.665 1.312-1.12-1.624-.575-.967-.344-2.59-.918-3.525 3.007a2.38 2.38 0 1 0 3.09 3.622l3.525-3.007zM8.724 7.37l2.592.92 2.09-1.784-.84-4.556a2.38 2.38 0 1 0-4.683.865l.841 4.555zm6.554 9.262-2.592-.92-2.091 1.784.842 4.557a2.38 2.38 0 0 0 4.682-.866l-.841-4.555zm8.186-.564a2.38 2.38 0 0 0-1.449-3.04l-4.365-1.55-.967-.342-1.625-.576-.966-.343-2.59-.92-.967-.342-1.624-.576-.967-.343-4.366-1.55a2.38 2.38 0 1 0-1.591 4.488l4.366 1.55.966.342 1.625.576.965.343 2.591.92.967.342 1.624.577.966.342 4.367 1.55a2.38 2.38 0 0 0 3.04-1.447"/></svg>'
81-
},
8275
{
8376
title: 'JsDelivr',
8477
name: 'jsDelivr',
@@ -154,6 +147,14 @@ const ideWebsitesList = [
154147
platforms: ['github'],
155148
icon: '<svg width="16" height="16" viewBox="0 0 512 297" fill="none"><path fill="currentColor" d="M507.28 0.142623H502.4C476.721 0.10263 455.882 20.899 455.882 46.5745V150.416C455.882 171.153 438.743 187.95 418.344 187.95C406.224 187.95 394.125 181.851 386.945 171.613L280.889 20.1391C272.089 7.56133 257.77 0.0626373 242.271 0.0626373C218.091 0.0626373 196.332 20.6191 196.332 45.9946V150.436C196.332 171.173 179.333 187.97 158.794 187.97C146.634 187.97 134.555 181.871 127.375 171.633L8.69966 2.12228C6.01976 -1.71705 0 0.182617 0 4.8618V95.426C0 100.005 1.39995 104.444 4.01984 108.204L120.815 274.995C127.715 284.853 137.895 292.172 149.634 294.831C179.013 301.51 206.052 278.894 206.052 250.079V145.697C206.052 124.961 222.851 108.164 243.59 108.164H243.65C256.15 108.164 267.87 114.263 275.049 124.501L381.125 275.955C389.945 288.552 403.524 296.031 419.724 296.031C444.443 296.031 465.622 275.455 465.622 250.099V145.677C465.622 124.941 482.421 108.144 503.16 108.144H507.3C509.9 108.144 512 106.044 512 103.445V4.8418C512 2.24226 509.9 0.142623 507.3 0.142623H507.28Z"/></svg>',
156149
class: 'd-none d-md-block'
150+
},
151+
{
152+
title: 'Clone in Kiro',
153+
name: 'cloneInKiro',
154+
baseurl: `kiro://vscode.git/clone?url=https://${platform}.com/`,
155+
platforms: ['github'],
156+
icon: '<svg width="16" height="16" viewBox="0 0 20 24" fill="none"><path d="M3.80081 18.5661C1.32306 24.0572 6.59904 25.434 10.4904 22.2205C11.6339 25.8242 15.926 23.1361 17.4652 20.3445C20.8578 14.1915 19.4877 7.91459 19.1361 6.61988C16.7244 -2.20972 4.67055 -2.21852 2.59581 6.6649C2.11136 8.21946 2.10284 9.98752 1.82846 11.8233C1.69011 12.749 1.59258 13.3398 1.23436 14.3135C1.02841 14.8733 0.745043 15.3704 0.299833 16.2082C-0.391594 17.5095 -0.0998802 20.021 3.46397 18.7186V18.7195L3.80081 18.5661Z" fill="currentColor"></path><path d="M10.9614 10.4413C9.97202 10.4413 9.82422 9.25893 9.82422 8.55407C9.82422 7.91791 9.93824 7.4124 10.1542 7.09197C10.3441 6.81003 10.6158 6.66699 10.9614 6.66699C11.3071 6.66699 11.6036 6.81228 11.8128 7.09892C12.0511 7.42554 12.177 7.92861 12.177 8.55407C12.177 9.73591 11.7226 10.4413 10.9616 10.4413H10.9614Z" fill="white"></path><path d="M15.0318 10.4413C14.0423 10.4413 13.8945 9.25893 13.8945 8.55407C13.8945 7.91791 14.0086 7.4124 14.2245 7.09197C14.4144 6.81003 14.6861 6.66699 15.0318 6.66699C15.3774 6.66699 15.6739 6.81228 15.8831 7.09892C16.1214 7.42554 16.2474 7.92861 16.2474 8.55407C16.2474 9.73591 15.793 10.4413 15.0319 10.4413H15.0318Z" fill="white"></path></svg>',
157+
class: 'd-none d-md-block'
157158
}
158159
];
159160
const defaultOptions = {
@@ -167,7 +168,6 @@ const defaultOptions = {
167168
gitpod: true,
168169
glitch: true,
169170
idx: true,
170-
sourcegraph: true,
171171
jsDelivr: false,
172172
activeForks: false,
173173
usefulForks: false,
@@ -178,6 +178,7 @@ const defaultOptions = {
178178
cloneInCursor: false,
179179
cloneInWindsurf: false,
180180
cloneInWindsurfNext: false,
181+
cloneInKiro: false,
181182
openInNewTab: true
182183
};
183184
const gitHubStyle = `

src/js/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const defaultOptions = {
1111
gitpod: true,
1212
glitch: true,
1313
idx: true,
14-
sourcegraph: true,
1514
jsDelivr: false,
1615
activeForks: false,
1716
usefulForks: false,
@@ -22,6 +21,7 @@ const defaultOptions = {
2221
cloneInCursor: false,
2322
cloneInWindsurf: false,
2423
cloneInWindsurfNext: false,
24+
cloneInKiro: false,
2525
openInNewTab: true
2626
};
2727
let options = { ...defaultOptions };

src/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"manifest_version": 3,
55
"update_url": "https://clients2.google.com/service/update2/crx",
66
"homepage_url": "https://github.com/zvizvi/GitHub-Web-IDE",
7-
"version": "2.0.11",
7+
"version": "2.0.12",
88
"author": "[email protected]",
99
"action": {
1010
"default_icon": {

src/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "github-web-ide",
3-
"version": "2.0.11",
3+
"version": "2.0.12",
44
"description": "⚡ Open GitHub repositories in online web IDE",
55
"main": "README.md",
66
"dependencies": {

0 commit comments

Comments
 (0)