init commit

This commit is contained in:
rxliuli
2025-11-04 05:03:50 +08:00
commit bce557cc2d
1396 changed files with 172991 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
import type { FooterItem } from '@amp/web-app-components/src/components/Footer/types';
export const items: FooterItem[] = [
{
id: 'terms-of-use',
url: 'AMP.Shared.Footer.TermsOfUse.URL',
locKey: 'AMP.Shared.Footer.TermsOfUse.Text',
},
{
id: 'privacy-policy',
url: 'ASE.Web.AppStore.Shared.Footer.PrivacyPolicy.URL',
locKey: 'ASE.Web.AppStore.Shared.Footer.PrivacyPolicy.Text',
},
{
id: 'cookie-policy',
url: 'AMP.Shared.Footer.CookiePolicy.URL',
locKey: 'AMP.Shared.Footer.CookiePolicy.Text',
},
{
id: 'get-help',
url: 'ASE.Web.AppStore.Shared.Footer.GetHelp.URL',
locKey: 'ASE.Web.AppStore.Shared.Footer.GetHelp.Text',
},
];

View File

@@ -0,0 +1,18 @@
type ValueOf<T> = T[keyof T];
export const MetricsActionType = {
PLAY: 'play',
STOP: 'stop',
} as const;
export type MetricsActionTypeItem = ValueOf<typeof MetricsActionType>;
export const MetricsActionDetails = {
AUTOPLAY: 'autoplay',
AUTOPAUSE: 'autopause',
PLAY: 'play',
COMPLETE: 'complete',
PAUSE: 'pause',
} as const;
export type MetricsActionDetailItem = ValueOf<typeof MetricsActionDetails>;

View File

@@ -0,0 +1,60 @@
import type {
NormalizedLanguage,
NormalizedStorefront,
} from '@jet-app/app-store/api/locale';
export const DEFAULT_STOREFRONT_CODE = 'us' as NormalizedStorefront;
export const DEFAULT_LANGUAGE_BCP47 = 'en-US' as NormalizedLanguage;
export const EU_STOREFRONTS = [
'at',
'be',
'bg',
'cy',
'cz',
'dk',
'ee',
'fi',
'fr',
'de',
'gr',
'hr',
'hu',
'ie',
'it',
'lv',
'lt',
'lu',
'mt',
'nl',
'pl',
'pt',
'ro',
'sk',
'si',
'es',
'se',
'uk',
];
export const SUPPORTED_STOREFRONTS_FOR_VISION = new Set<NormalizedStorefront>([
'us',
'cn',
'hk',
'jp',
'sg',
'au',
'ca',
'fr',
'de',
'gb',
'kr',
'ae',
'tw',
] as NormalizedStorefront[]);
export const UNSUPPORTED_STOREFRONTS_FOR_ARCADE = new Set([
'cn',
'hk',
'mo',
] as NormalizedStorefront[]);