Compare commits

..

No commits in common. "73e6e482554475b2ab14d165ac3e7696fe4a8865" and "ad9a5b1d38c2a5841443dd32fe61849c926dd3ea" have entirely different histories.

5 changed files with 3 additions and 26 deletions

View File

@ -26,9 +26,6 @@ OC.L10N.register(
"Save" : "Salva", "Save" : "Salva",
"Show room manager in app navigation instead of settings page." : "Mostra il gestore della stanza nella pagina di navigazione dell'applicazioni invece della pagina delle impostazioni.", "Show room manager in app navigation instead of settings page." : "Mostra il gestore della stanza nella pagina di navigazione dell'applicazioni invece della pagina delle impostazioni.",
"Use Nextcloud theme in BigBlueButton." : "Usa il tema di Nextcloud in BigBlueButton.", "Use Nextcloud theme in BigBlueButton." : "Usa il tema di Nextcloud in BigBlueButton.",
"Default Room Settings" : "Impostazioni predefinite della stanza",
"Below you can change some default values, which are used to create a new room." : "Sotto puoi cambiare alcuni valori predefiniti che vengono usati per creare una stanza nuova.",
"Perform media check before usage" : "Fai un controllo del media prima dell'uso",
"Community" : "Comunità", "Community" : "Comunità",
"Are you enjoying this app? Give something back to the open source community." : "Ti piace questa applicazione? Restituisci qualcosa alla comunità open source.", "Are you enjoying this app? Give something back to the open source community." : "Ti piace questa applicazione? Restituisci qualcosa alla comunità open source.",
"Checkout the contributor guide" : "Controlla la guida del collaboratore", "Checkout the contributor guide" : "Controlla la guida del collaboratore",

View File

@ -24,9 +24,6 @@
"Save" : "Salva", "Save" : "Salva",
"Show room manager in app navigation instead of settings page." : "Mostra il gestore della stanza nella pagina di navigazione dell'applicazioni invece della pagina delle impostazioni.", "Show room manager in app navigation instead of settings page." : "Mostra il gestore della stanza nella pagina di navigazione dell'applicazioni invece della pagina delle impostazioni.",
"Use Nextcloud theme in BigBlueButton." : "Usa il tema di Nextcloud in BigBlueButton.", "Use Nextcloud theme in BigBlueButton." : "Usa il tema di Nextcloud in BigBlueButton.",
"Default Room Settings" : "Impostazioni predefinite della stanza",
"Below you can change some default values, which are used to create a new room." : "Sotto puoi cambiare alcuni valori predefiniti che vengono usati per creare una stanza nuova.",
"Perform media check before usage" : "Fai un controllo del media prima dell'uso",
"Community" : "Comunità", "Community" : "Comunità",
"Are you enjoying this app? Give something back to the open source community." : "Ti piace questa applicazione? Restituisci qualcosa alla comunità open source.", "Are you enjoying this app? Give something back to the open source community." : "Ti piace questa applicazione? Restituisci qualcosa alla comunità open source.",
"Checkout the contributor guide" : "Controlla la guida del collaboratore", "Checkout the contributor guide" : "Controlla la guida del collaboratore",

View File

@ -9,17 +9,14 @@ use BigBlueButton\Parameters\DeleteRecordingsParameters;
use BigBlueButton\Parameters\GetRecordingsParameters; use BigBlueButton\Parameters\GetRecordingsParameters;
use BigBlueButton\Parameters\IsMeetingRunningParameters; use BigBlueButton\Parameters\IsMeetingRunningParameters;
use BigBlueButton\Parameters\JoinMeetingParameters; use BigBlueButton\Parameters\JoinMeetingParameters;
use OCA\BigBlueButton\AppInfo\Application;
use OCA\BigBlueButton\Crypto; use OCA\BigBlueButton\Crypto;
use OCA\BigBlueButton\Db\Room; use OCA\BigBlueButton\Db\Room;
use OCA\BigBlueButton\Event\MeetingStartedEvent; use OCA\BigBlueButton\Event\MeetingStartedEvent;
use OCA\BigBlueButton\UrlHelper; use OCA\BigBlueButton\UrlHelper;
use OCP\App\IAppManager;
use OCP\Defaults; use OCP\Defaults;
use OCP\EventDispatcher\IEventDispatcher; use OCP\EventDispatcher\IEventDispatcher;
use OCP\IConfig; use OCP\IConfig;
use OCP\IL10N; use OCP\IL10N;
use OCP\IRequest;
use OCP\IURLGenerator; use OCP\IURLGenerator;
class API { class API {
@ -47,12 +44,6 @@ class API {
/** @var Defaults */ /** @var Defaults */
private $defaults; private $defaults;
/** @var IAppManager */
private $appManager;
/** @var IRequest */
private $request;
public function __construct( public function __construct(
IConfig $config, IConfig $config,
IURLGenerator $urlGenerator, IURLGenerator $urlGenerator,
@ -60,9 +51,7 @@ class API {
IEventDispatcher $eventDispatcher, IEventDispatcher $eventDispatcher,
IL10N $l10n, IL10N $l10n,
UrlHelper $urlHelper, UrlHelper $urlHelper,
Defaults $defaults, Defaults $defaults
IAppManager $appManager,
IRequest $request
) { ) {
$this->config = $config; $this->config = $config;
$this->urlGenerator = $urlGenerator; $this->urlGenerator = $urlGenerator;
@ -71,8 +60,6 @@ class API {
$this->l10n = $l10n; $this->l10n = $l10n;
$this->urlHelper = $urlHelper; $this->urlHelper = $urlHelper;
$this->defaults = $defaults; $this->defaults = $defaults;
$this->appManager = $appManager;
$this->request = $request;
} }
private function getServer(): BigBlueButton { private function getServer(): BigBlueButton {
@ -163,10 +150,6 @@ class API {
$createMeetingParams->setLogoutUrl($this->urlGenerator->getBaseUrl()); $createMeetingParams->setLogoutUrl($this->urlGenerator->getBaseUrl());
$createMeetingParams->setMuteOnStart($room->getJoinMuted()); $createMeetingParams->setMuteOnStart($room->getJoinMuted());
$createMeetingParams->addMeta('bbb-origin-version', $this->appManager->getAppVersion(Application::ID));
$createMeetingParams->addMeta('bbb-origin', \method_exists($this->defaults, 'getProductName') ? $this->defaults->getProductName() : 'Nextcloud');
$createMeetingParams->addMeta('bbb-origin-server-name', $this->request->getServerHost());
$mac = $this->crypto->calculateHMAC($room->uid); $mac = $this->crypto->calculateHMAC($room->uid);
$endMeetingUrl = $this->urlGenerator->linkToRouteAbsolute('bbb.hook.meetingEnded', ['token' => $room->uid, 'mac' => $mac]); $endMeetingUrl = $this->urlGenerator->linkToRouteAbsolute('bbb.hook.meetingEnded', ['token' => $room->uid, 'mac' => $mac]);

View File

@ -82,7 +82,7 @@ class RoomService {
public function create(string $name, string $welcome, int $maxParticipants, bool $record, string $access, string $userId): \OCP\AppFramework\Db\Entity { public function create(string $name, string $welcome, int $maxParticipants, bool $record, string $access, string $userId): \OCP\AppFramework\Db\Entity {
$room = new Room(); $room = new Room();
$mediaCheck = $this->config->getAppValue('bbb', 'join.mediaCheck', 'true') === 'true'; $mediaCheck = $this->config->getAppValue('bbb', 'join.mediaCheck') === 'true';
$room->setUid(\OC::$server->getSecureRandom()->generate(16, \OCP\Security\ISecureRandom::CHAR_HUMAN_READABLE)); $room->setUid(\OC::$server->getSecureRandom()->generate(16, \OCP\Security\ISecureRandom::CHAR_HUMAN_READABLE));
$room->setName($name); $room->setName($name);

View File

@ -30,7 +30,7 @@ class Admin implements ISettings {
'app.navigation' => $this->config->getAppValue('bbb', 'app.navigation') === 'true' ? 'checked' : '', 'app.navigation' => $this->config->getAppValue('bbb', 'app.navigation') === 'true' ? 'checked' : '',
'join.theme' => $this->config->getAppValue('bbb', 'join.theme') === 'true' ? 'checked' : '', 'join.theme' => $this->config->getAppValue('bbb', 'join.theme') === 'true' ? 'checked' : '',
'app.shortener' => $this->config->getAppValue('bbb', 'app.shortener'), 'app.shortener' => $this->config->getAppValue('bbb', 'app.shortener'),
'join.mediaCheck' => $this->config->getAppValue('bbb', 'join.mediaCheck', 'true') === 'true' ? 'checked' : '', 'join.mediaCheck' => $this->config->getAppValue('bbb', 'join.mediaCheck') === 'true' ? 'checked' : '',
]; ];
return new TemplateResponse('bbb', 'admin', $parameters); return new TemplateResponse('bbb', 'admin', $parameters);