alinea 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +20 -20
- package/readme.md +7 -7
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"bin": "./dist/cli.js",
|
|
3
3
|
"name": "alinea",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.9",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -27,26 +27,26 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@alinea/cli": "0.2.
|
|
31
|
-
"@alinea/cloud": "0.2.
|
|
32
|
-
"@alinea/core": "0.2.
|
|
33
|
-
"@alinea/css": "0.2.
|
|
34
|
-
"@alinea/dashboard": "0.2.
|
|
35
|
-
"@alinea/input.check": "0.2.
|
|
36
|
-
"@alinea/input.code": "0.2.
|
|
37
|
-
"@alinea/input.date": "0.2.
|
|
38
|
-
"@alinea/input.json": "0.2.
|
|
39
|
-
"@alinea/input.link": "0.2.
|
|
40
|
-
"@alinea/input.list": "0.2.
|
|
41
|
-
"@alinea/input.number": "0.2.
|
|
42
|
-
"@alinea/input.object": "0.2.
|
|
43
|
-
"@alinea/input.path": "0.2.
|
|
44
|
-
"@alinea/input.richtext": "0.2.
|
|
45
|
-
"@alinea/input.select": "0.2.
|
|
46
|
-
"@alinea/input.tabs": "0.2.
|
|
47
|
-
"@alinea/input.text": "0.2.
|
|
30
|
+
"@alinea/cli": "0.2.9",
|
|
31
|
+
"@alinea/cloud": "0.2.9",
|
|
32
|
+
"@alinea/core": "0.2.9",
|
|
33
|
+
"@alinea/css": "0.2.9",
|
|
34
|
+
"@alinea/dashboard": "0.2.9",
|
|
35
|
+
"@alinea/input.check": "0.2.9",
|
|
36
|
+
"@alinea/input.code": "0.2.9",
|
|
37
|
+
"@alinea/input.date": "0.2.9",
|
|
38
|
+
"@alinea/input.json": "0.2.9",
|
|
39
|
+
"@alinea/input.link": "0.2.9",
|
|
40
|
+
"@alinea/input.list": "0.2.9",
|
|
41
|
+
"@alinea/input.number": "0.2.9",
|
|
42
|
+
"@alinea/input.object": "0.2.9",
|
|
43
|
+
"@alinea/input.path": "0.2.9",
|
|
44
|
+
"@alinea/input.richtext": "0.2.9",
|
|
45
|
+
"@alinea/input.select": "0.2.9",
|
|
46
|
+
"@alinea/input.tabs": "0.2.9",
|
|
47
|
+
"@alinea/input.text": "0.2.9",
|
|
48
48
|
"@alinea/sqlite-wasm": "^0.1.11",
|
|
49
|
-
"@alinea/ui": "0.2.
|
|
49
|
+
"@alinea/ui": "0.2.9"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"prepare": "cp ../../readme.md readme.md"
|
package/readme.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
# [](https://alinea.sh)
|
|
5
5
|
|
|
6
|
-
>
|
|
6
|
+
> _Current status_: expect alpha software and out of date docs.
|
|
7
7
|
|
|
8
8
|
Alinea is a modern content management system.
|
|
9
9
|
|
|
@@ -37,12 +37,12 @@ npx alinea serve
|
|
|
37
37
|
|
|
38
38
|
Configure alinea in `alinea.config.tsx`
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
```tsx
|
|
41
41
|
const BlogPost = alinea.type('Blog post', {
|
|
42
42
|
title: alinea.text('Blog entry title'),
|
|
43
43
|
body: alinea.richText('Body text')
|
|
44
44
|
})
|
|
45
|
-
|
|
45
|
+
```
|
|
46
46
|
|
|
47
47
|
[Type options and fields →](https://alinea.sh/docs/configuration/type)
|
|
48
48
|
|
|
@@ -51,7 +51,7 @@ const BlogPost = alinea.type('Blog post', {
|
|
|
51
51
|
Retrieve content fully-typed and filter, order, limit and join as needed.
|
|
52
52
|
Select only the fields you need.
|
|
53
53
|
|
|
54
|
-
|
|
54
|
+
```tsx
|
|
55
55
|
import {initPages} from '@alinea/content/myWorkspace/pages.js'
|
|
56
56
|
const pages = initPages()
|
|
57
57
|
console.log(
|
|
@@ -60,12 +60,12 @@ console.log(
|
|
|
60
60
|
.where(post => post.author.is('Me'))
|
|
61
61
|
.select(post => ({title: post.title}))
|
|
62
62
|
)
|
|
63
|
-
|
|
63
|
+
```
|
|
64
64
|
|
|
65
65
|
[See the full api →](https://alinea.sh/docs/content/pages)
|
|
66
66
|
|
|
67
67
|
Content is available during static site generation and when server side querying.
|
|
68
|
-
Content is bundled with your code and can be queried with zero network overhead.
|
|
68
|
+
Content is bundled with your code and can be queried with zero network overhead.
|
|
69
69
|
|
|
70
70
|
[How alinea bundles content →](https://alinea.sh/docs/content/introduction)
|
|
71
71
|
|
|
@@ -73,4 +73,4 @@ Content is bundled with your code and can be queried with zero network overhead.
|
|
|
73
73
|
|
|
74
74
|
Alinea supports custom backends that can be hosted as a simple Node.js process or on serverless runtimes.
|
|
75
75
|
|
|
76
|
-
[Setup your backend →](https://alinea.sh/docs/deploy/
|
|
76
|
+
[Setup your backend →](https://alinea.sh/docs/deploy/intro)
|