Skip to content

Commit c091982

Browse files
committed
Add Google IDX (resolve: #49)
1 parent e606ed4 commit c091982

File tree

7 files changed

+21
-4
lines changed

7 files changed

+21
-4
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Services currently supported:
2020
* [Gitpod](https://gitpod.io/)
2121
* [StackBlitz](https://stackblitz.com/)
2222
* [Glitch](https://glitch.com/)
23+
* [Google IDX](https://idx.google.com/)
2324
* [Sourcegraph](https://sourcegraph.com/)
2425
* [JsDelivr](https://www.jsdelivr.com/)
2526
* [Active Forks](https://techgaun.github.io/active-forks/)
@@ -31,6 +32,7 @@ Services currently supported:
3132

3233

3334
### What's changed?
35+
* v2.0.8 Google IDX link added.
3436
* v2.0.7
3537
* Fix extension options page in Firefox.
3638
* Add Useful Forks link.

src/html/options.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ <h2 class="Subhead-heading">Enabled IDE list</h2>
116116
Glitch
117117
</label>
118118
</div>
119+
<div class="form-checkbox">
120+
<label>
121+
<input type="checkbox" id="idx" />
122+
Google IDX
123+
</label>
124+
</div>
119125
<div class="form-checkbox">
120126
<label>
121127
<input type="checkbox" id="sourcegraph" />

src/js/main.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ const ideWebsitesList = [
6565
platforms: ['github'],
6666
icon: '<svg width="16" height="16" viewBox="0 0 24 24"><path fill="currentColor" d="M9.146 2.393c-.618 0-1.794 1.61-1.794 1.61s-.453 0-1.803.07c-1.35.07-2.553.67-4.159 1.934C-.216 7.27.011 8.537.011 8.537s1.498.507 1.498.781c0 .275-1.311.6-1.311.6.845 1.081 3.467 2.09 4.13 2.09h.524c-1.086.214-2.136.804-3.462 1.847-1.606 1.264-1.379 2.53-1.379 2.53s1.498.507 1.498.781c0 .275-1.311.6-1.311.6.845 1.081 3.467 2.09 4.13 2.09.635 0 1.079.018 1.882-.132.06.134.686 1.461 1.965 1.736 1.347.29 2.092.062 2.092.062s.067-.595-.24-1.189c1.17.115 2.495.145 3.792-.052 3.603-.547 5.382-1.413 5.963-1.528.582-.115 3.904 1.476 4.106 1.104.203-.373-.73-1.188-.295-2.288.434-1.1-.534-1.827.003-2.705.537-.879.43-2.219.292-2.29-.295-.15-3.423 1.407-4.106 1.28-1.686-.311-1.377-.513-3.647-1.027-.907-.206-.781-.084-.982-.236-.134-.102-.265-.116-.455-.306 3.015-.543 4.552-1.275 5.084-1.38.582-.116 3.904 1.476 4.106 1.103.202-.372-.73-1.187-.295-2.288.434-1.1-.534-1.826.003-2.705.537-.878.43-2.218.292-2.289-.295-.151-3.423 1.407-4.106 1.28-1.686-.312-1.377-.513-3.647-1.027-.907-.206-.781-.084-.982-.236-.2-.152-.39-.106-.782-.74-.392-.635-4.916-1.61-5.225-1.61zM8.09 5.158l.04.002.111.006.397.02a286.477 286.477 0 0 1 1.59.088c.348.02.64.038.865.054.861.06 2.172.26 3.177.464 1.556.315 2.82.778 4.81 1.673l.677.305c.131.059.195.228.143.377-.052.15-.201.222-.333.163a663.41 663.41 0 0 0-.675-.305c-1.962-.881-3.198-1.335-4.711-1.64-.988-.2-2.28-.397-3.12-.457a76.718 76.718 0 0 0-.859-.054l-.384-.022c-.383-.021-.793-.044-1.203-.065l-.126-.006a6.79 6.79 0 0 1 .339 1.187c.02.11.035.216.045.32.034.336-.028.816-.162 1.42-.044.2-.096.409-.153.624a21.303 21.303 0 0 1-.29.995l-.02.064-.008.023c-.05.15-.198.226-.33.17-.133-.057-.2-.225-.15-.375l.007-.02a11.841 11.841 0 0 0 .089-.283c.072-.236.144-.487.212-.741.055-.208.104-.408.146-.599.12-.54.175-.966.15-1.213a3.436 3.436 0 0 0-.038-.269 5.829 5.829 0 0 0-.21-.796 8.1 8.1 0 0 0-.264-.685c-.091-.199.041-.435.238-.425zm-1.653.17c.066.002.13.033.179.091a4.758 4.758 0 0 1 .417.627c.224.404.374.816.415 1.221.023.231.008.49-.038.771-.044.27-.115.555-.206.845a8.216 8.216 0 0 1-.25.688c-.063.144-.216.203-.343.132-.127-.07-.18-.245-.117-.389l.018-.044a7.595 7.595 0 0 0 .21-.582c.082-.263.146-.518.185-.755a2.42 2.42 0 0 0 .032-.6c-.03-.306-.153-.64-.34-.978a4.176 4.176 0 0 0-.356-.538.319.319 0 0 1 .01-.41.239.239 0 0 1 .184-.08zm-3.042.97c.62 0 1.122.57 1.122 1.272 0 .704-.503 1.273-1.122 1.273-.555 0-1.016-.457-1.106-1.058.077.452.428.793.849.793.477 0 .864-.44.864-.981 0-.542-.387-.981-.864-.981-.474 0-.86.432-.865.968V7.57c0-.703.502-1.273 1.122-1.273zM2.88 7.622a.234.265 0 0 1 .233.266.234.265 0 0 1-.233.265.234.265 0 0 1-.234-.265.234.265 0 0 1 .234-.266zm3.329 4.253l.006.013-.115.005.109-.018zm1.88 1.13l.04.003.111.005.397.02a286.463 286.463 0 0 1 1.59.088c.348.02.64.039.865.055.861.06 2.172.26 3.177.463 1.556.315 2.82.778 4.81 1.673l.677.305c.131.06.195.228.143.377-.052.15-.201.222-.333.163a663.41 663.41 0 0 0-.675-.305c-1.962-.881-3.198-1.334-4.711-1.64-.988-.2-2.28-.397-3.12-.456a76.718 76.718 0 0 0-1.243-.077l-1.203-.065-.126-.006a6.79 6.79 0 0 1 .339 1.187c.02.11.035.217.045.32.034.336-.028.817-.162 1.42-.044.2-.096.41-.153.625a21.303 21.303 0 0 1-.31 1.058l-.008.023c-.05.15-.198.226-.33.17-.133-.057-.2-.224-.15-.375l.007-.02a11.841 11.841 0 0 0 .089-.283c.072-.236.144-.487.212-.74.055-.208.104-.409.146-.6.12-.539.175-.966.15-1.213a3.436 3.436 0 0 0-.038-.268 5.829 5.829 0 0 0-.21-.796 8.1 8.1 0 0 0-.264-.686c-.091-.198.041-.434.238-.424zm-1.653.17c.066.002.13.033.179.091a4.758 4.758 0 0 1 .417.627c.224.405.374.816.415 1.222.023.23.008.489-.038.77-.044.27-.115.555-.206.845a8.215 8.215 0 0 1-.25.688c-.063.144-.216.204-.343.133-.127-.071-.18-.246-.117-.39a6.083 6.083 0 0 0 .07-.173 7.59 7.59 0 0 0 .158-.453c.082-.262.146-.518.185-.755a2.42 2.42 0 0 0 .032-.6c-.03-.305-.153-.64-.34-.978a4.176 4.176 0 0 0-.356-.537.319.319 0 0 1 .01-.411.239.239 0 0 1 .184-.079zm-3.042.97c.62 0 1.122.57 1.122 1.273s-.503 1.273-1.122 1.273c-.555 0-1.016-.458-1.106-1.058.077.451.428.792.849.792.477 0 .864-.439.864-.98 0-.543-.387-.982-.864-.982-.474 0-.86.433-.865.969v-.014c0-.703.502-1.273 1.122-1.273zm-.514 1.326a.234.265 0 0 1 .233.265.234.265 0 0 1-.233.265.234.265 0 0 1-.234-.265.234.265 0 0 1 .234-.265z"></path></svg>'
6767
},
68+
{
69+
title: 'Google IDX',
70+
name: 'idx',
71+
baseurl: `https://idx.google.com/import?url=https://${platform}.com/`,
72+
platforms: ['github'],
73+
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>'
74+
},
6875
{
6976
title: 'Sourcegraph',
7077
name: 'sourcegraph',
@@ -135,6 +142,7 @@ const defaultOptions = {
135142
gitLab1s: true,
136143
gitpod: true,
137144
glitch: true,
145+
idx: true,
138146
sourcegraph: true,
139147
jsDelivr: false,
140148
activeForks: false,

src/js/options.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const defaultOptions = {
1010
stackBlitz: true,
1111
gitpod: true,
1212
glitch: true,
13+
idx: true,
1314
sourcegraph: true,
1415
jsDelivr: false,
1516
activeForks: false,

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.7",
7+
"version": "2.0.8",
88
"author": "zvizvi5@outlook.com",
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.7",
3+
"version": "2.0.8",
44
"description": "⚡ Open GitHub repositories in online web IDE",
55
"main": "README.md",
66
"dependencies": {

0 commit comments

Comments
 (0)