diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..416af55 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: ['https://www.creem.io/product/prod_251L781OFoY218MIE84jx1'] diff --git a/README.ja.md b/README.ja.md index c846605..38df3cc 100644 --- a/README.ja.md +++ b/README.ja.md @@ -211,6 +211,12 @@ Panelize は、1つのプロンプトを ChatGPT、Claude、Gemini、Grok、Deep --- +## サポート + +Panelize は無料でオープンソースのプロジェクトです。お役に立ちましたら、[コーヒーをおごる ↗](https://www.creem.io/product/prod_251L781OFoY218MIE84jx1) から継続的な開発をご支援いただけます。 + +--- + ## License MIT License。詳細は [LICENSE](LICENSE) を参照してください。 diff --git a/README.md b/README.md index 5526af5..855ae78 100644 --- a/README.md +++ b/README.md @@ -264,6 +264,12 @@ Found a bug? Have an idea? Contributions are welcome: --- +## Support + +Panelize is free and open source. If it saves you time, you can [buy me a coffee ↗](https://www.creem.io/product/prod_251L781OFoY218MIE84jx1) to support ongoing development. + +--- + ## License MIT License — see [LICENSE](LICENSE) for details. diff --git a/_locales/de/messages.json b/_locales/de/messages.json index a956a3e..64b415e 100644 --- a/_locales/de/messages.json +++ b/_locales/de/messages.json @@ -275,6 +275,9 @@ "linkDownloadLatest": { "message": "Neueste Version herunterladen" }, + "linkSupportPanelize": { + "message": "Einen Kaffee ausgeben ↗" + }, "descAbout1": { "message": "Panelize bietet schnellen Zugriff auf mehrere KI-Assistenten in einer praktischen Seitenleiste." }, diff --git a/_locales/en/messages.json b/_locales/en/messages.json index b72e287..674a3fb 100644 --- a/_locales/en/messages.json +++ b/_locales/en/messages.json @@ -329,6 +329,9 @@ "linkDownloadLatest": { "message": "Download Latest Version" }, + "linkSupportPanelize": { + "message": "Buy me a coffee ↗" + }, "descAbout1": { "message": "Panelize lets you compare multiple AI chatbots side-by-side in one window." }, diff --git a/_locales/es/messages.json b/_locales/es/messages.json index 760ef62..50eb01f 100644 --- a/_locales/es/messages.json +++ b/_locales/es/messages.json @@ -275,6 +275,9 @@ "linkDownloadLatest": { "message": "Descargar Última Versión" }, + "linkSupportPanelize": { + "message": "Invítame a un café ↗" + }, "descAbout1": { "message": "Panelize proporciona acceso rápido a múltiples asistentes de IA en una conveniente barra lateral." }, diff --git a/_locales/fr/messages.json b/_locales/fr/messages.json index d6c0613..bf5ccd8 100644 --- a/_locales/fr/messages.json +++ b/_locales/fr/messages.json @@ -275,6 +275,9 @@ "linkDownloadLatest": { "message": "Télécharger la dernière version" }, + "linkSupportPanelize": { + "message": "M'offrir un café ↗" + }, "descAbout1": { "message": "Panelize offre un accès rapide à plusieurs assistants IA dans une seule barre latérale pratique." }, diff --git a/_locales/it/messages.json b/_locales/it/messages.json index b3cde5d..3cf9720 100644 --- a/_locales/it/messages.json +++ b/_locales/it/messages.json @@ -275,6 +275,9 @@ "linkDownloadLatest": { "message": "Scarica ultima versione" }, + "linkSupportPanelize": { + "message": "Offrimi un caffè ↗" + }, "descAbout1": { "message": "Panelize fornisce accesso rapido a più assistenti IA in una comoda barra laterale." }, diff --git a/_locales/ja/messages.json b/_locales/ja/messages.json index e76ff09..313d688 100644 --- a/_locales/ja/messages.json +++ b/_locales/ja/messages.json @@ -275,6 +275,9 @@ "linkDownloadLatest": { "message": "最新バージョンをダウンロード" }, + "linkSupportPanelize": { + "message": "コーヒーをおごる ↗" + }, "descAbout1": { "message": "Panelize は、1 つの便利なサイドバーから複数の AI アシスタントに素早くアクセスできます。" }, diff --git a/_locales/ko/messages.json b/_locales/ko/messages.json index 889bc74..a077620 100644 --- a/_locales/ko/messages.json +++ b/_locales/ko/messages.json @@ -275,6 +275,9 @@ "linkDownloadLatest": { "message": "최신 버전 다운로드" }, + "linkSupportPanelize": { + "message": "커피 한 잔 사주기 ↗" + }, "descAbout1": { "message": "Panelize 는 하나의 편리한 사이드바에서 여러 AI 어시스턴트에 빠르게 접근할 수 있습니다." }, diff --git a/_locales/ru/messages.json b/_locales/ru/messages.json index 3e2d4a9..9092910 100644 --- a/_locales/ru/messages.json +++ b/_locales/ru/messages.json @@ -275,6 +275,9 @@ "linkDownloadLatest": { "message": "Скачать последнюю версию" }, + "linkSupportPanelize": { + "message": "Угостить кофе ↗" + }, "descAbout1": { "message": "Panelize предоставляет быстрый доступ к нескольким ИИ-помощникам в одной удобной боковой панели." }, diff --git a/_locales/zh_CN/messages.json b/_locales/zh_CN/messages.json index 7c9a3bb..40af199 100644 --- a/_locales/zh_CN/messages.json +++ b/_locales/zh_CN/messages.json @@ -275,6 +275,9 @@ "linkDownloadLatest": { "message": "下载最新版本" }, + "linkSupportPanelize": { + "message": "请作者喝杯咖啡 ↗" + }, "descAbout1": { "message": "Panelize 让您在一个窗口中并排比较多个 AI 聊天机器人。" }, diff --git a/_locales/zh_TW/messages.json b/_locales/zh_TW/messages.json index 5ff34eb..3e0aa9e 100644 --- a/_locales/zh_TW/messages.json +++ b/_locales/zh_TW/messages.json @@ -275,6 +275,9 @@ "linkDownloadLatest": { "message": "下載最新版本" }, + "linkSupportPanelize": { + "message": "請作者喝杯咖啡 ↗" + }, "descAbout1": { "message": "Panelize 讓您在一個視窗中並排比較多個 AI 聊天機器人。" }, diff --git a/options/options.css b/options/options.css index 3432419..968bc36 100644 --- a/options/options.css +++ b/options/options.css @@ -1350,6 +1350,12 @@ select:focus { text-decoration: underline; } +.about-links a:focus-visible { + outline: 2px solid #1a73e8; + outline-offset: 2px; + border-radius: 3px; +} + /* Dark Theme - both system preference and explicit theme setting */ @media (prefers-color-scheme: dark), [data-theme="dark"] body { @@ -1693,6 +1699,14 @@ select:focus { color: #90caf9; } +[data-theme="dark"] .about-links a { + color: #90caf9; +} + +[data-theme="dark"] .about-links a:focus-visible { + outline-color: #90caf9; +} + [data-theme="dark"] .update-status.update-available { background: #1a237e; border-color: #3f51b5; @@ -1852,6 +1866,14 @@ select:focus { color: #90caf9; } + .about-links a { + color: #90caf9; + } + + .about-links a:focus-visible { + outline-color: #90caf9; + } + .update-status.update-available { background: #1a237e; border-color: #3f51b5; diff --git a/options/options.html b/options/options.html index f34553a..ca8ffe8 100644 --- a/options/options.html +++ b/options/options.html @@ -576,6 +576,14 @@

About

Built with privacy-first architecture. All data stored locally.

+ + diff --git a/tests/support-link.test.js b/tests/support-link.test.js new file mode 100644 index 0000000..6080ed7 --- /dev/null +++ b/tests/support-link.test.js @@ -0,0 +1,57 @@ +import { readFileSync, readdirSync } from 'node:fs'; +import { resolve } from 'node:path'; +import { describe, expect, it } from 'vitest'; + +const ROOT = process.cwd(); +const CREEM_URL = 'https://www.creem.io/product/prod_251L781OFoY218MIE84jx1'; +const LOCALES_DIR = resolve(ROOT, '_locales'); +const LOCALES = readdirSync(LOCALES_DIR).sort(); + +describe('Creem support link integration', () => { + it('configures .github/FUNDING.yml with the Creem checkout URL', () => { + const fundingYml = readFileSync(resolve(ROOT, '.github/FUNDING.yml'), 'utf8'); + expect(fundingYml.trim()).toBe(`custom: ['${CREEM_URL}']`); + }); + + it('defines non-empty linkSupportPanelize translations across all 10 locales', () => { + expect(LOCALES).toEqual(['de', 'en', 'es', 'fr', 'it', 'ja', 'ko', 'ru', 'zh_CN', 'zh_TW']); + for (const locale of LOCALES) { + const messages = JSON.parse(readFileSync(resolve(LOCALES_DIR, locale, 'messages.json'), 'utf8')); + const message = messages.linkSupportPanelize?.message?.trim(); + expect(message, `${locale}.linkSupportPanelize`).toBeTruthy(); + expect(message, `${locale}.linkSupportPanelize`).toContain('↗'); + } + }); + + it('places the support link in options.html inside .about-links outside .version-download', () => { + const html = readFileSync(resolve(ROOT, 'options/options.html'), 'utf8'); + const doc = new DOMParser().parseFromString(html, 'text/html'); + const aboutInfo = doc.querySelector('.about-info'); + expect(aboutInfo).not.toBeNull(); + + const link = aboutInfo.querySelector('.about-links a#support-panelize-link'); + expect(link).not.toBeNull(); + expect(link.getAttribute('href')).toBe(CREEM_URL); + expect(link.getAttribute('target')).toBe('_blank'); + expect(link.getAttribute('rel')).toBe('noopener noreferrer'); + expect(link.getAttribute('data-i18n')).toBe('linkSupportPanelize'); + expect(link.closest('.version-download')).toBeNull(); + expect(link.querySelector('.material-symbols-outlined')).toBeNull(); + }); + + it('includes dark-theme styling for .about-links a in options.css', () => { + const css = readFileSync(resolve(ROOT, 'options/options.css'), 'utf8'); + expect(css).toMatch(/\[data-theme="dark"\]\s+\.about-links\s+a\s*\{[^}]*color:\s*#90caf9/i); + }); + + it('adds the support link to README.md and README.ja.md while keeping README.zh-CN.md clean', () => { + const readmeEn = readFileSync(resolve(ROOT, 'README.md'), 'utf8'); + const readmeJa = readFileSync(resolve(ROOT, 'README.ja.md'), 'utf8'); + const readmeZh = readFileSync(resolve(ROOT, 'README.zh-CN.md'), 'utf8'); + + expect(readmeEn).toContain(CREEM_URL); + expect(readmeJa).toContain(CREEM_URL); + expect(readmeZh).not.toContain(CREEM_URL); + expect(readmeZh).not.toContain('creem.io'); + }); +});