Skip to content

Commit

Permalink
Merge branch 'release/0.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
pipisebastian committed Nov 13, 2024
2 parents 8823830 + 35b0474 commit 9d07957
Show file tree
Hide file tree
Showing 32 changed files with 34 additions and 54 deletions.
1 change: 0 additions & 1 deletion @noctaCrdt/dist/Crdt.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/Crdt.d.ts.map

This file was deleted.

2 changes: 0 additions & 2 deletions @noctaCrdt/dist/Crdt.js

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/Crdt.js.map

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/Interfaces.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/Interfaces.d.ts.map

This file was deleted.

2 changes: 0 additions & 2 deletions @noctaCrdt/dist/Interfaces.js

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/Interfaces.js.map

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/LinkedList.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/LinkedList.d.ts.map

This file was deleted.

2 changes: 0 additions & 2 deletions @noctaCrdt/dist/LinkedList.js

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/LinkedList.js.map

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/Node.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/Node.d.ts.map

This file was deleted.

2 changes: 0 additions & 2 deletions @noctaCrdt/dist/Node.js

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/Node.js.map

This file was deleted.

1 change: 0 additions & 1 deletion @noctaCrdt/dist/tsconfig.tsbuildinfo

This file was deleted.

8 changes: 5 additions & 3 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@ FROM node:20 AS build
WORKDIR /app

# 2. ๋ชจ๋…ธ๋ ˆํฌ ๋ฃจํŠธ์—์„œ ํ•„์š”ํ•œ ํŒŒ์ผ ๋ณต์‚ฌ
COPY ./package.json ./pnpm-lock.yaml ./pnpm-workspace.yaml ./
COPY ./client/package.json ./client/
COPY . .
# COPY ./package.json ./pnpm-lock.yaml ./pnpm-workspace.yaml ./
# COPY ./client/package.json ./client/panda.config.ts ./client/vite.config.ts ./client/tsconfig.json ./client/
# COPY ./client/src/styles ./client/src/styles
# COPY ./@noctaCrdt/package.json ./@noctaCrdt/

# 3. pnpm ์„ค์น˜ ๋ฐ ์˜์กด์„ฑ ์„ค์น˜
RUN npm install -g pnpm
RUN pnpm install

# 4. ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜ ๋นŒ๋“œ
COPY . .
RUN pnpm --filter client run build

# 5. ๋นŒ๋“œ๋œ ์ •์  ํŒŒ์ผ ์ค€๋น„ (Nginx์—์„œ ์ œ๊ณต)
Expand Down
16 changes: 8 additions & 8 deletions client/panda.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { defineConfig } from "@pandacss/dev";
import { radii } from "@styles/tokens/radii";
import { colors } from "@styles/tokens/color";
import { shadows } from "@styles/tokens/shadow";
import { spacing } from "@styles/tokens/spacing";
import { textStyles } from "@styles/typography";
import { globalStyles } from "@styles/global";
import { glassContainerRecipe } from "@styles/recipes/glassContainerRecipe";
import { sizes } from "@styles/tokens/sizes";
import { radii } from "./src/styles/tokens/radii";
import { colors } from "./src/styles/tokens/color";
import { shadows } from "./src/styles/tokens/shadow";
import { spacing } from "./src/styles/tokens/spacing";
import { sizes } from "./src/styles/tokens/sizes";
import { textStyles } from "./src/styles/typography";
import { globalStyles } from "./src/styles/global";
import { glassContainerRecipe } from "./src/styles/recipes/glassContainerRecipe";

export default defineConfig({
preflight: true,
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/bottomNavigator/BottomNavigator.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Page } from "@src/types/page";
import { motion } from "framer-motion";
import { IconButton } from "@components/button/IconButton";
import { Page } from "src/types/page";
import { animation } from "./BottomNavigator.animation";
import { bottomNavigatorContainer } from "./BottomNavigator.style";

Expand Down
4 changes: 2 additions & 2 deletions client/src/components/sidebar/Sidebar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useIsSidebarOpen, useSidebarActions } from "@src/stores/useSidebarStore";
import { Page } from "@src/types/page";
import { motion } from "framer-motion";
import { IconButton } from "@components/button/IconButton";
import { useIsSidebarOpen, useSidebarActions } from "src/stores/useSidebarStore";
import { Page } from "src/types/page";
import { MenuButton } from "./MenuButton";
import { PageItem } from "./PageItem";
import { animation, contentVariants, sidebarVariants } from "./Sidebar.animation";
Expand Down
4 changes: 2 additions & 2 deletions client/src/features/page/Page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Page as PageType } from "@src/types/page";
import { motion, AnimatePresence } from "framer-motion";
import { useRef, useState } from "react";
import { useRef } from "react";
import { Editor } from "@features/editor/Editor";
import { Page as PageType } from "src/types/page";
import { pageAnimation, resizeHandleAnimation } from "./Page.animation";
import { pageContainer, pageHeader, resizeHandle } from "./Page.style";

Expand Down
4 changes: 2 additions & 2 deletions client/src/features/page/hooks/usePage.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { useIsSidebarOpen } from "@src/stores/useSidebarStore";
import { Position, Size } from "@src/types/page";
import { useEffect, useState } from "react";
import { PAGE, SIDE_BAR } from "@constants/size";
import { SPACING } from "@constants/spacing";
import { useIsSidebarOpen } from "src/stores/useSidebarStore";
import { Position, Size } from "src/types/page";

const PADDING = SPACING.MEDIUM * 2;

Expand Down
2 changes: 1 addition & 1 deletion client/src/features/workSpace/hooks/usePagesManage.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Page } from "@src/types/page";
import { useState } from "react";
import { Page } from "src/types/page";

interface usePagesManageProps {
pages: Page[];
Expand Down
11 changes: 6 additions & 5 deletions client/src/hooks/useMarkdownGrammer/handlers/backSpace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export const useBackspaceKeyHandler = ({
const { parentNode } = currentNode;
const wasRoot = parentNode === editorState.rootNode;

let focusNode;
let focusNode: EditorNode;

if (parentNode.prevNode?.type === "checkbox") {
// undefined๊ฐ€ ๋  ์ˆ˜ ์žˆ๋Š” ์ƒํ™ฉ ์ฒดํฌ
const prevFirstChild = parentNode.prevNode.firstChild;
Expand Down Expand Up @@ -192,14 +193,14 @@ export const useBackspaceKeyHandler = ({
currentNode.type = "p";
setEditorState((prev) => ({ ...prev }));
} else {
let focusNode;
let focusNode: EditorNode;
if (currentNode.prevNode?.type === "checkbox") {
// ์ด์ „ ๋…ธ๋“œ๊ฐ€ ์ฒดํฌ๋ฐ•์Šค๋ฉด ๊ทธ ์ฒดํฌ๋ฐ•์Šค์˜ content ๋…ธ๋“œ๋กœ ํฌ์ปค์Šค
focusNode = currentNode.prevNode.firstChild;
focusNode = currentNode.prevNode.firstChild as EditorNode;
} else if (currentNode.prevNode?.type === "ul" || currentNode.prevNode?.type === "ol") {
focusNode = editorList.getLastChild(currentNode.prevNode);
focusNode = editorList.getLastChild(currentNode.prevNode) as EditorNode;
} else {
focusNode = currentNode.prevNode || currentNode.parentNode;
focusNode = (currentNode.prevNode || currentNode.parentNode) as EditorNode;
}

// ํ˜„์žฌ ๋…ธ๋“œ ์ œ๊ฑฐ ์ „์— ์—ฐ๊ฒฐ ๊ด€๊ณ„ ์ •๋ฆฌ
Expand Down
2 changes: 1 addition & 1 deletion client/src/styles/tokens/color.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { COLOR } from "src/constants/color";
import { COLOR } from "@constants/color";

export const colors = {
white: {
Expand Down
2 changes: 1 addition & 1 deletion client/src/styles/tokens/sizes.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SIDE_BAR } from "src/constants/size";
import { SIDE_BAR } from "@constants/size";

export const sizes = {
sidebar: {
Expand Down
2 changes: 1 addition & 1 deletion client/src/styles/tokens/spacing.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SPACING } from "src/constants/spacing";
import { SPACING } from "@constants/spacing";

export const spacing = {
sm: { value: `${SPACING.SMALL}px` },
Expand Down
1 change: 1 addition & 0 deletions client/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"types": ["vite/client"],
"baseUrl": ".",
"paths": {
"@src/*": ["src/*"],
"@styled-system/*": ["styled-system/*"],
"@components/*": ["src/components/*"],
"@assets/*": ["src/assets/*"],
Expand Down
6 changes: 1 addition & 5 deletions client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@ import tsconfigPaths from "vite-tsconfig-paths";

export default defineConfig({
plugins: [react(), tsconfigPaths()],
resolve: {
alias: {
"@noctaCrdt": path.resolve(__dirname, "../@noctaCrdt"),
},
},
resolve: { alias: { "@noctaCrdt": path.resolve(__dirname, "../@noctaCrdt") } },
});
2 changes: 1 addition & 1 deletion pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
packages:
- "client"
- "server"
- "@noctaCrdt"
- "./@noctaCrdt"
1 change: 1 addition & 0 deletions server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ WORKDIR /app
# 2. ๋ชจ๋…ธ๋ ˆํฌ ๋ฃจํŠธ์—์„œ ํ•„์š”ํ•œ ํŒŒ์ผ ๋ณต์‚ฌ
COPY ./package.json ./pnpm-lock.yaml ./pnpm-workspace.yaml ./
COPY ./server/package.json ./server/
COPY ./@noctaCrdt/package.json ./@noctaCrdt/

# 3. pnpm ์„ค์น˜ ๋ฐ ์˜์กด์„ฑ ์„ค์น˜
RUN npm install -g pnpm
Expand Down

0 comments on commit 9d07957

Please sign in to comment.