Wow! I learned so much more than what I'm looking for 😲 You're awesome! Please keep up this style of tutorials. Now i finally know how to utilize for documentation. Saves a lot of Google-ing
Hello, I would like to do automatic SEO but I am not sure that my ideas are good, could you help me understand how to do it correctly? Could you help me understand what I could get if I use n8n and what I could get if I use BAS?
Hello can you help me? I got 2 error in console: 1. Unchecked runtime.lastError: The message port closed before a response was received 2. Third-party cookie will be blocked. Learn more in the Issues tab And when I debug acceptData Function there is info undefined My code below
Hello, this is my script <script> const basokaForm = document.getElementById("basoka-form") basokaForm.addEventListener("submit",submitData) function submitData(e){ e.preventDefault() console.log("Form Anda Telah Terkirim") console.log(this) google.script.run.acceptData(this) } </script> And this is my code.gs function doGet() { const htmlService = HtmlService.createTemplateFromFile("index") const html = htmlService.evaluate().addMetaTag("viewport","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no") return html } function acceptData(formData){ console.log(formData) } But in when i check console i got 2 error: 1. Third-party cookie will be blocked. Learn more in the Issues tab 2. Unchecked runtime.lastError: The message port closed before a response was received And when i debug acceptData function there is info undefined Can you help me please?
Console logs don't seem to log the data like they used to previously for some reason. Try to add lines to add the data in the spreadsheet and see if you still get an error.
This is great! I am trying to run a bot in discord (midjourney) with starts with "/imagine". Using this script doesn't trigger the bot, it just treats it as a test. Any thoughts?
That's some awesome Explanation, so basically we use props.children to just render Parents elements inside the child but without copying again and again 🐸
Goodnight! Unfortunately, debugging is line by line, in practice it doesn't work, what makes the difference is debugging from one checkpoint to the next checkpoint, imagine going through 100 lines debugging line by line, so debugging from one checkpoint to another is more efficient and unfortunately it doesn't.
Thanks, That was insightful. Can I ask you how to make this communication for onEdit Trigger? I want a return for each trigger and fetch it on client-side just like this video
23:00 Important note for anyone following this in May 2024, Parcel v2.12.0 requires a named import for React DOM in index.js. Your import statements at the top in `index.js` should look like this, otherwise when you run `npm start` you will not see anything in your browser window. import { createRoot } from "react-dom/client" import App from "./App"
Great video! Thanks for the clear tutorial on using Google Apps Script with React JS and Router. It's really helpful to see this kind of integration in action. I'm curious, do you think similar functionality could be achieved using NextJS without SSR? Would love to see a tutorial on that if it's possible. Keep up the awesome work!
Great video! Thanks for the clear tutorial on using Google Apps Script with React JS and Router. It's really helpful to see this kind of integration in action. I'm curious, do you think similar functionality could be achieved using NextJS without SSR? Would love to see a tutorial on that if it's possible. Keep up the awesome work!
nice, this is awesome. thank you! i recreate the script code to add series and make it dual Y-axis stacked column chart, tests are fine for positive numbers, but problem arise when one of the data becomes negative, both left and right Y-axis is not aligning to zero and the graph is very weird. i'm finding solutions for that, i tried setting up the min value for these vAxis.minValue, vAxis.viewWindowMode, vAxes and vAxis but i can't make it work.
just spent lots of time todaydoing the same with astro js appscript template generator, here is my astro config if someone want to try => import { defineConfig } from "astro/config"; import fs from "fs"; import path from "path"; export default defineConfig({ trailingSlash: "always", output: "static", build: { format: "file", redirects: true, inlineStylesheets: "always", client: "./thefolderofyourprojectwillbuild", }, onAfterBuild() { // Function to find the JavaScript file in the dist directory function findJsFile(directory) { const files = fs.readdirSync(directory); for (const file of files) { if (file.endsWith(".js") && file.startsWith("everything")) { return path.join(directory, file); } } return null; } // Function to find the CSS file in the dist directory function findCssFile(directory) { const files = fs.readdirSync(directory); for (const file of files) { if (file.endsWith(".css")) { return path.join(directory, file); } } return null; } // Read the bundled JavaScript file const jsDirectory = "./dist/_astro"; // Update this path according to your setup const jsFilePath = findJsFile(jsDirectory); if (!jsFilePath) { console.error("Failed to find the JavaScript file."); process.exit(1); } const jsContent = fs.readFileSync(jsFilePath, "utf8"); // Read the CSS file (if it exists) const cssDirectory = "./dist/_astro"; // Update this path according to your setup const cssFilePath = findCssFile(cssDirectory); const cssContent = cssFilePath ? fs.readFileSync(cssFilePath, "utf8") : ""; // Read the index.html file let indexContent = fs.readFileSync("./dist/index.html", "utf8"); // Update this path according to your setup // Replace placeholders with actual content indexContent = indexContent.replace( "<!-- {{JS_CONTENT}} -->", `<script>${jsContent}</script>` ); indexContent = indexContent.replace( "<!-- {{CSS_CONTENT}} -->", `<style>${cssContent}</style>` ); // Write the updated content back to index.html fs.writeFileSync("./dist/index.html", indexContent, "utf8"); // Update this path according to your setup }, });