-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #423 from xylabs/feature/puppeteer-performance
Dynamic Share Error Responses
- Loading branch information
Showing
33 changed files
with
228 additions
and
271 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
2 changes: 1 addition & 1 deletion
2
src/modules/metaServer/contentHandlers/dynamicShare/lib/image/getImageMeta.ts
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
52 changes: 0 additions & 52 deletions
52
src/modules/metaServer/contentHandlers/dynamicShare/lib/image/getPreviewUrlFromPage.ts
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/modules/metaServer/contentHandlers/dynamicShare/lib/image/index.ts
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 +1 @@ | ||
export * from './getImageMeta.js' | ||
export * from './getImageMeta.ts' |
22 changes: 0 additions & 22 deletions
22
...ontentHandlers/dynamicShare/lib/pageStrategies/getRenderedPageHtml/getRenderedPageHtml.ts
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...entHandlers/dynamicShare/lib/pageStrategies/getRenderedPageHtml/getRenderedSpaPageHtml.ts
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...s/metaServer/contentHandlers/dynamicShare/lib/pageStrategies/getRenderedPageHtml/index.ts
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...s/dynamicShare/lib/pageStrategies/getRenderedPageHtml/spec/getRenderedSpaPageHtml.spec.ts
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
src/modules/metaServer/contentHandlers/dynamicShare/lib/pageStrategies/index.ts
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,2 +1 @@ | ||
export * from './getRenderedPageHtml/index.js' | ||
export * from './useIndexAndDeferredPreviewImage/index.ts' | ||
export * from './useIndexAndDynamicPreviewImage/index.ts' |
17 changes: 0 additions & 17 deletions
17
...hare/lib/pageStrategies/useIndexAndDeferredPreviewImage/useIndexAndDynamicPreviewImage.ts
This file was deleted.
Oops, something went wrong.
File renamed without changes.
11 changes: 11 additions & 0 deletions
11
...Share/lib/pageStrategies/useIndexAndDynamicPreviewImage/useIndexAndDynamicPreviewImage.ts
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,11 @@ | ||
import { metaBuilder } from '@xyo-network/sdk-meta' | ||
|
||
import { getImageMeta } from '../../image/index.ts' | ||
|
||
export const useIndexAndDynamicPreviewImage = async (url: string, indexHtml: string): Promise<string> => { | ||
console.log(`[dynamicShare][useIndexAndDynamicPreviewImage][${url}]: generating preview image meta`) | ||
const meta = await getImageMeta(url) | ||
const updatedHtml = metaBuilder(indexHtml, meta) | ||
console.log(`[dynamicShare][useIndexAndDynamicPreviewImage][${url}]: returning index.html & preview image meta`) | ||
return updatedHtml | ||
} |
22 changes: 0 additions & 22 deletions
22
...r/contentHandlers/liveShare/lib/pageStrategies/getRenderedPageHtml/getRenderedPageHtml.ts
This file was deleted.
Oops, something went wrong.
22 changes: 0 additions & 22 deletions
22
...ontentHandlers/liveShare/lib/pageStrategies/getRenderedPageHtml/getRenderedSpaPageHtml.ts
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...ules/metaServer/contentHandlers/liveShare/lib/pageStrategies/getRenderedPageHtml/index.ts
This file was deleted.
Oops, something went wrong.
10 changes: 0 additions & 10 deletions
10
...lers/liveShare/lib/pageStrategies/getRenderedPageHtml/spec/getRenderedSpaPageHtml.spec.ts
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
...erver/contentHandlers/liveShare/lib/pageStrategies/getRenderedPageHtml/spec/tsconfig.json
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
src/modules/metaServer/contentHandlers/liveShare/lib/pageStrategies/index.ts
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,2 +1 @@ | ||
export * from './getRenderedPageHtml/index.js' | ||
export * from './useIndexAndDeferredPreviewImage/index.js' | ||
export * from './useIndexAndDeferredPreviewImage/index.ts' |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export type ScopedLogFunction = (message: string, scopes: string[]) => void |
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,2 @@ | ||
export * from './ScopedLogFunction.ts' | ||
export * from './scopedLoggers.ts' |
Oops, something went wrong.