]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6961 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Jul 2024 18:15:04 +0000 (20:15 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 29 Jul 2024 18:15:04 +0000 (20:15 +0200)
app/Models/Traits/FluidbookPlayerBranches.php

index e659af7b933647800bc85697d2cdb76d6682b368..6b3748675b54fee39df0c3bd3a315fe2ce1b5ef3 100644 (file)
@@ -9,7 +9,9 @@ use Cubist\Util\PHP;
 trait FluidbookPlayerBranches
 {
 
-    use ToolboxPlayerBranches;
+    use ToolboxPlayerBranches {
+        updateAllBranches as parentUpdateAllBranches;
+    }
 
     protected static $reposName = 'fluidbook-html5';
 
@@ -17,4 +19,11 @@ trait FluidbookPlayerBranches
     {
         return Files::mkdir(resource_path('fluidbookpublication/player'));
     }
+
+    protected function updateAllBranches()
+    {
+        $res = $this->parentUpdateAllBranches();
+        copy(static::getPlayerBaseDirectory() . '/local/animscode/js/libs/fluidbook/fluidbook.links.animations.js', resource_path('linkeditor/js/fluidbook.links.animations.js'));
+        return $res;
+    }
 }