Skip to content

Commit 8b4b695

Browse files
committed
Add credit card payment option and enhance API key manager initialization
1 parent 814ea1f commit 8b4b695

File tree

12 files changed

+181
-14
lines changed

12 files changed

+181
-14
lines changed

public/i18n/ar.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,20 @@
7676
"copy": "نسخ",
7777
"copied": "تم النسخ!",
7878
"waiting_payment": "في انتظار تأكيد الدفع...",
79-
"payment_received": "تم استلام الدفع! جاري إعادة التوجيه إلى لوحة التحكم الخاصة بك..."
79+
"payment_received": "تم استلام الدفع! جاري إعادة التوجيه إلى لوحة التحكم الخاصة بك...",
80+
"plan": "خطة الاشتراك",
81+
"monthly": "شهري",
82+
"monthly_price": "$5/شهر",
83+
"monthly_description": "يتم الدفع شهريًا، يمكن الإلغاء في أي وقت",
84+
"yearly": "سنوي",
85+
"yearly_price": "$30/سنة",
86+
"yearly_description": "وفر $30 مع الفوترة السنوية",
87+
"payment_method": "طريقة الدفع",
88+
"bitcoin": "بيتكوين",
89+
"ethereum": "إيثيريوم",
90+
"solana": "سولانا",
91+
"usdc": "يو إس دي سي",
92+
"credit_card": "بطاقة ائتمان"
8093
},
8194
"common": {
8295
"save": "حفظ",

public/i18n/de.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,20 @@
7676
"copy": "Kopieren",
7777
"copied": "Kopiert!",
7878
"waiting_payment": "Warten auf Zahlungsbestätigung...",
79-
"payment_received": "Zahlung erhalten! Weiterleitung zu Ihrem Dashboard..."
79+
"payment_received": "Zahlung erhalten! Weiterleitung zu Ihrem Dashboard...",
80+
"plan": "Abonnementplan",
81+
"monthly": "Monatlich",
82+
"monthly_price": "$5/Monat",
83+
"monthly_description": "Monatliche Abrechnung, jederzeit kündbar",
84+
"yearly": "Jährlich",
85+
"yearly_price": "$30/Jahr",
86+
"yearly_description": "Sparen Sie $30 mit jährlicher Abrechnung",
87+
"payment_method": "Zahlungsmethode",
88+
"bitcoin": "Bitcoin",
89+
"ethereum": "Ethereum",
90+
"solana": "Solana",
91+
"usdc": "USDC",
92+
"credit_card": "Kreditkarte"
8093
},
8194
"common": {
8295
"save": "Speichern",

public/i18n/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@
8989
"bitcoin": "Bitcoin",
9090
"ethereum": "Ethereum",
9191
"solana": "Solana",
92-
"usdc": "USDC"
92+
"usdc": "USDC",
93+
"credit_card": "Credit Card"
9394
},
9495
"common": {
9596
"save": "Save",

public/i18n/fr.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
"bitcoin": "Bitcoin",
8989
"ethereum": "Ethereum",
9090
"solana": "Solana",
91-
"usdc": "USDC"
91+
"usdc": "USDC",
92+
"credit_card": "Carte de crédit"
9293
},
9394
"common": {
9495
"save": "Enregistrer",

public/i18n/ja.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,20 @@
7676
"copy": "コピー",
7777
"copied": "コピーしました!",
7878
"waiting_payment": "支払い確認を待っています...",
79-
"payment_received": "支払いを受け取りました!ダッシュボードにリダイレクトします..."
79+
"payment_received": "支払いを受け取りました!ダッシュボードにリダイレクトします...",
80+
"plan": "サブスクリプションプラン",
81+
"monthly": "月額",
82+
"monthly_price": "$5/月",
83+
"monthly_description": "月額請求、いつでもキャンセル可能",
84+
"yearly": "年額",
85+
"yearly_price": "$30/年",
86+
"yearly_description": "年間請求で$30お得",
87+
"payment_method": "支払い方法",
88+
"bitcoin": "ビットコイン",
89+
"ethereum": "イーサリアム",
90+
"solana": "ソラナ",
91+
"usdc": "USDC",
92+
"credit_card": "クレジットカード"
8093
},
8194
"common": {
8295
"save": "保存",

public/i18n/pl.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,20 @@
7676
"copy": "Kopiuj",
7777
"copied": "Skopiowano!",
7878
"waiting_payment": "Oczekiwanie na potwierdzenie płatności...",
79-
"payment_received": "Płatność otrzymana! Przekierowywanie do panelu sterowania..."
79+
"payment_received": "Płatność otrzymana! Przekierowywanie do panelu sterowania...",
80+
"plan": "Plan subskrypcji",
81+
"monthly": "Miesięczny",
82+
"monthly_price": "$5/miesiąc",
83+
"monthly_description": "Płatność miesięczna, możliwość anulowania w dowolnym momencie",
84+
"yearly": "Roczny",
85+
"yearly_price": "$30/rok",
86+
"yearly_description": "Zaoszczędź $30 z rozliczeniem rocznym",
87+
"payment_method": "Metoda płatności",
88+
"bitcoin": "Bitcoin",
89+
"ethereum": "Ethereum",
90+
"solana": "Solana",
91+
"usdc": "USDC",
92+
"credit_card": "Karta kredytowa"
8093
},
8194
"common": {
8295
"save": "Zapisz",

public/i18n/ru.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,20 @@
7676
"copy": "Копировать",
7777
"copied": "Скопировано!",
7878
"waiting_payment": "Ожидание подтверждения платежа...",
79-
"payment_received": "Платеж получен! Перенаправление на вашу панель управления..."
79+
"payment_received": "Платеж получен! Перенаправление на вашу панель управления...",
80+
"plan": "План подписки",
81+
"monthly": "Ежемесячно",
82+
"monthly_price": "$5/месяц",
83+
"monthly_description": "Ежемесячный платеж, отмена в любое время",
84+
"yearly": "Ежегодно",
85+
"yearly_price": "$30/год",
86+
"yearly_description": "Сэкономьте $30 с годовым платежом",
87+
"payment_method": "Способ оплаты",
88+
"bitcoin": "Биткоин",
89+
"ethereum": "Эфириум",
90+
"solana": "Солана",
91+
"usdc": "USDC",
92+
"credit_card": "Кредитная карта"
8093
},
8194
"common": {
8295
"save": "Сохранить",

public/i18n/uk.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,20 @@
7676
"copy": "Копіювати",
7777
"copied": "Скопійовано!",
7878
"waiting_payment": "Очікування підтвердження платежу...",
79-
"payment_received": "Платіж отримано! Перенаправлення на вашу панель керування..."
79+
"payment_received": "Платіж отримано! Перенаправлення на вашу панель керування...",
80+
"plan": "План підписки",
81+
"monthly": "Щомісячно",
82+
"monthly_price": "$5/місяць",
83+
"monthly_description": "Щомісячний платіж, скасування в будь-який час",
84+
"yearly": "Щорічно",
85+
"yearly_price": "$30/рік",
86+
"yearly_description": "Заощадьте $30 з річним платежем",
87+
"payment_method": "Спосіб оплати",
88+
"bitcoin": "Біткоїн",
89+
"ethereum": "Ефіріум",
90+
"solana": "Солана",
91+
"usdc": "USDC",
92+
"credit_card": "Кредитна картка"
8093
},
8194
"common": {
8295
"save": "Зберегти",

public/i18n/zh.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,20 @@
7676
"copy": "复制",
7777
"copied": "已复制!",
7878
"waiting_payment": "等待支付确认...",
79-
"payment_received": "已收到付款!正在重定向到您的控制面板..."
79+
"payment_received": "已收到付款!正在重定向到您的控制面板...",
80+
"plan": "订阅计划",
81+
"monthly": "月付",
82+
"monthly_price": "$5/月",
83+
"monthly_description": "按月计费,随时可取消",
84+
"yearly": "年付",
85+
"yearly_price": "$30/年",
86+
"yearly_description": "年付节省$30",
87+
"payment_method": "支付方式",
88+
"bitcoin": "比特币",
89+
"ethereum": "以太坊",
90+
"solana": "索拉纳",
91+
"usdc": "USDC",
92+
"credit_card": "信用卡"
8093
},
8194
"common": {
8295
"save": "保存",

public/js/page-initializers.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,6 +517,35 @@ export async function initApiKeysPage() {
517517

518518
// Initialize API keys page
519519
console.log('JWT token found, initializing API keys page');
520+
521+
// Ensure the api-key-manager component is loaded
522+
try {
523+
// Import the api-key-manager component
524+
await import('./components/api-key-manager.js');
525+
console.log("API key manager component imported in page initializer");
526+
527+
// Make sure the component is defined and registered
528+
if (!customElements.get('api-key-manager')) {
529+
console.error("API key manager component not registered in page initializer");
530+
} else {
531+
console.log("API key manager component is registered in page initializer");
532+
533+
// Force re-render of the component if it exists
534+
const apiKeyManager = document.querySelector('api-key-manager');
535+
if (apiKeyManager) {
536+
console.log("Found api-key-manager element in page initializer, forcing render");
537+
// If the component has a render method, call it
538+
if (typeof apiKeyManager.render === 'function') {
539+
apiKeyManager.render();
540+
}
541+
} else {
542+
console.log("No api-key-manager element found in page initializer");
543+
// The component might not be in the DOM yet, the view-specific JS will handle this
544+
}
545+
}
546+
} catch (error) {
547+
console.error("Error loading api-key-manager component in page initializer:", error);
548+
}
520549
}
521550

522551
/**

0 commit comments

Comments
 (0)