Skip to content

Added gitlab token #215

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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all 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
9 changes: 9 additions & 0 deletions src/_locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@
"githubTokenPlaceholder": {
"message": "Erforderlich für authentifizierte Anfragen"
},
"gitlabTokenLabel": {
"message": "Ihr GitLab-Token"
},
"gitlabTokenPlaceholder": {
"message": "Für authentifizierte Anfragen erforderlich"
},
"gitlabTokenTooltip": {
"message": "<b>Warum wird empfohlen, einen GitLab Token hinzuzufügen?</b><br>Scrum Helper funktioniert ohne GitLab Token, aber das Hinzufügen eines persönlichen Zugriffstokens wird für eine bessere Erfahrung empfohlen. Es erhöht Ihre API-Limits, ermöglicht den Zugriff auf private Repositories (falls erlaubt) und verbessert Genauigkeit und Geschwindigkeit. Tokens werden lokal gespeichert und niemals an uns gesendet und nur verwendet, um Ihre Git-Daten abzurufen. Sie können jederzeit einen in den Erweiterungseinstellungen hinzufügen.<br><br><b>Wie man erhält:</b><br>1. Gehen Sie zu <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a>.<br>2. Klicken Sie auf \"Persönlichen Zugriffstoken erstellen\"<br>3. Geben Sie ihm einen Namen und wählen Sie entsprechende Bereiche (read_api, read_user, read_repository)<br>4. Fügen Sie ihn hier ein.<br><i>Halten Sie Ihren Token geheim!</i>"
},
"showCommitsLabel": {
"message": "Commits in offenen PRs/ Entwurfs-PRs anzeigen"
},
Expand Down
2 changes: 2 additions & 0 deletions src/_locales/en/messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{

"appName": {
"message": "Scrum Helper",
"description": "The name of the extension."
Expand Down Expand Up @@ -256,3 +257,4 @@
"description": "Label for the username input header."
}
}

9 changes: 9 additions & 0 deletions src/_locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
"githubTokenPlaceholder": {
"message": "Requerido para realizar solicitudes autenticadas"
},
"gitlabTokenLabel": {
"message": "Su token de GitLab"
},
"gitlabTokenPlaceholder": {
"message": "Requerido para realizar solicitudes autenticadas"
},
"gitlabTokenTooltip": {
"message": "<b>¿Por qué se recomienda agregar un token de GitLab?</b><br>Scrum Helper funciona sin un token de GitLab, pero agregar un token de acceso personal es recomendado para una mejor experiencia. Aumenta tus límites de API, permite acceso a repositorios privados (si está permitido) y mejora la precisión y velocidad. Los tokens se almacenan localmente y nunca se envían a nosotros y solo se usan para obtener tus datos de git. Puedes agregar uno en cualquier momento en la configuración de la extensión.<br><br><b>Cómo obtener:</b><br>1. Ve a <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a>.<br>2. Haz clic en \"Crear token de acceso personal\"<br>3. Dale un nombre y selecciona los ámbitos apropiados (read_api, read_user, read_repository)<br>4. Pégalo aquí.<br><i>¡Mantén tu token en secreto!</i>"
},
"showCommitsLabel": {
"message": "Mostrar commits en PRs abiertos/ borradores de PRs"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
"githubTokenPlaceholder": {
"message": "Requis pour les requêtes authentifiées"
},
"gitlabTokenLabel": {
"message": "Votre jeton GitLab"
},
"gitlabTokenPlaceholder": {
"message": "Requis pour les requêtes authentifiées"
},
"gitlabTokenTooltip": {
"message": "<b>Pourquoi est-il recommandé d'ajouter un jeton GitLab ?</b><br>Scrum Helper fonctionne sans jeton GitLab, mais ajouter un jeton d'accès personnel est recommandé pour une meilleure expérience. Il augmente vos limites d'API, permet l'accès aux dépôts privés (si autorisé) et améliore la précision et la vitesse. Les jetons sont stockés localement et ne sont jamais envoyés à nous et utilisés uniquement pour récupérer vos données git. Vous pouvez en ajouter un à tout moment dans les paramètres de l'extension.<br><br><b>Comment obtenir :</b><br>1. Allez sur <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a>.<br>2. Cliquez sur \"Créer un jeton d'accès personnel\"<br>3. Donnez-lui un nom et sélectionnez les portées appropriées (read_api, read_user, read_repository)<br>4. Collez-le ici.<br><i>Gardez votre jeton secret !</i>"
},
"showCommitsLabel": {
"message": "Afficher les commits sur les PRs ouverts/ brouillons de PRs"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/hi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
"githubTokenPlaceholder": {
"message": "प्रमाणित अनुरोधों के लिए आवश्यक"
},
"gitlabTokenLabel": {
"message": "आपका GitLab टोकन"
},
"gitlabTokenPlaceholder": {
"message": "प्रमाणित अनुरोधों के लिए आवश्यक"
},
"gitlabTokenTooltip": {
"message": "<b>GitLab टोकन जोड़ने की सिफारिश क्यों की जाती है?</b><br>Scrum Helper GitLab टोकन के बिना काम करता है, लेकिन बेहतर अनुभव के लिए व्यक्तिगत एक्सेस टोकन जोड़ने की सिफारिश की जाती है। यह आपकी API सीमाओं को बढ़ाता है, निजी रिपॉजिटरी तक पहुंच की अनुमति देता है (यदि अनुमति दी गई है) और सटीकता और गति में सुधार करता है। टोकन स्थानीय रूप से संग्रहीत किए जाते हैं और कभी भी हमें नहीं भेजे जाते और केवल आपके git डेटा को प्राप्त करने के लिए उपयोग किए जाते हैं। आप एक्सटेंशन सेटिंग्स में किसी भी समय एक जोड़ सकते हैं।<br><br><b>कैसे प्राप्त करें:</b><br>1. <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a> पर जाएं।<br>2. \"Create personal access token\" पर क्लिक करें<br>3. इसे एक नाम दें और उचित स्कोप चुनें (read_api, read_user, read_repository)<br>4. इसे यहां पेस्ट करें।<br><i>अपना टोकन गुप्त रखें!</i>"
},
"showCommitsLabel": {
"message": "खुले पीआर/ ड्राफ्ट पीआर पर कमिट दिखाएं"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/id/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
"githubTokenPlaceholder": {
"message": "Diperlukan untuk permintaan terotentikasi"
},
"gitlabTokenLabel": {
"message": "Token GitLab Anda"
},
"gitlabTokenPlaceholder": {
"message": "Diperlukan untuk permintaan terotentikasi"
},
"gitlabTokenTooltip": {
"message": "<b>Mengapa disarankan untuk menambahkan token GitLab?</b><br>Scrum Helper bekerja tanpa token GitLab, tetapi menambahkan token akses pribadi disarankan untuk pengalaman yang lebih baik. Ini meningkatkan batas API Anda, memungkinkan akses ke repositori pribadi (jika diizinkan), dan meningkatkan akurasi dan kecepatan. Token disimpan secara lokal dan tidak pernah dikirim kepada kami dan hanya digunakan untuk mengambil data git Anda. Anda dapat menambahkan satu kapan saja di pengaturan ekstensi.<br><br><b>Cara mendapatkan:</b><br>1. Kunjungi <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a>.<br>2. Klik \"Create personal access token\"<br>3. Beri nama dan pilih cakupan yang sesuai (read_api, read_user, read_repository)<br>4. Tempel di sini.<br><i>Jaga kerahasiaan token Anda!</i>"
},
"showCommitsLabel": {
"message": "Tampilkan commit pada PR terbuka/ draf PR"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
"githubTokenPlaceholder": {
"message": "認証済みリクエストに必要です"
},
"gitlabTokenLabel": {
"message": "GitLabトークン"
},
"gitlabTokenPlaceholder": {
"message": "認証済みリクエストに必要です"
},
"gitlabTokenTooltip": {
"message": "<b>GitLabトークンを追加することが推奨される理由は?</b><br>Scrum HelperはGitLabトークンなしでも動作しますが、より良い体験のために個人アクセストークンを追加することが推奨されます。API制限を引き上げ、プライベートリポジトリへのアクセスを許可し(許可されている場合)、精度と速度を向上させます。トークンはローカルに保存され、私たちに送信されることはなく、あなたのgitデータを取得するためにのみ使用されます。拡張機能の設定でいつでも追加できます。<br><br><b>取得方法:</b><br>1. <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a>に移動します。<br>2. \"Create personal access token\"をクリックします<br>3.名前を付けて適切なスコープを選択します(read_api, read_user, read_repository)<br>4.ここに貼り付けます。<br><i>トークンを秘密に保ってください!</i>"
},
"showCommitsLabel": {
"message": "オープンなPR/ドラフトPRのコミットを表示"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/pt/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@
"githubTokenPlaceholder": {
"message": "Necessário para fazer solicitações autenticadas"
},
"gitlabTokenLabel": {
"message": "Seu Token GitLab"
},
"gitlabTokenPlaceholder": {
"message": "Necessário para fazer solicitações autenticadas"
},
"gitlabTokenTooltip": {
"message": "<b>Por que é recomendado adicionar um token GitLab?</b><br>O Scrum Helper funciona sem um token GitLab, mas adicionar um token de acesso pessoal é recomendado para uma melhor experiência. Ele aumenta seus limites de API, permite acesso a repositórios privados (se permitido) e melhora a precisão e velocidade. Os tokens são armazenados localmente e nunca são enviados para nós e usados apenas para buscar seus dados git. Você pode adicionar um a qualquer momento nas configurações da extensão.<br><br><b>Como obter:</b><br>1. Vá para <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a>.<br>2. Clique em \"Create personal access token\"<br>3. Dê um nome e selecione os escopos apropriados (read_api, read_user, read_repository)<br>4. Cole aqui.<br><i>Mantenha seu token secreto!</i>"
},
"showCommitsLabel": {
"message": "Mostrar commits em PRs abertos/ rascunhos de PRs"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/pt_BR/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@
"githubTokenPlaceholder": {
"message": "Necessário para solicitações autenticadas"
},
"gitlabTokenLabel": {
"message": "Seu Token do GitLab"
},
"gitlabTokenPlaceholder": {
"message": "Necessário para solicitações autenticadas"
},
"gitlabTokenTooltip": {
"message": "<b>Por que é recomendado adicionar um token do GitLab?</b><br>O Scrum Helper funciona sem um token do GitLab, mas adicionar um token de acesso pessoal é recomendado para uma melhor experiência. Ele aumenta seus limites de API, permite acesso a repositórios privados (se permitido) e melhora a precisão e velocidade. Os tokens são armazenados localmente e nunca são enviados para nós e usados apenas para buscar seus dados git. Você pode adicionar um a qualquer momento nas configurações da extensão.<br><br><b>Como obter:</b><br>1. Vá para <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a>.<br>2. Clique em \"Create personal access token\"<br>3. Dê um nome e selecione os escopos apropriados (read_api, read_user, read_repository)<br>4. Cole aqui.<br><i>Mantenha seu token secreto!</i>"
},
"showCommitsLabel": {
"message": "Mostrar commits em PRs abertos/ rascunhos de PRs"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
"githubTokenPlaceholder": {
"message": "Требуется для аутентифицированных запросов"
},
"gitlabTokenLabel": {
"message": "Ваш токен GitLab"
},
"gitlabTokenPlaceholder": {
"message": "Требуется для аутентифицированных запросов"
},
"gitlabTokenTooltip": {
"message": "<b>Почему рекомендуется добавить GitLab токен?</b><br>Scrum Helper работает без GitLab токена, но добавление персонального токена доступа рекомендуется для лучшего опыта. Это повышает ваши лимиты API, позволяет доступ к приватным репозиториям (если разрешено) и улучшает точность и скорость. Токены хранятся локально и никогда не отправляются нам и используются только для получения ваших git данных. Вы можете добавить один в любое время в настройках расширения.<br><br><b>Как получить:</b><br>1. Перейдите на <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a>.<br>2. Нажмите \"Create personal access token\"<br>3. Дайте ему имя и выберите соответствующие области (read_api, read_user, read_repository)<br>4. Вставьте его сюда.<br><i>Держите ваш токен в секрете!</i>"
},
"showCommitsLabel": {
"message": "Показывать коммиты в открытых PR/ черновиках PR"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/vi/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,15 @@
"githubTokenPlaceholder": {
"message": "Bắt buộc cho các yêu cầu đã xác thực"
},
"gitlabTokenLabel": {
"message": "Mã token GitLab của bạn"
},
"gitlabTokenPlaceholder": {
"message": "Bắt buộc cho các yêu cầu đã xác thực"
},
"gitlabTokenTooltip": {
"message": "<b>Tại sao nên thêm token GitLab?</b><br>Scrum Helper hoạt động mà không cần token GitLab, nhưng việc thêm token truy cập cá nhân được khuyến nghị để có trải nghiệm tốt hơn. Nó tăng giới hạn API của bạn, cho phép truy cập vào các repository riêng tư (nếu được phép) và cải thiện độ chính xác và tốc độ. Token được lưu trữ cục bộ và không bao giờ được gửi đến chúng tôi và chỉ được sử dụng để lấy dữ liệu git của bạn. Bạn có thể thêm một token bất cứ lúc nào trong cài đặt tiện ích mở rộng.<br><br><b>Cách lấy:</b><br>1. Truy cập <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a>.<br>2. Nhấp vào \"Create personal access token\"<br>3. Đặt tên và chọn phạm vi thích hợp (read_api, read_user, read_repository)<br>4. Dán vào đây.<br><i>Giữ token của bạn bí mật!</i>"
},
"showCommitsLabel": {
"message": "Hiển thị các commit trên PR đang mở/ PR nháp"
},
Expand Down
9 changes: 9 additions & 0 deletions src/_locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,15 @@
"githubTokenPlaceholder": {
"message": "进行身份验证请求所必需"
},
"gitlabTokenLabel": {
"message": "您的 GitLab 令牌"
},
"gitlabTokenPlaceholder": {
"message": "进行身份验证请求所必需"
},
"gitlabTokenTooltip": {
"message": "<b>为什么建议添加 GitLab 令牌?</b><br>Scrum Helper 无需 GitLab 令牌即可工作,但建议添加个人访问令牌以获得更好的体验。它会提高您的 API 限制,允许访问私有仓库(如果允许),并提高准确性和速度。令牌存储在本地,永远不会发送给我们,仅用于获取您的 git 数据。您可以随时在扩展设置中添加一个。<br><br><b>如何获取:</b><br>1. 访问 <a href=\"https://gitlab.com/-/profile/personal_access_tokens\" target=\"_blank\" style=\"color:#2563eb;text-decoration:underline;\">GitLab Personal Access Tokens</a>。<br>2. 点击 \"Create personal access token\"<br>3. 给它一个名称并选择适当的范围(read_api, read_user, read_repository)<br>4. 粘贴到这里。<br><i>保持您的令牌秘密!</i>"
},
"showCommitsLabel": {
"message": "在打开的 PR/草稿 PR 上显示提交"
},
Expand Down
2 changes: 2 additions & 0 deletions src/_locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{

"appName": {
"message": "Scrum Helper"
},
Expand Down Expand Up @@ -195,3 +196,4 @@
"message": "您的用戶名"
}
}

46 changes: 45 additions & 1 deletion src/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ <h4 class="font-semibold text-xl" data-i18n="noteTitle">Note:</h4>
</div>

<div id="settingsSection" class="tab-content hidden">
<div class="orgSection">
<!-- GitHub Token Section -->
<div class="githubTokenSection hidden">
<div>
<div class="flex items-center justify-between">
<div class="flex">
Expand Down Expand Up @@ -261,6 +262,49 @@ <h4 class="font-semibold text-xl" data-i18n="noteTitle">Note:</h4>
class="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2 pr-10"
data-i18n-placeholder="githubTokenPlaceholder">
</div>
</div>

<!-- GitLab Token Section -->
<div class="gitlabTokenSection hidden">
<div class="flex items-center justify-between">
<div class="flex">
<p class="text-sm font-medium" data-i18n="gitlabTokenLabel">Your GitLab Token<span
class="tooltip-container">
<i class="fa fa-question-circle question-icon"></i>
<span class="tooltip-bubble" data-i18n="gitlabTokenTooltip">
<b>Why is it recommended to add a GitLab token?</b><br>
Scrum Helper works without a GitLab token, but adding a personal access
token is recommended for a
better experience. It raises your API limits, allows access to private
repos
(if permitted), and
improves accuracy and speed. Tokens are stored locally and never sent to
us
and used only to fetch
your git data. You can add one anytime in the extension
settings.<br><br>
<b>How to obtain:</b><br>
1. Go to <a href="https://gitlab.com/-/profile/personal_access_tokens" target="_blank"
style="color:#2563eb;text-decoration:underline;">GitLab Personal Access
Tokens</a>.<br>
2. Click "Create personal access token"<br>
3. Give it a name and select appropriate scopes (read_api, read_user, read_repository)<br>
4. Paste it here.<br>
<i>Keep your token secret!</i>
</span>
</span></p>

</div>
<button id="toggleGitlabTokenVisibility" type="button" class="focus:outline-none">
<i id="gitlabTokenEyeIcon" class="fa fa-eye text-gray-600"></i>
</button>
</div>
<input id="gitlabToken" type="password"
class="w-full border-2 border-gray-200 bg-gray-200 rounded-xl text-gray-800 p-2 my-2 pr-10"
data-i18n-placeholder="gitlabTokenPlaceholder">
</div>

<div class="orgSection">
<div class="">
<div class="flex items-center mt-4">
<p class="text-sm font-semibold" data-i18n="settingsOrgNameLabel">Your Organization Name
Expand Down
Loading
Loading