From e6639cc229b571c373f15cf5f5fee1c22526296c Mon Sep 17 00:00:00 2001 From: stone-skipper Date: Sun, 17 Nov 2024 15:46:39 +0800 Subject: [PATCH 1/2] replacing the url origin --- apps/framer-plugin/src/App.tsx | 37 ++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/apps/framer-plugin/src/App.tsx b/apps/framer-plugin/src/App.tsx index 1eb7c907..3abf54af 100644 --- a/apps/framer-plugin/src/App.tsx +++ b/apps/framer-plugin/src/App.tsx @@ -8,16 +8,21 @@ framer.showUI({ height: 446, }) -const framerPluginURLOrigin = 'https://delicious-statuses-566068.framer.app' +const framerPluginURLOrigin = 'https://amicable-interface-702205.framer.app' // shadergradient.co origin const handleAddShaderGradient = async (controls: { message: string }) => { await framer.addComponentInstance({ - url: 'https://framer.com/m/ShaderGradientStaging-8Yhr.js', //staging - // url: 'https://framer.com/m/ShaderGradient-oWuS.js', // upgraded shadergradient + // url: 'https://framer.com/m/ShaderGradientStaging-8Yhr.js', //staging + url: 'https://framer.com/m/ShaderGradient-oWuS.js', // upgraded shadergradient attributes: { width: '900px', height: '600px', - controls: controls, + controls: { + ...controls, + zoomOut: false, + toggleAxis: false, + range: 'disabled', + }, }, }) } @@ -38,19 +43,17 @@ export function App() { return (
-
-