Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
163 commits
Select commit Hold shift + click to select a range
ed029dc
Initial Commit
bennobuilder Aug 13, 2020
4ed4268
Fixed type stuff
bennobuilder Aug 13, 2020
db3545e
Added some Agile logs for better testing
bennobuilder Aug 13, 2020
3bc3505
Tried to fix babel-loader issue
bennobuilder Aug 14, 2020
28ac92a
Changed target version to ES2015
bennobuilder Aug 15, 2020
19fe9b6
Made some naming changes
bennobuilder Aug 15, 2020
252160b
Tried to fix AgileHOC for React
bennobuilder Aug 15, 2020
1fa0ca3
Fixed AgileHOC for React
bennobuilder Aug 15, 2020
0b6f877
Created state watcher, undo and reset function
bennobuilder Aug 15, 2020
e75fc95
Added small check before update subscribers which returns if no frame…
bennobuilder Aug 16, 2020
5594c27
Made formatChangedPropKeys public instead of static
bennobuilder Aug 16, 2020
8612455
Added ValueType to watcher
bennobuilder Aug 16, 2020
69bacd1
Create Storage class
bennobuilder Aug 16, 2020
f535b93
Refactored Storage class
bennobuilder Aug 17, 2020
ee7c1d6
Fixed small typo in utils
bennobuilder Aug 17, 2020
e28519c
Added storagePrefix into storageConfig and added Storage into agile.ts
bennobuilder Aug 17, 2020
1521a5c
Changed example for testing purpose
bennobuilder Aug 17, 2020
b8e6429
Added background option to ingest function
bennobuilder Aug 17, 2020
29a8ad7
Fixed type function and refactored reset function
bennobuilder Aug 17, 2020
7a8e78d
Made some naming changes
bennobuilder Aug 19, 2020
bc15f52
added persist and made some naming changes
bennobuilder Aug 19, 2020
98e135f
Fixed doesn't perform rerender bug
bennobuilder Aug 19, 2020
ce929d3
Created is Function and isAsyncFunction in utils
bennobuilder Aug 20, 2020
3ea2906
Some naming changes
bennobuilder Aug 20, 2020
c00d8bc
Updated example
bennobuilder Aug 20, 2020
7f39c5c
renamed storagePrefix to prefix
bennobuilder Aug 20, 2020
e9438ee
created api
bennobuilder Aug 20, 2020
495406a
removed unnecessary check
bennobuilder Aug 20, 2020
05c6432
Fixed cyclic object bug
bennobuilder Aug 20, 2020
5a77ca2
Fixed some small storage type issues
bennobuilder Aug 21, 2020
a657212
Created Computed
bennobuilder Aug 21, 2020
bb60e8c
Created Collection Config
bennobuilder Aug 22, 2020
4c7fe04
Created init subInstance method which inits for example the groups ou…
bennobuilder Aug 22, 2020
9019d35
Created group class structure
bennobuilder Aug 23, 2020
e8fb192
renamed collection data to item
bennobuilder Aug 23, 2020
67b5ab9
Added create Group function and fixed some key settings
bennobuilder Aug 23, 2020
5eb89b4
Created getGroup function
bennobuilder Aug 23, 2020
297a2ca
Added collection support in useAgile
bennobuilder Aug 23, 2020
3d7683d
Created collect method (not final) and patch method in state and made…
bennobuilder Aug 23, 2020
8086560
Fixed small group bug
bennobuilder Aug 23, 2020
8fcfdb8
Fixed small typo
bennobuilder Aug 23, 2020
1a75002
Fixed copy bug and removed unnecessary warning
bennobuilder Aug 23, 2020
bdd102a
set setMethod default sideEffects to true
bennobuilder Aug 23, 2020
8592c28
Fixed copy(utils) bug
bennobuilder Aug 23, 2020
4608742
Created getPublicValue() method which returns the public value of a s…
bennobuilder Aug 23, 2020
0fbbb6e
Updated Example
bennobuilder Aug 23, 2020
311aa50
Added defaultGroupKey to collection config
bennobuilder Aug 23, 2020
828153e
Fixed has method in group
bennobuilder Aug 23, 2020
679b395
Fixed some typos and object issues
bennobuilder Aug 23, 2020
443f465
Added collection remove function
bennobuilder Aug 23, 2020
10f46f1
Created update method in collection
bennobuilder Aug 23, 2020
cfe521a
Fixed continue in forEach issue
bennobuilder Aug 24, 2020
a7d8abc
Fixed flatMerge reference issue
bennobuilder Aug 24, 2020
06f8e49
Made some naming changes and added _key to collection
bennobuilder Aug 24, 2020
0998c48
Renamed collection primaryKey to itemKey
bennobuilder Aug 24, 2020
d265d7f
Added findById and GetValueById functions
bennobuilder Aug 24, 2020
7c151da
Added decrease size to removeData
bennobuilder Aug 24, 2020
8abce9c
Fixed typo
bennobuilder Aug 24, 2020
ca99482
Added computed state auto tracking to getValueById
bennobuilder Aug 24, 2020
c94a609
Created selector
bennobuilder Aug 24, 2020
0b9f6f1
Added perstist method to selector
bennobuilder Aug 24, 2020
031fded
Added check to depend so that it can't has states twice in deps
bennobuilder Aug 24, 2020
80e3ef7
Updated example
bennobuilder Aug 24, 2020
b472506
Removed helper in state
bennobuilder Aug 24, 2020
2b1be1b
Added rename key support for selector
bennobuilder Aug 25, 2020
4e7b485
Made some naming changes
bennobuilder Aug 25, 2020
1241435
Created 'createSelector' function
bennobuilder Aug 25, 2020
16279ea
Fixed typo
bennobuilder Aug 25, 2020
dde7a16
removed ts-ignores in saveData function
bennobuilder Aug 25, 2020
fe0b310
Remove selector by remove.everywhere
bennobuilder Aug 25, 2020
344fbbc
Added a few checks to prevent unnecessary rerenders
bennobuilder Aug 25, 2020
fe46a26
Updated persist form state
bennobuilder Aug 25, 2020
d8bba10
Created Collection persist Function
bennobuilder Aug 26, 2020
861ed4e
Added api and storage into agile.ts
bennobuilder Aug 26, 2020
787deeb
Started to create tests
bennobuilder Aug 26, 2020
6aead64
Fixed execute sideEffects although setting it to false issue
bennobuilder Aug 26, 2020
36809b9
Added some comments into AgileConfigInterface
bennobuilder Aug 26, 2020
1903c14
Fixed unnecessary rerender in state because of object equals check
bennobuilder Aug 26, 2020
b281e2c
Created TestHook
bennobuilder Aug 26, 2020
4b55b74
Updated Tests
bennobuilder Aug 26, 2020
d697f72
Added type safe to useAgile unfortunately I had to remove the non arr…
bennobuilder Aug 27, 2020
2096bb5
Added states to group and created ingest method in state(to be able t…
bennobuilder Aug 28, 2020
7770573
Fixed computed issue
bennobuilder Aug 28, 2020
344d9ad
Optimized group and selector return behaviour
bennobuilder Aug 29, 2020
5fe0d34
Optimized type safety by useAgile
bennobuilder Aug 29, 2020
68b6585
Fixed selector bug
bennobuilder Aug 30, 2020
0644fe6
Refactored existing tests
bennobuilder Aug 30, 2020
785fd25
Fixed typo
bennobuilder Aug 30, 2020
196a35e
Created type tests and fixed some tpos
bennobuilder Aug 30, 2020
8716c83
Created undo and reset function tests
bennobuilder Aug 30, 2020
727529e
Created patch Tests and fixed some patch bugs
bennobuilder Aug 30, 2020
b3dc70e
Fixed some typos and added watcher tests
bennobuilder Aug 30, 2020
d1622f7
Fixed autotracking state issue in findById method
bennobuilder Aug 31, 2020
9bae6b4
Created state persist method tests.. and fixed some state persist issues
bennobuilder Aug 31, 2020
b7de05c
Created storage tests
bennobuilder Aug 31, 2020
2a7661a
Added set test in persist tests
bennobuilder Aug 31, 2020
90fb4bd
Made some naming changes in state
bennobuilder Aug 31, 2020
a5fd54c
Fixed default test issue
bennobuilder Aug 31, 2020
fabb701
Added default group in constructor.. and not only in the collect func…
bennobuilder Aug 31, 2020
ee6c0f8
Refactored some state tests
bennobuilder Aug 31, 2020
3f2f475
Created collection default tests
bennobuilder Sep 1, 2020
a9a6040
Made some state test changes
bennobuilder Sep 1, 2020
b346773
Created collection collect tests
bennobuilder Sep 1, 2020
40a2175
Fixed reference bug with collection config
bennobuilder Sep 1, 2020
b7209f0
Fixed update method background option functionality
bennobuilder Sep 1, 2020
9f2dab8
Created 'can't collect no object item' test in collect tests
bennobuilder Sep 1, 2020
0670116
Created update tests (collection)
bennobuilder Sep 1, 2020
ee2caae
Fixed reference issue in initSubInstances
bennobuilder Sep 1, 2020
a6f303b
Expanded default tests of collection
bennobuilder Sep 1, 2020
6a96c3c
Made some test checks more precisely
bennobuilder Sep 1, 2020
ef45ad4
Created createGroup function tests
bennobuilder Sep 1, 2020
28657c8
Created createSelector function tests
bennobuilder Sep 1, 2020
20381ea
Expanded createSelector tests and fixed some small typing issues in c…
bennobuilder Sep 2, 2020
b7aafe1
Created getGroup tests
bennobuilder Sep 2, 2020
057681d
Created getSelector tests
bennobuilder Sep 2, 2020
f67f4df
Transformed _states into an function to be able to stringify it 'clean'
bennobuilder Sep 2, 2020
8a33f1a
Fixed no rerender bug if collecting initial items of group
bennobuilder Sep 2, 2020
999bc9c
Fixed typo
bennobuilder Sep 2, 2020
1584878
Fixed doesn't cause rerender on group if updating item issue
bennobuilder Sep 2, 2020
49d8c69
Fixed === issue in removeData (collection)
bennobuilder Sep 2, 2020
1180841
Created remove function tests
bennobuilder Sep 2, 2020
cfb5648
Added test to collect.function.spec.ts
bennobuilder Sep 3, 2020
c070152
Created findById tests
bennobuilder Sep 3, 2020
ef99848
Created getValueById tests
bennobuilder Sep 3, 2020
835c07c
Optimize group rebuilding in collect function
bennobuilder Sep 3, 2020
385789f
Made some small tweaks in collect function
bennobuilder Sep 3, 2020
f4827d5
Updated remove function tests
bennobuilder Sep 3, 2020
40631ac
Created Group default tests
bennobuilder Sep 3, 2020
d6443d6
Optimized add function in group.ts
bennobuilder Sep 4, 2020
0eb585a
Added some comments
bennobuilder Sep 4, 2020
3b07c36
Added some checks to default group tests
bennobuilder Sep 4, 2020
e046cf0
Created add method tests (group)
bennobuilder Sep 4, 2020
80fbde7
Created has function tests (group)
bennobuilder Sep 4, 2020
43e7ee0
made some small tweaks in tests
bennobuilder Sep 4, 2020
d1b3324
Added options to remove function (group)
bennobuilder Sep 4, 2020
ebec54a
Made copy function kinda typesafe
bennobuilder Sep 4, 2020
d4e3d4c
Added multiple itemKey support in add and remove function
bennobuilder Sep 4, 2020
c5073cd
Added add with multiple Groups tests
bennobuilder Sep 4, 2020
6cee182
Created remove tests (Group)
bennobuilder Sep 4, 2020
563a1e5
removed unnecessary test from group default tests
bennobuilder Sep 5, 2020
431dd0a
Fixed selector issue where the first rebuild didn't work
bennobuilder Sep 5, 2020
86cf80f
Updated useTest so that it is similar to useAgile
bennobuilder Sep 5, 2020
3b4786d
Created selector options in collection Selector
bennobuilder Sep 5, 2020
134bea9
Updated default group tests
bennobuilder Sep 5, 2020
dcc9a5b
Updated default group tests
bennobuilder Sep 5, 2020
ff5e9c8
Fixed getSelector test
bennobuilder Sep 5, 2020
31ff2cb
Created default selector tests
bennobuilder Sep 5, 2020
9ea4d34
Made some small tweaks in update function tests
bennobuilder Sep 5, 2020
ef2436a
Added a test into default selector tests
bennobuilder Sep 5, 2020
fe2d8f7
Optimized select function
bennobuilder Sep 5, 2020
6d7da58
Fixed selector bug where you couldn't select a not existing id if you…
bennobuilder Sep 6, 2020
c79e24b
Fixed doesn't remove old placeholder item in selector if selecting ne…
bennobuilder Sep 6, 2020
a9d22df
Created select function tests (selector)
bennobuilder Sep 6, 2020
92ebb48
Created ReadMe
bennobuilder Sep 6, 2020
d1abe90
Fixed ReadMe gif
bennobuilder Sep 6, 2020
731ee82
Added test to .npmignore
bennobuilder Sep 6, 2020
73a4971
Fixed some small issues
bennobuilder Sep 6, 2020
2d75f83
Fixed 'called to often computedFunction' issue
bennobuilder Sep 6, 2020
965ad95
Fixed 'Hardcoded deps in computed doesn't have computed as dep' issue
bennobuilder Sep 6, 2020
1485e4f
Created default computed tests
bennobuilder Sep 6, 2020
8206faf
Added rerender tests in computed default tests
bennobuilder Sep 7, 2020
cfed7fb
Created updateComputeFunction tests
bennobuilder Sep 7, 2020
9fa8720
Merge branch 'master' into develop
bennobuilder Sep 7, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
node_modules/
dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
sync.js

# Generated files from build
src/*.js
src/*.js.map
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
examples
test
16 changes: 13 additions & 3 deletions ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
# Agile `1.0`
# Agile Framework `1.0`

Agile is a dummy framework, which is strongly oriented on puls js
https://pulsejs.org/
_Agile is a global state and logic framework for reactive Typescript & Javascript applications. Supporting frameworks like React and React Native._

#### Agile is strongly inspired by [PulseJs](https://github.com/pulse-framework/pulse)
It was mainly created to learn how Pulse works under the hood, and it was fun to 'copy' and optimize PulseJs.
I will use this project mainly for my own project because here the code style is after my taste..
So I can change things quickly and don't have to deal with a big framework which is used by many people and must function perfectly.

##### Feel free to use it but be aware that it is optimized to my needs and has no docs

<div align="center">
<img src="https://i.pinimg.com/originals/66/70/fd/6670fd61b91760bf8f04ca0479a2e0d1.gif">
</div>
23 changes: 23 additions & 0 deletions examples/react-typescript/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
44 changes: 44 additions & 0 deletions examples/react-typescript/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `yarn start`

Runs the app in the development mode.<br />
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br />
You will also see any lint errors in the console.

### `yarn test`

Launches the test runner in the interactive watch mode.<br />
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `yarn build`

Builds the app for production to the `build` folder.<br />
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br />
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `yarn eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).
Loading