1
0
mirror of https://github.com/spacebarchat/docs.git synced 2024-11-09 11:52:31 +01:00
This commit is contained in:
Madeline 2023-01-02 20:13:12 +11:00
parent 6536f2e1fe
commit 779dc55dd8
No known key found for this signature in database
GPG Key ID: 1958E017C36F2E47
8 changed files with 148 additions and 136 deletions

View File

@ -1,3 +1,11 @@
{ {
"tabWidth": 4 "trailingComma": "all",
"tabWidth": 4,
"semi": true,
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"quoteProps": "as-needed",
"useTabs": true,
"singleQuote": false
} }

View File

@ -9,7 +9,7 @@
.map((x, i) => .map((x, i) =>
x.indexOf("<<") == 2 // if this column is the `value` column x.indexOf("<<") == 2 // if this column is the `value` column
? x.split(" ").reverse()[0] // get the value we shift by ? x.split(" ").reverse()[0] // get the value we shift by
: x : x,
); // otherwise dont do anything ); // otherwise dont do anything
const mount = document.getElementById("rights-container"); const mount = document.getElementById("rights-container");
const outputMount = document.getElementById("rights-output"); const outputMount = document.getElementById("rights-output");

View File

@ -3,10 +3,11 @@
!!! info "[Have you read the Code of Conduct?](conduct.md)" !!! info "[Have you read the Code of Conduct?](conduct.md)"
## Notable Technologies ## Notable Technologies
* Typescript
* [Typeorm](https://www.npmjs.com/package/typeorm) - Typescript
* [WS](https://www.npmjs.com/package/ws) - [Typeorm](https://www.npmjs.com/package/typeorm)
* [Express](https://www.npmjs.com/package/express) - [WS](https://www.npmjs.com/package/ws)
- [Express](https://www.npmjs.com/package/express)
## Structure ## Structure

View File

@ -3,15 +3,17 @@
There are 3 options, all of which require the Fosscord server have [erlpack](https://npmjs.com/package/@yukikaze-bot/erlpack) installed. There are 3 options, all of which require the Fosscord server have [erlpack](https://npmjs.com/package/@yukikaze-bot/erlpack) installed.
1. The simpler one is to set the `DISCORD_WEBAPP_ENDPOINT` environment variable on the machine running the client 1. The simpler one is to set the `DISCORD_WEBAPP_ENDPOINT` environment variable on the machine running the client
to the Fosscord web app URL. This assumes the Fosscord instance has the [test client](../server/Test%20Client/index.md) enabled. to the Fosscord web app URL. This assumes the Fosscord instance has the [test client](../server/Test%20Client/index.md) enabled.
1. You may edit your desktop client's `settings.json` file at 1. You may edit your desktop client's `settings.json` file at
`%appdata%/discord/settings.json`, `%appdata%/discord/settings.json`, adding the following line
adding the following line
```json ```json
"WEBAPP_ENDPOINT" : "https://your_fosscord_instance_url" "WEBAPP_ENDPOINT" : "https://your_fosscord_instance_url"
``` ```
such that it looks like this, as an example such that it looks like this, as an example
```json ```json
{ {
"IS_MAXIMIZED": true, "IS_MAXIMIZED": true,
@ -23,10 +25,11 @@ such that it looks like this, as an example
"height": 600 "height": 600
}, },
"BACKGROUND_COLOR": "#202225", "BACKGROUND_COLOR": "#202225",
"WEBAPP_ENDPOINT" : "https://your_fosscord_instance_url" "WEBAPP_ENDPOINT": "https://your_fosscord_instance_url"
} }
``` ```
This also assumes the Fosscord instance has enabled the test client. This also assumes the Fosscord instance has enabled the test client.
1. If an instance does not have the test client enabled, you can [host the proxy yourself](https://github.com/fosscord/Discord-Client-Proxy), 1. If an instance does not have the test client enabled, you can [host the proxy yourself](https://github.com/fosscord/Discord-Client-Proxy),
and simply set it to use your desired Fosscord instance. and simply set it to use your desired Fosscord instance.