Commit Graph

74 Commits

Author SHA1 Message Date
dependabot[bot] c4577827e0
Bump @types/node from 17.0.10 to 17.0.12 in /examples/web-chat (#434)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.10 to 17.0.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-26 21:02:47 +11:00
dependabot[bot] adcec18c3e
Bump typescript from 4.5.4 to 4.5.5 in /examples/web-chat (#425)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.4 to 4.5.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.4...v4.5.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-24 19:38:04 +11:00
dependabot[bot] a821bbfa76
Bump cspell from 5.15.3 to 5.16.0 in /examples/web-chat (#423)
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.15.3 to 5.16.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.15.3...v5.16.0)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-24 19:20:50 +11:00
dependabot[bot] d4e72af664
Bump cspell from 5.15.2 to 5.15.3 in /examples/web-chat (#422)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-21 14:29:07 +11:00
dependabot[bot] 8a0ccd123b
Bump @types/node from 17.0.8 to 17.0.10 in /examples/web-chat (#416)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-19 14:36:01 +11:00
Franck Royer 4fd2db608b
Update caniuse in all examples 2022-01-13 16:40:11 +11:00
Franck Royer 284644b822
Fix-up new bootstrap API 2022-01-13 16:39:52 +11:00
dependabot[bot] 1a17523c1c
Bump cspell from 5.15.1 to 5.15.2 in /examples/web-chat
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.15.1 to 5.15.2.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.15.1...v5.15.2)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-11 15:25:33 +00:00
dependabot[bot] a4d8e01c09
Bump cspell from 5.14.0 to 5.15.1 in /examples/web-chat
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 5.14.0 to 5.15.1.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v5.14.0...v5.15.1)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-10 01:59:38 +00:00
Franck Royer 290828baff
Remove unneeded comments 2022-01-07 15:19:33 +11:00
Franck Royer add78bce71
Format js config file 2022-01-07 15:18:37 +11:00
Franck Royer e18c4f1619
Ignore source map warnings
This is for debugging purposes and out of scope for this example.
2022-01-07 15:17:31 +11:00
Franck Royer eaae1e5372
Replace react-app-rewired with cra-webpack-rewired
The second is more appropriate for react 5
2022-01-07 15:05:40 +11:00
Franck Royer 6a372cd27f
Update other deps 2022-01-06 17:42:16 +11:00
Franck Royer cd7a8784d3
Upgrade few dependencies 2022-01-06 17:39:08 +11:00
Franck Royer 761c92d28f
Run `npm audit fix` 2022-01-06 17:15:23 +11:00
Franck Royer 0de6b52e87
Update caniuse-lite 2022-01-06 17:10:58 +11:00
Franck Royer 942b3ded75
Fix Cannot convert BigInt value to a number
By not transpiling for older browsers that do not support BigInt.
2022-01-05 16:49:46 +11:00
Franck Royer 6ebcc46f9e
Remove ReactJS warning about webpack
Because this is not a monorepo, ReactJS projects are examples.
2021-10-12 11:43:29 +11:00
Franck Royer f5a0416efd
Rename to page direction
As the direction only affects the page ordering,
not the message ordering in the pages.
2021-10-05 13:36:03 +11:00
Franck Royer a21d641280
Added `Waku.waitForConnectedPeer` helper
To ensure that we are connected to Waku peers when using the bootstrap
option.
2021-09-02 15:46:23 +10:00
Franck Royer 4719de31b8
Run build with NodeJS 16 2021-08-26 13:02:09 +10:00
Franck Royer 5c1cda8b2a
Demonstrate usage of history time filter in web chat 2021-08-26 11:50:20 +10:00
Franck Royer 140791cc91
Provide easy way to bootstrap when creating Waku node 2021-08-13 16:18:00 +10:00
Franck Royer c3855112d7
Rename `getStatusFleetNodes`
To make it more generic to allow retrieval of bootstrap nodes from
other sources.
2021-08-13 16:17:15 +10:00
Franck Royer eb04acd1a0
Fix format 2021-08-09 14:40:57 +10:00
Franck Royer be771d6619
This would have failed if the first node we connect to is NOT store 2021-08-09 12:36:53 +10:00
Franck Royer 319f44a0b1
`WakuStore.queryHistory` throws when encountering an error
Instead of returning a `null` value.
2021-08-09 12:36:24 +10:00
Franck Royer b422c9a10b
Move `contentTopics` out the `WakuStore.queryHistory`'s optional params 2021-08-09 12:36:12 +10:00
Franck Royer ad9d629daa
`ChatMessage` has been moved from js-waku to web-chat example
It is a type used for the [TOY-CHAT](https://rfc.vac.dev/spec/22/)
 protocol;
js-waku users should not build on top if this toy protocol and instead
design message data structures appropriate to their use case.
2021-08-06 17:25:12 +10:00
Franck Royer 27feaaac4b
Revert "Run tests in parallel"
This reverts commit b8e7079b67.
2021-08-04 14:53:07 +10:00
Franck Royer b8e7079b67
Run tests in parallel
React build is quite long so best to run other linters in parallel.
2021-08-02 14:12:39 +10:00
Franck Royer 2306bb1708
Add breakdown of what examples demonstrate
Also move explanation to each readme.
2021-08-02 10:45:10 +10:00
Franck Royer d307342f7e
Simplify message handling to avoid re-rendering
Only retrieve historical messages when starting the app.

This allows avoid re-rendering issues. This is an example dApp. No need
to waste time on React optimisation.
2021-07-29 17:23:03 +10:00
Franck Royer 9aaac20981
Examples: Content Topic moved out of options parameter 2021-07-28 12:03:51 +10:00
Franck Royer 53ef23362c
Remove faulty fleet feature
It does not work as it can lead to infinite loops due to the handling of
the Waku instance. It should disconnect and reconnect to peers instead
of starting a new waku instance.
2021-07-28 11:58:02 +10:00
Franck Royer 5c790a41c9
Add network info in toolbar 2021-07-15 14:37:30 +10:00
Franck Royer 53412e2fb4
New `/fleet` command to change target Status fleet 2021-07-15 14:25:59 +10:00
Franck Royer 9ffb33cdde
Make fleet environment part of the state 2021-07-15 14:14:45 +10:00
Franck Royer bc3b00b13e
Use `const` as setter should be used to change values 2021-07-15 14:11:00 +10:00
Franck Royer a8e2b908ba
Cleanup observers
And name function to avoid commenting.
2021-07-15 14:09:58 +10:00
Franck Royer 6e22897f74
Rename `stateWaku` to `waku`
There should only be one.
2021-07-15 14:08:07 +10:00
Franck Royer 4f50ca1732
Align examples 2021-07-09 15:50:16 +10:00
Franck Royer 2266f31d30
Move optional parameters to a single `Options` object. 2021-07-09 15:50:15 +10:00
Franck Royer c293e268e8
Do not send message if a modifier is pressed to enable multiline msgs 2021-06-11 14:38:31 +10:00
Franck Royer 8073021d82
Do not fail if a chat message is malformed 2021-06-11 14:38:22 +10:00
Franck Royer f17a008278
Separate the libp2p create options from Waku's 2021-06-09 15:00:02 +10:00
Franck Royer 0d00328715
Split useEffect calls
Better React practice.
2021-06-04 15:25:53 +10:00
Franck Royer 6b48c55266
Persist nick 2021-06-04 15:15:07 +10:00
Franck Royer b90b66c5f6
Add comment 2021-06-04 14:59:40 +10:00