-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial project for setup widget * Add base provisioning client * Add base provisioning widget app * Add IRC provisioning client * Add initial IRC provisioning UI * Add tailwindcss * Add reusable text components * Add reusable buttons components * Add reusable forms components * Add reusable alerts components * Improve linked channels list * Improve link new channel form * Add polling for new linked channels * Add style tweaks * Add operator nick query after channel is entered * Add state reset after link channel form submitted * Add API prefix prop to provisioning app * Add style improvements to provisioning app * Fix import style * Add responsive width * Update package-lock.json * Use useCallback for inputs * Fix vite config * Replace preact with react * Fix import error * Add docs to IRC provisioning client * Improve polling * Remove unnecessary async * Add missing useEffect dependency * Add separate eslint config for widget * Fix linter issues in provisioning * Fix linter issues in IRC provisioning * Fix empty channel input * Add alternate display when only one server * Add new components, improve style and layout * Add docs * Update docs * Tweak poll interval * Fix element used for body text * Add support for embed type parameter * Add changelog
- Loading branch information
Showing
61 changed files
with
4,955 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,5 @@ passkey.pem | |
*.map | ||
lib/ | ||
/book/ | ||
|
||
/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add a UI in the form of a Matrix widget for linking and unlinking channels from a Matrix room. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Setup Widget | ||
|
||
The IRC Bridge provides a user interface in the form of a Matrix widget. | ||
This can be used within a room to link and unlink channels. | ||
|
||
### Configuration | ||
|
||
In order to use the setup widget, it must be enabled along with the provisioning API: | ||
```yaml | ||
provisioning: | ||
# True to enable the provisioning HTTP endpoint. Default: false. | ||
enabled: true | ||
# Whether to enable hosting the setup widget page. Default: false. | ||
widget: true | ||
``` | ||
It will be hosted on the same port as the appservice by default, at the path `/_matrix/provision/v1/static`. | ||
|
||
### Usage | ||
|
||
Invite the bridge user to the Matrix room, then add the widget like this (where `example.com` is a public route to your bridge's provisioning API): | ||
``` | ||
/addwidget https://example.com/_matrix/provision/v1/static/?roomId=$matrix_room_id&widgetId=$matrix_widget_id | ||
``` | ||
|
||
|
Oops, something went wrong.