Skip to content

Commit

Permalink
updated markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
bbtgnn committed Mar 7, 2024
1 parent 8b52d3e commit ed8fa51
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 67 deletions.
68 changes: 1 addition & 67 deletions README.md
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
67 changes: 67 additions & 0 deletions ideas.md
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

---

0 comments on commit ed8fa51

Please sign in to comment.