Changeset 3327829
- Timestamp:
- 07/14/2025 11:21:46 PM (9 months ago)
- Location:
- open-video/trunk
- Files:
-
- 4 edited
-
README.txt (modified) (2 diffs)
-
open-video-block/src/consts.js (modified) (1 diff)
-
open-video-block/src/edit.js (modified) (7 diffs)
-
open-video.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
open-video/trunk/README.txt
r3326432 r3327829 6 6 Tested up to: 6.8 7 7 Requires PHP: 7.0 8 Stable tag: 1. 0.48 Stable tag: 1.1.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 27 27 28 28 == Changelog == 29 = 1.1.0 = 30 * Add support for domain hosted videos in Open.Video Block 31 29 32 = 1.0.4 = 30 33 * Description updates -
open-video/trunk/open-video-block/src/consts.js
r3320896 r3327829 1 export const OPENVIDEOPLUGIN_REGEX = /^https?:\/\/ (www\.)?(open\.video\/(?:@[\w-]+\/)?((video|v)\/(playlist\/)?[\w-]+)|[\w.-]+\/open-video\/(playlist\/)?[\w-]+)([\?&][\w-]+=[\w-]*)*$/;1 export const OPENVIDEOPLUGIN_REGEX = /^https?:\/\/[\w.-]+\/.+(video|v|playlist)\/[\w-]+([\?&][\w-]+=[\w-]*)*$/; 2 2 export const OPENVIDEOPLUGIN_OEMBED_BASE = "https://www.open.video/openvideo/oembed?url="; 3 3 export const OPENVIDEOPLUGIN_GENERATE_EMBED_CODE_BASE = "https://www.open.video/generate-embed-code?j="; -
open-video/trunk/open-video-block/src/edit.js
r3320896 r3327829 111 111 const [ errorPosts, setErrorPosts ] = useState(0); 112 112 const [ propagateProgress, setPropagateProgress ] = useState(0); 113 const [ isEmbedReady, setIsEmbedReady ] = useState(false); 113 114 114 115 const isValidConfig = () => { … … 120 121 } 121 122 122 const [ blockMode, setBlockMode ] = useState( isValidConfig() ? PREVIEW_BLOCK_MODE :EDIT_BLOCK_MODE);123 const [ blockMode, setBlockMode ] = useState(EDIT_BLOCK_MODE); 123 124 124 125 const ALIGNMENT_CONTROLS = ["left", "center", "right"]; … … 162 163 if (isValidUrl(embedURL)) { 163 164 fetchOEmbedHTML(); 165 } else { 166 setIsEmbedReady(false); 164 167 } 165 168 }, [embedURL]); … … 302 305 requestURL = generatePlaylistURL(OPENVIDEOPLUGIN_GENERATE_EMBED_CODE_BASE); 303 306 if (!requestURL) { 307 setIsEmbedReady(false); 304 308 return; 305 309 } … … 308 312 requestURL = generateSingleVideoURL(OPENVIDEOPLUGIN_OEMBED_BASE); 309 313 if (!requestURL) { 314 setIsEmbedReady(false); 310 315 return; 311 316 } 312 317 } else { 318 setIsEmbedReady(false); 313 319 return; 314 320 } … … 333 339 setAttributes({providerSlug: "Open.Video"}); 334 340 } 335 } 336 341 setIsEmbedReady(true); 342 } else { 343 setIsEmbedReady(false); 344 } 337 345 } 338 346 … … 685 693 )} 686 694 <div class="openvideoplugin-btn-group"> 687 <button onClick={showPreview} disabled={!is ValidConfig()}>695 <button onClick={showPreview} disabled={!isEmbedReady}> 688 696 Done 689 697 </button> 690 <button onClick={showAddToPosts} disabled={!is ValidConfig()}>698 <button onClick={showAddToPosts} disabled={!isEmbedReady}> 691 699 Done & Add to Other Posts 692 700 </button> -
open-video/trunk/open-video.php
r3326432 r3327829 16 16 * 17 17 * @link https://www.open.video/ 18 * @since 1. 0.418 * @since 1.1.0 19 19 * @package Open.Video 20 20 * … … 23 23 * Plugin URI: https://wordpress.org/plugins/open-video 24 24 * Description: Open.Video allows you to easily embed videos to your site from the Open.Video Network. 25 * Version: 1. 0.425 * Version: 1.1.0 26 26 * Requires at least: 6.1 27 27 * Requires PHP: 7.0 … … 41 41 * Rename this for your plugin and update it as you release new versions. 42 42 */ 43 define('OPENVIDEOPLUGIN_VERSION', '1. 0.4');43 define('OPENVIDEOPLUGIN_VERSION', '1.1.0'); 44 44 45 45 global $openvideoplugin_regex;
Note: See TracChangeset
for help on using the changeset viewer.