Commit Graph

277 Commits

Author SHA1 Message Date
Christian Bundy 8088a9aa8b Add Oasis version to settings
Problem: It was impossible to tell which version of Oasis you're
running, which makes it hard to know when you need to update.

Solution: Put the version in the settings so it's easy to reference.
2020-02-18 10:44:36 -08:00
Christian Bundy 1e28b29758 Replace cooler methods with SSB-Client promises
Problem: We started using `cooler.get()` and `cooler.read()` because it
was impossible to use promises with SSB-Client.

Solution: I made some downstream pull requests into the MuxRPC module
and the SSB-Client module, which means that both of them now natively
support promises. This commit removes the weird convenience methods and
replaces them with the native promise support, which should hopefully
make the code easier to read and write.
2020-02-11 13:20:50 -08:00
Christian Bundy 6031b11470 2.13.1 2020-02-09 16:05:36 -08:00
Christian Bundy dfb498181b 2.13.0 2020-02-09 08:11:32 -08:00
Cinnamon 22fe9763d7
Merge pull request #125 from christianbundy/no-links2
Update Flotilla to drop SSB-Links2
2020-01-31 15:29:11 -08:00
Christian Bundy 01701d5119 Fix SVG rendering by setting content-type
Problem: Most browsers parse SVG files as XML and refuse to display it
in an `<img>` tag. It's usually unsafe to have browsers try to sniff the
file type themselves, because they can be tricked into running unsafe
code, so we want to set the file type ourselves in the server.

Solution: Use the Is-SVG library for a quick-n-dirty check for whether a
buffer is an SVG. If so, we set the file type accordingly.
2020-01-31 15:04:13 -08:00
Christian Bundy dc23b8bdf2 Update Flotilla to drop SSB-Links2
Problem: We aren't using the index at all so Oasis is just wasting time
and CPU power.

Solution: Upgrade Flotilla and resolve the problem.
2020-01-31 12:59:26 -08:00
Christian Bundy 17cb550539 Specify exact Node.js engine support and test it
Problem: Targeting only the latest version of Node.js and the latest LTS
means that we have a sort of rolling backward-compatibility that's hard
to reason about. If we break compatibility, we should release those
changes as a major version, but the current strategy makes it difficult
to tell exactly when we're breaking compatibility.

Solution: Specify the exact Node.js versions that we want to support in
`package.json` and add the specific tests to `.travis.yml`. In the
future we can break compatibility if it's helpful but we'll have to do
so explicitly and release the change as a major version.
2020-01-31 10:59:10 -08:00
Christian Bundy 89b68db17e 2.12.0 2020-01-28 12:56:55 -08:00
Christian Bundy ec3e4d489a Merge branch 'master' of github.com:fraction/oasis into conn-buttons 2020-01-28 10:25:42 -08:00
Christian Bundy b56b4bcd74 Update Flotilla to fix conn.stop bug
Problem: Stopping the networking would sometimes allow peers to remain
connected, which was confusing.

Solution: Upgrade to latest SSB-CONN to pull in a bugfix for this
behavior. Huge thanks to @staltz for the quick fix!
2020-01-28 10:22:24 -08:00
Christian Bundy 681e3c6755 Add buttons to 'meta' page to manage networking
Problem: Sometimes you want to disconnect from the network but you don't
want to have to restart Oasis with the `--offline` flag
(https://github.com/fraction/oasis/issues/89). Sometimes networking gets
stuck and you need to run the equivalent of `ssb gossip reconnect`
(https://github.com/fraction/oasis/issues/63).

Solution: Buttons on the 'meta' page that let you start, stop, or
restart SSB-CONN whenever you want. Note that this commit includes an
update to SSB-CONN, but this version and the previous version both have
a bug where hitting 'stop' twice in a row will throw an error. This
commit implements a workaround for the bug, but it's something we'll
want to remove later once the underlying bug is fixed.
2020-01-26 16:55:48 -08:00
Christian Bundy dec0f42b0f Fix tangle bug when Patchwork is used as a server
Problem: Patchwork is missing a plugin that we need to set the `branch`
property when posting a message. This property is important because it
helps us sort threads, so we're throwing an error when it isn't
available. See: https://github.com/fraction/oasis/issues/21

Solution: HACK THE ~~PLANET~~ API. This commit injects the plugin we
need via Oasis, which is a bit of a duct tape solution but it *is* a
solution.
2020-01-26 12:57:42 -08:00
Christian Bundy 3c50b94fa1 Update Common-Good to stop using npm alias
Problem: CG's dependency, CSpell, had problems with Windows support, so
I was using a forked module as an alias to circumvent the problem. This
only works on very recent version of npm.

Solution: This morning the CSpell maintainer resolved the problem, so
the latest CG doesn't have to depend on an alias. This commit runs `npm
update` to get the latest version of CG so we don't have this problem.
2020-01-25 16:28:08 -08:00
Christian Bundy 8cfc7d1e00 Fix test script in package.json 2020-01-24 09:29:29 -08:00
Christian Bundy 393f7ef087 Update Common-Good to fix Windows problem 2020-01-24 09:28:37 -08:00
Christian Bundy ace1bc0314 Test spawnSync 2020-01-23 18:35:02 -08:00
Christian Bundy 6d8591b0c8 Upgrade ssb-client and common-good 2020-01-23 18:27:06 -08:00
Christian Bundy abe802910f Update npm dependencies for new common-good
Problem: Common-Good had a bug in the Prettier glob where the recursion
wasn't working correctly. This meant that we weren't actually testing or
fixing some of the deeper files.

Solution: Update CG to the latest version and run `npm run fix` to fix
the linter stuff.
2020-01-23 14:36:25 -08:00
Christian Bundy 0a10e37cee Make Travis faster by removing double-build
Problem: Travis builds PRs and branches, which means that local branches
get built twice (!).

Solution: Travis should only build `master`, and maybe tags.
2020-01-23 12:09:59 -08:00
Christian Bundy f0563d3e27 Upgrade common-good 2020-01-21 18:20:06 -08:00
Christian Bundy defe1ecc98 Upgrade to common-good 1.1.1 2020-01-21 17:03:40 -08:00
Christian Bundy b34b04c2c2 Experiment with common-good module 2020-01-21 16:22:19 -08:00
Christian Bundy cb4a6ef971 2.11.0 2020-01-16 11:58:00 -08:00
Christian Bundy 9636d673ad Add latest changes to changelog 2020-01-16 11:57:49 -08:00
Christian Bundy 5f528588b1 Change src directory to use mediator pattern 2020-01-08 08:37:52 -08:00
Christian Bundy 769a279daa 2.10.0 2020-01-06 18:16:11 -08:00
Christian Bundy 48cac575e7 Add install-systemd-service.js 2020-01-03 21:06:08 -08:00
Christian Bundy 67fcb7b19b
2.9.10 2019-12-29 16:01:22 -08:00
Christian Bundy 6ac79b124a
Bump dependencies 2019-12-29 15:51:59 -08:00
Christian Bundy 36b52a0465
2.9.9 2019-12-29 14:03:23 -08:00
Christian Bundy 0791880897
2.9.8 2019-12-27 16:29:23 -08:00
Christian Bundy 42c72e7b8d
Change to make Sharp an optional dependency 2019-12-27 16:28:36 -08:00
Christian Bundy 344d0cade9
2.9.7 2019-12-16 10:13:23 -08:00
Christian Bundy f5e1720552
2.9.6 2019-12-16 09:23:07 -08:00
Christian Bundy 7af6142a6b
2.9.5 2019-12-15 15:25:48 -08:00
Christian Bundy b19b3a7666
2.9.4 2019-12-15 14:11:39 -08:00
Christian Bundy 4a35908863
2.9.3 2019-12-14 16:33:02 -08:00
Christian Bundy 4853c7e903
Upgrade dependencies 2019-12-12 09:27:38 -08:00
Christian Bundy e8d4e0b0df
2.9.2 2019-12-11 19:15:51 -08:00
Christian Bundy 4f3dd0544c
2.9.1 2019-12-07 17:02:02 -08:00
Christian Bundy 05a4c76ca4
2.9.0 2019-12-07 15:27:58 -08:00
Christian Bundy c27d298081
Add basic search functionality 2019-12-07 15:25:24 -08:00
Christian Bundy 284471b9be
2.8.0 2019-12-06 13:34:30 -08:00
Christian Bundy cb47f2a5ca
Replace dog-food filter with popular page
Instead of trying to remove ssb-dev content explicitly I'm going to try
to experiment with a "popular" page that count all of the votes in the
past 24 hours and shows the posts with the most votes.
2019-12-06 11:31:35 -08:00
Christian Bundy 1adce167a7
Change `npm run debug` to `npm run dev` 2019-11-17 19:23:31 -08:00
Christian Bundy 3f621cbe60
Add TypeScript for linting JavaScript 2019-11-15 15:57:57 -08:00
Christian Bundy 4cfff06fc3
2.7.1 2019-11-15 12:16:53 -08:00
Christian Bundy 4e3f74fec2
Change to upgrade open and yargs 2019-11-15 12:16:26 -08:00
Christian Bundy 0142a75f15
Change from ssb-gossip to ssb-conn 2019-11-15 11:42:32 -08:00
Christian Bundy 7ab8c076a9
2.7.0 2019-11-15 10:22:18 -08:00
Christian Bundy 00890184df
Add thread and like views, rename "status" to "meta"
This should probably be separated into a few commits, but honestly I'm
feeling a bit lazy and I don't think this will hurt anything.

The `<nav>` was getting pretty hectic so I've removed "readme" and
"likes". The readme is now in the "meta" page, previously called
"status", and the likes are now available on each author's profile.

The big change here is that the default view is now the thread view, not
the comment view, so by default you're only going to see new threads
rather than random comments. This makes the feed a bit slower and more
cohesive, so you aren't seeing random comments on posts from 2 years
ago.

To be decided: should the comments view show root posts from threads? Or
should it just show comments? Right now it's basically a firehose view,
but I'm not sure that "firehose" is very accessible language for most
people.
2019-11-15 08:39:15 -08:00
Christian Bundy f0bb16542e
2.6.8 2019-11-13 07:39:18 -08:00
Christian Bundy fc1dea442c
Merge branch 'develop' 2019-11-13 07:38:53 -08:00
Christian Bundy deed408404
2.6.7 2019-11-12 20:50:12 -08:00
Christian Bundy c243951771
Change to update all dependencies 2019-11-12 20:48:37 -08:00
Christian Bundy d80665b6e3
Change to update all dependencies 2019-10-31 15:45:10 -07:00
Christian Bundy 4497c09c2f
2.6.6 2019-10-31 15:26:04 -07:00
Christian Bundy 3b8f50111c
2.6.5 2019-10-30 16:56:07 -07:00
Christian Bundy 0448c9142b
2.6.4 2019-10-24 15:19:34 -07:00
Christian Bundy 0abbe2f964
Change to use vanilla ssb-config 2019-10-24 11:29:33 -07:00
Christian Bundy 1ecb41cb33
2.6.3 2019-10-15 21:01:33 -07:00
Christian Bundy ea73181396
Change to use new API from `@fraction/base16-css` 2019-10-15 21:01:14 -07:00
Christian Bundy 50e1ec0aa8
2.6.2 2019-10-08 12:57:37 -07:00
Christian Bundy ba59e48348
Fix missing `isNestedReply()` by locking ssb-thread-schema dependency 2019-10-08 12:56:46 -07:00
Christian Bundy 536767d8c9
2.6.1 2019-10-08 10:39:46 -07:00
Christian Bundy b4f928fc48
Fix install bug by using new CSS variable package 2019-10-08 10:32:13 -07:00
Christian Bundy c43d82ceaa
2.6.0 2019-10-07 20:41:14 -07:00
Christian Bundy c9aa4d0519
2.5.4 2019-09-30 18:20:57 -07:00
Christian Bundy fc337054ce
2.5.3 2019-09-30 18:14:12 -07:00
Christian Bundy 04b6d2a9e1
2.5.2 2019-09-30 17:49:56 -07:00
Christian Bundy 5fada5b4d0
2.5.1 2019-09-30 17:46:18 -07:00
Christian Bundy 0467db81d2
Use pull-paramap to speed up like page 2019-09-30 17:46:04 -07:00
Christian Bundy c0d89d8c81
2.5.0 2019-09-30 17:39:14 -07:00
Christian Bundy 009ccf4706
Change styles to remove duplication 2019-09-30 11:18:29 -07:00
Christian Bundy 88ec77f04e
2.4.0 2019-09-30 08:43:38 -07:00
Christian Bundy ba7fadbf09
2.3.0 2019-09-29 16:07:10 -07:00
Christian Bundy 8f0ed9b872
Add lots of shared base16 + highlight.js themes 2019-09-29 16:06:41 -07:00
Christian Bundy 1325ef34a9
2.2.0 2019-09-29 11:05:49 -07:00
Christian Bundy fd55969db9
Add thread schema module to confirm assumptions about replies 2019-09-28 15:53:23 -07:00
Christian Bundy 92cf6f04ce
Fix public view to avoid showing private messages 2019-09-26 20:27:03 -07:00
Christian Bundy c349a29601
Add reply-all feature for non-forky replies 2019-09-26 17:19:18 -07:00
Christian Bundy f8ebc9cba0
2.1.3 2019-09-26 10:19:16 -07:00
Christian Bundy 5e257c4adc
Fix image link bug with ssb-markdown upgrade 2019-09-26 10:18:34 -07:00
Christian Bundy 82e74da571
Add stylelint-config-standard for more opinionated CSS 2019-09-25 19:07:38 -07:00
Christian Bundy d91969365d
Add stylelint to ensure CSS styles aren't broken 2019-09-25 19:05:41 -07:00
Christian Bundy 6de454e36f
2.1.2 2019-09-25 13:14:30 -07:00
Christian Bundy b0fe178efd
2.1.1 2019-09-25 11:48:14 -07:00
Christian Bundy 45bfad4eca
2.1.0 2019-09-24 16:41:29 -07:00
Christian Bundy 2b59481a30
2.0.0 2019-09-24 13:58:29 -07:00
Christian Bundy 2c7b4ac130
1.22.0 2019-09-19 13:45:56 -07:00
Christian Bundy 50352c6723
1.21.0 2019-09-16 18:12:27 -07:00
Christian Bundy 69405b0197
Fix Travis CI on Windows 2019-09-16 15:50:03 -07:00
Christian Bundy b3af9cb846
Add husky 2019-09-16 13:43:43 -07:00
Christian Bundy 4a9361a8b6
Refactor SSB distro into @fraction/flotilla module 2019-09-16 13:41:20 -07:00
Christian Bundy 331658c48a
1.20.1 2019-08-14 18:38:50 -07:00
Christian Bundy 4811c8d669
1.20.0 2019-08-14 14:54:50 -07:00
Christian Bundy b7a0648473
1.19.0 2019-08-14 13:33:43 -07:00
Christian Bundy 2e43805a5d
Upgrade JavaScript module dependencies 2019-08-14 13:30:24 -07:00
Christian Bundy d8001e6d76
Add mentions to message and Markdown to profiles 2019-08-14 11:44:25 -07:00
Christian Bundy b938e3d702
1.18.0 2019-08-13 19:20:20 -07:00
Christian Bundy c32b0cd2b5
1.17.0 2019-08-13 17:45:29 -07:00
Christian Bundy 3b4fbc8bf9
Add image page to return smaller images for UI 2019-08-13 17:45:14 -07:00
Christian Bundy 72d0cdfc15
1.16.1 2019-08-13 14:33:32 -07:00
Christian Bundy 8f429de8d1
1.16.0 2019-08-13 13:53:18 -07:00
Christian Bundy 39cfba40c4
1.15.3 2019-08-13 13:19:19 -07:00
Christian Bundy 723a6c1d56
1.15.2 2019-08-13 10:33:00 -07:00
Christian Bundy b0260ecaa1
1.15.1 2019-08-12 20:55:56 -07:00
Christian Bundy ed03360b07
1.15.0 2019-08-07 18:50:55 -07:00
Christian Bundy a5dbc26d04
1.14.1 2019-08-01 09:11:15 -07:00
Christian Bundy 3678b45108
Upgrade ssb-markdown 2019-08-01 09:11:09 -07:00
Christian Bundy 1651dbb048
1.14.0 2019-07-26 10:09:23 -07:00
Christian Bundy 8776d27df7
Upgrade node module dependencies 2019-07-26 10:09:16 -07:00
Christian Bundy 8713777b6a
1.13.7 2019-07-03 11:30:57 -07:00
Christian Bundy 1b6630646e
1.13.6 2019-07-02 20:53:05 -07:00
Christian Bundy c91b74eb8f
Refactor directories, add docs, fix profile header 2019-07-02 20:52:49 -07:00
Christian Bundy bed217ccd0
1.13.5 2019-07-01 12:43:25 -07:00
Christian Bundy cd4ccf3848
Fix replication by adding more plugins (?!?!) 2019-07-01 08:07:14 -07:00
Christian Bundy 63f4d15bc9
1.13.4 2019-06-30 13:38:25 -07:00
Christian Bundy 0646fceca5
1.13.3 2019-06-30 12:59:42 -07:00
Christian Bundy bacdc00372
Add debug option to CLI 2019-06-30 11:56:20 -07:00
Christian Bundy 3bd35590eb
1.13.2 2019-06-29 14:14:40 -07:00
Christian Bundy 81ca6a94a2
1.13.1 2019-06-29 12:57:05 -07:00
Christian Bundy 5884790a9e
Fix syntax highlighter with require-style 2019-06-29 12:56:59 -07:00
Christian Bundy 1609cce0a6
1.13.0 2019-06-29 12:07:31 -07:00
Christian Bundy a9f4ca30d6
Add command-line interface and --no-open option 2019-06-29 11:44:49 -07:00
Christian Bundy d990192fac
1.12.2 2019-06-29 10:19:08 -07:00
Christian Bundy d4ab292db0
1.12.1 2019-06-28 19:59:57 -07:00
Christian Bundy 5a52cef54a
Add preversion test script 2019-06-28 19:59:50 -07:00
Christian Bundy 2be1410e97
1.12.0 2019-06-28 19:55:48 -07:00
Christian Bundy 6fa15004ed
1.11.1 2019-06-28 19:23:11 -07:00
Christian Bundy 6abb726814
Switch to github:ssbc/ssb-markdown#backcompat to fix Markdown bugs 2019-06-28 19:23:08 -07:00
Christian Bundy 14ef1dd426
1.11.0 2019-06-28 13:55:08 -07:00
Christian Bundy 02e1d9dd7b
Add nested replies to thread view 2019-06-28 13:55:05 -07:00
Christian Bundy 9bb30f3258
1.10.0 2019-06-28 09:13:38 -07:00
Christian Bundy 1c491d73c1
Add standalone support if ssb-client can't connect 2019-06-28 09:13:35 -07:00
Christian Bundy f6ab49f785
1.9.5 2019-06-27 19:41:41 -07:00
Christian Bundy 1e64648019
Fix Markdown links opening in another tab 2019-06-27 19:39:31 -07:00
Christian Bundy 3a11162455
Fix ssb-msgs broken from mechanical edit 2019-06-27 15:07:09 -07:00
Christian Bundy fd872bcef8
1.9.4 2019-06-27 14:54:36 -07:00
Christian Bundy 762cc50f9a
Add cspell and use real English words 2019-06-27 14:54:32 -07:00
Christian Bundy 3185401320
1.9.3 2019-06-27 13:38:56 -07:00
Christian Bundy 8f0709b98d
Fix dependency-check script in package.json 2019-06-27 13:38:25 -07:00
Christian Bundy 1f6a8c2bed
Refactor to use hyperaxe instead of EJS 2019-06-27 13:36:43 -07:00
Christian Bundy 07e56b8879
1.9.2 2019-06-25 18:15:05 -07:00
Christian Bundy d3ca83931d
1.9.1 2019-06-25 17:57:06 -07:00
Christian Bundy aa62bb2f40
1.9.0 2019-06-25 17:53:14 -07:00
Christian Bundy 9fbeab1bc1
Add unliking 2019-06-25 17:53:12 -07:00
Christian Bundy 0b10dff763
1.8.0 2019-06-25 15:29:53 -07:00
Christian Bundy a5cf8b67ce
1.7.5 2019-06-25 12:43:09 -07:00