Skip to content

Commit

Permalink
change desc
Browse files Browse the repository at this point in the history
  • Loading branch information
Oein committed Jun 6, 2024
1 parent 17d6ca0 commit daddc45
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
16 changes: 4 additions & 12 deletions extension/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,6 @@

> 각 기능들은 각 파일로 분리되어 있습니다. 자세한 구현 방법은 components 폴더를 참고해주세요.
- constants

> 상수들이 들어있는 폴더입니다.
> 예를들면 설정값이나, voteUI와 같은 HTML이 코드로 들어있는 상수들이 있습니다.
- background.ts

> 백그라운드 스크립트입니다. 백그라운드 스크립트는 확장 프로그램이 실행되는 동안 계속 실행되는 스크립트입니다.
> 현제는 광고 차단 기능을 포함하고 있습니다.
- content_script.tsx

> 치지직 window안에서 실행되는 파일입니다. `여기에 적용할 기능을 추가하세요` 라는 주석이 있는 곳에 기능을 추가하세요.
Expand All @@ -29,5 +19,7 @@
> 치지직 window에 스크립트를 주입하는 파일입니다.
> 또한 치지직 window에 주입된 스크립트와 백그라운드 스크립트간의 통신을 담당합니다.
- log.ts
> 로그를 출력하는 함수가 들어있는 파일입니다.
# 정적 데이터 불러오기

`*.static.txt`, `*.static.css`, `*.static.html`, `*.static.data`로 구성된 파일들을 import 하여 string 형태로 사용하실 수 있습니다.
`src/static` 폴더에 배치하는 것을 권장합니다.
8 changes: 4 additions & 4 deletions extension/src/types/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
declare module "*.static.txt" {
const content: any;
const content: string;
export default content;
}
declare module "*.static.css" {
const content: any;
const content: string;
export default content;
}
declare module "*.static.html" {
const content: any;
const content: string;
export default content;
}
declare module "*.static.data" {
const content: any;
const content: string;
export default content;
}

0 comments on commit daddc45

Please sign in to comment.