🚦fix: 컴포넌트 주석 추가
- 주석 및 설명 추가
This commit is contained in:
parent
864243e80b
commit
3efec0ace5
@ -16,11 +16,20 @@ import '../styles/contents.scss'
|
||||
import Footer from '@/components/footer/Footer'
|
||||
import GlobalLoadingProvider from './GlobalLoadingProvider'
|
||||
|
||||
/**
|
||||
* 어플리케이션 메타데이터
|
||||
* 서버 컴포넌트에 한해서 개별로 설정할 수 있음
|
||||
*/
|
||||
export const metadata = {
|
||||
title: 'HANASYS設計',
|
||||
description: 'HANASYS設計',
|
||||
}
|
||||
|
||||
/**
|
||||
* 어플리케이션 전체 레이아웃 컴포넌트
|
||||
* @param {*} param0
|
||||
* @returns
|
||||
*/
|
||||
export default async function RootLayout({ children }) {
|
||||
const headersList = headers()
|
||||
const headerPathname = headersList.get('x-pathname') || ''
|
||||
|
||||
@ -2,6 +2,11 @@
|
||||
|
||||
import '@/styles/spinner.scss'
|
||||
|
||||
/**
|
||||
* 전역 스피너
|
||||
* 전역 로딩 스피너
|
||||
* @returns
|
||||
*/
|
||||
export default function GlobalSpinner() {
|
||||
return (
|
||||
<>
|
||||
|
||||
@ -12,6 +12,10 @@ import { useCanvas } from '@/hooks/useCanvas'
|
||||
import { useImgLoader } from '@/hooks/floorPlan/useImgLoader'
|
||||
// import { initImageLoaderPopup } from '@/lib/planAction'
|
||||
|
||||
/**
|
||||
* 이미지 로드 모달
|
||||
* @returns
|
||||
*/
|
||||
export default function ImgLoad() {
|
||||
const { currentCanvasPlan, setCurrentCanvasPlan } = usePlan()
|
||||
const { getMessage } = useMessage()
|
||||
|
||||
@ -23,6 +23,10 @@ import { useTrestle } from '@/hooks/module/useTrestle'
|
||||
import { usePolygon } from '@/hooks/usePolygon'
|
||||
import { useOrientation } from '@/hooks/module/useOrientation'
|
||||
|
||||
/**
|
||||
* 메뉴 처리 훅
|
||||
* @returns
|
||||
*/
|
||||
export default function useMenu() {
|
||||
const menus = []
|
||||
const currentMenu = useRecoilValue(currentMenuState)
|
||||
|
||||
@ -11,6 +11,10 @@ import { settingModalFirstOptionsState } from '@/store/settingAtom'
|
||||
/**
|
||||
* 배경 이미지 관리
|
||||
* 도면에 배경이미지를 로딩하는 기능을 제공
|
||||
*
|
||||
* 이미지 -> 캔버스 배경에 이미지 로드
|
||||
* 주소 -> 구글 맵에서 주소 검색 후 이미지로 다운로드 받아서 캔버스 배경에 이미지 로드
|
||||
* .dwg -> api를 통해서 .png로 변환 후 캔버스 배경에 이미지 로드
|
||||
* @returns {object}
|
||||
*/
|
||||
export function useRefFiles() {
|
||||
|
||||
@ -17,6 +17,12 @@ import { outerLinePointsState } from '@/store/outerLineAtom'
|
||||
import { placementShapeDrawingPointsState } from '@/store/placementShapeDrawingAtom'
|
||||
import { useCanvasSetting } from '@/hooks/option/useCanvasSetting'
|
||||
|
||||
/**
|
||||
* 플랜 처리 훅
|
||||
* 플랜을 표시하는 탭 UI 전반적인 처리 로직 관리
|
||||
* @param {*} params
|
||||
* @returns
|
||||
*/
|
||||
export function usePlan(params = {}) {
|
||||
const { floorPlanState } = useContext(FloorPlanContext)
|
||||
|
||||
|
||||
@ -3,6 +3,10 @@
|
||||
import sqlite3 from 'sqlite3'
|
||||
import { open } from 'sqlite'
|
||||
|
||||
/**
|
||||
* 캔바스 배경 이미지가 설정되면 데이터를 저장한다.
|
||||
* @param {*} param0
|
||||
*/
|
||||
export const setBackGroundImage = async ({ objectId, planNo, imagePath }) => {
|
||||
let db = null
|
||||
|
||||
@ -24,6 +28,11 @@ export const setBackGroundImage = async ({ objectId, planNo, imagePath }) => {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 캔바스 배경 이미지 데이터를 조회한다.
|
||||
* @param {*} param0
|
||||
* @returns
|
||||
*/
|
||||
export const getBackGroundImage = async ({ objectId, planNo }) => {
|
||||
let db = null
|
||||
|
||||
@ -39,6 +48,10 @@ export const getBackGroundImage = async ({ objectId, planNo }) => {
|
||||
return result
|
||||
}
|
||||
|
||||
/**
|
||||
* 캔바스 배경 이미지 데이터를 삭제한다.
|
||||
* @param {*} param0
|
||||
*/
|
||||
export const deleteBackGroundImage = async ({ objectId, planNo }) => {
|
||||
let db = null
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user