Skip to content

Commit

Permalink
crux-data-2025-01-08
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 8, 2025
1 parent 0da474a commit ebd828e
Show file tree
Hide file tree
Showing 12 changed files with 166 additions and 9 deletions.
1 change: 1 addition & 0 deletions .astro/content-assets.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default new Map();
1 change: 1 addition & 0 deletions .astro/content-modules.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default new Map();
155 changes: 155 additions & 0 deletions .astro/content.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
declare module 'astro:content' {
export interface RenderResult {
Content: import('astro/runtime/server/index.js').AstroComponentFactory;
headings: import('astro').MarkdownHeading[];
remarkPluginFrontmatter: Record<string, any>;
}
interface Render {
'.md': Promise<RenderResult>;
}

export interface RenderedContent {
html: string;
metadata?: {
imagePaths: Array<string>;
[key: string]: unknown;
};
}
}

declare module 'astro:content' {
type Flatten<T> = T extends { [K: string]: infer U } ? U : never;

export type CollectionKey = keyof AnyEntryMap;
export type CollectionEntry<C extends CollectionKey> = Flatten<AnyEntryMap[C]>;

export type ContentCollectionKey = keyof ContentEntryMap;
export type DataCollectionKey = keyof DataEntryMap;

type AllValuesOf<T> = T extends any ? T[keyof T] : never;
type ValidContentEntrySlug<C extends keyof ContentEntryMap> = AllValuesOf<
ContentEntryMap[C]
>['slug'];

/** @deprecated Use `getEntry` instead. */
export function getEntryBySlug<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}),
>(
collection: C,
// Note that this has to accept a regular string too, for SSR
entrySlug: E,
): E extends ValidContentEntrySlug<C>
? Promise<CollectionEntry<C>>
: Promise<CollectionEntry<C> | undefined>;

/** @deprecated Use `getEntry` instead. */
export function getDataEntryById<C extends keyof DataEntryMap, E extends keyof DataEntryMap[C]>(
collection: C,
entryId: E,
): Promise<CollectionEntry<C>>;

export function getCollection<C extends keyof AnyEntryMap, E extends CollectionEntry<C>>(
collection: C,
filter?: (entry: CollectionEntry<C>) => entry is E,
): Promise<E[]>;
export function getCollection<C extends keyof AnyEntryMap>(
collection: C,
filter?: (entry: CollectionEntry<C>) => unknown,
): Promise<CollectionEntry<C>[]>;

export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}),
>(entry: {
collection: C;
slug: E;
}): E extends ValidContentEntrySlug<C>
? Promise<CollectionEntry<C>>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {}),
>(entry: {
collection: C;
id: E;
}): E extends keyof DataEntryMap[C]
? Promise<DataEntryMap[C][E]>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {}),
>(
collection: C,
slug: E,
): E extends ValidContentEntrySlug<C>
? Promise<CollectionEntry<C>>
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {}),
>(
collection: C,
id: E,
): E extends keyof DataEntryMap[C]
? string extends keyof DataEntryMap[C]
? Promise<DataEntryMap[C][E]> | undefined
: Promise<DataEntryMap[C][E]>
: Promise<CollectionEntry<C> | undefined>;

/** Resolve an array of entry references from the same collection */
export function getEntries<C extends keyof ContentEntryMap>(
entries: {
collection: C;
slug: ValidContentEntrySlug<C>;
}[],
): Promise<CollectionEntry<C>[]>;
export function getEntries<C extends keyof DataEntryMap>(
entries: {
collection: C;
id: keyof DataEntryMap[C];
}[],
): Promise<CollectionEntry<C>[]>;

export function render<C extends keyof AnyEntryMap>(
entry: AnyEntryMap[C][string],
): Promise<RenderResult>;

export function reference<C extends keyof AnyEntryMap>(
collection: C,
): import('astro/zod').ZodEffects<
import('astro/zod').ZodString,
C extends keyof ContentEntryMap
? {
collection: C;
slug: ValidContentEntrySlug<C>;
}
: {
collection: C;
id: keyof DataEntryMap[C];
}
>;
// Allow generic `string` to avoid excessive type errors in the config
// if `dev` is not running to update as you edit.
// Invalid collection names will be caught at build time.
export function reference<C extends string>(
collection: C,
): import('astro/zod').ZodEffects<import('astro/zod').ZodString, never>;

type ReturnTypeOrOriginal<T> = T extends (...args: any[]) => infer R ? R : T;
type InferEntrySchema<C extends keyof AnyEntryMap> = import('astro/zod').infer<
ReturnTypeOrOriginal<Required<ContentConfig['collections'][C]>['schema']>
>;

type ContentEntryMap = {

};

type DataEntryMap = {

};

type AnyEntryMap = ContentEntryMap & DataEntryMap;

export type ContentConfig = typeof import("../src/content.config.mjs");
}
2 changes: 1 addition & 1 deletion public/data-chart/crux-home-all.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/data-chart/crux-origin-all.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/_data/ecommerce-eu-origin.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/_data/ecommerce-eu-url.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/_data/ecommerce-pl-origin.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"params":{"formFactor":"PHONE","origin":true,"collectionPeriod":{"firstDate":{"year":2024,"month":12,"day":9},"lastDate":{"year":2025,"month":1,"day":5}},"date":"7.01.2025"},"metrics":[{"url":"m.ceneo.pl","CLS":{"histogram":[99.89,0.09,0.02],"p75":"0.00","rank":"good"},"FCP":{"histogram":[96.78,1.82,1.4],"p75":678,"rank":"good"},"LCP":{"histogram":[98.1,0.99,0.91],"p75":681,"rank":"good"},"TTFB":{"histogram":[91.89,5.92,2.19],"p75":471,"rank":"good"},"INP":{"histogram":[90.54,7.27,2.19],"p75":102,"rank":"good"},"minimalGood":90.54},{"url":"allegrolokalnie.pl","CLS":{"histogram":[90.14,7.87,1.99],"p75":"0.00","rank":"good"},"FCP":{"histogram":[95.06,3.44,1.5],"p75":963,"rank":"good"},"LCP":{"histogram":[91.87,5.71,2.42],"p75":1535,"rank":"good"},"TTFB":{"histogram":[87.26,11.08,1.66],"p75":630,"rank":"good"},"INP":{"histogram":[88.81,9.08,2.11],"p75":134,"rank":"good"},"minimalGood":87.26},{"url":"pl.aliexpress.com","CLS":{"histogram":[81.64,10.78,7.58],"p75":"0.09","rank":"good"},"FCP":{"histogram":[87.46,8.67,3.87],"p75":1274,"rank":"good"},"LCP":{"histogram":[85.23,10.18,4.59],"p75":1932,"rank":"good"},"TTFB":{"histogram":[78.46,17.25,4.29],"p75":737,"rank":"good"},"INP":{"histogram":[77.23,20.1,2.67],"p75":190,"rank":"good"},"minimalGood":77.23},{"url":"www.amazon.pl","CLS":{"histogram":[76.31,20.41,3.28],"p75":"0.09","rank":"good"},"FCP":{"histogram":[89.97,6.54,3.49],"p75":1124,"rank":"good"},"LCP":{"histogram":[91.7,5.56,2.74],"p75":1562,"rank":"good"},"TTFB":{"histogram":[82.49,13.36,4.15],"p75":620,"rank":"good"},"INP":{"histogram":[86.92,10.98,2.1],"p75":141,"rank":"good"},"minimalGood":76.31},{"url":"www.mediaexpert.pl","CLS":{"histogram":[85.11,9.23,5.66],"p75":"0.07","rank":"good"},"FCP":{"histogram":[88.46,7.53,4.01],"p75":1080,"rank":"good"},"LCP":{"histogram":[86.77,8.28,4.96],"p75":1680,"rank":"good"},"TTFB":{"histogram":[83.52,11.35,5.13],"p75":541,"rank":"good"},"INP":{"histogram":[73.23,20.52,6.25],"p75":209,"rank":"average"},"minimalGood":73.23},{"url":"allegro.pl","CLS":{"histogram":[95.48,2.3,2.22],"p75":"0.00","rank":"good"},"FCP":{"histogram":[90.79,7.11,2.1],"p75":1314,"rank":"good"},"LCP":{"histogram":[92.55,5.25,2.2],"p75":1555,"rank":"good"},"TTFB":{"histogram":[70.18,26.86,2.96],"p75":872,"rank":"average"},"INP":{"histogram":[84.09,13.8,2.11],"p75":160,"rank":"good"},"minimalGood":70.18},{"url":"www.doz.pl","CLS":{"histogram":[66.31,28.1,5.6],"p75":"0.16","rank":"average"},"FCP":{"histogram":[86.33,9.48,4.18],"p75":1370,"rank":"good"},"LCP":{"histogram":[90.9,6.16,2.94],"p75":1620,"rank":"good"},"TTFB":{"histogram":[85.81,11.53,2.66],"p75":607,"rank":"good"},"INP":{"histogram":[76.79,19.12,4.09],"p75":191,"rank":"good"},"minimalGood":66.31},{"url":"www.euro.com.pl","CLS":{"histogram":[80.09,9.55,10.36],"p75":"0.06","rank":"good"},"FCP":{"histogram":[84.7,10.86,4.43],"p75":1462,"rank":"good"},"LCP":{"histogram":[86.26,9.07,4.68],"p75":1851,"rank":"good"},"TTFB":{"histogram":[71.64,23.82,4.53],"p75":857,"rank":"average"},"INP":{"histogram":[65.19,25.09,9.72],"p75":257,"rank":"average"},"minimalGood":65.19},{"url":"eobuwie.com.pl","CLS":{"histogram":[85.39,4.42,10.19],"p75":"0.01","rank":"good"},"FCP":{"histogram":[85.15,11.45,3.4],"p75":1512,"rank":"good"},"LCP":{"histogram":[86.02,8.9,5.08],"p75":1940,"rank":"good"},"TTFB":{"histogram":[78.48,17.64,3.88],"p75":730,"rank":"good"},"INP":{"histogram":[55.38,29.55,15.07],"p75":335,"rank":"average"},"minimalGood":55.38},{"url":"www.empik.com","CLS":{"histogram":[69.39,17.38,13.23],"p75":"0.14","rank":"average"},"FCP":{"histogram":[88.72,7.82,3.46],"p75":1318,"rank":"good"},"LCP":{"histogram":[83.7,9.89,6.4],"p75":1963,"rank":"good"},"TTFB":{"histogram":[69.57,25.91,4.51],"p75":903,"rank":"average"},"INP":{"histogram":[54.94,36.63,8.42],"p75":290,"rank":"average"},"minimalGood":54.94},{"url":"modivo.pl","CLS":{"histogram":[84.82,3.68,11.5],"p75":"0.01","rank":"good"},"FCP":{"histogram":[83.59,11.68,4.73],"p75":1525,"rank":"good"},"LCP":{"histogram":[86.62,8.6,4.78],"p75":1840,"rank":"good"},"TTFB":{"histogram":[68.78,26.97,4.25],"p75":900,"rank":"average"},"INP":{"histogram":[53.88,32.81,13.31],"p75":335,"rank":"average"},"minimalGood":53.88},{"url":"erli.pl","CLS":{"histogram":[80.78,5.53,13.69],"p75":"0.05","rank":"good"},"FCP":{"histogram":[83.41,11.74,4.84],"p75":1497,"rank":"good"},"LCP":{"histogram":[84.95,8.3,6.75],"p75":1878,"rank":"good"},"TTFB":{"histogram":[83.94,12.72,3.34],"p75":644,"rank":"good"},"INP":{"histogram":[44.37,38.91,16.72],"p75":393,"rank":"average"},"minimalGood":44.37},{"url":"www.castorama.pl","CLS":{"histogram":[65.08,4.74,30.19],"p75":"0.52","rank":"poor"},"FCP":{"histogram":[74.64,17.95,7.4],"p75":1824,"rank":"average"},"LCP":{"histogram":[68.51,19.91,11.58],"p75":2819,"rank":"average"},"TTFB":{"histogram":[48.92,41.1,9.98],"p75":1215,"rank":"average"},"INP":{"histogram":[31.33,29.53,39.14],"p75":750,"rank":"poor"},"minimalGood":31.33}]}
{"params":{"formFactor":"PHONE","origin":true,"collectionPeriod":{"firstDate":{"year":2024,"month":12,"day":10},"lastDate":{"year":2025,"month":1,"day":6}},"date":"8.01.2025"},"metrics":[{"url":"m.ceneo.pl","CLS":{"histogram":[99.89,0.09,0.02],"p75":"0.00","rank":"good"},"FCP":{"histogram":[96.88,1.7,1.42],"p75":678,"rank":"good"},"LCP":{"histogram":[98.14,0.99,0.87],"p75":680,"rank":"good"},"TTFB":{"histogram":[91.96,5.86,2.18],"p75":471,"rank":"good"},"INP":{"histogram":[90.69,7.22,2.09],"p75":102,"rank":"good"},"minimalGood":90.69},{"url":"allegrolokalnie.pl","CLS":{"histogram":[90.19,7.83,1.98],"p75":"0.00","rank":"good"},"FCP":{"histogram":[95.13,3.32,1.55],"p75":961,"rank":"good"},"LCP":{"histogram":[91.81,5.74,2.45],"p75":1532,"rank":"good"},"TTFB":{"histogram":[87.14,11.19,1.67],"p75":630,"rank":"good"},"INP":{"histogram":[88.63,9.1,2.27],"p75":134,"rank":"good"},"minimalGood":87.14},{"url":"pl.aliexpress.com","CLS":{"histogram":[81.62,10.77,7.61],"p75":"0.09","rank":"good"},"FCP":{"histogram":[87.64,8.61,3.74],"p75":1263,"rank":"good"},"LCP":{"histogram":[85.2,10.34,4.46],"p75":1926,"rank":"good"},"TTFB":{"histogram":[78.65,17.19,4.17],"p75":735,"rank":"good"},"INP":{"histogram":[77.26,20.09,2.65],"p75":190,"rank":"good"},"minimalGood":77.26},{"url":"www.amazon.pl","CLS":{"histogram":[76.37,20.46,3.17],"p75":"0.09","rank":"good"},"FCP":{"histogram":[89.79,6.66,3.55],"p75":1124,"rank":"good"},"LCP":{"histogram":[91.72,5.63,2.65],"p75":1561,"rank":"good"},"TTFB":{"histogram":[82.5,13.36,4.14],"p75":620,"rank":"good"},"INP":{"histogram":[86.79,11.08,2.13],"p75":142,"rank":"good"},"minimalGood":76.37},{"url":"www.mediaexpert.pl","CLS":{"histogram":[85.11,9.28,5.61],"p75":"0.07","rank":"good"},"FCP":{"histogram":[88.64,7.46,3.9],"p75":1079,"rank":"good"},"LCP":{"histogram":[86.67,8.33,5],"p75":1677,"rank":"good"},"TTFB":{"histogram":[83.45,11.33,5.22],"p75":541,"rank":"good"},"INP":{"histogram":[73.24,20.48,6.28],"p75":209,"rank":"average"},"minimalGood":73.24},{"url":"allegro.pl","CLS":{"histogram":[95.47,2.29,2.23],"p75":"0.00","rank":"good"},"FCP":{"histogram":[90.91,7.03,2.06],"p75":1309,"rank":"good"},"LCP":{"histogram":[92.58,5.21,2.21],"p75":1550,"rank":"good"},"TTFB":{"histogram":[70.48,26.69,2.83],"p75":869,"rank":"average"},"INP":{"histogram":[84.01,13.85,2.14],"p75":160,"rank":"good"},"minimalGood":70.48},{"url":"www.doz.pl","CLS":{"histogram":[66.54,27.89,5.57],"p75":"0.16","rank":"average"},"FCP":{"histogram":[86.47,9.34,4.19],"p75":1365,"rank":"good"},"LCP":{"histogram":[90.85,6.28,2.87],"p75":1613,"rank":"good"},"TTFB":{"histogram":[85.98,11.37,2.65],"p75":606,"rank":"good"},"INP":{"histogram":[76.79,19.12,4.1],"p75":192,"rank":"good"},"minimalGood":66.54},{"url":"www.euro.com.pl","CLS":{"histogram":[80.1,9.57,10.33],"p75":"0.06","rank":"good"},"FCP":{"histogram":[84.83,10.86,4.31],"p75":1459,"rank":"good"},"LCP":{"histogram":[86.26,9,4.74],"p75":1848,"rank":"good"},"TTFB":{"histogram":[71.84,23.68,4.48],"p75":854,"rank":"average"},"INP":{"histogram":[65.2,25.02,9.78],"p75":256,"rank":"average"},"minimalGood":65.2},{"url":"eobuwie.com.pl","CLS":{"histogram":[85.46,4.47,10.07],"p75":"0.01","rank":"good"},"FCP":{"histogram":[85.14,11.4,3.46],"p75":1507,"rank":"good"},"LCP":{"histogram":[86,8.9,5.11],"p75":1934,"rank":"good"},"TTFB":{"histogram":[78.51,17.64,3.86],"p75":727,"rank":"good"},"INP":{"histogram":[55.62,29.39,14.99],"p75":333,"rank":"average"},"minimalGood":55.62},{"url":"www.empik.com","CLS":{"histogram":[69.37,17.28,13.35],"p75":"0.14","rank":"average"},"FCP":{"histogram":[88.81,7.77,3.42],"p75":1313,"rank":"good"},"LCP":{"histogram":[83.76,9.87,6.37],"p75":1957,"rank":"good"},"TTFB":{"histogram":[69.84,25.74,4.42],"p75":899,"rank":"average"},"INP":{"histogram":[54.97,36.78,8.25],"p75":290,"rank":"average"},"minimalGood":54.97},{"url":"modivo.pl","CLS":{"histogram":[84.71,3.75,11.54],"p75":"0.01","rank":"good"},"FCP":{"histogram":[83.68,11.67,4.65],"p75":1521,"rank":"good"},"LCP":{"histogram":[86.67,8.58,4.76],"p75":1833,"rank":"good"},"TTFB":{"histogram":[68.94,27.01,4.05],"p75":898,"rank":"average"},"INP":{"histogram":[54.2,32.54,13.26],"p75":333,"rank":"average"},"minimalGood":54.2},{"url":"erli.pl","CLS":{"histogram":[80.91,5.56,13.53],"p75":"0.05","rank":"good"},"FCP":{"histogram":[83.63,11.64,4.73],"p75":1493,"rank":"good"},"LCP":{"histogram":[84.62,8.35,7.03],"p75":1878,"rank":"good"},"TTFB":{"histogram":[84.12,12.64,3.24],"p75":643,"rank":"good"},"INP":{"histogram":[45.06,38.52,16.41],"p75":389,"rank":"average"},"minimalGood":45.06},{"url":"www.castorama.pl","CLS":{"histogram":[65.18,4.78,30.04],"p75":"0.52","rank":"poor"},"FCP":{"histogram":[74.83,17.89,7.28],"p75":1818,"rank":"average"},"LCP":{"histogram":[68.67,19.74,11.58],"p75":2814,"rank":"average"},"TTFB":{"histogram":[48.91,41.31,9.78],"p75":1211,"rank":"average"},"INP":{"histogram":[31.34,29.48,39.18],"p75":750,"rank":"poor"},"minimalGood":31.34}]}
Loading

0 comments on commit ebd828e

Please sign in to comment.