From 49e3a5f8adfbb33300e3f178e6e22052833f87e1 Mon Sep 17 00:00:00 2001 From: Sasi Date: Sun, 8 Oct 2023 11:31:31 +0530 Subject: [PATCH] chore: rename lenstube to tape (#29) * chore: rename lenstube to tape * update next.config.js * update next.config.js * fix: tests * test: update publications.spec.ts * update next.config.js * update next.config.js --------- Co-authored-by: sasi.eth --- e2e/profiles.spec.ts | 4 ++-- e2e/publications.spec.ts | 6 +++--- manifests/lenstube.json | 20 -------------------- manifests/tape.json | 20 ++++++++++++++++++++ next.config.js | 24 ++++++++++++++++++++++++ 5 files changed, 49 insertions(+), 25 deletions(-) delete mode 100644 manifests/lenstube.json create mode 100644 manifests/tape.json diff --git a/e2e/profiles.spec.ts b/e2e/profiles.spec.ts index 78030f7..7a309e1 100644 --- a/e2e/profiles.spec.ts +++ b/e2e/profiles.spec.ts @@ -15,9 +15,9 @@ test.describe("Given a Profile link", async () => { "Hey", "LensFrens", "Lensta", - "Lenstube", "Riff", "Soclly", + "Tape" ]); }); }); @@ -90,9 +90,9 @@ test.describe("Given a Profile link with `by` attribution param", async () => { "Collectz", "LensFrens", "Lensta", - "Lenstube", "Riff", "Soclly", + "Tape", ]); }); }); diff --git a/e2e/publications.spec.ts b/e2e/publications.spec.ts index 35aea4c..70d0236 100644 --- a/e2e/publications.spec.ts +++ b/e2e/publications.spec.ts @@ -122,8 +122,8 @@ test.describe("Given a Video Publication link", async () => { "Buttrfly", "Collectz", "Hey", - "Lenstube", "Soclly", + "Tape", ]); }); }); @@ -132,10 +132,10 @@ test.describe("Given a Video Publication link", async () => { test.describe("Given a Publication link with `by` attribution param", async () => { test.describe("When opening it", async () => { test("Then it should show the specified app first", async ({ videoPost }) => { - await videoPost.openAsSharedBy("lenstube"); + await videoPost.openAsSharedBy("tape"); await expect(videoPost.options).toHaveText([ - "Lenstube", + "Tape", "Buttrfly", "Collectz", "Hey", diff --git a/manifests/lenstube.json b/manifests/lenstube.json deleted file mode 100644 index 726a16e..0000000 --- a/manifests/lenstube.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "appId": "lenstube", - "name": "Lenstube", - "description": "Lenstube is a decentralized video-sharing social media platform built with Lens protocol.", - "platform": "web", - "icon": { - "url": "https://static.lenstube.xyz/images/brand/lenstube.svg", - "background": "#15192c" - }, - "routes": { - "home": "https://lenstube.xyz/", - "profile": { - "url": "https://lenstube.xyz/channel/:handle" - }, - "publication": { - "url": "https://lenstube.xyz/watch/:id", - "supports": ["VIDEO"] - } - } -} diff --git a/manifests/tape.json b/manifests/tape.json new file mode 100644 index 0000000..d565140 --- /dev/null +++ b/manifests/tape.json @@ -0,0 +1,20 @@ +{ + "appId": "tape", + "name": "Tape", + "description": "Talk, Amplify, Post, Explore.", + "platform": "web", + "icon": { + "url": "https://static.tape.xyz/brand/logo.svg", + "background": "#15192c" + }, + "routes": { + "home": "https://tape.xyz/", + "profile": { + "url": "https://tape.xyz/channel/:handle" + }, + "publication": { + "url": "https://tape.xyz/watch/:id", + "supports": ["VIDEO"] + } + } +} diff --git a/next.config.js b/next.config.js index 627f2ee..ab96396 100644 --- a/next.config.js +++ b/next.config.js @@ -29,6 +29,30 @@ const nextConfig = { destination: "/u/:handle?by=Hey", permanent: false, }, + { + source: "/p/:id", + has: [ + { + type: "query", + key: "by", + value: "lenstube", + }, + ], + destination: "/p/:id?by=tape", + permanent: false, + }, + { + source: "/u/:handle", + has: [ + { + type: "query", + key: "by", + value: "lenstube", + }, + ], + destination: "/u/:handle?by=tape", + permanent: false, + }, ]; }, };