Compare commits

..
12 changed files with 20 additions and 317 deletions

No files matched your search

+6
View File
@@ -1,5 +1,11 @@
# Changelog
## [9.11.3] - 2026-04-12
### Fixed
- App publish dialog now appears on mobile devices
- Changelog available offline via ServiceWorker precache
## [9.11.2] - 2026-04-06
### Fixed
-25
View File
@@ -5001,7 +5001,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5015,7 +5014,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5029,7 +5027,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5043,7 +5040,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5057,7 +5053,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5071,7 +5066,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5085,7 +5079,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5099,7 +5092,6 @@
"cpu": [
"arm"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5113,7 +5105,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5127,7 +5118,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5141,7 +5131,6 @@
"cpu": [
"loong64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5155,7 +5144,6 @@
"cpu": [
"loong64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5169,7 +5157,6 @@
"cpu": [
"ppc64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5183,7 +5170,6 @@
"cpu": [
"ppc64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5197,7 +5183,6 @@
"cpu": [
"riscv64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5211,7 +5196,6 @@
"cpu": [
"riscv64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5225,7 +5209,6 @@
"cpu": [
"s390x"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5239,7 +5222,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5253,7 +5235,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5267,7 +5248,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5281,7 +5261,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5295,7 +5274,6 @@
"cpu": [
"arm64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5309,7 +5287,6 @@
"cpu": [
"ia32"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5323,7 +5300,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
@@ -5337,7 +5313,6 @@
"cpu": [
"x64"
],
"dev": true,
"license": "MIT",
"optional": true,
"os": [
+1 -1
View File
@@ -3,7 +3,7 @@
"description": "Build custom apps with AI assistance using Shakespeare, an open-source development environment",
"homepage": "https://shakespeare.diy",
"license": "AGPL-3.0-or-later",
"version": "9.11.2",
"version": "9.11.3",
"type": "module",
"author": {
"name": "shakespeare.diy",
+6
View File
@@ -1,5 +1,11 @@
# Changelog
## [9.11.3] - 2026-04-12
### Fixed
- App publish dialog now appears on mobile devices
- Changelog available offline via ServiceWorker precache
## [9.11.2] - 2026-04-06
### Fixed
-236
View File
@@ -895,231 +895,6 @@ export function AIProviderConfigDialog({
}
};
const escapeHtml = (str: string): string =>
str.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;');
const handlePrintReceipt = (payment: Payment) => {
const receiptDate = new Date((payment.completed_at ?? payment.created_at) * 1000);
const formattedDate = new Intl.DateTimeFormat('en-US', {
year: 'numeric',
month: 'long',
day: 'numeric',
}).format(receiptDate);
const formattedTime = new Intl.DateTimeFormat('en-US', {
hour: '2-digit',
minute: '2-digit',
}).format(receiptDate);
const paymentMethodDisplay = payment.method === 'stripe' ? t('creditCard') : t('lightning');
const statusDisplay = payment.status.charAt(0).toUpperCase() + payment.status.slice(1);
const printWindow = window.open('', '_blank');
if (!printWindow) {
toast({
title: t('printFailed'),
description: t('failedToOpenPrintWindow'),
variant: 'destructive',
});
return;
}
const printHTML = `
<!DOCTYPE html>
<html>
<head>
<title>${t('receipt')} - ${escapeHtml(payment.id)}</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
padding: 40px 20px;
background: white;
color: #000;
}
.receipt {
max-width: 600px;
margin: 0 auto;
border: 1px solid #e0e0e0;
padding: 48px 40px;
}
.header {
text-align: center;
padding-bottom: 28px;
border-bottom: 2px solid #000;
margin-bottom: 28px;
}
.company-name {
font-size: 20px;
font-weight: 700;
letter-spacing: 0.5px;
margin-bottom: 6px;
}
.company-detail {
font-size: 13px;
color: #555;
line-height: 1.6;
}
.company-detail a {
color: #555;
text-decoration: none;
}
.receipt-title {
text-align: center;
font-size: 14px;
font-weight: 600;
letter-spacing: 2px;
text-transform: uppercase;
color: #333;
margin-bottom: 28px;
}
.details-grid {
display: grid;
grid-template-columns: 140px 1fr;
gap: 8px 16px;
margin-bottom: 28px;
font-size: 14px;
}
.details-grid dt {
color: #666;
font-weight: 500;
}
.details-grid dd {
color: #000;
}
.divider {
border: none;
border-top: 1px solid #e0e0e0;
margin: 0 0 28px 0;
}
.line-items {
margin-bottom: 28px;
}
.line-item {
display: flex;
justify-content: space-between;
padding: 6px 0;
font-size: 14px;
}
.line-item-label {
color: #333;
}
.line-item-value {
font-variant-numeric: tabular-nums;
}
.line-item-total {
border-top: 1px solid #000;
margin-top: 8px;
padding-top: 10px;
font-weight: 700;
font-size: 15px;
}
.footer {
text-align: center;
padding-top: 28px;
border-top: 1px solid #e0e0e0;
}
.footer p {
font-size: 13px;
color: #666;
line-height: 1.6;
}
@media print {
body {
padding: 0;
}
.receipt {
border: none;
padding: 0;
max-width: 100%;
}
}
</style>
</head>
<body>
<div class="receipt">
<div class="header">
<div class="company-name">Soapbox Technology, LLC</div>
<div class="company-detail">
<a href="https://soapbox.pub">soapbox.pub</a><br />
[email protected]
</div>
</div>
<div class="receipt-title">${t('receipt')}</div>
<dl class="details-grid">
<dt>${t('receiptNumber')}</dt>
<dd>${escapeHtml(payment.id)}</dd>
<dt>${t('date')}</dt>
<dd>${formattedDate} ${formattedTime}</dd>
<dt>${t('status')}</dt>
<dd>${escapeHtml(statusDisplay)}</dd>
<dt>${t('paymentMethodLabel')}</dt>
<dd>${paymentMethodDisplay}</dd>
${payment.description ? `<dt>${t('description')}</dt><dd>${escapeHtml(payment.description)}</dd>` : ''}
</dl>
<hr class="divider" />
<div class="line-items">
<div class="line-item">
<span class="line-item-label">${t('credits')}</span>
<span class="line-item-value">${formatCurrency(payment.amount)}</span>
</div>
${payment.fee > 0 ? `
<div class="line-item">
<span class="line-item-label">${t('processingFee')}</span>
<span class="line-item-value">${formatCurrency(payment.fee)}</span>
</div>
` : ''}
<div class="line-item line-item-total">
<span class="line-item-label">${t('totalCharged')}</span>
<span class="line-item-value">${formatCurrency(payment.total)}</span>
</div>
</div>
<div class="footer">
<p>${t('thankYouForPurchase')}</p>
</div>
</div>
</body>
</html>
`;
printWindow.document.write(printHTML);
printWindow.document.close();
printWindow.onload = () => {
setTimeout(() => {
printWindow.print();
}, 250);
};
};
const handleDownloadCSV = () => {
if (!giftcards || giftcards.length === 0) return;
@@ -1532,17 +1307,6 @@ export function AIProviderConfigDialog({
)}
</div>
)}
{payment.status === 'completed' && (
<Button
variant="ghost"
size="sm"
onClick={() => handlePrintReceipt(payment)}
className="h-6 px-2 text-xs"
>
<Printer className="h-3 w-3 mr-1" />
{t('printReceipt')}
</Button>
)}
</div>
</div>
))}
+1 -9
View File
@@ -573,13 +573,5 @@
"failedToDuplicateProject": "Failed to duplicate project",
"newProjectName": "New Project Name",
"duplicateProjectDescription": "Create a copy of this project with a new name",
"resume": "Resume",
"printReceipt": "Print Receipt",
"receipt": "Receipt",
"receiptNumber": "Receipt #",
"date": "Date",
"status": "Status",
"paymentMethodLabel": "Payment Method",
"totalCharged": "Total Charged",
"thankYouForPurchase": "Thank you for your purchase!"
"resume": "Resume"
}
+1 -9
View File
@@ -487,13 +487,5 @@
"failedToDuplicateProject": "An kasa kwafin aikin",
"newProjectName": "Sunan Sabon Aikin",
"duplicateProjectDescription": "Ƙirƙiri kwafin wannan aikin da sabon suna",
"resume": "Ci gaba",
"printReceipt": "Buga Rasidi",
"receipt": "Rasidi",
"receiptNumber": "Rasidi #",
"date": "Kwanan wata",
"status": "Matsayi",
"paymentMethodLabel": "Hanyar Biyan Kuɗi",
"totalCharged": "Jimlar da aka Caji",
"thankYouForPurchase": "Mun gode da sayan ku!"
"resume": "Ci gaba"
}
+1 -9
View File
@@ -484,13 +484,5 @@
"failedToDuplicateProject": "Ọ dara ada imepụta ọrụ",
"newProjectName": "Aha Ọrụ Ọhụrụ",
"duplicateProjectDescription": "Mepụta oyiri nke ọrụ a na aha ọhụrụ",
"resume": "Gaa n'ihu",
"printReceipt": "Bipụta Risịịtị",
"receipt": "Risịịtị",
"receiptNumber": "Risịịtị #",
"date": "Ụbọchị",
"status": "Ọnọdụ",
"paymentMethodLabel": "Ụzọ Ịkwụ Ụgwọ",
"totalCharged": "Nchịkọta Ego a Gbara",
"thankYouForPurchase": "Daalụ maka ịzụta gị!"
"resume": "Gaa n'ihu"
}
+1 -9
View File
@@ -496,13 +496,5 @@
"failedToDuplicateProject": "Falha ao duplicar projeto",
"newProjectName": "Nome do Novo Projeto",
"duplicateProjectDescription": "Criar uma cópia deste projeto com um novo nome",
"resume": "Retomar",
"printReceipt": "Imprimir Recibo",
"receipt": "Recibo",
"receiptNumber": "Recibo Nº",
"date": "Data",
"status": "Status",
"paymentMethodLabel": "Método de Pagamento",
"totalCharged": "Total Cobrado",
"thankYouForPurchase": "Obrigado pela sua compra!"
"resume": "Retomar"
}
+1 -9
View File
@@ -484,13 +484,5 @@
"failedToDuplicateProject": "O kuna lati ṣe ẹda iṣẹ akanṣe",
"newProjectName": "Orukọ Iṣẹ Akanṣe Tuntun",
"duplicateProjectDescription": "Ṣẹda ẹda ti iṣẹ akanṣe yii pẹlu orukọ tuntun",
"resume": "Tẹsiwaju",
"printReceipt": "Tẹ Ìwé Ẹ̀rí",
"receipt": "Ìwé Ẹ̀rí",
"receiptNumber": "Ìwé Ẹ̀rí #",
"date": "Ọjọ́",
"status": "Ipò",
"paymentMethodLabel": "Ọ̀nà Ìsanwó",
"totalCharged": "Àpapọ̀ tí a gba",
"thankYouForPurchase": "A dúpẹ́ fún rírà rẹ!"
"resume": "Tẹsiwaju"
}
+1 -9
View File
@@ -496,13 +496,5 @@
"failedToDuplicateProject": "复制项目失败",
"newProjectName": "新项目名称",
"duplicateProjectDescription": "使用新名称创建此项目的副本",
"resume": "继续",
"printReceipt": "打印收据",
"receipt": "收据",
"receiptNumber": "收据编号",
"date": "日期",
"status": "状态",
"paymentMethodLabel": "支付方式",
"totalCharged": "总收费",
"thankYouForPurchase": "感谢您的购买!"
"resume": "继续"
}
+1 -1
View File
@@ -44,7 +44,7 @@ export default defineConfig(() => ({
plugins: [
react(),
VitePWA({
includeAssets: ['shakespeare.svg', 'shakespeare-192x192.png', 'shakespeare-512x512.png', 'sine.mp3'],
includeAssets: ['shakespeare.svg', 'shakespeare-192x192.png', 'shakespeare-512x512.png', 'sine.mp3', 'CHANGELOG.md'],
manifest: false, // Use existing manifest.webmanifest from public folder
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,woff2,wasm,mp3}'],