mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-27 02:04:09 +00:00
Integrates Stripe's pricing table web component into the subscription dialog when the subscription_tiers_enabled feature flag is active. The implementation includes a new StripePricingTable component that loads Stripe's pricing table script and renders the table with proper error handling and loading states. The subscription dialog now displays the Stripe pricing table with contact us and enterprise links, using a 1100px width that balances multi-column layout with visual design. Configuration supports environment variables, remote config, and window config for the Stripe publishable key and pricing table ID. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7288-feat-add-Stripe-pricing-table-integration-for-subscription-dialog-conditional-on-featur-2c46d73d365081fa9d93c213df118996) by [Unito](https://www.unito.io)
31 lines
614 B
TypeScript
31 lines
614 B
TypeScript
/// <reference types="vite/client" />
|
|
|
|
declare module 'virtual:icons/*' {
|
|
import type { DefineComponent } from 'vue'
|
|
const component: DefineComponent
|
|
export default component
|
|
}
|
|
|
|
declare module '~icons/*' {
|
|
import type { DefineComponent } from 'vue'
|
|
const component: DefineComponent
|
|
export default component
|
|
}
|
|
|
|
declare global {
|
|
interface Window {
|
|
__COMFYUI_FRONTEND_VERSION__: string
|
|
}
|
|
|
|
interface ImportMetaEnv {
|
|
readonly VITE_STRIPE_PUBLISHABLE_KEY?: string
|
|
readonly VITE_STRIPE_PRICING_TABLE_ID?: string
|
|
}
|
|
|
|
interface ImportMeta {
|
|
readonly env: ImportMetaEnv
|
|
}
|
|
}
|
|
|
|
export {}
|