From b26abc980bdc6a6567612d8458e90c1eee869b5c Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Thu, 6 Feb 2025 20:58:22 +0200 Subject: [PATCH] --- .astro/content.d.ts | 49 +++--- .astro/data-store.json | 2 +- .astro/settings.json | 2 +- Source/Function/Scroll/Code.tsx | 61 +++++--- Source/Function/Scroll/Layout.astro | 4 + Source/Function/Scroll/Stylesheet.css | 60 ++++++++ Source/pages/index.astro | 6 +- Target/.vite/manifest.json | 24 ++- ...stro_type_script_index_0_lang.DtvbEmm4.js} | 2 +- Target/_astro/Code.Clbmo1fi.js | 128 ---------------- Target/_astro/Code.DwGjiiXd.js | 145 ++++++++++++++++++ ...astro_type_script_index_0_lang.BdpPsZh_.js | 1 - ...{client.DTSor4QK.js => client.BovhHypR.js} | 2 +- Target/_astro/index.Ba58m7pk.css | 1 - ....esm.Bnaa-YML.js => index.esm.Dawd341Z.js} | 2 +- Target/_astro/index.sS72k40h.css | 1 + Target/_astro/web.B203QFNt.js | 1 + Target/_astro/web.D_hp9GMo.js | 1 - Target/index.html | 2 +- 19 files changed, 293 insertions(+), 201 deletions(-) create mode 100644 Source/Function/Scroll/Stylesheet.css rename Target/_astro/{Base.astro_astro_type_script_index_0_lang.CEGt5QMY.js => Base.astro_astro_type_script_index_0_lang.DtvbEmm4.js} (79%) delete mode 100644 Target/_astro/Code.Clbmo1fi.js create mode 100644 Target/_astro/Code.DwGjiiXd.js delete mode 100644 Target/_astro/Layout.astro_astro_type_script_index_0_lang.BdpPsZh_.js rename Target/_astro/{client.DTSor4QK.js => client.BovhHypR.js} (85%) delete mode 100644 Target/_astro/index.Ba58m7pk.css rename Target/_astro/{index.esm.Bnaa-YML.js => index.esm.Dawd341Z.js} (99%) create mode 100644 Target/_astro/index.sS72k40h.css create mode 100644 Target/_astro/web.B203QFNt.js delete mode 100644 Target/_astro/web.D_hp9GMo.js diff --git a/.astro/content.d.ts b/.astro/content.d.ts index 9bf59048..16164175 100644 --- a/.astro/content.d.ts +++ b/.astro/content.d.ts @@ -31,6 +31,21 @@ declare module 'astro:content' { ContentEntryMap[C] >['slug']; + export type ReferenceDataEntry< + C extends CollectionKey, + E extends keyof DataEntryMap[C] = string, + > = { + collection: C; + id: E; + }; + export type ReferenceContentEntry< + C extends keyof ContentEntryMap, + E extends ValidContentEntrySlug | (string & {}) = string, + > = { + collection: C; + slug: E; + }; + /** @deprecated Use `getEntry` instead. */ export function getEntryBySlug< C extends keyof ContentEntryMap, @@ -61,19 +76,17 @@ declare module 'astro:content' { export function getEntry< C extends keyof ContentEntryMap, E extends ValidContentEntrySlug | (string & {}), - >(entry: { - collection: C; - slug: E; - }): E extends ValidContentEntrySlug + >( + entry: ReferenceContentEntry, + ): E extends ValidContentEntrySlug ? Promise> : Promise | undefined>; export function getEntry< C extends keyof DataEntryMap, E extends keyof DataEntryMap[C] | (string & {}), - >(entry: { - collection: C; - id: E; - }): E extends keyof DataEntryMap[C] + >( + entry: ReferenceDataEntry, + ): E extends keyof DataEntryMap[C] ? Promise : Promise | undefined>; export function getEntry< @@ -99,16 +112,10 @@ declare module 'astro:content' { /** Resolve an array of entry references from the same collection */ export function getEntries( - entries: { - collection: C; - slug: ValidContentEntrySlug; - }[], + entries: ReferenceContentEntry>[], ): Promise[]>; export function getEntries( - entries: { - collection: C; - id: keyof DataEntryMap[C]; - }[], + entries: ReferenceDataEntry[], ): Promise[]>; export function render( @@ -120,14 +127,8 @@ declare module 'astro:content' { ): import('astro/zod').ZodEffects< import('astro/zod').ZodString, C extends keyof ContentEntryMap - ? { - collection: C; - slug: ValidContentEntrySlug; - } - : { - collection: C; - id: keyof DataEntryMap[C]; - } + ? ReferenceContentEntry> + : ReferenceDataEntry >; // Allow generic `string` to avoid excessive type errors in the config // if `dev` is not running to update as you edit. diff --git a/.astro/data-store.json b/.astro/data-store.json index 0f889ac8..1d9002fa 100644 --- a/.astro/data-store.json +++ b/.astro/data-store.json @@ -1 +1 @@ -[["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.1.7","astro-config-digest","{\"root\":{},\"srcDir\":{},\"publicDir\":{},\"outDir\":{},\"cacheDir\":{},\"site\":\"HTTP://localhost\",\"compressHTML\":false,\"base\":\"/\",\"trailingSlash\":\"ignore\",\"output\":\"static\",\"scopedStyleStrategy\":\"attribute\",\"build\":{\"format\":\"directory\",\"client\":{},\"server\":{},\"assets\":\"_astro\",\"serverEntry\":\"entry.mjs\",\"redirects\":true,\"inlineStylesheets\":\"auto\",\"concurrency\":9999},\"server\":{\"open\":false,\"host\":true,\"port\":9999,\"streaming\":true},\"redirects\":{},\"prefetch\":{\"prefetchAll\":true,\"defaultStrategy\":\"hover\"},\"image\":{\"endpoint\":{\"route\":\"/_image\"},\"service\":{\"entrypoint\":\"astro/assets/services/sharp\",\"config\":{}},\"domains\":[],\"remotePatterns\":[]},\"devToolbar\":{\"enabled\":true},\"markdown\":{\"syntaxHighlight\":\"shiki\",\"shikiConfig\":{\"langs\":[],\"langAlias\":{},\"theme\":\"github-dark\",\"themes\":{},\"wrap\":false,\"transformers\":[]},\"remarkPlugins\":[],\"rehypePlugins\":[],\"remarkRehype\":{},\"gfm\":true,\"smartypants\":true},\"security\":{\"checkOrigin\":true},\"env\":{\"schema\":{\"TOKEN_GITHUB_COMMIT\":{\"context\":\"server\",\"access\":\"secret\",\"optional\":false,\"default\":\"GitHub Token API Stream\",\"type\":\"string\"}},\"validateSecrets\":true},\"experimental\":{\"clientPrerender\":true,\"contentIntellisense\":true,\"responsiveImages\":false},\"legacy\":{\"collections\":false}}"] \ No newline at end of file +[["Map",1,2],"meta::meta",["Map",3,4,5,6],"astro-version","5.2.3","astro-config-digest","{\"root\":{},\"srcDir\":{},\"publicDir\":{},\"outDir\":{},\"cacheDir\":{},\"site\":\"HTTP://localhost\",\"compressHTML\":false,\"base\":\"/\",\"trailingSlash\":\"ignore\",\"output\":\"static\",\"scopedStyleStrategy\":\"attribute\",\"build\":{\"format\":\"directory\",\"client\":{},\"server\":{},\"assets\":\"_astro\",\"serverEntry\":\"entry.mjs\",\"redirects\":true,\"inlineStylesheets\":\"auto\",\"concurrency\":9999},\"server\":{\"open\":false,\"host\":true,\"port\":9999,\"streaming\":true},\"redirects\":{},\"prefetch\":{\"prefetchAll\":true,\"defaultStrategy\":\"hover\"},\"image\":{\"endpoint\":{\"route\":\"/_image\"},\"service\":{\"entrypoint\":\"astro/assets/services/sharp\",\"config\":{}},\"domains\":[],\"remotePatterns\":[]},\"devToolbar\":{\"enabled\":true},\"markdown\":{\"syntaxHighlight\":\"shiki\",\"shikiConfig\":{\"langs\":[],\"langAlias\":{},\"theme\":\"github-dark\",\"themes\":{},\"wrap\":false,\"transformers\":[]},\"remarkPlugins\":[],\"rehypePlugins\":[],\"remarkRehype\":{},\"gfm\":true,\"smartypants\":true},\"security\":{\"checkOrigin\":true},\"env\":{\"schema\":{\"TOKEN_GITHUB_COMMIT\":{\"context\":\"server\",\"access\":\"secret\",\"optional\":false,\"default\":\"GitHub Token API Stream\",\"type\":\"string\"}},\"validateSecrets\":true},\"experimental\":{\"clientPrerender\":true,\"contentIntellisense\":true,\"responsiveImages\":false,\"serializeConfig\":false},\"legacy\":{\"collections\":false}}"] \ No newline at end of file diff --git a/.astro/settings.json b/.astro/settings.json index 254c8855..749c9ddd 100644 --- a/.astro/settings.json +++ b/.astro/settings.json @@ -1,5 +1,5 @@ { "_variables": { - "lastUpdateCheck": 1736912697313 + "lastUpdateCheck": 1738865233688 } } \ No newline at end of file diff --git a/Source/Function/Scroll/Code.tsx b/Source/Function/Scroll/Code.tsx index 2177cbe7..e0642365 100644 --- a/Source/Function/Scroll/Code.tsx +++ b/Source/Function/Scroll/Code.tsx @@ -1,12 +1,9 @@ -export default ( - { Text, Font }: { Text: string; Font?: number } = { - Text: "", - Font: 1, - }, -) => { +import "@Function/Scroll/Stylesheet.css"; + +export default ({ Text = "", Font = 1 }: { Text?: string; Font?: number }) => { const [Offset, _Offset] = createSignal(0); - const [Element, _Element] = createSignal(); + const [Element, _Element] = createSignal(); const [Count, _Count] = createSignal(10); @@ -53,6 +50,7 @@ export default ( if (Past >= Time) { _Offset((prev) => (prev - 0.2 + Size) % Size); + _LastTimestamp(Current); } @@ -80,30 +78,51 @@ export default ( }; return ( -
+

{_Text()}

-