-
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
55 changed files
with
6,272 additions
and
7,508 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,5 +1,21 @@ | ||
# Apollo Orbit | ||
# 🚀 Apollo Orbit | ||
|
||
## Packages | ||
* [Angular](./packages/angular/) | ||
* [React](./packages/react/) | ||
## 📦 Packages | ||
* [🅰️ Angular](./packages/angular/) | ||
* [⚛️ React](./packages/react/) | ||
|
||
## 📚 Documentation | ||
|
||
For full documentation, please visit [Apollo Orbit Docs](https://wassim-k.github.io/apollo-orbit). | ||
|
||
## 🤝 Contributing | ||
|
||
We welcome contributions! You can start by [forking the repository](https://github.com/wassim-k/apollo-orbit/fork). | ||
|
||
## 🐛 Issues | ||
|
||
If you encounter any bugs, have a feature request, or need help with something specific, please [open an issue](https://github.com/wassim-k/apollo-orbit/issues) on GitHub. Make sure to provide as much detail as possible to help us understand and resolve the issue quickly. | ||
|
||
## 📄 License | ||
|
||
This project is licensed under the MIT License - see the [LICENSE](https://github.com/wassim-k/apollo-orbit/blob/main/LICENSE) file for details. |
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,46 @@ | ||
module.exports = { | ||
projects: { | ||
ngCore: { | ||
schema: [ | ||
'http://localhost:4000/graphql', | ||
'integration/angular/projects/core/src/**/*.state.ts' | ||
], | ||
documents: [ | ||
'integration/angular/projects/core/src/**/*.graphql' | ||
], | ||
extensions: { | ||
customDirectives: [ | ||
'directive @client on FIELD' | ||
] | ||
} | ||
}, | ||
ngEffects: { | ||
schema: [ | ||
'http://localhost:4000/graphql', | ||
'integration/angular/projects/effects/src/**/*.state.ts' | ||
], | ||
documents: [ | ||
'integration/angular/projects/effects/src/**/*.graphql' | ||
], | ||
extensions: { | ||
customDirectives: [ | ||
'directive @client on FIELD' | ||
] | ||
} | ||
}, | ||
react: { | ||
schema: [ | ||
'http://localhost:4000/graphql', | ||
'integration/react/src/**/*.state.ts' | ||
], | ||
documents: [ | ||
'integration/react/src/**/*.graphql' | ||
], | ||
extensions: { | ||
customDirectives: [ | ||
'directive @client on FIELD' | ||
] | ||
} | ||
} | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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
14 changes: 0 additions & 14 deletions
14
integration/angular/projects/effects/src/app/lazy/lazy-routing.module.ts
This file was deleted.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
integration/angular/projects/effects/src/app/lazy/lazy.component.html
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,8 +1,8 @@ | ||
@if (lazyQuery | async; as lazyResult) { | ||
@if (lazyResult.loading) { | ||
<p>Loading lazy...</p> | ||
} | ||
@if (lazyResult.data?.lazy === true) { | ||
<p>Lazy loaded</p> | ||
} | ||
@if (lazyResult.loading) { | ||
<p>Loading lazy...</p> | ||
} | ||
@if (lazyResult.data?.lazy === true) { | ||
<p>Lazy loaded</p> | ||
} | ||
} |
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
20 changes: 0 additions & 20 deletions
20
integration/angular/projects/effects/src/app/lazy/lazy.module.ts
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
integration/angular/projects/effects/src/app/lazy/lazy.routes.ts
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,14 @@ | ||
import { Routes } from '@angular/router'; | ||
import { provideStates } from '@apollo-orbit/angular'; | ||
import { LazyComponent } from './lazy.component'; | ||
import { lazyState } from './states/lazy/lazy.state'; | ||
|
||
export const LAZY_ROUTES: Routes = [ | ||
{ | ||
path: '', | ||
component: LazyComponent, | ||
providers: [ | ||
provideStates(lazyState) | ||
] | ||
} | ||
]; |
2 changes: 1 addition & 1 deletion
2
integration/angular/projects/effects/src/app/lazy/states/lazy/gql/lazy.graphql
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,3 +1,3 @@ | ||
query Lazy { | ||
lazy @client | ||
lazy @client | ||
} |
9 changes: 4 additions & 5 deletions
9
integration/angular/projects/effects/src/app/lazy/states/lazy/lazy.state.ts
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.