Skip to content

Commit f6f6fc3

Browse files
committed
Cleanup
1 parent 60d07f6 commit f6f6fc3

File tree

7 files changed

+24
-23
lines changed

7 files changed

+24
-23
lines changed

README.md

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
![Matrix Notepad](static/logo/notepad%20logo.svg)
22
> A buggy way to collaborate on text documents using the [Matrix](https://matrix.org) protocol. When it works, consider this the Matrix Console of collaboration!
33
4+
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/kb1rd/matrix-notepad)
5+
![Matrix](https://img.shields.io/matrix/matrix-collaboration:kb1rd.net?label=chat%20on%20%23matrix-collaboration%3Akb1rd.net&server_fqdn=matrix.org)
6+
![GitHub Workflow Status (branch)](https://img.shields.io/github/workflow/status/KB1RD/matrix-notepad/build/master?label=build%20and%20deploy)
7+
![GitHub](https://img.shields.io/github/license/kb1rd/matrix-notepad)
8+
49
Check it out at [matrix-notepad.kb1rd.net](https://matrix-notepad.kb1rd.net/) and come chat at [#matrix-collaboration:kb1rd.net](https://matrix.to/#/#matrix-collaboration:kb1rd.net?via=kb1rd.net&via=matrix.org&via=matrix.geklautecloud.de)! I'd love to hear about what you think (and what issues you encounter)!
510

611
## Brief Roadmap
@@ -9,10 +14,12 @@ This is not in any particular order:
914
* [x] More or less working removals
1015
* [ ] Conflict resolution -- Almost!
1116
* [x] Improved UI/UX (this will be incremental)
12-
* [ ] Unit testing!!!
17+
* [x] Unit testing for the algorithm (`logootish-js` is unit tested)
1318
* [x] Create a different package for the `Logootish` algorithm -- Right [here](https://github.com/KB1RD/logootish-js)
1419
* [ ] Node 'squashing' or similar. Currently Matrix Notepad has to sync ALL of the events :(
1520
* [ ] Rich text editing
21+
* [ ] Create "Matrix Apps" to load `iframe`d apps, such as the Notepad
22+
* [ ] Clean up the code. I've been focusing on the algorithm, so the Notepad had gotten a bit messy
1623

1724
In addition, I think it would be a good idea to discuss future possibilities for sharing more than just text over Matrix and the possibility of creating a unified 'app host' client that manages permissions for applications and allows the user to browse a directory structure.
1825

@@ -29,9 +36,9 @@ Since this is experimental software, do not use it to store very important or co
2936
If you see error messages pop up or you encounter any bugs, **please** report it either on GitHub or on the Matrix chat. This is **very** helpful as I'm sure there are bugs that I don't know about.
3037

3138
## Screenshots
32-
![Sign in](static/signin.png)
33-
![Room List](static/roomlist.png)
34-
![Document Editing](static/document.png)
39+
![Sign in](resources/signin.png)
40+
![Room List](resources/roomlist.png)
41+
![Document Editing](resources/document.png)
3542

3643
## Contributing
3744
Have a look at the [Wiki](https://github.com/KB1RD/matrix-notepad/wiki) if you're interested in contributing. I'd love the help! The wiki also contains documentation about how the algorithm, `logootish-js`, works internally as well as links to the JSDoc.
@@ -45,6 +52,7 @@ Here is the directory structure
4552
* `/matrix.js` -- Provides the interface between Matrix, the GUI, and the algorithm. It is dense and poorly written since I'm still trying to figure out where to put everything.
4653
* `static` -- Static files. Currently only has the site icon
4754
* `store` -- The Vuex store. This is used for UI only since I want the algorithm to be seperate from Vue.JS. Vuex does track the state of the Matrix client, but not the state of document nodes (that's all "traditional" ES6 JS)
55+
* `resources` -- Files used in README.md or the docs
4856
* `test` -- A directory that I have reserved for unit testing. This would help **a lot** if I actually implemented it. *sigh*
4957

5058
## Debugging
@@ -59,6 +67,13 @@ $debug.syncback_settings.initial = false
5967

6068
// Manually fetch events (if initial load is disabled)
6169
$debug.active_document.fetchEvents(1)
70+
71+
// Enable the LDM's internal operation log (currently disabled)
72+
// This is helpful for diagnosing a bug that is identified in production
73+
$debug.active_document.setupLogging()
74+
75+
// Dump the LDM's internal operation log (if enabled)
76+
$debug.active_document.printEventLogJSON()
6277
```
6378

6479
## Build Setup
@@ -76,22 +91,8 @@ $ yarn run generate
7691
$ yarn run stats
7792
```
7893

79-
Also, if you want to debug the core algorithm, `logootish-js`, see https://github.com/KB1RD/logootish-js . If you want to test it with the Notepad, the `yarn link` setup process is as follows:
80-
``` bash
81-
# get logootish-js
82-
$ git clone https://github.com/KB1RD/logootish-js.git
83-
$ cd logootish-js
84-
85-
# install dependencies & build
86-
logootish-js$ yarn install
87-
logootish-js$ yarn run build
88-
89-
# link to yarn
90-
logootish-js$ yarn link
91-
92-
# switch to the notepad
93-
logootish-js$ cd ../matrix-notepad
94-
95-
# link logootish-js
96-
matrix-notepad$ yarn link logootish-js
97-
```
94+
Also, if you want to debug the core algorithm, `logootish-js`, see https://github.com/KB1RD/logootish-js .
95+
I used to include a code sample in here to use `yarn link` to use a local
96+
version of the algorithm, but `yarn link` appears buggy and it's way faster to
97+
test and develop the algorithm on its own. I would encourage potential
98+
developers to use that method instead.

resources/document.png

50.5 KB
Loading

resources/roomlist.png

43.8 KB
Loading

resources/signin.png

90.8 KB
Loading

static/document.png

-31.2 KB
Binary file not shown.

static/roomlist.png

-51.5 KB
Binary file not shown.

static/signin.png

-80.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)