Skip to content

Commit

Permalink
Merge pull request #3 from Panopto/ahrnjica/2024012500-release-code
Browse files Browse the repository at this point in the history
2024012500 release code
  • Loading branch information
zeroAps authored Jan 25, 2024
2 parents 1dede37 + 6872d78 commit 97ba504
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 29 deletions.
2 changes: 1 addition & 1 deletion amd/build/commands.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/commands.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

43 changes: 24 additions & 19 deletions amd/src/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

import {getButtonImage} from 'editor_tiny/utils';
import {handleAction} from './ui';
import {get_string as getString} from 'core/str';
import {component, buttonName, icon} from './common';
import {getButtonImage} from "editor_tiny/utils";
import {handleAction} from "./ui";
import {get_string as getString} from "core/str";
import {component, buttonName, icon} from "./common";
import {getTool} from "./options";

export const getSetup = async() => {
const [buttonText, buttonImage] = await Promise.all([
Expand All @@ -33,22 +34,26 @@ export const getSetup = async() => {
]);

return (editor) => {
// Register the Moodle SVG as an icon suitable for use as a TinyMCE toolbar button.
editor.ui.registry.addIcon(icon, buttonImage.html);

// Register the Panopto LTI Video Toolbar Button.
editor.ui.registry.addToggleButton(buttonName, {
icon,
tooltip: buttonText,
onAction: () => handleAction(editor),
});
// Only show button if we have external tool configured.
if (getTool(editor)) {
// Register the Moodle SVG as an icon suitable for use as a TinyMCE toolbar button.
editor.ui.registry.addIcon(icon, buttonImage.html);

// Add the Panopto LTI Video Menu Item.
// This allows it to be added to a standard menu, or a context menu.
editor.ui.registry.addMenuItem(buttonName, {
icon,
text: buttonText,
onAction: () => handleAction(editor),
});
// Register the Panopto LTI Video Toolbar Button.
editor.ui.registry.addToggleButton(buttonName, {
icon,
tooltip: buttonText,
onAction: () => handleAction(editor),
});

// Add the Panopto LTI Video Menu Item.
// This allows it to be added to a standard menu, or a context menu.
editor.ui.registry.addMenuItem(buttonName, {
icon,
text: buttonText,
onAction: () => handleAction(editor),
});
}
};
};
25 changes: 25 additions & 0 deletions thirdpartylibs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<thirdpartylibs>
<!-- Handlebars -->
<library>
<name>Handlebars</name>
<version>4.7.7</version>
<location>js/handlebars.min-v4.7.7.js</location>
<license>MIT</license>
<licenseurl>https://opensource.org/licenses/MIT</licenseurl>
<notes>
Handlebars provides the power necessary to let you build semantic templates effectively with no frustration.
</notes>
</library>

<!-- jQuery -->
<library>
<name>jQuery</name>
<version>3.7.0</version>
<location>js/jquery-3.7.0.min.js</location>
<license>MIT</license>
<licenseurl>https://jquery.org/license/</licenseurl>
<notes>
jQuery is a fast, small, and feature-rich JavaScript library.
</notes>
</library>
</thirdpartylibs>
21 changes: 13 additions & 8 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,29 @@

defined('MOODLE_INTERNAL') || die();


// The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2023083100;
$plugin->version = 2024012500;

// Requires this Moodle version - 2.7.
$plugin->requires = 2014051200;
// Requires this Moodle version - 4.1.0
$plugin->requires = 2022112800;

// Full name of the plugin (used for diagnostics).
$plugin->component = 'tiny_panoptoltibutton';

// Supported versions.
$plugin->supported = [401, 402];
$plugin->supported = [
// Support from the Moodle 4.1 series.
401,

// To the Moodle 4.3 series.
403,
];

// This is considered as ready for production sites.
$plugin->maturity = MATURITY_BETA;

// Dependencies.
$plugin->dependencies = array(
$plugin->dependencies = [
'block_panopto' => 2022122000,
'mod_lti' => ANY_VERSION
);
'mod_lti' => ANY_VERSION,
];

0 comments on commit 97ba504

Please sign in to comment.