This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import fs, { readFileSync } from 'fs' | |
import { Blob } from 'buffer' | |
import { exec } from 'child_process' | |
import path from 'path' | |
import stream from 'stream' | |
import { promisify } from 'util' | |
import dotenv from 'dotenv' | |
dotenv.config() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import axios from 'axios' | |
import dotenv from 'dotenv' | |
dotenv.config() | |
export const selfPostInstagram = async (description, tags, date, video) => { | |
const API = 'https://graph.facebook.com/v16.0' | |
const INSTAGRAM_BUSINESS_ACCOUNT = process.env.INSTAGRAM_BUSINESS_ACCOUNT | |
const INSTAGRAM_GRAPH_ACCESS_TOKEN = process.env.INSTAGRAM_GRAPH_ACCESS_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// plugins/reactExacalidraw.js | |
import { createElement } from 'react' | |
import { createRoot } from 'react-dom/client' | |
import { Excalidraw } from '@excalidraw/excalidraw' | |
export default defineNuxtPlugin((nuxtApp) => { | |
nuxtApp.provide('excalidraw', { createElement, createRoot, Excalidraw }) | |
}) | |