Commit 0bb094af authored by Kim, Subin's avatar Kim, Subin
Browse files

impoer .js 삭제

parent 9ad05544
import axios from "axios"; import axios from "axios";
import baseUrl from "../utils/baseUrl.js"; import baseUrl from "../utils/baseUrl";
const addsubject = async (info, userId) => { const addsubject = async (info, userId) => {
const url = `${baseUrl}/api/subject/addsubject`; const url = `${baseUrl}/api/subject/addsubject`;
......
import TodoModal from "../Modal/TodoModal.js"; import TodoModal from "../Modal/TodoModal";
import styles from "./buttons.module.scss"; import styles from "./buttons.module.scss";
const AddBtn = () => { const AddBtn = () => {
......
import { useState, useEffect, useRef } from "react"; import { useState, useEffect, useRef } from "react";
import CalendarBtn from "../Buttons/CalendarBtn.js"; import CalendarBtn from "../Buttons/CalendarBtn";
import DatePickerModal from "../Modal/DatePickerModal.js"; import DatePickerModal from "../Modal/DatePickerModal";
import ScheduleModal from "../Modal/ScheduleModal.js"; import ScheduleModal from "../Modal/ScheduleModal";
import scheduleApi from "../../apis/schedule.api"; import scheduleApi from "../../apis/schedule.api";
import catchErrors from "../../utils/catchErrors.js"; import catchErrors from "../../utils/catchErrors";
import moment from 'moment'; import moment from 'moment';
import FullCalendar from '@fullcalendar/react'; import FullCalendar from '@fullcalendar/react';
import dayGridPlugin from '@fullcalendar/daygrid'; import dayGridPlugin from '@fullcalendar/daygrid';
......
import ScheduleCarousel from "../Schedule/ScheduleCarousel.js"; import ScheduleCarousel from "../Schedule/ScheduleCarousel";
import ScheduleList from "../Schedule/ScheduleList.js"; import ScheduleList from "../Schedule/ScheduleList";
import { createPlugin } from '@fullcalendar/react'; import { createPlugin } from '@fullcalendar/react';
const CustomDateView = () => { const CustomDateView = () => {
......
...@@ -2,7 +2,7 @@ import { useEffect, useRef } from "react"; ...@@ -2,7 +2,7 @@ import { useEffect, useRef } from "react";
import { useHistory, useParams } from "react-router-dom"; import { useHistory, useParams } from "react-router-dom";
import moment from 'moment'; import moment from 'moment';
import FullCalendar from '@fullcalendar/react'; import FullCalendar from '@fullcalendar/react';
import customViewPlugin from "./CustomView.js"; import customViewPlugin from "./CustomView";
import bootstrapPlugin from '@fullcalendar/bootstrap'; import bootstrapPlugin from '@fullcalendar/bootstrap';
import '@fortawesome/fontawesome-free/css/all.css'; import '@fortawesome/fontawesome-free/css/all.css';
......
import { useState, useEffect, useRef } from "react"; import { useState, useEffect, useRef } from "react";
import { useHistory, useParams } from "react-router-dom"; import { useHistory, useParams } from "react-router-dom";
import Date from "./DateSet.js"; import Date from "./DateSet";
import moment from 'moment'; import moment from 'moment';
import FullCalendar, { createPlugin } from '@fullcalendar/react'; import FullCalendar, { createPlugin } from '@fullcalendar/react';
import interactionPlugin from "@fullcalendar/interaction"; import interactionPlugin from "@fullcalendar/interaction";
......
import EditBtn from "./Buttons/EditBtn.js"; import EditBtn from "./Buttons/EditBtn";
import AddBtn from "./Buttons/AddBtn.js"; import AddBtn from "./Buttons/AddBtn";
const Footer = ({ pathname="todo" }) => { const Footer = ({ pathname="todo" }) => {
return ( return (
......
import { useState } from 'react'; import { useState } from 'react';
import { Redirect, Link } from "react-router-dom"; import { Redirect, Link } from "react-router-dom";
import { Formik } from 'formik'; import { Formik } from 'formik';
import { useAuth } from "../../utils/context.js"; import { useAuth } from "../../utils/context";
import * as Yup from 'yup'; import * as Yup from 'yup';
import catchErrors from "../../utils/catchErrors.js"; import catchErrors from "../../utils/catchErrors";
import styles from "./form.module.scss"; import styles from "./form.module.scss";
const LoginForm = () => { const LoginForm = () => {
......
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { Redirect, useParams } from "react-router-dom"; import { Redirect, useParams } from "react-router-dom";
import BtnGroup from "../Buttons/BtnGroup.js"; import BtnGroup from "../Buttons/BtnGroup";
import scheduleApi from "../../apis/schedule.api"; import scheduleApi from "../../apis/schedule.api";
import { useAuth } from "../../utils/context.js"; import { useAuth } from "../../utils/context";
import catchErrors from "../../utils/catchErrors.js"; import catchErrors from "../../utils/catchErrors";
import styles from "./form.module.scss"; import styles from "./form.module.scss";
const ScheduleForm = () => { const ScheduleForm = () => {
......
...@@ -3,7 +3,7 @@ import { Redirect } from "react-router-dom"; ...@@ -3,7 +3,7 @@ import { Redirect } from "react-router-dom";
import { Formik } from 'formik'; import { Formik } from 'formik';
import * as Yup from 'yup'; import * as Yup from 'yup';
import authApi from '../../apis/auth.api'; import authApi from '../../apis/auth.api';
import catchErrors from "../../utils/catchErrors.js"; import catchErrors from "../../utils/catchErrors";
import styles from "./form.module.scss"; import styles from "./form.module.scss";
const SignupForm = () => { const SignupForm = () => {
......
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { useParams } from 'react-router-dom'; import { useParams } from 'react-router-dom';
import { useAuth } from "../../utils/context.js"; import { useAuth } from "../../utils/context";
import BtnGroup from "../Buttons/BtnGroup"; import BtnGroup from "../Buttons/BtnGroup";
import subjectApi from '../../apis/subject.api.js'; import subjectApi from '../../apis/subject.api';
import planApi from '../../apis/plan.api.js'; import planApi from '../../apis/plan.api';
import catchErrors from '../../utils/catchErrors';
import styles from "./form.module.scss"; import styles from "./form.module.scss";
import catchErrors from '../../utils/catchErrors.js';
const StudyPlanEditForm = () => { const StudyPlanEditForm = () => {
const { user } = useAuth(); const { user } = useAuth();
......
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { Redirect, useParams } from 'react-router-dom'; import { Redirect, useParams } from 'react-router-dom';
import { useAuth } from '../../utils/context.js'; import { useAuth } from '../../utils/context';
import BtnGroup from "../Buttons/BtnGroup"; import BtnGroup from "../Buttons/BtnGroup";
import subjectApi from '../../apis/subject.api'; import subjectApi from '../../apis/subject.api';
import catchErrors from '../../utils/catchErrors.js'; import catchErrors from '../../utils/catchErrors';
import styles from "./form.module.scss"; import styles from "./form.module.scss";
const SubjectForm = () => { const SubjectForm = () => {
......
import { Redirect, Route } from "react-router-dom"; import { Redirect, Route } from "react-router-dom";
import { useAuth } from "../utils/context.js" import { useAuth } from "../utils/context";
import ErrorPage from "../pages/ErrorPage"; import ErrorPage from "../pages/ErrorPage";
const PrivateRoute = ({ component: Component, ...rest }) => { const PrivateRoute = ({ component: Component, ...rest }) => {
......
...@@ -2,7 +2,7 @@ import { useState, useEffect } from "react"; ...@@ -2,7 +2,7 @@ import { useState, useEffect } from "react";
import { useParams } from "react-router-dom"; import { useParams } from "react-router-dom";
import KU from "./KUSchedule.js"; import KU from "./KUSchedule.js";
import scheduleApi from "../../apis/schedule.api"; import scheduleApi from "../../apis/schedule.api";
import catchErrors from "../../utils/catchErrors.js"; import catchErrors from "../../utils/catchErrors";
const ScheduleCarousel = () => { const ScheduleCarousel = () => {
const [scheduleList, setScheduleList] = useState([]) const [scheduleList, setScheduleList] = useState([])
......
import { useState, useEffect } from "react"; import { useState, useEffect } from "react";
import { useParams } from "react-router-dom"; import { useParams } from "react-router-dom";
import Item from "./ScheduleItem.js"; import Item from "./ScheduleItem";
import scheduleApi from "../../apis/schedule.api"; import scheduleApi from "../../apis/schedule.api";
import { useAuth } from "../../utils/context.js"; import { useAuth } from "../../utils/context";
import catchErrors from "../../utils/catchErrors.js"; import catchErrors from "../../utils/catchErrors";
import styles from "./schedule.module.scss"; import styles from "./schedule.module.scss";
const ScheduleList = () => { const ScheduleList = () => {
......
import PlanItem from "./PlanItem.js"; import PlanItem from "./PlanItem";
import styles from "./studyplan.module.scss"; import styles from "./studyplan.module.scss";
const AddplanList = () => { const AddplanList = () => {
......
import { useState } from "react"; import { useState } from "react";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import catchErrors from "../../utils/catchErrors.js"; import catchErrors from "../../utils/catchErrors";
import styles from "../Schedule/schedule.module.scss"; import styles from "../Schedule/schedule.module.scss";
import styles2 from "./studyplan.module.scss"; import styles2 from "./studyplan.module.scss";
......
import { useState, useEffect } from 'react'; import { useState, useEffect } from 'react';
import { useAuth } from "../utils/context.js" import { useAuth } from "../utils/context";
import { Link } from "react-router-dom"; import { Link } from "react-router-dom";
import StudyPlanCard from "./Card/StudyPlanCard.js"; import StudyPlanCard from "./Card/StudyPlanCard";
import subjectApi from '../apis/subject.api.js'; import subjectApi from '../apis/subject.api';
const StudyPlanList = () => { const StudyPlanList = () => {
const { user } = useAuth(); const { user } = useAuth();
......
import TodoModal from "../components/Modal/TodoModal.js"; import TodoModal from "../components/Modal/TodoModal";
import TodoPostModal from "../components/Modal/TodoPostModal.js"; import TodoPostModal from "../components/Modal/TodoPostModal";
import styles from "../components/Form/form.module.scss"; import styles from "../components/Form/form.module.scss";
const TodoList = () => { const TodoList = () => {
......
import Monthly from "../../components/Calendar/AdminMonthly.js"; import Monthly from "../../components/Calendar/AdminMonthly";
import Footer from "../../components/Footer.js"; import Footer from "../../components/Footer";
import { useAuth } from "../../utils/context.js"; import { useAuth } from "../../utils/context";
import styles from "./admin.module.scss"; import styles from "./admin.module.scss";
const AdminPage = () => { const AdminPage = () => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment