dify/web/app/components/plugins/marketplace/standalone/server.ts
Coding On Star cb6c04637b
feat(web): add marketplace creator profiles and homepage redesign (#41538)
Co-authored-by: zxhlyh <jasonapring2015@outlook.com>
Co-authored-by: fatelei <fatelei@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: CodingOnStar <hanxujiang@dify.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: 姜涵煦 <hanxujiang@jianghanxudeMacBook-Pro-2.local>
Co-authored-by: L1nSn0w <l1nsn0w@qq.com>
Co-authored-by: yyh <92089059+lyzno1@users.noreply.github.com>
2026-09-04 08:09:45 +00:00

37 lines
1.1 KiB
TypeScript

/**
* Public server surface for the standalone Marketplace host (dify-marketplace).
* Import this module instead of treating private Marketplace paths as Knip entries.
*/
import {
adaptCreatorProfile,
CREATOR_SORT_FIELDS,
DEFAULT_CREATOR_SORT_FIELD,
DEFAULT_CREATOR_SORT_ORDER,
getStandaloneCreationHref,
parseCreatorSortField,
parseCreatorSortOrder,
sortCreatorCreations,
toPublisherSortQuery,
} from '../creator-profile/model'
import { HydrateQueryClient } from '../hydration-server'
import Marketplace from '../index'
import { prefetchMarketplaceDehydratedState } from '../prefetch-marketplace-dehydrated-state'
import { SERVER_PREFETCH_BUDGET_MS, withinServerBudget } from '../server-budget'
export const standaloneMarketplaceServer = {
Marketplace,
HydrateQueryClient,
prefetchMarketplaceDehydratedState,
SERVER_PREFETCH_BUDGET_MS,
withinServerBudget,
adaptCreatorProfile,
CREATOR_SORT_FIELDS,
DEFAULT_CREATOR_SORT_FIELD,
DEFAULT_CREATOR_SORT_ORDER,
getStandaloneCreationHref,
parseCreatorSortField,
parseCreatorSortOrder,
sortCreatorCreations,
toPublisherSortQuery,
}