Skip to content

Commit 45270ec

Browse files
committed
Interim commit before trying to add browser-core. Wish me luck.
1 parent 92501b6 commit 45270ec

File tree

10 files changed

+195
-130
lines changed

10 files changed

+195
-130
lines changed

dist/bundle.js

Lines changed: 12 additions & 2 deletions
Large diffs are not rendered by default.

dist/docs/_sidebar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- [Packages](packages/)
1111
- [Privacy Policy](privacy-policy.md)
1212
- Release Notes
13-
- [Version 2021.12.1](release_notes/2021.12.1.md)
13+
- [Version 2022.1.1](release_notes/2021.12.1.md)
1414
- [Version 2021.10.2](release_notes/2021.10.2.md)
1515
- [Version 2021.10.1](release_notes/2021.10.1.md)
1616
- [Version 2021.6.2](release_notes/2021.6.2.md)

dist/docs/message_types/about.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,3 @@
1-
# about (profile update)
2-
About messages are used to add additional information to another message, much like attaching post-it notes to some book page. You're _attaching information about_ something. Most use cases of `about` messages are to add names, images and descriptions to a user profile.
3-
4-
> **Attention:** There is no central authority handling names on the Scuttleverse. Much like in the physical world where two people can have the exact same name so it is on Scuttlebutt.
5-
>
6-
> You can name other people as well, just like partners and friends do.
7-
8-
9-
## What does it look like?
10-
11-
~~~
12-
{
13-
"key": "%buRChtQMrk/WjZQsfsgsg17XHmSDnMMKfFEXv/bjL43lQ=.sha256",
14-
"value": {
15-
"previous": null,
16-
"sequence": 1,
17-
"author": "@G/zUdqlPsdgsgd8yXIfMjx1676ApAOghwgc=.ed25519",
18-
"timestamp": 1560287825423,
19-
"hash": "sha256",
20-
"content": {
21-
"type": "about",
22-
"about": "@G/zUdqlPMsdgsdg8yXIfMjx1676ApAOghwgc=.ed25519",
23-
"image": "&N3ectV2qM5gyH2Zrsdgsdgd+InCMkJBc/MaTbJ0=.sha256",
24-
"name": "Hilo",
25-
"description": "extrem klug"
26-
},
27-
"signature": "UMjf4aFsdgsgUY9zeDAqWdTZeymoQznicvfgATu0/kArvLnshqbkiG7ZIngXcnztMUc6SyI4GrDwkAA==.sig.ed25519"
28-
},
29-
"timestamp": 1560288248693,
30-
"rts": 1560287825423
31-
}
32-
~~~
33-
34-
The message above is adding a `name`, an `image` and a `description` to the user specified by the `about` field.
35-
36-
There is a lot more [information about `about` online](http://scuttlebot.io/docs/message-types/about.html).
37-
38-
391
# about (gathering)
402

413
`about` messages are very flexible. They are often used to add or alter metadata _about_ some other message. In Patchfox documentation, I use the jargon that this message is _overloaded_ and it's meaning depends on which message it is _abouting_ about.
@@ -89,3 +51,41 @@ Let's look at another case of `about` being used with _gatherings_:
8951
```
9052

9153
That message is marking a _feed_ (aka a user) as attending the _gathering_.
54+
55+
56+
# about (profile update)
57+
About messages are used to add additional information to another message, much like attaching post-it notes to some book page. You're _attaching information about_ something. Most use cases of `about` messages are to add names, images and descriptions to a user profile.
58+
59+
> **Attention:** There is no central authority handling names on the Scuttleverse. Much like in the physical world where two people can have the exact same name so it is on Scuttlebutt.
60+
>
61+
> You can name other people as well, just like partners and friends do.
62+
63+
64+
## What does it look like?
65+
66+
~~~
67+
{
68+
"key": "%buRChtQMrk/WjZQsfsgsg17XHmSDnMMKfFEXv/bjL43lQ=.sha256",
69+
"value": {
70+
"previous": null,
71+
"sequence": 1,
72+
"author": "@G/zUdqlPsdgsgd8yXIfMjx1676ApAOghwgc=.ed25519",
73+
"timestamp": 1560287825423,
74+
"hash": "sha256",
75+
"content": {
76+
"type": "about",
77+
"about": "@G/zUdqlPMsdgsdg8yXIfMjx1676ApAOghwgc=.ed25519",
78+
"image": "&N3ectV2qM5gyH2Zrsdgsdgd+InCMkJBc/MaTbJ0=.sha256",
79+
"name": "Hilo",
80+
"description": "extrem klug"
81+
},
82+
"signature": "UMjf4aFsdgsgUY9zeDAqWdTZeymoQznicvfgATu0/kArvLnshqbkiG7ZIngXcnztMUc6SyI4GrDwkAA==.sig.ed25519"
83+
},
84+
"timestamp": 1560288248693,
85+
"rts": 1560287825423
86+
}
87+
~~~
88+
89+
The message above is adding a `name`, an `image` and a `description` to the user specified by the `about` field.
90+
91+
There is a lot more [information about `about` online](http://scuttlebot.io/docs/message-types/about.html).

dist/docs/packages/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,24 @@
33

44
These are the packages that Patchfox is loading.
55

6-
* [githubIntegration](/packages/githubIntegration/)
7-
* [books](/packages/books/)
86
* [blog](/packages/blog/)
9-
* [globalMenu](/packages/globalMenu/)
7+
* [books](/packages/books/)
8+
* [githubIntegration](/packages/githubIntegration/)
109
* [errorHandler](/packages/errorHandler/)
10+
* [globalMenu](/packages/globalMenu/)
11+
* [contacts](/packages/contacts/)
1112
* [calendar](/packages/calendar/)
1213
* [helpMenu](/packages/helpMenu/)
13-
* [contacts](/packages/contacts/)
1414
* [hub](/packages/hub/)
1515
* [intercept](/packages/intercept/)
16-
* [openCollectiveIntegration](/packages/openCollectiveIntegration/)
1716
* [launcher](/packages/launcher/)
18-
* [private](/packages/private/)
19-
* [pub](/packages/pub/)
17+
* [openCollectiveIntegration](/packages/openCollectiveIntegration/)
2018
* [post](/packages/post/)
21-
* [sourcehutIntegration](/packages/sourcehutIntegration/)
19+
* [pub](/packages/pub/)
20+
* [private](/packages/private/)
2221
* [search](/packages/search/)
23-
* [system](/packages/system/)
2422
* [settings](/packages/settings/)
23+
* [sourcehutIntegration](/packages/sourcehutIntegration/)
24+
* [system](/packages/system/)
2525
* [vote](/packages/vote/)
2626
* [zine](/packages/zine/)
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Release 2022.1.1
2+
3+
## Fixes & Improvements
4+
5+
* New preferences to set font size for both viewing content and composing new messages.
6+
* Adding thumbnails to blog messages in the blog compose window works again.
7+
* Fixes wrong message in `errorHandler` package when the error originates outside a package.
8+
* Fixed bug in the _popular query_ used to compute the _hub → popular_ view. It was barfing errors if a message was missing.
9+
* Fixed a wrong menu entry in the `settings` package.
10+
* Fixed problem with thumbnail attachment in `blog` composition.

dist/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"description": "Patchfox is a Secure Scuttlebutt client",
33
"manifest_version": 2,
44
"name": "Patchfox",
5-
"version": "2021.12.1",
5+
"version": "2022.1.1",
66
"icons": {
77
"512": "images/patchfox_pixel_512.png",
88
"96": "images/patchfox_pixel_96.png",

dist/ssb.js

Lines changed: 67 additions & 40 deletions
Large diffs are not rendered by default.

docs/message_types/about.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,3 @@
1-
# about (profile update)
2-
About messages are used to add additional information to another message, much like attaching post-it notes to some book page. You're _attaching information about_ something. Most use cases of `about` messages are to add names, images and descriptions to a user profile.
3-
4-
> **Attention:** There is no central authority handling names on the Scuttleverse. Much like in the physical world where two people can have the exact same name so it is on Scuttlebutt.
5-
>
6-
> You can name other people as well, just like partners and friends do.
7-
8-
9-
## What does it look like?
10-
11-
~~~
12-
{
13-
"key": "%buRChtQMrk/WjZQsfsgsg17XHmSDnMMKfFEXv/bjL43lQ=.sha256",
14-
"value": {
15-
"previous": null,
16-
"sequence": 1,
17-
"author": "@G/zUdqlPsdgsgd8yXIfMjx1676ApAOghwgc=.ed25519",
18-
"timestamp": 1560287825423,
19-
"hash": "sha256",
20-
"content": {
21-
"type": "about",
22-
"about": "@G/zUdqlPMsdgsdg8yXIfMjx1676ApAOghwgc=.ed25519",
23-
"image": "&N3ectV2qM5gyH2Zrsdgsdgd+InCMkJBc/MaTbJ0=.sha256",
24-
"name": "Hilo",
25-
"description": "extrem klug"
26-
},
27-
"signature": "UMjf4aFsdgsgUY9zeDAqWdTZeymoQznicvfgATu0/kArvLnshqbkiG7ZIngXcnztMUc6SyI4GrDwkAA==.sig.ed25519"
28-
},
29-
"timestamp": 1560288248693,
30-
"rts": 1560287825423
31-
}
32-
~~~
33-
34-
The message above is adding a `name`, an `image` and a `description` to the user specified by the `about` field.
35-
36-
There is a lot more [information about `about` online](http://scuttlebot.io/docs/message-types/about.html).
37-
38-
391
# about (gathering)
402

413
`about` messages are very flexible. They are often used to add or alter metadata _about_ some other message. In Patchfox documentation, I use the jargon that this message is _overloaded_ and it's meaning depends on which message it is _abouting_ about.
@@ -89,3 +51,41 @@ Let's look at another case of `about` being used with _gatherings_:
8951
```
9052

9153
That message is marking a _feed_ (aka a user) as attending the _gathering_.
54+
55+
56+
# about (profile update)
57+
About messages are used to add additional information to another message, much like attaching post-it notes to some book page. You're _attaching information about_ something. Most use cases of `about` messages are to add names, images and descriptions to a user profile.
58+
59+
> **Attention:** There is no central authority handling names on the Scuttleverse. Much like in the physical world where two people can have the exact same name so it is on Scuttlebutt.
60+
>
61+
> You can name other people as well, just like partners and friends do.
62+
63+
64+
## What does it look like?
65+
66+
~~~
67+
{
68+
"key": "%buRChtQMrk/WjZQsfsgsg17XHmSDnMMKfFEXv/bjL43lQ=.sha256",
69+
"value": {
70+
"previous": null,
71+
"sequence": 1,
72+
"author": "@G/zUdqlPsdgsgd8yXIfMjx1676ApAOghwgc=.ed25519",
73+
"timestamp": 1560287825423,
74+
"hash": "sha256",
75+
"content": {
76+
"type": "about",
77+
"about": "@G/zUdqlPMsdgsdg8yXIfMjx1676ApAOghwgc=.ed25519",
78+
"image": "&N3ectV2qM5gyH2Zrsdgsdgd+InCMkJBc/MaTbJ0=.sha256",
79+
"name": "Hilo",
80+
"description": "extrem klug"
81+
},
82+
"signature": "UMjf4aFsdgsgUY9zeDAqWdTZeymoQznicvfgATu0/kArvLnshqbkiG7ZIngXcnztMUc6SyI4GrDwkAA==.sig.ed25519"
83+
},
84+
"timestamp": 1560288248693,
85+
"rts": 1560287825423
86+
}
87+
~~~
88+
89+
The message above is adding a `name`, an `image` and a `description` to the user specified by the `about` field.
90+
91+
There is a lot more [information about `about` online](http://scuttlebot.io/docs/message-types/about.html).

docs/release_notes/2022.1.1.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Release 2022.1.1
22

3+
4+
## Rework
5+
6+
A huge part of this release is the invisible work of [refactoring the high-level SSB library](https://github.com/soapdog/patchfox/issues/105) used in Patchfox into multiple high-level SSB libraries to better [support multiple SSB server implementations](https://github.com/soapdog/patchfox/issues/109). This has been a ton of work, and it is all under the surface.
7+
8+
A visible feature that is enabled by this work is supporting multiple identities, a video showing this feature [is available on YouTube](https://www.youtube.com/watch?v=aNIXQH1fX_A).
9+
310
## Fixes & Improvements
411

512
* New preferences to set font size for both viewing content and composing new messages.

src/core/platforms/nodejs-ssb/ssb.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ const {
3333
setMsgCache,
3434
setAvatarCache,
3535
getCachedAvatar,
36-
getAllCachedUsers} = require("../common/cache.js")
36+
getAllCachedUsers,
37+
loadCaches} = require("../common/cache.js")
3738
const {
3839
setSharedFunctionsForFilters,
3940
filterTypes,
@@ -71,6 +72,16 @@ class NodeJsSSB {
7172
this.rooms2 = rooms2
7273
this.system = system
7374
this.friendship = friendship
75+
76+
// merging from common
77+
// TODO: automate this with auxiliary function in commons.
78+
this.loadCaches = loadCaches
79+
this.resultFromCache = resultFromCache
80+
this.getMsgCache = getMsgCache
81+
this.setMsgCache = setMsgCache
82+
this.setAvatarCache = setAvatarCache
83+
this.getCachedAvatar = getCachedAvatar
84+
this.getAllCachedUsers = getAllCachedUsers
7485
}
7586

7687
log(pMsg, pVal = "") {

0 commit comments

Comments
 (0)