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

index b1cc82198b9d3348d0e87192e209e35a1321290b..28398e7c127ee64fb599aae19dca39d50efea3a6 100644 (file)
@@ -26,3 +26,4 @@ yarn-error.log
 /resources/linkeditor/dist/
 /resources/compiler/
 /protected/*
+/resources/linkeditor/js/fluidbook.links.animations.js
index 6b3748675b54fee39df0c3bd3a315fe2ce1b5ef3..a70acc633fb18293ae355680dc9199e9a5d77807 100644 (file)
@@ -23,7 +23,11 @@ trait FluidbookPlayerBranches
     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'));
+        $prefix = '';
+        $suffix = 'export default FluidbookLinksAnimations;';
+        $c = file_get_contents(static::getPlayerBaseDirectory() . '/local/animscode/js/libs/fluidbook/fluidbook.links.animations.js');
+        $c = $prefix . "\n\n" . $c . "\n\n" . $suffix;
+        file_put_contents(resource_path('linkeditor/js/fluidbook.links.animations.js'), $c);
         return $res;
     }
 }