diff --git a/apps/pwa/package-lock.json b/apps/pwa/package-lock.json index 94aa6a48..2934e0e6 100644 --- a/apps/pwa/package-lock.json +++ b/apps/pwa/package-lock.json @@ -11,7 +11,7 @@ "@libsql/client": "^0.14.0", "@peculiar/x509": "^1.14.3", "@profullstack/affiliates": "^0.3.0", - "@profullstack/footer": "0.2.6", + "@profullstack/footer": "latest", "@profullstack/libsql-pg": "^0.1.2", "@profullstack/notifications": "^0.1.0", "@profullstack/redeem-credits": "^0.2.0", @@ -416,9 +416,9 @@ } }, "node_modules/@profullstack/footer": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/@profullstack/footer/-/footer-0.2.6.tgz", - "integrity": "sha512-BKwbDszAc7e0mYIBiPjgr/5WS8WyDt8IW718s/zW/8pCWOIB1BGwSNs6fmImRSo5kqIjQKUVbXp22jZQ5GEipA==", + "version": "0.6.14", + "resolved": "https://registry.npmjs.org/@profullstack/footer/-/footer-0.6.14.tgz", + "integrity": "sha512-/rQG6srmCkQop7PK8Vp9go4Xq9Ha7NN7xHuSkqM9VXaADqERq6jgorFc5Ym6+ej+XmzJ85Z7gUDiNbqJVssmFQ==", "license": "MIT", "bin": { "profullstack-footer": "bin/profullstack-footer.js" diff --git a/apps/pwa/package.json b/apps/pwa/package.json index 5ee099e5..813047b1 100644 --- a/apps/pwa/package.json +++ b/apps/pwa/package.json @@ -17,7 +17,7 @@ "@libsql/client": "^0.14.0", "@peculiar/x509": "^1.14.3", "@profullstack/affiliates": "^0.3.0", - "@profullstack/footer": "0.2.6", + "@profullstack/footer": "latest", "@profullstack/libsql-pg": "^0.1.2", "@profullstack/notifications": "^0.1.0", "@profullstack/redeem-credits": "^0.2.0", diff --git a/apps/pwa/pnpm-lock.yaml b/apps/pwa/pnpm-lock.yaml index 1728d994..fd85ea58 100644 --- a/apps/pwa/pnpm-lock.yaml +++ b/apps/pwa/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: ^0.3.0 version: 0.3.0 '@profullstack/footer': - specifier: 0.2.6 - version: 0.2.6 + specifier: latest + version: 0.6.14 '@profullstack/libsql-pg': specifier: ^0.1.2 version: 0.1.2 @@ -232,8 +232,8 @@ packages: engines: {node: '>=22.13'} hasBin: true - '@profullstack/footer@0.2.6': - resolution: {integrity: sha512-BKwbDszAc7e0mYIBiPjgr/5WS8WyDt8IW718s/zW/8pCWOIB1BGwSNs6fmImRSo5kqIjQKUVbXp22jZQ5GEipA==} + '@profullstack/footer@0.6.14': + resolution: {integrity: sha512-/rQG6srmCkQop7PK8Vp9go4Xq9Ha7NN7xHuSkqM9VXaADqERq6jgorFc5Ym6+ej+XmzJ85Z7gUDiNbqJVssmFQ==} engines: {node: '>=18'} hasBin: true peerDependencies: @@ -921,7 +921,7 @@ snapshots: transitivePeerDependencies: - react - '@profullstack/footer@0.2.6': {} + '@profullstack/footer@0.6.14': {} '@profullstack/libsql-pg@0.1.2': dependencies: diff --git a/apps/pwa/src/lib/ring-footer.mjs b/apps/pwa/src/lib/ring-footer.mjs index c57fe184..06af5a4e 100644 --- a/apps/pwa/src/lib/ring-footer.mjs +++ b/apps/pwa/src/lib/ring-footer.mjs @@ -11,6 +11,8 @@ import { footerHtml, footerHtmlSync } from "@profullstack/footer"; export const RING_FOOTER_OPTIONS = { site: "https://app.moshcode.sh/", + builtIndieHref: "https://built.indie.pit.world/for?site=https://app.moshcode.sh/", + pwamartHref: "https://pwamart.com/for?site=https://app.moshcode.sh/", links: [ { label: "moshcode.sh", href: "https://moshcode.sh/" }, { label: "The pit", href: "/pit" }, diff --git a/apps/pwa/test/ring-footer.test.mjs b/apps/pwa/test/ring-footer.test.mjs index 432286b1..544f3128 100644 --- a/apps/pwa/test/ring-footer.test.mjs +++ b/apps/pwa/test/ring-footer.test.mjs @@ -11,7 +11,10 @@ test("ring footer links the Profullstack ring from app.moshcode.sh", () => { const html = ringFooter(); assert.match(html, /rssamplifier\.com\/ring\/profullstack/); assert.match(html, /from=https%3A%2F%2Fapp\.moshcode\.sh%2F/); - assert.match(html, /built\.indie\.pit\.world\/for/); + assert.match(html, /href="https:\/\/built\.indie\.pit\.world\/for\?site=https:\/\/app\.moshcode\.sh\/"/); + assert.match(html, /src="https:\/\/logicsrc\.com\/openicon\/set\/hq\/svg\/built-indie\.svg"/); + assert.match(html, /href="https:\/\/pwamart\.com\/for\?site=https:\/\/app\.moshcode\.sh\/"/); + assert.match(html, /src="https:\/\/logicsrc\.com\/openicon\/set\/hq\/svg\/pwamart\.svg"/); assert.doesNotMatch(html, /pit\.world network/); assert.equal(RING_FOOTER_OPTIONS.site, "https://app.moshcode.sh/"); });