chore: refactor services folder

This commit is contained in:
swve 2023-03-23 22:30:11 +01:00
parent b16daaa780
commit 9ccf99a86f
35 changed files with 41 additions and 41 deletions

View file

@ -9,7 +9,7 @@ import { ToolbarButtons } from "./Toolbar/ToolbarButtons";
import { motion, AnimatePresence } from "framer-motion";
import Image from "next/legacy/image";
import styled from "styled-components";
import { getBackendUrl } from "../../services/config";
import { getBackendUrl } from "@services/config/config";
import { SlashIcon } from "@radix-ui/react-icons";
import Avvvatars from "avvvatars-react";
// extensions

View file

@ -3,7 +3,7 @@ import React from "react";
import styled from "styled-components";
import { AlertCircle, AlertTriangle, Image, ImagePlus, Info } from "lucide-react";
import { getImageFile, uploadNewImageFile } from "../../../../services/blocks/Image/images";
import { getBackendUrl } from "../../../../services/config";
import { getBackendUrl } from "../../../../services/config/config";
function ImageBlockComponent(props: any) {
const [image, setImage] = React.useState(null);

View file

@ -3,7 +3,7 @@ import React from "react";
import styled from "styled-components";
import { AlertCircle, AlertTriangle, FileText, Image, ImagePlus, Info } from "lucide-react";
import { getPDFFile, uploadNewPDFFile } from "../../../../services/blocks/Pdf/pdf";
import { getBackendUrl } from "../../../../services/config";
import { getBackendUrl } from "../../../../services/config/config";
function PDFBlockComponent(props: any) {
const [pdf, setPDF] = React.useState(null);

View file

@ -2,7 +2,7 @@ import { NodeViewWrapper } from "@tiptap/react";
import { AlertTriangle, Image, Video } from "lucide-react";
import React from "react";
import styled from "styled-components";
import { getBackendUrl } from "../../../../services/config";
import { getBackendUrl } from "../../../../services/config/config";
import { uploadNewVideoFile } from "../../../../services/blocks/Video/video";
function VideoBlockComponents(props: any) {