This commit is contained in:
2026-02-16 19:34:35 +00:00
commit 9ab0940ca4
784 changed files with 41710 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
{
"name": "definitions",
"main": "./src/index.ts",
"type": "module",
"types": "./src/definitions.d.ts",
"exports": {
".": "./src/index.ts",
"./*": "./src/*.ts"
},
"version": "1.0.0",
"license": "MIT"
}
@@ -0,0 +1,428 @@
[
"alignContent",
"alignItems",
"alignmentBaseline",
"alignSelf",
"all",
"animation",
"animationDelay",
"animationDirection",
"animationDuration",
"animationFillMode",
"animationIterationCount",
"animationName",
"animationPlayState",
"animationTimingFunction",
"appearance",
"azimuth",
"backfaceVisibility",
"background",
"backgroundAttachment",
"backgroundBlendMode",
"backgroundClip",
"backgroundColor",
"backgroundImage",
"backgroundOrigin",
"backgroundPosition",
"backgroundRepeat",
"backgroundSize",
"baselineShift",
"blockStep",
"blockStepAlign",
"blockStepInsert",
"blockStepRound",
"blockStepSize",
"bookmarkLabel",
"bookmarkLevel",
"bookmarkState",
"border",
"borderBottom",
"borderBottomColor",
"borderBottomLeftRadius",
"borderBottomRightRadius",
"borderBottomStyle",
"borderBottomWidth",
"borderBoundary",
"borderCollapse",
"borderColor",
"borderImage",
"borderImageOutset",
"borderImageRepeat",
"borderImageSlice",
"borderImageSource",
"borderImageWidth",
"borderLeft",
"borderLeftColor",
"borderLeftStyle",
"borderLeftWidth",
"borderRadius",
"borderRight",
"borderRightColor",
"borderRightStyle",
"borderRightWidth",
"borderSpacing",
"borderStyle",
"borderTop",
"borderTopColor",
"borderTopLeftRadius",
"borderTopRightRadius",
"borderTopStyle",
"borderTopWidth",
"borderWidth",
"bottom",
"boxDecorationBreak",
"boxShadow",
"boxSizing",
"boxSnap",
"breakAfter",
"breakBefore",
"breakInside",
"captionSide",
"caret",
"caretAnimation",
"caretColor",
"caretShape",
"chains",
"clear",
"clip",
"clipPath",
"clipRule",
"color",
"colorAdjust",
"colorInterpolationFilters",
"columnCount",
"columnFill",
"columnGap",
"columnRule",
"columnRuleColor",
"columnRuleStyle",
"columnRuleWidth",
"columns",
"columnSpan",
"columnWidth",
"contain",
"content",
"continue",
"counterIncrement",
"counterReset",
"counterSet",
"cue",
"cueAfter",
"cueBefore",
"cursor",
"direction",
"display",
"dominantBaseline",
"elevation",
"emptyCells",
"filter",
"flex",
"flexBasis",
"flexDirection",
"flexFlow",
"flexGrow",
"flexShrink",
"flexWrap",
"float",
"floatDefer",
"floatOffset",
"floatReference",
"floodColor",
"floodOpacity",
"flow",
"flowFrom",
"flowInto",
"font",
"fontFamily",
"fontFeatureSettings",
"fontKerning",
"fontLanguageOverride",
"fontSize",
"fontSizeAdjust",
"fontStretch",
"fontStyle",
"fontSynthesis",
"fontVariant",
"fontVariantAlternates",
"fontVariantCaps",
"fontVariantEastAsian",
"fontVariantLigatures",
"fontVariantNumeric",
"fontVariantPosition",
"fontWeight",
"footnoteDisplay",
"footnotePolicy",
"glyphOrientationVertical",
"grid",
"gridArea",
"gridAutoColumns",
"gridAutoFlow",
"gridAutoRows",
"gridColumn",
"gridColumnEnd",
"gridColumnGap",
"gridColumnStart",
"gridGap",
"gridRow",
"gridRowEnd",
"gridRowGap",
"gridRowStart",
"gridTemplate",
"gridTemplateAreas",
"gridTemplateColumns",
"gridTemplateRows",
"hangingPunctuation",
"height",
"hyphenateCharacter",
"hyphenateLimitChars",
"hyphenateLimitLast",
"hyphenateLimitLines",
"hyphenateLimitZone",
"hyphens",
"imageOrientation",
"imageRendering",
"imageResolution",
"initialLetter",
"initialLetterAlign",
"initialLetterWrap",
"isolation",
"justifyContent",
"justifyItems",
"justifySelf",
"left",
"letterSpacing",
"lightingColor",
"lineBreak",
"lineGrid",
"lineHeight",
"lineHeightStep",
"lineSnap",
"listStyle",
"listStyleImage",
"listStylePosition",
"listStyleType",
"margin",
"marginBottom",
"marginLeft",
"marginRight",
"marginTop",
"marker",
"markerEnd",
"markerKnockoutLeft",
"markerKnockoutRight",
"markerMid",
"markerPattern",
"markerSegment",
"markerSide",
"markerStart",
"marqueeDirection",
"marqueeLoop",
"marqueeSpeed",
"marqueeStyle",
"mask",
"maskBorder",
"maskBorderMode",
"maskBorderOutset",
"maskBorderRepeat",
"maskBorderSlice",
"maskBorderSource",
"maskBorderWidth",
"maskClip",
"maskComposite",
"maskImage",
"maskMode",
"maskOrigin",
"maskPosition",
"maskRepeat",
"maskSize",
"maskType",
"maxHeight",
"maxLines",
"maxWidth",
"minHeight",
"minWidth",
"mixBlendMode",
"motion",
"motionOffset",
"motionPath",
"motionRotation",
"navDown",
"navLeft",
"navRight",
"navUp",
"objectFit",
"objectPosition",
"offset",
"offsetAfter",
"offsetAnchor",
"offsetBefore",
"offsetDistance",
"offsetEnd",
"offsetPath",
"offsetPosition",
"offsetRotate",
"offsetStart",
"opacity",
"order",
"orphans",
"outline",
"outlineColor",
"outlineOffset",
"outlineStyle",
"outlineWidth",
"overflow",
"overflowStyle",
"overflowWrap",
"overflowX",
"overflowY",
"padding",
"paddingBottom",
"paddingLeft",
"paddingRight",
"paddingTop",
"page",
"pageBreakAfter",
"pageBreakBefore",
"pageBreakInside",
"pause",
"pauseAfter",
"pauseBefore",
"perspective",
"perspectiveOrigin",
"pitch",
"pitchRange",
"placeContent",
"placeItems",
"placeSelf",
"playDuring",
"position",
"presentationLevel",
"quotes",
"regionFragment",
"resize",
"rest",
"restAfter",
"restBefore",
"richness",
"right",
"rotation",
"rotationPoint",
"rubyAlign",
"rubyMerge",
"rubyPosition",
"running",
"scrollbarGutter",
"scrollBehavior",
"scrollPadding",
"scrollPaddingBlock",
"scrollPaddingBlockEnd",
"scrollPaddingBlockStart",
"scrollPaddingBottom",
"scrollPaddingInline",
"scrollPaddingInlineEnd",
"scrollPaddingInlineStart",
"scrollPaddingLeft",
"scrollPaddingRight",
"scrollPaddingTop",
"scrollSnapAlign",
"scrollSnapMargin",
"scrollSnapMarginBlock",
"scrollSnapMarginBlockEnd",
"scrollSnapMarginBlockStart",
"scrollSnapMarginBottom",
"scrollSnapMarginInline",
"scrollSnapMarginInlineEnd",
"scrollSnapMarginInlineStart",
"scrollSnapMarginLeft",
"scrollSnapMarginRight",
"scrollSnapMarginTop",
"scrollSnapStop",
"scrollSnapType",
"shapeImageThreshold",
"shapeInside",
"shapeMargin",
"shapeOutside",
"size",
"speak",
"speakAs",
"speakHeader",
"speakNumeral",
"speakPunctuation",
"speechRate",
"stress",
"stringSet",
"stroke",
"strokeAlignment",
"strokeDashadjust",
"strokeDasharray",
"strokeDashcorner",
"strokeDashoffset",
"strokeLinecap",
"strokeLinejoin",
"strokeMiterlimit",
"strokeOpacity",
"strokeWidth",
"tableLayout",
"tabSize",
"textAlign",
"textAlignAll",
"textAlignLast",
"textCombineUpright",
"textDecoration",
"textDecorationColor",
"textDecorationLine",
"textDecorationSkip",
"textDecorationStyle",
"textEmphasis",
"textEmphasisColor",
"textEmphasisPosition",
"textEmphasisStyle",
"textIndent",
"textJustify",
"textOrientation",
"textOverflow",
"textShadow",
"textSpaceCollapse",
"textSpaceTrim",
"textSpacing",
"textTransform",
"textUnderlinePosition",
"textWrap",
"top",
"transform",
"transformBox",
"transformOrigin",
"transformStyle",
"transition",
"transitionDelay",
"transitionDuration",
"transitionProperty",
"transitionTimingFunction",
"unicodeBidi",
"userSelect",
"verticalAlign",
"visibility",
"voiceBalance",
"voiceDuration",
"voiceFamily",
"voicePitch",
"voiceRange",
"voiceRate",
"voiceStress",
"voiceVolume",
"volume",
"whiteSpace",
"widows",
"width",
"willChange",
"wordBreak",
"wordSpacing",
"wordWrap",
"wrapAfter",
"wrapBefore",
"wrapFlow",
"wrapInside",
"wrapThrough",
"writingMode",
"zIndex"
]
+15
View File
@@ -0,0 +1,15 @@
import { Smartphone, Monitor, Tv2, Cog } from 'lucide-react';
export const DEVICES = [
{ name: 'DESKTOP', Icon: Monitor, width: null, height: null },
{ name: 'TABLET', Icon: Tv2, width: '1280px', height: '667px' },
{ name: 'MOBILE', Icon: Smartphone, width: '375px', height: '667px' },
{ name: '375x667', width: '375px', height: '667px', Icon: Cog },
{ name: '424x896', width: '424px', height: '896px', Icon: Cog },
{ name: '390x844', width: '390px', height: '844px', Icon: Cog },
{ name: '430x932', width: '430px', height: '932px', Icon: Cog },
{ name: '412x915', width: '412px', height: '915px', Icon: Cog },
{ name: '360x740', width: '360px', height: '740px', Icon: Cog },
{ name: '280x653', width: '280px', height: '653px', Icon: Cog },
{ name: '412x914', width: '412px', height: '914px', Icon: Cog },
] as const;
+24
View File
@@ -0,0 +1,24 @@
export const USER_ROLES = ['Member', 'Admin', 'Owner', 'Super Admin'] as const;
export const USER_STATUSES = ['Unverified', 'Active', 'Prospect', 'Invited', 'Blocked', 'Banned', 'Deleted'] as const;
export const COMPANY_SIZES = ['1-10', '11-30', '31-50', '50+'] as const;
export const COMPANY_TYPES = ['Client Account', 'Agency'] as const;
export const EXPERIMENT_TYPES = ['Multi Variant', 'Server Side', 'URL Redirect'] as const;
export const EXPERIMENT_STATUSES = ['Running', 'Deployed', 'Draft', 'Ended'] as const;
export const DEVICE_TYPES = ['All', 'Desktop', 'Mobile', 'Tablet'] as const;
export const URL_TARGETING_CONDITIONS = [
'equals',
'starts with',
'contains',
'ends with',
'matches regex',
'not equals',
'does not contain',
] as const;
export const HTML_CODE_EDITOR_ACTIONS = ['replace', 'insert', 'append', 'before', 'after'] as const;
export const TIMESPANS = ['alltime', 'lastweek', 'lastmonth', 'lastyear'] as const;
@@ -0,0 +1,139 @@
// import Stripe from 'stripe';
// const { BUILD_ENV, STRIPE_SECRET_KEY } = process.env;
// const isDev = BUILD_ENV !== 'production';
//
// const stripe = Stripe(STRIPE_SECRET_KEY);
//
// const { data: products } = await stripe.products.list({ active: true, limit: 100 });
// const { data: prices } = await stripe.prices.list({ active: true, limit: 100 });
//
// const paymentLinks = await stripe.paymentLinks.list();
//
// const fetchedPaymentPlans = products.map((product) => {
// const { id, name, metadata } = product;
// const { companyType } = metadata;
// const productPrices = prices
// .filter((price) => price.product === id)
// .reduce((acc, price) => {
// const { interval } = price.recurring;
// acc[interval] = { id: price.id, value: price.unit_amount };
// return acc;
// }, {});
//
// return { id, name, companyType, prices: productPrices };
// });
//
// // console.info(fetchedPaymentPlans, { depth: null });
//
// export const paymentPlans = {
// Agency: [
// {
// id: 'prod_Qj40USG6Qhq2XW',
// name: 'Subscription Test Daily',
// features: ['Trending Dashboard', '10 Keywords', '100 Accounts Tracking', '3 Users'],
// companyType: 'Agency',
// prices: {
// month: {
// id: 'price_1PrbsG009aFOms2RBaXuPZ6P',
// value: 1000,
// },
// year: {
// id: 'price_1PrbsG009aFOms2RBaXuPZ6P',
// value: 1000,
// },
// },
// },
// {
// id: 'prod_Qhvau56mOCOX95',
// name: 'Agency Starter',
// features: ['Trending Dashboard', '10 Keywords', '100 Accounts Tracking', '3 Users'],
// prices: {
// year: {
// id: 'price_1PqVkQ009aFOms2RsMqFk7m9',
// value: 299900,
// },
// month: {
// id: 'price_1PqVja009aFOms2Rh6KIfc6T',
// value: 29900,
// },
// },
// },
// {
// id: 'prod_Qhw89PtPzonlTr',
// name: 'Agency Standard',
// features: ['Trending Dashboard', '10 Keywords', '100 Accounts Tracking', '3 Users'],
// prices: {
// year: {
// id: 'price_1PqWHY009aFOms2R2Hwhjqie',
// value: 499900,
// },
// month: {
// id: 'price_1PqWGh009aFOms2Rf1MWyFTT',
// value: 49900,
// },
// },
// },
// {
// id: 'prod_QhwA5yYbfhXra6',
// name: 'Agency Pro',
// features: ['Trending Dashboard', '10 Keywords', '100 Accounts Tracking', '3 Users'],
// prices: {
// year: {
// id: 'price_1PqWJm009aFOms2RLV1r7nJL',
// value: 699900,
// },
// month: {
// id: 'price_1PqWIW009aFOms2Rk4V3eoWP',
// value: 69900,
// },
// },
// },
// ],
// 'Client Account': [
// {
// id: 'prod_QhuVo0yZI72RJw',
// name: 'Pertento Starter',
// features: ['Trending Dashboard', '10 Keywords', '100 Accounts Tracking', '3 Users'],
// prices: {
// year: {
// id: 'price_1PqUgK009aFOms2R8cKHXjVk',
// value: 99900,
// },
// month: {
// id: 'price_1PqUg2009aFOms2RrsL9L3Lo',
// value: 9900,
// },
// },
// },
// {
// id: 'prod_QhudiAXBm5r9Es',
// name: 'Pertento Standard',
// features: ['Trending Dashboard', '10 Keywords', '100 Accounts Tracking', '3 Users'],
// prices: {
// year: {
// id: 'price_1PqUoI009aFOms2RsXhws9h2',
// value: 149900,
// },
// month: {
// id: 'price_1PqUnk009aFOms2RAYK4UxOy',
// value: 14900,
// },
// },
// },
// {
// id: 'prod_QhufkyvOcVWyI9',
// name: 'Pertento Pro',
// features: ['Trending Dashboard', '10 Keywords', '100 Accounts Tracking', '3 Users'],
// prices: {
// year: {
// id: 'price_1PqUqc009aFOms2RaBvPVEou',
// value: 249900,
// },
// month: {
// id: 'price_1PqUqI009aFOms2RtoiDB3dY',
// value: 24900,
// },
// },
// },
// ],
// };
+63
View File
@@ -0,0 +1,63 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Strictest",
"compilerOptions": {
"strict": true,
"strictNullChecks": true,
"allowUnusedLabels": false,
"allowUnreachableCode": false,
"exactOptionalPropertyTypes": true,
"noFallthroughCasesInSwitch": true,
"noImplicitOverride": true,
"noImplicitReturns": true,
"noPropertyAccessFromIndexSignature": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"isolatedModules": true,
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es2023"],
"module": "esnext",
"target": "es2022",
"moduleResolution": "bundler",
"moduleDetection": "force",
"resolveJsonModule": true,
"noEmit": true,
"incremental": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"pretty": true,
"preserveWatchOutput": true,
"tsBuildInfoFile": "${configDir}/tsconfig.tsbuildinfo",
"baseUrl": "${configDir}",
"paths": {
"@/*": ["${configDir}/src/*"]
}
},
"include": [
"${configDir}/**/*.ts",
"${configDir}/**/*.tsx",
"${configDir}/**/*.cts",
"${configDir}/**/*.ctsx",
"${configDir}/**/*.mts",
"${configDir}/**/*.mtsx",
"${configDir}/**/*.js",
"${configDir}/**/*.jsx",
"${configDir}/**/*.cjs",
"${configDir}/**/*.cjsx",
"${configDir}/**/*.mjs",
"${configDir}/**/*.mjsx"
],
"exclude": ["${configDir}/node_modules", "${configDir}/dist"]
}