-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore/AppStore: Remove deprecated imageSrc and make the paths relativ…
…e in logo (#8479) * Remove depreated imageSrc and make the paths relative in logo * Do logo replacement at a single place * Make logo relative at other places * Fix campfire page not working in dev environment
- Loading branch information
1 parent
543466f
commit 51695ee
Showing
103 changed files
with
210 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
import type { AppMeta } from "@calcom/types/App"; | ||
|
||
import { appStoreMetadata as rawAppStoreMetadata } from "./apps.metadata.generated"; | ||
import { getAppAssetFullPath } from "./getAppAssetFullPath"; | ||
|
||
type RawAppStoreMetaData = typeof rawAppStoreMetadata; | ||
type AppStoreMetaData = { | ||
[key in keyof RawAppStoreMetaData]: AppMeta; | ||
}; | ||
|
||
export const appStoreMetadata = {} as AppStoreMetaData; | ||
|
||
for (const [key, value] of Object.entries(rawAppStoreMetadata)) { | ||
appStoreMetadata[key as keyof typeof appStoreMetadata] = { | ||
const dirName = "dirName" in value ? value.dirName : value.slug; | ||
if (!dirName) { | ||
throw new Error(`Couldn't derive dirName for app ${key}`); | ||
} | ||
const metadata = (appStoreMetadata[key as keyof typeof appStoreMetadata] = { | ||
appData: null, | ||
dirName: "dirName" in value ? value.dirName : value.slug, | ||
dirName, | ||
__template: "", | ||
...value, | ||
} as AppStoreMetaData[keyof AppStoreMetaData]; | ||
} as AppStoreMetaData[keyof AppStoreMetaData]); | ||
metadata.logo = getAppAssetFullPath(metadata.logo, { | ||
dirName, | ||
isTemplate: metadata.isTemplate, | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
--- | ||
items: | ||
- /api/app-store/applecalendar/1.jpg | ||
- 1.jpg | ||
--- | ||
|
||
Apple calendar runs both the macOS and iOS mobile operating systems. Offering online cloud backup of calendars using Apple’s iCloud service, it can sync with Google Calendar and Microsoft Exchange Server. Users can schedule events in their day that include time, location, duration, and extra notes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
--- | ||
items: | ||
- /api/app-store/around/1.jpg | ||
- /api/app-store/around/2.jpg | ||
- /api/app-store/around/3.jpg | ||
- /api/app-store/around/4.jpg | ||
- /api/app-store/around/5.jpg | ||
- /api/app-store/around/6.jpg | ||
- /api/app-store/around/7.jpg | ||
- /api/app-store/around/8.jpg | ||
- 1.jpg | ||
- 2.jpg | ||
- 3.jpg | ||
- 4.jpg | ||
- 5.jpg | ||
- 6.jpg | ||
- 7.jpg | ||
- 8.jpg | ||
--- | ||
|
||
Discover radically unique video calls designed to help hybrid-remote teams create, collaborate and celebrate together. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
items: | ||
- /api/app-store/facetime/facetime1.png | ||
- /api/app-store/facetime/facetime2.png | ||
- facetime1.png | ||
- facetime2.png | ||
--- | ||
|
||
With FaceTime, it’s easy to stay in touch. You can make audio and video calls with up to 32 people, share your screen, enjoy films and music together, and more. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
description: Google Analytics is a web analytics service offered by Google that tracks and reports website traffic, currently as a platform inside the Google Marketing Platform brand. | ||
items: | ||
- /api/app-store/ga4/1.jpeg | ||
- /api/app-store/ga4/2.jpeg | ||
- /api/app-store/ga4/3.jpeg | ||
- /api/app-store/ga4/4.jpeg | ||
- /api/app-store/ga4/5.jpeg | ||
- 1.jpeg | ||
- 2.jpeg | ||
- 3.jpeg | ||
- 4.jpeg | ||
- 5.jpeg | ||
--- | ||
|
||
Google Analytics is a web analytics service offered by Google that tracks and reports website traffic, currently as a platform inside the Google Marketing Platform brand. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import type { App } from "@calcom/types/App"; | ||
|
||
export function getAppAssetFullPath(assetPath: string, metadata: Pick<App, "dirName" | "isTemplate">) { | ||
const appDirName = `${metadata.isTemplate ? "templates/" : ""}${metadata.dirName}`; | ||
let assetFullPath = assetPath; | ||
if (!assetPath.startsWith("/app-store/") && !/^https?/.test(assetPath)) { | ||
assetFullPath = `/app-store/${appDirName}/${assetPath}`; | ||
} | ||
return assetFullPath; | ||
} |
Oops, something went wrong.
51695ee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ui – ./apps/storybook
ui-cal.vercel.app
timelessui.com
cal-com-storybook.vercel.app
ui-git-main-cal.vercel.app
ui.cal.com
www.timelessui.com