Skip to content
This repository was archived by the owner on Feb 15, 2025. It is now read-only.

Commit 4c6b398

Browse files
authored
Merge pull request #85 from agile-ts/develop
optimized documentation version
2 parents 41a4cdf + 3d7cc00 commit 4c6b398

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2356
-2216
lines changed

docs/Interfaces.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -443,19 +443,19 @@ Here is a Typescript Interface for quick reference,
443443
however each property will be explained in more detail below.
444444
```ts
445445
export interface StatePersistentConfigInterface {
446-
instantiate?: boolean;
446+
loadValue?: boolean;
447447
storageKeys?: StorageKey[];
448448
}
449449
```
450450

451451
<br/>
452452

453-
#### `instantiate`
453+
#### `loadValue`
454454

455-
If the `Persistent` which gets created should be instantiated immediately.
455+
If the `Persistent` which gets created should be load its value immediately into the State.
456456
:::info
457457

458-
Be aware, that if we don't let AgileTs instantiate our `Persistent`, we have to do it on our own.
458+
Be aware, that if we don't let AgileTs load the value into our State, we have to do it on our own.
459459

460460
:::
461461
```ts {2}

docs/examples/Indroduction.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ sidebar_label: Introduction
55
slug: /examples
66
---
77

8-
:::warning
8+
Most of the time you can learn something better by seeing it in action.
9+
That's why we've put together a few examples for you.
10+
If that's not enough for you, we have more examples in the [AgileTs repository](https://github.com/agile-ts/agile/tree/master/examples).
911

10-
WIP Docs!
11-
12-
:::
12+
## 🚀 Quick Links
13+
- [React](./react/All.mdx)
14+
- [React-Native](./react-native/All.mdx)

docs/examples/react-native/All.md

-14
This file was deleted.

docs/examples/react-native/All.mdx

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
id: all
3+
title: React-Native Examples
4+
sidebar_label: All
5+
slug: /examples/react-native
6+
---
7+
8+
export const ExpoSandbox = ({ uri, height }) => {
9+
// https://github.com/expo/snack/blob/main/docs/embedding-snacks.md
10+
// Script is set in docusaurus.config.js
11+
return (
12+
<div
13+
data-snack-id={uri}
14+
data-snack-platform={'web'}
15+
data-snack-preview={'true'}
16+
data-snack-theme={'dark'}
17+
data-snack-loading={'lazy'}
18+
style={{
19+
width: '100%',
20+
height: height || 500,
21+
borderWidth: 2,
22+
borderRadius: 4,
23+
borderColor: '#6c69a0',
24+
overflow: 'hidden',
25+
backgroundColor: '#26262f',
26+
}}
27+
/>
28+
);
29+
};
30+
31+
## 😎 First State
32+
33+
<ExpoSandbox uri={'@bennodev/agilets-first-state'} />

docs/examples/react/All.mdx

+25-23
Original file line numberDiff line numberDiff line change
@@ -5,45 +5,47 @@ sidebar_label: All
55
slug: /examples/react
66
---
77

8-
:::warning
9-
10-
WIP Docs!
11-
12-
:::
13-
148
export const CodeSandBoxEmbed = ({ uri, height }) => (
15-
<iframe
16-
src={`https://codesandbox.io/embed/${uri}?fontsize=14&hidenavigation=0&theme=dark&view=preview`}
17-
title={"Code Sandbox"}
18-
style={{width: "100%", height: height || 500, borderRadius: 4, borderColor: "#6c69a0", overflow: "hidden"}}
19-
allow={
20-
"geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb"
21-
}
22-
sandbox={
23-
"allow-modals allow-forms allow-popups allow-scripts allow-same-origin"
24-
}
25-
/>
9+
<iframe
10+
src={`https://codesandbox.io/embed/${uri}?fontsize=14&hidenavigation=0&theme=dark&view=preview`}
11+
title={'Code Sandbox'}
12+
style={{
13+
width: '100%',
14+
height: height || 500,
15+
borderWidth: 2,
16+
borderRadius: 4,
17+
borderColor: '#6c69a0',
18+
overflow: 'hidden',
19+
}}
20+
allow={
21+
'geolocation; microphone; camera; midi; vr; accelerometer; gyroscope; payment; ambient-light-sensor; encrypted-media; usb'
22+
}
23+
sandbox={
24+
'allow-modals allow-forms allow-popups allow-scripts allow-same-origin'
25+
}
26+
/>
2627
);
2728

2829
## 😎 First State
29-
<CodeSandBoxEmbed uri={"agilets-first-state-f12cz"}/>
3030

31+
<CodeSandBoxEmbed uri={'agilets-first-state-f12cz'} />
3132

3233
## 👨‍👩‍👦‍ First Collection
33-
<CodeSandBoxEmbed uri={"agilets-first-collection-uyi9g"} />
3434

35+
<CodeSandBoxEmbed uri={'agilets-first-collection-uyi9g'} />
3536

3637
## ⚙️‍ First Computed
37-
<CodeSandBoxEmbed uri={"agilets-first-computed-kisgr"} />
3838

39+
<CodeSandBoxEmbed uri={'agilets-first-computed-kisgr'} />
3940

4041
## 📝 Multieditor
41-
<CodeSandBoxEmbed uri={"multieditor-yxt4x"} height={800}/>
4242

43+
<CodeSandBoxEmbed uri={'multieditor-yxt4x'} height={800} />
4344

4445
## 👴 First State [Class Component]
45-
<CodeSandBoxEmbed uri={"agilets-first-state-with-hoc-1qdew"}/>
46+
47+
<CodeSandBoxEmbed uri={'agilets-first-state-with-hoc-1qdew'} />
4648

4749
## ✔️ Simple Todo List
48-
<CodeSandBoxEmbed uri={"agilets-simple-todo-list-glmc4"}/>
4950

51+
<CodeSandBoxEmbed uri={'agilets-simple-todo-list-glmc4'} />

docs/main/Contributing.md

+13-26
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ Contributors and people new to open source will find the following guides especi
1717

1818

1919
## 👊 [Code of Conduct](https://code.fb.com/codeofconduct)
20-
2120
Please read [the full text](https://code.fb.com/codeofconduct), so that you are able to understand what interpersonal actions will and will not be tolerated.
2221

2322

2423
## 😎 Get Involved
2524
There are many ways to contribute to AgileTs, and some of them don't involve writing any code.
2625
Here are a few ideas to get started:
27-
- Just start using AgileTs. Does everything work as expected? If not, we're always looking for improvements. Let us know by [opening an issue](#reporting-new-issues).
26+
- Just start using AgileTs. Does everything work as expected? If not, we're always looking for improvements. Let us know by [opening an issue](#-reporting-new-issues).
2827
- Help us solving [open issues](https://github.com/agile-ts/agile/issues) by suggesting workarounds or fixing them.
2928
- [Improve open issues](#improve-issues-and-pull-requests) to make them more clear, readable and understandable for others.
30-
- Read through the [AgileTs docs](https://agile-ts.org/docs). If you find anything that is confusing or can be improved, feel free to make edits by clicking "Edit" at the bottom of the doc page.
29+
- Read through the [AgileTs documentation](https://agile-ts.org/docs). If you find anything that is confusing or can be improved, feel free to make edits by clicking "Edit" at the bottom of the doc page.
3130
- Take a look at the [features requested](https://github.com/agile-ts/agile/labels/enhancement) by others and consider opening a pull request if you see something you want to work on.
3231

3332
### Join our Discord Server
@@ -36,21 +35,17 @@ our [Discord Community](https://discord.gg/T9GzreAwPH) by helping other people w
3635
have solved.
3736

3837
### Improve Issues and Pull Requests
39-
4038
One great way to contribute without writing _any_ code is to improve open issues and pull requests.
41-
4239
- Ask for more information if you believe the issue does not provide all the details required to solve it
4340
- Suggest [labels](https://github.com/agile-ts/agile/labels) that help to categorize issues/pull-requests
4441
- Flag issues that are stale or that should be closed
4542

4643

4744
## ⏰ Our Development Process
48-
4945
AgileTs uses Github as it's source of truth.
5046
All changes made so far and which will be made in future are and will remain publicly accessible here.
5147

5248
### Branch Organization
53-
5449
AgileTs has two primary branches: `master` and `develop`
5550

5651
`master` contains the latest released code
@@ -63,41 +58,38 @@ The root of all your branches have to be the `develop` branch!
6358

6459

6560
## 🐞 Bugs
66-
6761
We use [GitHub Issues](https://github.com/agile-ts/agile/issues) to keep track of our bugs.
6862
If you would like to report any problem, **take a look around and see if someone already opened an issue about it**.
69-
If you are certain this is a new unreported bug, you can submit a [bug report](#reporting-new-issues).
63+
If you are certain this is a new unreported bug, you can submit a [bug report](#-reporting-new-issues).
7064

7165

7266
## 📕 Reporting New Issues
73-
7467
When [opening a new issue](https://github.com/agile-ts/agile/issues/new/choose), always make sure to fill out the whole issue template.
7568
**This step is very important!** Not doing so may result in your issue not managed in a timely fashion.
7669
Don't take this personally if this happens, and feel free to open a new issue once you've gathered all the information required by the template.
7770

7871
- **One issue, one bug!** Please report a single bug per issue.
79-
- **Provide reproduction steps!** List all steps that are necessary to reproduce the issue. The person reading your bug report should be able to reproduce your issue with minimal effort.
72+
- **Provide reproduction steps!** List all steps that are necessary to reproduce the issue.
73+
The person reading your bug report should be able to reproduce your issue with minimal effort.
8074

8175

8276
## ⏳ Installation
83-
8477
1. Ensure you have [Yarn](https://yarnpkg.com/) installed
8578
2. After cloning the repository, run `yarn run install-packages` in the root of the repository,
8679
which simply runs `yarn install` in each package to ensure all dependencies are installed.
8780

8881
### Run Example Project's
89-
90-
1. Follow the [Installation](#Installation) steps above
82+
1. Follow the [Installation](#-Installation) steps above
9183
2. Ensure you have [Yalc](https://www.google.com/search?client=firefox-b-d&q=yalc) installed
92-
3. Run `yarn run dev-publish` to publish all packages in your local 'npm store'
84+
3. Run `yarn run dev:publish` to publish all packages in your local 'yalc/(npm) store'
9385
4. Execute `yarn install` in the Example Project to install its dependencies like AgileTs
94-
5. If you made your desired changes. Run `yarn run dev-push` to push your updated changes into your local 'npm store' <br />
95-
_ProTip:_ To make realtime changes, run `yarn run watch`, which automatically runs `yarn run dev-push` everytime you update a file in a package.
86+
5. If you made your desired changes. Run `yarn run dev:push` to push your updated changes into your local 'yalc store' <br />
87+
_ProTip:_ To make realtime changes, run `yarn run watch`, which automatically runs `yarn run dev:push` everytime you update a file in a package.
88+
9689

9790
## ☄️ Pull Request
9891

9992
### Your First Pull Request
100-
10193
So you have also decided to merge code back to the upstream by opening a PR.
10294
You've invested a good chunk of time, and we appreciate it.
10395
We will do our best to work with you and get the PR looked at.
@@ -110,7 +102,6 @@ We have a list of [beginner friendly issues](https://github.com/agile-ts/agile/l
110102
and familiar with our contribution process. This is a great place to get started.
111103

112104
### Proposing a Change
113-
114105
If you would like to request a new feature or enhancement but you only want to give an impulse and don't want to implement it,
115106
feel free to create an issue that follows the [feature template](https://github.com/agile-ts/agile/issues/new?template=feature_request.md).
116107

@@ -119,14 +110,13 @@ but we still recommend creating an [issue](https://github.com/agile-ts/agile/iss
119110
This is helpful in case we don't accept that specific changes, but want to keep track of the issue.
120111

121112
### Sending a Pull Request
122-
123113
Keep in mind that small pull requests are much easier to review and more likely to get merged.
124114
Make sure your PR only solves one problem (issue), otherwise please split it up in multiple PR's for a better overview.
125115
Commit Messages that follow this [style guide](https://www.conventionalcommits.org/en/v1.0.0/) are very welcome ^^
126116

127117
Please make sure the following is done before submitting a new pull request:
128118

129-
1. Fork [the repository](https://github.com/agile-ts/agile) and create your branch from `develop`
119+
1. Fork [the repository](https://github.com/agile-ts/agile) and **create your branch starting from the `develop` branch**
130120
2. Make sure your code is right formatted (`yarn prettier`)
131121
3. Make sure all Jest tests pass (`yarn test`)
132122
4. Don't forget the **How has this been Tested?** part!
@@ -135,7 +125,6 @@ All pull requests should be opened against the `develop` branch
135125
and have a related Issue for better organization!
136126

137127
#### Breaking Changes
138-
139128
When adding a new [breaking change](https://stackoverflow.com/questions/21703216/what-is-a-breaking-change-in-software), follow this template in your pull request:
140129

141130
```md
@@ -148,21 +137,19 @@ When adding a new [breaking change](https://stackoverflow.com/questions/21703216
148137
```
149138

150139
### What Happens Next?
151-
152140
The core Team of AgileTs is constantly monitoring pull requests and merges them if they seem correct.
153141
Help us to keep pull requests consistent by following the guidelines above.
154142

155143

156144
## 🌟 Style Guide
157-
158145
[Prettier](https://prettier.io) will catch most styling issues that may exist in your code.
159146
You can check the status of your code styling by simply running `yarn prettier`.
160147

161-
**Most important:** Look around. Match the style you see used in the rest of the project(formatting, naming, ..).
148+
**Most important:** Look around. Match the style you see used in the rest of the project (formatting, naming, ..).
162149

163150

164151
## 📄 License
165-
By contributing to AgileTs, you agree that your contributions will be licensed under its **MIT license**.
152+
By contributing to AgileTs, you agree that your contributions will be licensed under its **[MIT license](https://github.com/agile-ts/agile/blob/master/LICENSE)**.
166153

167154

168155
## 🎉 Credits

docs/main/Frameworks.md

+16-15
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,25 @@ sidebar_label: Frameworks
55
slug: /frameworks
66
---
77

8-
### 👾 UI-Layers
8+
:::info
99

10-
| Framework | Supported | Planned |
11-
|----------------------------------|-----------|---------|
12-
| [React](https://reactjs.org) | true | - |
13-
| [Angular](https://angular.io/) | false | true |
14-
| [Vue](https://vuejs.org/) | false | true |
15-
| [Svelte](https://svelte.dev/) | false | false |
10+
A quick overview of all frameworks that AgileTs supports or has planned to support.
11+
12+
:::
13+
14+
### 👾 UI-Frameworks
15+
16+
| Framework | Supported | Planned |
17+
|------------------------------------------|-----------|---------|
18+
| [React](https://reactjs.org) || - |
19+
| [React-Native](https://reactnative.dev/) || - |
20+
| [Angular](https://angular.io/) |||
21+
| [Vue](https://vuejs.org/) |||
22+
| [Svelte](https://svelte.dev/) || - |
1623

1724
### 🤖 SSR-Frameworks
1825

1926
| Framework | Supported | Planned |
2027
|-------------------------------------|-----------|---------|
21-
| [NextJS](https://nextjs.org/) | false | true |
22-
| [Gatsby](https://www.gatsbyjs.com/) | false | true |
23-
24-
### ❓ Something missing
25-
26-
If you find issues with the documentation or have suggestions on how to improve the documentation or the project in
27-
general, please [file an issue](https://github.com/agile/agile-ts/issues) for us or join
28-
our [Discord Community](https://discord.gg/T9GzreAwPH).
28+
| [NextJs](https://nextjs.org/) |||
29+
| [Gatsby](https://www.gatsbyjs.com/) || - |

docs/main/Installation.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ slug: /installation
1414
### 🚀 Quick Start
1515

1616
To make your start as easy as possible, we have created some quick guides. You can follow these to get AgileTs up and
17-
running in your environment without wasting any time. Below you find _Quick Starts_ for already supported frameworks.
17+
running without wasting any time. Below you find _Quick Start Guides_ for already supported frameworks.
1818

19-
- [React](../quick_start/React.md)
19+
- [React / React-Native](../quick_start/React.md)
2020
- Vue (coming soon)
2121
- Angular (coming soon)
2222

@@ -28,4 +28,5 @@ Separate installation guides for single AgileTs packages.
2828
- [React](../packages/react/Installation.md)
2929
- [MultiEditor](../packages/multieditor/Installation.md)
3030
- [Api](../packages/api/Installation.md)
31+
- [Event](../packages/event/Installation.md)
3132

0 commit comments

Comments
 (0)