2023-01-05 21:44:47 +01:00
|
|
|
# /usr/space Web-Extension (Firefox Add-on)
|
2018-12-27 10:51:17 +01:00
|
|
|
|
2023-01-05 21:47:53 +01:00
|
|
|
[![Mozilla Add-on](https://img.shields.io/amo/v/usr-space?style=for-the-badge)](https://addons.mozilla.org/de/firefox/addon/usr-space/)
|
|
|
|
[![Mozilla Add-on](https://img.shields.io/amo/dw/usr-space?style=for-the-badge)](https://addons.mozilla.org/de/firefox/addon/usr-space/)
|
|
|
|
[![Mozilla Add-on](https://img.shields.io/amo/users/usr-space?style=for-the-badge)](https://addons.mozilla.org/de/firefox/addon/usr-space/)
|
|
|
|
[![Mozilla Add-on](https://img.shields.io/amo/stars/usr-space?style=for-the-badge)](https://addons.mozilla.org/de/firefox/addon/usr-space/)
|
2023-01-05 21:41:49 +01:00
|
|
|
|
2018-12-27 13:44:04 +01:00
|
|
|
## Features
|
2023-02-04 17:09:47 +01:00
|
|
|
|
2018-12-27 13:44:04 +01:00
|
|
|
- Show if someone is in the Space
|
2023-01-05 21:47:53 +01:00
|
|
|
- Looks for connected dynamic IPs (DHCP) (provided by backend)
|
2018-12-27 13:44:04 +01:00
|
|
|
- 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
|
2023-02-04 17:09:47 +01:00
|
|
|
|
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-03-20 17:00:46 +01:00
|
|
|
# optional
|
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
|
2023-02-04 17:09:47 +01:00
|
|
|
|
2023-01-05 17:14:32 +01:00
|
|
|
```ssh
|
|
|
|
$ npm run watch:{firefox|firefox-android|chromium}
|
|
|
|
```
|
|
|
|
|
|
|
|
If more options are needed add them after a `--`.
|
|
|
|
|
|
|
|
Some useful options:
|
2023-02-04 17:09:47 +01:00
|
|
|
|
2023-01-05 17:14:32 +01:00
|
|
|
- `--devtools`
|
|
|
|
- `--firefox-apk=...`
|
|
|
|
- `--android-device=...`
|
|
|
|
|
2023-01-05 21:44:47 +01:00
|
|
|
Example: `npm run watch:firefox-android -- --firefox-apk=org.mozilla.fenix --firefox-device=XXXXXXXX`
|
2023-01-05 17:14:32 +01:00
|
|
|
|
|
|
|
## Build
|
2023-02-04 17:09:47 +01:00
|
|
|
|
2023-01-05 17:14:32 +01:00
|
|
|
```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
|
2023-02-04 17:09:47 +01:00
|
|
|
|
2020-10-21 22:46:41 +02:00
|
|
|
```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
|
2023-02-04 17:09:47 +01:00
|
|
|
|
2023-01-05 17:37:35 +01:00
|
|
|
- [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
|
2023-02-04 17:09:47 +01:00
|
|
|
|
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
|
2023-02-04 17:09:47 +01:00
|
|
|
|
2020-10-21 22:04:05 +02:00
|
|
|
MIT
|