Skip to content
Merged
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
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ['https://www.creem.io/product/prod_251L781OFoY218MIE84jx1']
6 changes: 6 additions & 0 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,12 @@ Panelize は、1つのプロンプトを ChatGPT、Claude、Gemini、Grok、Deep

---

## サポート

Panelize は無料でオープンソースのプロジェクトです。お役に立ちましたら、[コーヒーをおごる ↗](https://www.creem.io/product/prod_251L781OFoY218MIE84jx1) から継続的な開発をご支援いただけます。

---

## License

MIT License。詳細は [LICENSE](LICENSE) を参照してください。
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions _locales/de/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
Expand Down
3 changes: 3 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
Expand Down
3 changes: 3 additions & 0 deletions _locales/es/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
Expand Down
3 changes: 3 additions & 0 deletions _locales/fr/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
Expand Down
3 changes: 3 additions & 0 deletions _locales/it/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
},
Expand Down
3 changes: 3 additions & 0 deletions _locales/ja/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@
"linkDownloadLatest": {
"message": "最新バージョンをダウンロード"
},
"linkSupportPanelize": {
"message": "コーヒーをおごる ↗"
},
"descAbout1": {
"message": "Panelize は、1 つの便利なサイドバーから複数の AI アシスタントに素早くアクセスできます。"
},
Expand Down
3 changes: 3 additions & 0 deletions _locales/ko/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@
"linkDownloadLatest": {
"message": "최신 버전 다운로드"
},
"linkSupportPanelize": {
"message": "커피 한 잔 사주기 ↗"
},
"descAbout1": {
"message": "Panelize 는 하나의 편리한 사이드바에서 여러 AI 어시스턴트에 빠르게 접근할 수 있습니다."
},
Expand Down
3 changes: 3 additions & 0 deletions _locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@
"linkDownloadLatest": {
"message": "Скачать последнюю версию"
},
"linkSupportPanelize": {
"message": "Угостить кофе ↗"
},
"descAbout1": {
"message": "Panelize предоставляет быстрый доступ к нескольким ИИ-помощникам в одной удобной боковой панели."
},
Expand Down
3 changes: 3 additions & 0 deletions _locales/zh_CN/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@
"linkDownloadLatest": {
"message": "下载最新版本"
},
"linkSupportPanelize": {
"message": "请作者喝杯咖啡 ↗"
},
"descAbout1": {
"message": "Panelize 让您在一个窗口中并排比较多个 AI 聊天机器人。"
},
Expand Down
3 changes: 3 additions & 0 deletions _locales/zh_TW/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@
"linkDownloadLatest": {
"message": "下載最新版本"
},
"linkSupportPanelize": {
"message": "請作者喝杯咖啡 ↗"
},
"descAbout1": {
"message": "Panelize 讓您在一個視窗中並排比較多個 AI 聊天機器人。"
},
Expand Down
22 changes: 22 additions & 0 deletions options/options.css
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
8 changes: 8 additions & 0 deletions options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,14 @@ <h2 class="section-title" data-i18n="sectionAbout">About</h2>
<p style="font-size: 12px; color: #999;" data-i18n="descAbout2">
Built with privacy-first architecture. All data stored locally.
</p>

<div class="about-links">
<a href="https://www.creem.io/product/prod_251L781OFoY218MIE84jx1"
id="support-panelize-link"
target="_blank"
rel="noopener noreferrer"
data-i18n="linkSupportPanelize">Buy me a coffee ↗</a>
</div>
</div>
</section>
</div>
Expand Down
57 changes: 57 additions & 0 deletions tests/support-link.test.js
Original file line number Diff line number Diff line change
@@ -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');
});
});
Loading