forked from XimeX/usrspace-browser-addon
60 lines
1.5 KiB
Markdown
60 lines
1.5 KiB
Markdown
# /usr/space Web-Ext (Firefox Add-on)
|
|
|
|
![Mozilla Add-on](https://img.shields.io/amo/v/usr-space)
|
|
![Mozilla Add-on](https://img.shields.io/amo/dw/usr-space)
|
|
![Mozilla Add-on](https://img.shields.io/amo/users/usr-space)
|
|
![Mozilla Add-on](https://img.shields.io/amo/stars/usr-space)
|
|
|
|
## Features
|
|
- Show if someone is in the Space
|
|
- Looks for connected dynamic IPs (DHCP)
|
|
- Refreshes every 5min
|
|
- Show the next event
|
|
- Quick-Links (Homepage, Wiki, Gitea, Nextcloud)
|
|
|
|
## Install
|
|
```ssh
|
|
$ git clone https://gitea.usrspace.at/XimeX/usrspace-browser-addon.git
|
|
$ npm i -g web-ext
|
|
$ npm i
|
|
```
|
|
|
|
## 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
|
|
// For Firefox
|
|
$ npm run build:firefox
|
|
// For Chromium
|
|
$ npm run build:chromium
|
|
```
|
|
|
|
## Release
|
|
```ssh
|
|
$ npm version {major|minor|patch|...}
|
|
```
|
|
|
|
## 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)
|
|
|
|
## Credits
|
|
Used icons from Bootstrap
|
|
https://github.com/twbs/icons/blob/main/LICENSE.md
|
|
|
|
## License
|
|
MIT
|