mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-82447 mod_bigbluebuttonbn: Remove mobile support via plugin
This commit is contained in:
parent
554a790bf0
commit
c9c8e2870c
9 changed files with 11 additions and 301 deletions
6
.upgradenotes/MDL-82447-2024072509223792.yml
Normal file
6
.upgradenotes/MDL-82447-2024072509223792.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
issueNumber: MDL-82447
|
||||
notes:
|
||||
mod_bigbluebuttonbn:
|
||||
- message: >
|
||||
Mobile support via plugin has been removed.
|
||||
type: removed
|
|
@ -1,48 +0,0 @@
|
|||
<?php
|
||||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* Mobile app definition for BigBlueButton.
|
||||
*
|
||||
* @package mod_bigbluebuttonbn
|
||||
* @copyright 2018 onwards, Blindside Networks Inc
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @author Jesus Federico (jesus [at] blindsidenetworks [dt] com)
|
||||
*/
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
global $CFG;
|
||||
$addons = [
|
||||
"mod_bigbluebuttonbn" => [
|
||||
"handlers" => [ // Different places where the add-on will display content.
|
||||
'coursebigbluebuttonbn' => [ // Handler unique name (can be anything).
|
||||
'displaydata' => [
|
||||
'title' => 'pluginname',
|
||||
'icon' => $CFG->wwwroot . '/mod/bigbluebuttonbn/pix/monologo.svg',
|
||||
'class' => '',
|
||||
],
|
||||
'delegate' => 'CoreCourseModuleDelegate', // Delegate (where to display the link to the add-on).
|
||||
'method' => 'mobile_course_view' // Main function in \mod_bigbluebuttonbn\output\mobile.
|
||||
]
|
||||
],
|
||||
'lang' => [
|
||||
['pluginname', 'bigbluebuttonbn'],
|
||||
['view_conference_action_join', 'bigbluebuttonbn'],
|
||||
['view_message_conference_room_ready', 'bigbluebuttonbn'],
|
||||
['view_mobile_message_reload_page_creation_time_meeting', 'bigbluebuttonbn']
|
||||
]
|
||||
]
|
||||
];
|
|
@ -626,9 +626,6 @@ $string['view_room'] = 'View room';
|
|||
$string['index_error_noinstances'] = 'There are no instances of BigBlueButton rooms';
|
||||
$string['index_error_bbtn'] = 'BigBlueButton ID {$a} is incorrect';
|
||||
|
||||
$string['view_mobile_message_reload_page_creation_time_meeting'] = 'You exceeded 45 seconds on this page. Please refresh the page to join the session.';
|
||||
$string['view_mobile_message_groups_not_supported'] = 'This instance is enabled to work with groups but the mobile app doesn\'t yet support it. Please use the web version.';
|
||||
|
||||
$string['end_session_confirm_title'] = 'Really end session?';
|
||||
$string['end_session_confirm'] = 'Are you sure you want to end the session?';
|
||||
$string['end_session_notification'] = 'The session has ended.';
|
||||
|
@ -667,3 +664,6 @@ $string['view_warning_default_server'] = 'This site is using a <a href="https://
|
|||
<li>Recordings expire after seven (7) days and are not downloadable</li>
|
||||
<li>Student webcams are only visible to the moderator.</li>
|
||||
</ol>';
|
||||
// Deprecated since Moodle 4.5.
|
||||
$string['view_mobile_message_reload_page_creation_time_meeting'] = 'You exceeded 45 seconds on this page. Please refresh the page to join the session.';
|
||||
$string['view_mobile_message_groups_not_supported'] = 'This instance is enabled to work with groups but the mobile app doesn\'t yet support it. Please use the web version.';
|
||||
|
|
|
@ -10,3 +10,5 @@ enablingbigbluebuttondpainfo,mod_bigbluebuttonbn
|
|||
dpainfonotsigned,mod_bigbluebuttonbn
|
||||
config_dpa_note,mod_bigbluebuttonbn
|
||||
view_warning_default_server,mod_bigbluebuttonbn
|
||||
view_mobile_message_reload_page_creation_time_meeting,mod_bigbluebuttonbn
|
||||
view_mobile_message_groups_not_supported,mod_bigbluebuttonbn
|
||||
|
|
|
@ -1,39 +0,0 @@
|
|||
// This file is part of Moodle - http://moodle.org/
|
||||
//
|
||||
// Moodle is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License as published by
|
||||
// the Free Software Foundation, either version 3 of the License, or
|
||||
// (at your option) any later version.
|
||||
//
|
||||
// Moodle is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
/**
|
||||
* This file is part of the Moodle apps support for the choicegroup plugin.
|
||||
* Defines the function to be used from the mobile course view template.
|
||||
*
|
||||
* @package mod_bigbluebuttonbn
|
||||
* @copyright 2010 onwards, Blindside Networks Inc
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
* @author Laurent David (laurent [at] call-learning [dt] fr)
|
||||
*/
|
||||
|
||||
// That will be the global this (ionic convention).
|
||||
var that = this;
|
||||
|
||||
var TIMEOUTCHECK = 20000;
|
||||
|
||||
that.onCanJoinReturns = function (data) {
|
||||
if (data && data.can_join) {
|
||||
that.openContent('', {'cmid': data.cmid}, 'mod_bigbluebuttonbn', 'mobile_course_view');
|
||||
} else {
|
||||
setTimeout(function () {
|
||||
that.refreshContent(true);
|
||||
}, TIMEOUTCHECK);
|
||||
}
|
||||
};
|
|
@ -1,34 +0,0 @@
|
|||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template mod_bigbluebuttonbn/mobile_view_error
|
||||
|
||||
This template renders the error for mobile page.
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"error": "This is wrong!"
|
||||
}
|
||||
}}
|
||||
{{=<% %>=}}
|
||||
<div>
|
||||
<ion-list>
|
||||
<ion-item class="ion-text-wrap" text-wrap>
|
||||
<ion-label><% error %></ion-label>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
</div>
|
|
@ -1,51 +0,0 @@
|
|||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template mod_bigbluebuttonbn/mobile_view_notification
|
||||
|
||||
This template renders the notifications for mobile page.
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"bigbluebuttonbn.intro": "foo",
|
||||
"cmid": 3,
|
||||
"message": "A message",
|
||||
"not_started": [
|
||||
{"not_started.starts_at": "aaa", "not_started.starts_at": "bbb"},
|
||||
{"not_started.starts_at": "aaa", "not_started.starts_at": "bbb"}
|
||||
]
|
||||
}
|
||||
}}
|
||||
{{=<% %>=}}
|
||||
<div>
|
||||
<core-course-module-description description="<% bigbluebuttonbn.intro %>" component="mod_bigbluebuttonbn" componentId="<% cmid %>"></core-course-module-description>
|
||||
<ion-list>
|
||||
<ion-item class="ion-text-wrap" text-wrap>
|
||||
<ion-label><% message %></ion-label>
|
||||
</ion-item>
|
||||
<%#not_started%>
|
||||
<ion-item class="ion-text-wrap" text-wrap>
|
||||
<ion-label>
|
||||
<p><% not_started.starts_at %></p>
|
||||
<p><% not_started.ends_at %></p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
<%/not_started%>
|
||||
<span core-site-plugins-call-ws-on-load
|
||||
name="mod_bigbluebuttonbn_can_join" [params]="{cmid: <% cmid %>}" (onSuccess)="onCanJoinReturns($event)"></span>
|
||||
</ion-list>
|
||||
</div>
|
|
@ -1,62 +0,0 @@
|
|||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template mod_bigbluebuttonbn/mobile_view_page_ionic3
|
||||
|
||||
This template renders the mobile page.
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"bigbluebuttonbn.intro": "foo",
|
||||
"cmid": 3,
|
||||
"message": "A message",
|
||||
"errors": [
|
||||
{"error": "aaa"},
|
||||
{"error": "bbb"}
|
||||
],
|
||||
"urltojoin": "http://foo"
|
||||
}
|
||||
}}
|
||||
{{=<% %>=}}
|
||||
<div>
|
||||
<%#msjgroup%>
|
||||
<div style="color:#856404; background-color: #fff3cd; padding-right: 35px; border-color: #ffeeba; padding: 15px; margin-bottom: 20px;">
|
||||
<% message %>
|
||||
</div>
|
||||
<%/msjgroup%>
|
||||
<div id="bigbluebuttonbn-mobile-notifications" style="display:none; color:#31708f; background-color: #d9edf7; padding-right: 35px; border-color: #bce8f1; padding: 15px; margin-bottom: 20px;">
|
||||
{{ 'plugin.mod_bigbluebuttonbn.view_mobile_message_reload_page_creation_time_meeting' | translate }}
|
||||
</div>
|
||||
<core-course-module-description description="<% bigbluebuttonbn.intro %>" component="mod_bigbluebuttonbn" componentId="<% cmid %>"></core-course-module-description>
|
||||
<ion-list>
|
||||
<%#errors%>
|
||||
<ion-item text-wrap>
|
||||
<% error %>
|
||||
</ion-item>
|
||||
<%/errors%>
|
||||
<%^errors%>
|
||||
<ion-item text-wrap id="bigbluebuttonbn-mobile-meetingready">
|
||||
{{ 'plugin.mod_bigbluebuttonbn.view_message_conference_room_ready' | translate }}
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<button id="bigbluebuttonbn-mobile-join" ion-button block onclick="window.open('<% urltojoin %>', '_system');">
|
||||
{{ 'plugin.mod_bigbluebuttonbn.view_conference_action_join' | translate }}
|
||||
</button>
|
||||
</ion-item>
|
||||
<%/errors%>
|
||||
</ion-list>
|
||||
</div>
|
|
@ -1,64 +0,0 @@
|
|||
{{!
|
||||
This file is part of Moodle - http://moodle.org/
|
||||
|
||||
Moodle is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Moodle is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
||||
}}
|
||||
{{!
|
||||
@template mod_bigbluebuttonbn/mobile_view_page_latest
|
||||
|
||||
This template renders the mobile page.
|
||||
|
||||
Example context (json):
|
||||
{
|
||||
"bigbluebuttonbn.intro": "foo",
|
||||
"cmid": 3,
|
||||
"message": "A message",
|
||||
"errors": [
|
||||
{"error": "aaa"},
|
||||
{"error": "bbb"}
|
||||
],
|
||||
"urltojoin": "http://foo"
|
||||
}
|
||||
}}
|
||||
{{=<% %>=}}
|
||||
<div>
|
||||
<%#msjgroup%>
|
||||
<div style="color:#856404; background-color: #fff3cd; padding-right: 35px; border-color: #ffeeba; padding: 15px; margin-bottom: 20px;">
|
||||
<% message %>
|
||||
</div>
|
||||
<%/msjgroup%>
|
||||
<div id="bigbluebuttonbn-mobile-notifications" style="display:none; color:#31708f; background-color: #d9edf7; padding-right: 35px; border-color: #bce8f1; padding: 15px; margin-bottom: 20px;">
|
||||
{{ 'plugin.mod_bigbluebuttonbn.view_mobile_message_reload_page_creation_time_meeting' | translate }}
|
||||
</div>
|
||||
<core-course-module-description description="<% bigbluebuttonbn.intro %>" component="mod_bigbluebuttonbn" componentId="<% cmid %>"></core-course-module-description>
|
||||
<ion-list>
|
||||
<%#errors%>
|
||||
<ion-item class="ion-text-wrap">
|
||||
<ion-label>
|
||||
<% error %>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
<%/errors%>
|
||||
<%^errors%>
|
||||
<ion-item class="ion-text-wrap" id="bigbluebuttonbn-mobile-meetingready">
|
||||
<ion-label>
|
||||
{{ 'plugin.mod_bigbluebuttonbn.view_message_conference_room_ready' | translate }}
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
<ion-button id="bigbluebuttonbn-mobile-join" class="ion-margin" expand="block" onclick="window.open('<% urltojoin %>', '_system');">
|
||||
{{ 'plugin.mod_bigbluebuttonbn.view_conference_action_join' | translate }}
|
||||
</ion-button>
|
||||
<%/errors%>
|
||||
</ion-list>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue