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

@ -3,7 +3,7 @@ import React from "react";
import { Draggable } from "react-beautiful-dnd";
import { EyeOpenIcon, Pencil2Icon } from '@radix-ui/react-icons'
import styled from "styled-components";
import { getUriWithOrg } from "@services/config";
import { getUriWithOrg } from "@services/config/config";
function Lecture(props: any) {

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) {

View file

@ -1,4 +1,4 @@
import { getBackendUrl } from "@services/config";
import { getBackendUrl } from "@services/config/config";
import React from "react";
import styled from "styled-components";

View file

@ -8,7 +8,7 @@ import Link from "next/link";
import Image from "next/image";
import { useRouter, useSearchParams, usePathname } from "next/navigation";
import { headers } from "next/headers";
import { getOrgFromUri, getUriWithOrg } from "@services/config";
import { getOrgFromUri, getUriWithOrg } from "@services/config/config";
export const Menu = (params : any) => {
const router = useRouter();