mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-28 06:51:28 +00:00
rename jitsi to jitsi-meet
This commit is contained in:
parent
91ff6eb989
commit
0701984053
|
@ -3,7 +3,7 @@
|
||||||
import typing
|
import typing
|
||||||
from selfprivacy_api.services.bitwarden import Bitwarden
|
from selfprivacy_api.services.bitwarden import Bitwarden
|
||||||
from selfprivacy_api.services.gitea import Gitea
|
from selfprivacy_api.services.gitea import Gitea
|
||||||
from selfprivacy_api.services.jitsi import Jitsi
|
from selfprivacy_api.services.jitsimeet import JitsiMeet
|
||||||
from selfprivacy_api.services.mailserver import MailServer
|
from selfprivacy_api.services.mailserver import MailServer
|
||||||
from selfprivacy_api.services.nextcloud import Nextcloud
|
from selfprivacy_api.services.nextcloud import Nextcloud
|
||||||
from selfprivacy_api.services.pleroma import Pleroma
|
from selfprivacy_api.services.pleroma import Pleroma
|
||||||
|
@ -18,7 +18,7 @@ services: list[Service] = [
|
||||||
Nextcloud(),
|
Nextcloud(),
|
||||||
Pleroma(),
|
Pleroma(),
|
||||||
Ocserv(),
|
Ocserv(),
|
||||||
Jitsi(),
|
JitsiMeet(),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
"""Class representing Jitsi service"""
|
"""Class representing Jitsi Meet service"""
|
||||||
import base64
|
import base64
|
||||||
import subprocess
|
import subprocess
|
||||||
import typing
|
import typing
|
||||||
|
@ -11,26 +11,26 @@ from selfprivacy_api.services.service import Service, ServiceDnsRecord, ServiceS
|
||||||
from selfprivacy_api.utils import ReadUserData, WriteUserData, get_domain
|
from selfprivacy_api.utils import ReadUserData, WriteUserData, get_domain
|
||||||
from selfprivacy_api.utils.block_devices import BlockDevice
|
from selfprivacy_api.utils.block_devices import BlockDevice
|
||||||
import selfprivacy_api.utils.network as network_utils
|
import selfprivacy_api.utils.network as network_utils
|
||||||
from selfprivacy_api.services.jitsi.icon import JITSI_ICON
|
from selfprivacy_api.services.jitsimeet.icon import JITSI_ICON
|
||||||
|
|
||||||
|
|
||||||
class Jitsi(Service):
|
class JitsiMeet(Service):
|
||||||
"""Class representing Jitsi service"""
|
"""Class representing Jitsi Meet service"""
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_id() -> str:
|
def get_id() -> str:
|
||||||
"""Return service id."""
|
"""Return service id."""
|
||||||
return "jitsi"
|
return "jitsi-meet"
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_display_name() -> str:
|
def get_display_name() -> str:
|
||||||
"""Return service display name."""
|
"""Return service display name."""
|
||||||
return "Jitsi"
|
return "JitsiMeet"
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_description() -> str:
|
def get_description() -> str:
|
||||||
"""Return service description."""
|
"""Return service description."""
|
||||||
return "Jitsi is a free and open-source video conferencing solution."
|
return "Jitsi Meet is a free and open-source video conferencing solution."
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_svg_icon() -> str:
|
def get_svg_icon() -> str:
|
||||||
|
@ -58,7 +58,7 @@ class Jitsi(Service):
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def is_enabled() -> bool:
|
def is_enabled() -> bool:
|
||||||
with ReadUserData() as user_data:
|
with ReadUserData() as user_data:
|
||||||
return user_data.get("modules", {}).get("jitsi", {}).get("enable", False)
|
return user_data.get("modules", {}).get("jitsi-meet", {}).get("enable", False)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_status() -> ServiceStatus:
|
def get_status() -> ServiceStatus:
|
||||||
|
@ -68,13 +68,13 @@ class Jitsi(Service):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def enable():
|
def enable():
|
||||||
"""Enable Jitsi service."""
|
"""Enable Jitsi Meet service."""
|
||||||
with WriteUserData() as user_data:
|
with WriteUserData() as user_data:
|
||||||
if "modules" not in user_data:
|
if "modules" not in user_data:
|
||||||
user_data["modules"] = {}
|
user_data["modules"] = {}
|
||||||
if "jitsi" not in user_data["modules"]:
|
if "jitsi-meet" not in user_data["modules"]:
|
||||||
user_data["modules"]["jitsi"] = {}
|
user_data["modules"]["jitsi-meet"] = {}
|
||||||
user_data["modules"]["jitsi"]["enable"] = True
|
user_data["modules"]["jitsi-meet"]["enable"] = True
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def disable():
|
def disable():
|
||||||
|
@ -82,9 +82,9 @@ class Jitsi(Service):
|
||||||
with WriteUserData() as user_data:
|
with WriteUserData() as user_data:
|
||||||
if "modules" not in user_data:
|
if "modules" not in user_data:
|
||||||
user_data["modules"] = {}
|
user_data["modules"] = {}
|
||||||
if "jitsi" not in user_data["modules"]:
|
if "jitsi-meet" not in user_data["modules"]:
|
||||||
user_data["modules"]["jitsi"] = {}
|
user_data["modules"]["jitsi-meet"] = {}
|
||||||
user_data["modules"]["jitsi"]["enable"] = False
|
user_data["modules"]["jitsi-meet"]["enable"] = False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def stop():
|
def stop():
|
||||||
|
@ -146,4 +146,4 @@ class Jitsi(Service):
|
||||||
]
|
]
|
||||||
|
|
||||||
def move_to_volume(self, volume: BlockDevice) -> Job:
|
def move_to_volume(self, volume: BlockDevice) -> Job:
|
||||||
raise NotImplementedError("jitsi service is not movable")
|
raise NotImplementedError("jitsi-meet service is not movable")
|
|
@ -47,7 +47,7 @@
|
||||||
"pleroma": {
|
"pleroma": {
|
||||||
"enable": true
|
"enable": true
|
||||||
},
|
},
|
||||||
"jitsi": {
|
"jitsi-meet": {
|
||||||
"enable": true
|
"enable": true
|
||||||
},
|
},
|
||||||
"simple-nixos-mailserver": {
|
"simple-nixos-mailserver": {
|
||||||
|
|
Loading…
Reference in a new issue