Skip to content

Commit 402f3ff

Browse files
authored
chore(samples): Flushing out samples (#2933)
* Splitting out the samples more * Add sample callouts * Small README changes
1 parent b22c824 commit 402f3ff

File tree

224 files changed

+14624
-146
lines changed

Some content is hidden

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

224 files changed

+14624
-146
lines changed

.gitattributes

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
src/**/firebase.ts linguist-generated=true
22
src/**/rxfire.ts linguist-generated=true
33
src/compat/**/base.ts linguist-generated=true
4-
sample/**/* linguist-generated=true
5-
sample-compat/**/* linguist-generated=true
4+
samples/**/* linguist-generated=true
5+
yarn.lock linguist-generated=true

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ Neither AngularFire or Firebase ship with polyfills. To have compatability acros
8787
| Various ES5+ features | IE 11<br>Safari &lt; 10 | [`core-js/stable`](https://github.com/zloirock/core-js#readme) | MIT |
8888
| `globalThis` | [IE 11<br>Chrome &lt; 71<br>Safari &lt; 12.1<br>iOS &lt; 12.2<br>Node &lt; 12](https://caniuse.com/mdn-javascript_builtins_globalthis) | [`globalThis`](https://github.com/es-shims/globalThis#readme) | MIT |
8989
| `Proxy` | [IE 11<br>Safari &lt; 10](https://caniuse.com/proxy) | [`proxy-polyfill`](https://github.com/GoogleChrome/proxy-polyfill#readme) | Apache 2.0 |
90-
| `fetch` | [IE 11<br>Node<br>Safari &lt; 10.1<br>iOS &lt; 10.3](https://caniuse.com/fetch) | [`cross-fetch`](https://github.com/lquixada/cross-fetch#readme) | MIT |
91-
| `Headers` | [IE 11<br>Node<br>Safari &lt; 10.1<br>iOS Safari](https://caniuse.com/mdn-api_headers) | [`cross-fetch`](https://github.com/lquixada/cross-fetch#readme) | MIT |
90+
| `fetch` | [IE 11<br>Safari &lt; 10.1<br>iOS &lt; 10.3](https://caniuse.com/fetch) | [`cross-fetch`](https://github.com/lquixada/cross-fetch#readme) | MIT |
9291

9392
## Resources
9493

@@ -100,7 +99,17 @@ Neither AngularFire or Firebase ship with polyfills. To have compatability acros
10099

101100
[Upgrading to v7.0? Check out our guide.](docs/version-7-upgrade.md)
102101

103-
**Having troubles?** Get help on our [Q&A board](https://github.com/angular/angularfire/discussions?discussions_q=category%3AQ%26A), the official [Firebase Mailing List](https://groups.google.com/forum/#!forum/firebase-talk), the [Firebase Community Slack](https://firebase.community/) (`#angularfire2`), the [Angular Community Discord](http://discord.gg/angular) (`#firebase`), [Gitter](https://gitter.im/angular/angularfire2), the [Firebase subreddit](https://www.reddit.com/r/firebase), or [Stack Overflow](https://stackoverflow.com/questions/tagged/angularfire2).
102+
### Sample apps
103+
104+
We have three sample apps in this repository:
105+
106+
1. [`samples/compat`](samples/compat) a kitchen sink application that demonstrates use of the "compatability" API in an Angular Universal app w/TransferState.
107+
1. [`samples/modular`](samples/modular) a kitchen sink application that demonstrates the new tree-shakable API in an Angular Universal app w/TransferState.
108+
1. [`samples/advanced`](samples/advanced) the same app as `samples/modular` but demonstrates more advanced concepts such as dynamically importing Firebase feature modules and Firestore data bundling.
109+
110+
### Having troubles?
111+
112+
Get help on our [Q&A board](https://github.com/angular/angularfire/discussions?discussions_q=category%3AQ%26A), the official [Firebase Mailing List](https://groups.google.com/forum/#!forum/firebase-talk), the [Firebase Community Slack](https://firebase.community/) (`#angularfire2`), the [Angular Community Discord](http://discord.gg/angular) (`#firebase`), [Gitter](https://gitter.im/angular/angularfire2), the [Firebase subreddit](https://www.reddit.com/r/firebase), or [Stack Overflow](https://stackoverflow.com/questions/tagged/angularfire2).
104113

105114
> **NOTE:** AngularFire is maintained by Googlers but is not a supported Firebase product. Questions on the mailing list and issues filed here are answered on a <strong>best-effort basis</strong> by maintainers and other community members. If you are able to reproduce a problem with Firebase <em>outside of AngularFire's implementation</em>, please [file an issue on the Firebase JS SDK](https://github.com/firebase/firebase-js-sdk/issues) or reach out to the personalized [Firebase support channel](https://firebase.google.com/support/).
106115

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
| Version | Supported |
66
| ------- | ------------------ |
7-
| 5.0+ | :white_check_mark: |
8-
| < 5.0 | :x: |
7+
| 6.0+ | :white_check_mark: |
8+
| < 6.0 | :x: |
99

1010
## Reporting a Vulnerability
1111

docs/version-7-upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ collection<T>(firestore, 'foo') // CollectionReference<T>
164164

165165
```ts
166166
import { collectionGroup } from '@angular/fire/firestore';
167-
collectionGroup<T>('foo') // Query<T>
167+
collectionGroup<T>(firestore, 'foo') // Query<T>
168168
```
169169
</td>
170170
</tr>

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,8 @@
6868
"semver": "^7.1.3",
6969
"tslib": "^2.1.0",
7070
"webpack": "^5.35.0",
71-
"ws": "^7.2.1",
72-
"xhr2": "^0.1.4",
7371
"zone.js": "~0.11.4"
7472
},
75-
"optionalDependencies": {
76-
"bufferutil": "^4.0.1",
77-
"utf-8-validate": "^5.0.2"
78-
},
7973
"devDependencies": {
8074
"@angular-devkit/build-angular": "^12.0.0",
8175
"@angular/animations": "~12.0.0",

sample/src/app/auth/GoogleAuthProvider.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

sample/src/app/upboats/lazyFirestore.ts

Lines changed: 0 additions & 43 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

sample/package.json renamed to samples/advanced/package.json

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sample/server.ts renamed to samples/advanced/server.ts

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/advanced/src/app/app-routing.module.ts

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/advanced/src/app/app.component.ts

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sample/src/app/app.module.ts renamed to samples/advanced/src/app/app.module.ts

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/advanced/src/app/app.server.module.ts

Lines changed: 26 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/advanced/src/app/auth/auth.component.ts

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sample/src/app/getFirestore.ts renamed to samples/advanced/src/app/getFirestore.ts

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/advanced/src/app/login/login-routing.module.ts

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/advanced/src/app/login/login.component.spec.ts

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

samples/advanced/src/app/login/login.component.ts

Lines changed: 37 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)