-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1 @@ | ||
todo: | ||
|
||
- grab data from filename | ||
- internationalization | ||
- global variables | ||
- documentation | ||
- as in sveltekit, infer types for db.page() automatically, without passing a value inside | ||
|
||
- xml? | ||
- also IF? and FOR? components? | ||
- - it becomes a xml-like language but with functiionality | ||
- also props as components? | ||
|
||
- usare AI per tradurre i pdf in file svelte (e anche Notion) | ||
|
||
- import collection also from index.ts ( but also json and other, yaml!) | ||
|
||
syntax: export const document = create_document() | ||
typescript will take care of explaining | ||
|
||
- <List data="<Array>" separator=", "> | ||
Todo componente da fare. | ||
|
||
importare proprietà da filename | ||
funzione: crea_collezione<T extends TAnySchema>( | ||
schema: T | ||
properties: (data: StaticDecode<T>, db: DB) => Oggetto con funzioni / proprietà calcolate | ||
) | ||
all'interno | ||
T.Transform(schema).Decode(data => {...data, ...properties}).Encode(full_object => Value.Clean(schema)) | ||
|
||
Ci sono da qualche parte specificati i locale | ||
F.Translate(schema: TAnySchema) => | ||
{ | ||
"it": schema, | ||
"en": schema, | ||
} | ||
\+ componente per tradurre | ||
|
||
- | ||
|
||
string[] or string field | ||
|
||
- | ||
|
||
make `Page` component that uses the $page store to get the current collection document | ||
|
||
-- | ||
|
||
check todo | ||
important transform function for fields | ||
|
||
--- | ||
|
||
- "inline" properties like: | ||
|
||
```svelte | ||
<Page> | ||
// Sets the context | ||
<p>Normal text description</p> | ||
<P name="quantity" value={10} /> // Sets the value in the context | ||
</Page> | ||
``` | ||
|
||
We'll then need something to extract the values and make them type-safe | ||
|
||
--- | ||
# svelte-cms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
todo: | ||
|
||
- grab data from filename | ||
- internationalization | ||
- global variables | ||
- documentation | ||
- as in sveltekit, infer types for db.page() automatically, without passing a value inside | ||
|
||
- xml? | ||
- also IF? and FOR? components? | ||
- - it becomes a xml-like language but with functiionality | ||
- also props as components? | ||
|
||
- usare AI per tradurre i pdf in file svelte (e anche Notion) | ||
|
||
- import collection also from index.ts ( but also json and other, yaml!) | ||
|
||
syntax: export const document = create_document() | ||
typescript will take care of explaining | ||
|
||
- <List data="<Array>" separator=", "> | ||
Todo componente da fare. | ||
|
||
importare proprietà da filename | ||
funzione: crea_collezione<T extends TAnySchema>( | ||
schema: T | ||
properties: (data: StaticDecode<T>, db: DB) => Oggetto con funzioni / proprietà calcolate | ||
) | ||
all'interno | ||
T.Transform(schema).Decode(data => {...data, ...properties}).Encode(full_object => Value.Clean(schema)) | ||
|
||
Ci sono da qualche parte specificati i locale | ||
F.Translate(schema: TAnySchema) => | ||
{ | ||
"it": schema, | ||
"en": schema, | ||
} | ||
\+ componente per tradurre | ||
|
||
- | ||
|
||
string[] or string field | ||
|
||
- | ||
|
||
make `Page` component that uses the $page store to get the current collection document | ||
|
||
-- | ||
|
||
check todo | ||
important transform function for fields | ||
|
||
--- | ||
|
||
- "inline" properties like: | ||
|
||
```svelte | ||
<Page> | ||
// Sets the context | ||
<p>Normal text description</p> | ||
<P name="quantity" value={10} /> // Sets the value in the context | ||
</Page> | ||
``` | ||
|
||
We'll then need something to extract the values and make them type-safe | ||
|
||
--- |