From bce557cc2dc767628bed6aac87301a1be7c5431b Mon Sep 17 00:00:00 2001 From: rxliuli Date: Tue, 4 Nov 2025 05:03:50 +0800 Subject: init commit --- .../today/routable-today-page-intent-controller.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js (limited to 'node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js') diff --git a/node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js b/node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js new file mode 100644 index 0000000..d12e4ef --- /dev/null +++ b/node_modules/@jet-app/app-store/tmp/src/controllers/today/routable-today-page-intent-controller.js @@ -0,0 +1,21 @@ +import { withActiveIntent } from "../../foundation/dependencies/active-intent"; +import { buildTodayPageFromRequest, generateTodayPageRequest, prepareRequest as prepareTodayPageRequest, } from "../../common/today/today-controller-util"; +import { injectWebNavigation } from "../../common/web-navigation/inject-web-navigation"; +import { injectSEOData } from "../../api/models/web-renderable-page"; +export const RoutableTodayPageIntentController = { + $intentKind: "RoutableTodayPageIntent", + async perform(intent, objectGraphWithoutActiveIntent) { + return await withActiveIntent(objectGraphWithoutActiveIntent, intent, async (objectGraph) => { + var _a; + const mediaApiRequest = generateTodayPageRequest(objectGraph); + prepareTodayPageRequest(objectGraph, mediaApiRequest, true); + const page = await buildTodayPageFromRequest(objectGraph, mediaApiRequest); + if (objectGraph.client.isWeb) { + injectWebNavigation(objectGraph, page, intent.platform); + injectSEOData(page, (_a = objectGraph.seo) === null || _a === void 0 ? void 0 : _a.getSEODataForTodayPage(objectGraph, page, null)); + } + return page; + }); + }, +}; +//# sourceMappingURL=routable-today-page-intent-controller.js.map \ No newline at end of file -- cgit v1.2.3