Skip to content

Commit

Permalink
chore: remove unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Nov 16, 2023
1 parent da0fec4 commit e9a9284
Show file tree
Hide file tree
Showing 84 changed files with 251 additions and 448 deletions.
1 change: 1 addition & 0 deletions contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const Post = defineDocumentType(() => ({
id: { type: "number", required: true },
description: { type: "string", required: false },
date: { type: "date", required: true },
tags: { type: "string", required: true }, //{ type: "list", of: { type: "string" }, required: true },
},
computedFields: {
url: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/main/PostList.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { PostListElement } from "@src/model/post";
import { PostListElement } from "@src/types/post";
import PostListElementComponent from "./PostListElement";

interface PostListProps {
Expand Down
2 changes: 1 addition & 1 deletion src/components/main/PostListElement.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Link from "next/link";
import styled from "styled-components";

import { PostListElement } from "@src/model/post";
import { PostListElement } from "@src/types/post";
import Tag from "@src/components/Tag";
import { format } from "date-fns";

Expand Down
2 changes: 1 addition & 1 deletion src/components/post/Meta.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Head from "next/head";
import { PostMeta } from "@src/model/post";
import { PostMeta } from "@src/types/post";

const Meta = ({ title, description, tags = [] }: Partial<PostMeta>) => {
const browserTitle = `${title} - oooooroblog`;
Expand Down
1 change: 1 addition & 0 deletions src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export enum Theme {

export const StorageKey = {
DARK_MODE_STORAGE_KEY: "THEME",
MAIN_SCROLL_Y: "MAIN_SCROLL_Y",
};

export const POST_COUNT = 10;
5 changes: 0 additions & 5 deletions src/constants/environments.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/constants/queryKey.ts

This file was deleted.

3 changes: 0 additions & 3 deletions src/constants/storageKey.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/pages/api/posts/[page]/[count]/[tag].ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/pages/api/posts/[page]/[count]/index.ts

This file was deleted.

11 changes: 0 additions & 11 deletions src/pages/api/posts/sides/[idx].ts

This file was deleted.

9 changes: 6 additions & 3 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,23 @@ import styled from "styled-components";
import { compareDesc } from "date-fns";
import { allPosts } from "contentlayer/generated";

import { PostListElement } from "@src/model/post";
import { PostListElement } from "@src/types/post";
import Profile from "@src/components/main/Profile";
import PostList from "@src/components/main/PostList";
import { StorageKey } from "@src/constants/constants";

type HomeProps = { posts: PostListElement[] };

const Home: NextPage<HomeProps> = ({ posts }: HomeProps) => {
useEffect(() => {
const scroll = parseInt(sessionStorage.getItem("mainscroll") ?? "0");
const scroll = parseInt(
sessionStorage.getItem(StorageKey.MAIN_SCROLL_Y) ?? "0"
);
window.scrollTo({ top: scroll, behavior: "auto" });
}, []);

const onClickPost = () => {
sessionStorage.setItem("mainscroll", window.scrollY.toString());
sessionStorage.setItem(StorageKey.MAIN_SCROLL_Y, window.scrollY.toString());
};

return (
Expand Down
5 changes: 2 additions & 3 deletions src/posts/0-nginx-routing-hosting-name.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ description: Nginx 라우팅을 했을 때, request의 host 이름을 라우팅
tags: Nginx
date: 2021-10-26
---
import PostLayout from "../components/post/PostLayout"
import {CategoryType} from "../model/post"
import PostUtil from "../utils/postUtil"



## 문제 상황

Expand Down
4 changes: 2 additions & 2 deletions src/posts/1-nginx-subdomain-to-ec2-port.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: 어떤 도메인의 서브도메인에 접속했을 때 서버의
tags: Nginx,AWS
date: 2021-10-26
---
import PostLayout from "../components/post/PostLayout"
import PostUtil from "../utils/postUtil"



이 포스트에서는 어떤 도메인의 서브도메인에 접속했을 때 서버의 특정 포트에 실행되고 있는 어플리케이션으로 연결하는 방법에 대하여 정리합니다. 개인 프로젝트 중 문제를 해결한 방법을 기록하기 위하여 작성하였으며, 부정확한 부분이 있을 수 있습니다.

Expand Down
4 changes: 2 additions & 2 deletions src/posts/11-about-jsx.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: JSX는 JavaScript를 확장한 문법으로, React에서 엘리먼
tags: React,JSX,Babel
date: 2021-12-27
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



🤵 JSX는 순수 자바스크립트 문법이 아닙니다. 그런데 어떻게 브라우저 상에서 동작이 가능할까요?

Expand Down
4 changes: 2 additions & 2 deletions src/posts/12-about-react-diffing-algo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: React DOM은 새로 그리는 화면을 최소화하기 위해서
tags: React
date: 2021-12-27
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



🤵 React에서 key prop이 하는 역할이 무엇일까요? (기억이 정확하지 않지만 이런 느낌의 질문..)

Expand Down
4 changes: 2 additions & 2 deletions src/posts/13-about-nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: The React Framework for Production
tags: Next.js
date: 2022-01-01
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



> The React Framework for Production
Expand Down
4 changes: 2 additions & 2 deletions src/posts/14-js00-about-js.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: HTML, CSS와 함께 웹을 구성하는 요소 중 하나, 웹 브
tags: JavaScript
date: 2022-01-09
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



> 본 시리즈는 [모던 자바스크립트 Deep Dive](https://shopping.interpark.com/product/productInfo.do?prdNo=8860873922&gclid=Cj0KCQiA8vSOBhCkARIsAGdp6RTfL-5qEwmr40NR6B9YBGQ6guONHQBhK5HrT98QWi8ywi6hXhUqVo4aAssyEALw_wcB) 책을 참고하여 작성하고 있습니다.
Expand Down
4 changes: 2 additions & 2 deletions src/posts/15-js01-variables.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: 변수란 무엇인가? / 변수 선언의 실행 시점과 변수
tags: JavaScript
date: 2022-01-09
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



> 본 시리즈는 [모던 자바스크립트 Deep Dive](https://shopping.interpark.com/product/productInfo.do?prdNo=8860873922&gclid=Cj0KCQiA8vSOBhCkARIsAGdp6RTfL-5qEwmr40NR6B9YBGQ6guONHQBhK5HrT98QWi8ywi6hXhUqVo4aAssyEALw_wcB) 책을 참고하여 작성하고 있습니다.
Expand Down
4 changes: 2 additions & 2 deletions src/posts/16-js02-statement.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: 리터럴과 표현식 / 표현식이 아닌 문 / 세미콜론 자
tags: JavaScript
date: 2022-01-13
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



> 본 시리즈는 [모던 자바스크립트 Deep Dive](https://shopping.interpark.com/product/productInfo.do?prdNo=8860873922&gclid=Cj0KCQiA8vSOBhCkARIsAGdp6RTfL-5qEwmr40NR6B9YBGQ6guONHQBhK5HrT98QWi8ywi6hXhUqVo4aAssyEALw_wcB) 책을 참고하여 작성하고 있습니다.
Expand Down
4 changes: 2 additions & 2 deletions src/posts/17-about-oop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: 객체 지향 프로그래밍이란? 코드의 모든 것을 객체
tags: OOP
date: 2022-01-16
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



20190717 백업

Expand Down
4 changes: 2 additions & 2 deletions src/posts/18-js03-about-object.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: 자바스크립트의 객체란? / 프로퍼티 / 원시 값과 객
tags: JavaScript
date: 2022-01-16
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



> 본 시리즈는 [모던 자바스크립트 Deep Dive](https://shopping.interpark.com/product/productInfo.do?prdNo=8860873922&gclid=Cj0KCQiA8vSOBhCkARIsAGdp6RTfL-5qEwmr40NR6B9YBGQ6guONHQBhK5HrT98QWi8ywi6hXhUqVo4aAssyEALw_wcB) 책을 참고하여 작성하고 있습니다.
Expand Down
4 changes: 2 additions & 2 deletions src/posts/19-props-state-ref.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: 🤵 State와 Ref의 차이가 무엇인가요? 🙎 ??? 🤵 이
tags: React
date: 2022-01-17
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



🤵 State와 Ref의 차이가 무엇인가요?

Expand Down
4 changes: 2 additions & 2 deletions src/posts/2-typescript-absolute-path-eslint-err.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: import 시 상대경로를 사용하면 프로젝트가 복잡해
tags: ESLint,Next.js,TypeScript
date: 2021-10-26
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



** 이 포스트에서는 Next.js를 사용합니다. CRA를 사용해 만든 프로젝트의 경우 craco 세팅이 추가로 필요합니다.
## TypeScript에서 절대경로 사용하기
Expand Down
4 changes: 2 additions & 2 deletions src/posts/20-js04-function-scope.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: 함수 (다양한 함수의 형태 / 일급 객체 / 함수가 가
tags: JavaScript
date: 2022-01-23
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



> 본 시리즈는 [모던 자바스크립트 Deep Dive](https://shopping.interpark.com/product/productInfo.do?prdNo=8860873922&gclid=Cj0KCQiA8vSOBhCkARIsAGdp6RTfL-5qEwmr40NR6B9YBGQ6guONHQBhK5HrT98QWi8ywi6hXhUqVo4aAssyEALw_wcB) 책을 참고하여 작성하고 있습니다.
Expand Down
4 changes: 2 additions & 2 deletions src/posts/21-js05-global-var-property-attributes.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: 전역 변수의 문제점 & 프로퍼티 어트리뷰트
tags: JavaScript
date: 2022-01-29
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



> 본 시리즈는 [모던 자바스크립트 Deep Dive](https://shopping.interpark.com/product/productInfo.do?prdNo=8860873922&gclid=Cj0KCQiA8vSOBhCkARIsAGdp6RTfL-5qEwmr40NR6B9YBGQ6guONHQBhK5HrT98QWi8ywi6hXhUqVo4aAssyEALw_wcB) 책을 참고하여 작성하고 있습니다.
Expand Down
4 changes: 2 additions & 2 deletions src/posts/22-js06a-constructor.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: 생성자 함수로 객체 생성하기 / 객체 리터럴과 생
tags: JavaScript
date: 2022-02-04
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



> 본 시리즈는 [모던 자바스크립트 Deep Dive](https://shopping.interpark.com/product/productInfo.do?prdNo=8860873922&gclid=Cj0KCQiA8vSOBhCkARIsAGdp6RTfL-5qEwmr40NR6B9YBGQ6guONHQBhK5HrT98QWi8ywi6hXhUqVo4aAssyEALw_wcB) 책을 참고하여 작성하고 있습니다.
Expand Down
4 changes: 2 additions & 2 deletions src/posts/23-js06b-prototype.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: 상속이 필요한 이유 / __proto__ / 프로토타입의 생성
tags: JavaScript
date: 2022-02-07
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



> 본 시리즈는 [모던 자바스크립트 Deep Dive](https://shopping.interpark.com/product/productInfo.do?prdNo=8860873922&gclid=Cj0KCQiA8vSOBhCkARIsAGdp6RTfL-5qEwmr40NR6B9YBGQ6guONHQBhK5HrT98QWi8ywi6hXhUqVo4aAssyEALw_wcB) 책을 참고하여 작성하고 있습니다.
Expand Down
4 changes: 2 additions & 2 deletions src/posts/24-js07a-strict-mode-builtin-obj.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: strict mode / 빌트인 객체 / 전역 객체
tags: JavaScript
date: 2022-02-13
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



> 본 시리즈는 [모던 자바스크립트 Deep Dive](https://shopping.interpark.com/product/productInfo.do?prdNo=8860873922&gclid=Cj0KCQiA8vSOBhCkARIsAGdp6RTfL-5qEwmr40NR6B9YBGQ6guONHQBhK5HrT98QWi8ywi6hXhUqVo4aAssyEALw_wcB) 책을 참고하여 작성하고 있습니다.
Expand Down
16 changes: 8 additions & 8 deletions src/posts/26-tcp-3-4way-handshake.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ description: TCP - 전송 제어 프로토콜(Transmission Control Protocol) →
tags: Network
date: 2022-02-13
---
import PostLayout from "../components/post/PostLayout";
import PostUtil from "../utils/postUtil";



>
# TCP?
Expand All @@ -20,16 +20,16 @@ import PostUtil from "../utils/postUtil";
## 특징

- 3단계 통신
1. 연결 수립 (Connection Establish)
2. 데이터 전송 (Data Transfer)
3. 연결 종료 (Connection Termination)
1. 연결 수립 (Connection Establish)
2. 데이터 전송 (Data Transfer)
3. 연결 종료 (Connection Termination)
- 서버 - 클라이언트 간 긍정 확인응답 방식 (Positive ACK Mechanism)

**긍정 확인응답**: **ACK** 신호, 수신 측에서 메시지를 에러 없이 정상적으로 수신했다 / 송신해도 된다는 것을 송신 측에 알리는 신호
**부정 확인응답**: **NACK** 혹은 **NAK** 신호, 정상적으로 수신되지 않았음을 송신측에 알림 → 잘 쓰이지 않는다

- Packet Switching 방식
- *Circuit Switching vs Datagram Packet Switching*
- *Circuit Switching vs Datagram Packet Switching*

**Circuit Switching**

Expand All @@ -54,7 +54,7 @@ import PostUtil from "../utils/postUtil";
## 제공하는 기능

- **Connection-oriented (연결 지향 프로토콜)**
- 데이터가 전송되기 전에 통신 세션 또는 반영구적 연결이 설정되어 데이터가 올바른 순서로 네트워크에 전달되는지 확인
- 데이터가 전송되기 전에 통신 세션 또는 반영구적 연결이 설정되어 데이터가 올바른 순서로 네트워크에 전달되는지 확인
- 믿을 수 있고 순서가 보장됨
- **point-to-point** → 송신자와 수신자가 일대일 연결됨
- **full duplex service** → 쌍방향 통신, 데이터 송수신을 위해 독립된 회선을 사용 (동시에 송수신 가능)
Expand All @@ -65,7 +65,7 @@ import PostUtil from "../utils/postUtil";


- **flow controlled** → 흐름 제어, 송신측의 속도를 조절하여 너무 많은 패킷이 전송되지 않게 한다
- *Sliding Window*
- *Sliding Window*

<img width="622" alt="스크린샷_2021-09-09_오후_5 37 33"
src="https://user-images.githubusercontent.com/40057032/133558620-1f2762e3-05f5-4b6c-b6b6-4f8e28dbb5a9.png"/>
Expand Down
Loading

0 comments on commit e9a9284

Please sign in to comment.