2018-12-27 13:44:04 +01:00
|
|
|
# /usr/space Web-Ext (Firefox Add-on)
|
2018-12-27 10:51:17 +01:00
|
|
|
|
2018-12-27 13:44:04 +01:00
|
|
|
## Features
|
|
|
|
- Show if someone is in the Space
|
|
|
|
- Looks for connected dynamic IPs (DHCP)
|
|
|
|
- Refreshes every 5min
|
|
|
|
- Show the next event
|
2020-10-21 22:04:05 +02:00
|
|
|
- Quick-Links (Homepage, Wiki, Gitea, Nextcloud)
|
2018-12-27 13:44:04 +01:00
|
|
|
|
|
|
|
## Install
|
2018-12-27 10:51:17 +01:00
|
|
|
```ssh
|
2019-07-30 18:14:31 +02:00
|
|
|
$ git clone https://gitea.usrspace.at/XimeX/usrspace-browser-addon.git
|
2023-01-05 17:14:32 +01:00
|
|
|
$ npm i -g web-ext
|
|
|
|
$ npm i
|
2018-12-27 10:51:17 +01:00
|
|
|
```
|
|
|
|
|
2023-01-05 17:14:32 +01:00
|
|
|
## Run / Develop / Debug
|
|
|
|
```ssh
|
|
|
|
$ npm run watch:{firefox|firefox-android|chromium}
|
|
|
|
```
|
|
|
|
|
|
|
|
If more options are needed add them after a `--`.
|
|
|
|
|
|
|
|
Some useful options:
|
|
|
|
- `--devtools`
|
|
|
|
- `--firefox-apk=...`
|
|
|
|
- `--android-device=...`
|
|
|
|
|
|
|
|
Example: `npm run watch:firefox-android -- --firefox-apk=org.mozilla.fenix --firefox-device=XXXXXXXX`.
|
|
|
|
|
|
|
|
## Build
|
|
|
|
```ssh
|
2023-01-05 18:40:19 +01:00
|
|
|
// For Firefox
|
|
|
|
$ npm run build:firefox
|
|
|
|
// For Chromium
|
|
|
|
$ npm run build:chromium
|
2023-01-05 17:14:32 +01:00
|
|
|
```
|
2018-12-27 13:44:04 +01:00
|
|
|
|
2020-10-21 22:46:41 +02:00
|
|
|
## Release
|
|
|
|
```ssh
|
2022-12-24 02:31:56 +01:00
|
|
|
$ npm version {major|minor|patch|...}
|
2020-10-21 22:46:41 +02:00
|
|
|
```
|
|
|
|
|
2023-01-05 17:37:35 +01:00
|
|
|
## Developent Docs
|
|
|
|
- [Getting started](https://extensionworkshop.com/documentation/develop/getting-started-with-web-ext/)
|
|
|
|
- [web-ext command reference](https://extensionworkshop.com/documentation/develop/web-ext-command-reference/)
|
|
|
|
- [WebExtensions MDN Docu](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions)
|
|
|
|
|
2018-12-27 14:43:34 +01:00
|
|
|
## Credits
|
2021-11-06 10:59:32 +01:00
|
|
|
Used icons from Bootstrap
|
|
|
|
https://github.com/twbs/icons/blob/main/LICENSE.md
|
2018-12-27 14:43:34 +01:00
|
|
|
|
2018-12-27 13:44:04 +01:00
|
|
|
## License
|
2020-10-21 22:04:05 +02:00
|
|
|
MIT
|