Skip to content

Add option to clone repository in VSCodium #21123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions options/locale/locale_en-US.ini
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ fork_to_different_account = Fork to a different account
fork_visibility_helper = The visibility of a forked repository cannot be changed.
use_template = Use this template
clone_in_vsc = Clone in VS Code
clone_in_vscodium = Clone in VS Codium
download_zip = Download ZIP
download_tar = Download TAR.GZ
download_bundle = Download BUNDLE
Expand Down
12 changes: 6 additions & 6 deletions options/locale/locale_fa-IR.ini
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,10 @@ delete_token=حذف
access_token_deletion=حذف توکن
delete_token_success=token مورد نظر حذف شد. برنامه هایی که از آن استفاده می‎کنند به زودی دسترسی به حساب کاربری شما را از دست می‎دهند.

manage_oauth2_applications=مدیریت برنامه‎های OAuth2
edit_oauth2_application=ویرایش برنامه OAuth2
manage_oauth2_applications=مدیریت برنامه‎های OAuth2
edit_oauth2_application=ویرایش برنامه OAuth2
oauth2_applications_desc=برنامه‎های OAuth2 احراز هویت برنامه های شخص ثالث را با بستری امن میسر می‎کند.
remove_oauth2_application=حذف برنامه OAuth2
remove_oauth2_application=حذف برنامه OAuth2
remove_oauth2_application_desc=حذف برنامه OAuth2 دسترسی تمام برنامه های متصل با آن را از بین می‎برد. آیا ادامه می‎دهید؟
remove_oauth2_application_success=برنامه حذف شده است.
create_oauth2_application=ساختن یک برنامه OAuth2 جدید
Expand Down Expand Up @@ -882,7 +882,7 @@ migrate.clone_local_path=یا مسیر سرویس دهنده محلی
migrate.permission_denied=شما مجاز به واردات مخازن محلی نیستید.
migrate.permission_denied_blocked=نمی‌توانید از میزبان‌های غیرمجاز وارد کنید، لطفاً از سرپرست بخواهید تنظیمات ALLOWED_DOMAINS / ALLOW_LOCALNETWORKS / BLOCKED_DOMAINS را بررسی کند.
migrate.invalid_local_path=مسیر محلی نامعتبر است. وجود ندارد یا یک پوشه نیست.
migrate.invalid_lfs_endpoint=نقطه پایانی LFS معتبر نیست
migrate.invalid_lfs_endpoint=نقطه پایانی LFS معتبر نیست
migrate.failed=انتقال انجام نشد: %v
migrate.migrate_items_options=نشانی دسترسی برای مهاجرت موارد اضافی مورد نیاز است
migrated_from=مهاجرت از <a href="%[1]s">%[2]s</a>
Expand All @@ -898,7 +898,7 @@ migrate.gitea.description=مهاجرت داده از gitea.com یا پیاده
migrate.gogs.description=مهاجرت داده از notabug.com یا پیاده‌سازی‌های دیگر Gogs.
migrate.onedev.description=مهاجرت داده از code.onedev.io یا پیاده‌سازی‌های دیگر OneDev.
migrate.codebase.description=مهاجر داده ها از codebasehq.com.
migrate.gitbucket.description=مهاجرت داده از نمونه های GitBucket
migrate.gitbucket.description=مهاجرت داده از نمونه های GitBucket
migrate.migrating_git=انتقال داده های Git
migrate.migrating_topics=موضوعات مهاجرت
migrate.migrating_milestones=نقاط عطف مهاجرت
Expand Down Expand Up @@ -951,7 +951,7 @@ release=نسخه منتشر شده
releases=انتشارها
tag=برچسب
released_this=منتشر کرده است
file.title= %s در %s
file.title= %s در %s
file_raw=خام
file_history=تاریخچه
file_view_source=نمایش منبع
Expand Down
1 change: 1 addition & 0 deletions public/img/svg/gitea-vscodium.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions templates/repo/home.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
<a class="item archive-link" href="{{$.RepoLink}}/archive/{{PathEscapeSegments $.RefName}}.bundle" rel="nofollow">{{svg "octicon-package" 16 "mr-3"}}{{.locale.Tr "repo.download_bundle"}}</a>
{{end}}
<a class="item js-clone-url-vsc" href="vscode://vscode.git/clone?url={{.CloneButtonOriginLink.HTTPS}}">{{svg "gitea-vscode" 16 "mr-3"}}{{.locale.Tr "repo.clone_in_vsc"}}</a>
<a class="item js-clone-url-vsc" href="vscodium://vscode.git/clone?url={{.CloneButtonOriginLink.HTTPS}}">{{svg "gitea-vscodium" 16 "mr-3"}}{{.locale.Tr "repo.clone_in_vscodium"}}</a>
</div>
</button>
{{template "repo/clone_script" .}}{{/* the script will update `.js-clone-url` and related elements */}}
Expand Down