Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/docs/ko/guides/migrate-to-astro/from-hugo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Markdown 콘텐츠에서 변수, 표현식 또는 UI 컴포넌트와 같은 동

<LinkCard title="Hugo 대 Astro - 2023년에 어떤 정적 사이트 생성기를 선택해야 할까요?" href="https://onebite.dev/hugo-vs-astro-which-static-site-generator-to-choose-in-2023/"/>

<LinkCard title="AI의 도움을 받아 Astro로 마이그레이션하면서 얻은 교훈" href="https://bennet.org/blog/lessons-from-ai-assisted-migration-to-astro/" />
<LinkCard title="AI의 도움을 받아 Astro로 마이그레이션하면서 얻은 교훈" href="https://tomscarnivores.com/tech/lessons-from-ai-assisted-migration-to-astro/" />

</CardGrid>

Expand Down
16 changes: 13 additions & 3 deletions src/content/docs/ko/reference/modules/astro-assets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ import type {

<p>

**Types:**
**타입:**
* `ImageSharedProps<T> & { src: string; inferSize: true; }`
* `ImageSharedProps<T> & { src: string; inferSize?: false | undefined; }`
</p>
Expand All @@ -784,7 +784,7 @@ import type {

<p>

**타입:** `{ src: Array<{ url: string; format?: string; tech?: string }>; weight?: string; style?: string; }`<br />
**타입:** `{ src: Array<{ url: string; format?: string; tech?: string }>; weight?: string; style?: string; subset?: string; }`<br />
<Since v="6.0.0" />
</p>

Expand Down Expand Up @@ -817,6 +817,16 @@ import type {

글꼴 스타일을 지정합니다 (예: `normal`, `italic`).

#### `FontData.subset`

<p>

**타입:** `string`
<Since v="7.0.0" />
</p>

글꼴 하위 집합(예: `latin`, `cyrillic`)을 지정합니다.

## `astro/assets`에서 가져오기

다음 도우미는 일반 assets 모듈에서 가져옵니다.
Expand Down Expand Up @@ -874,7 +884,7 @@ See [`getConfiguredImageService()`](#getconfiguredimageservice) from `astro:asse

이미지 서비스의 유형을 확인하고 해당 서비스가 [로컬 서비스](#localimageservice)일 경우 `true`를 반환합니다.

## `astro/assets` types
## `astro/assets` 타입

다음 타입들은 일반 assets 모듈에서 가져옵니다.

Expand Down
215 changes: 1 addition & 214 deletions src/content/docs/ko/reference/modules/astro-transitions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,6 @@ import {
supportsViewTransitions,
swapFunctions,
transitionEnabledOnThisPage,
/* 다음은 v6에서 사용 중단되었습니다: */
isTransitionBeforePreparationEvent,
isTransitionBeforeSwapEvent,
TRANSITION_AFTER_PREPARATION,
TRANSITION_AFTER_SWAP,
TRANSITION_BEFORE_PREPARATION,
TRANSITION_BEFORE_SWAP,
TRANSITION_PAGE_LOAD,
} from 'astro:transitions/client';
```

Expand Down Expand Up @@ -304,212 +296,7 @@ Astro의 기본 교체 함수를 빌드하는 데 사용되는 유틸리티 함

이전 body를 새 body로 교체합니다. 그런 다음 이전 body에서 유지되어야 하는 모든 요소를 검토하고 새 body에서 일치하는 요소를 찾아 이전 요소를 다시 제자리로 바꿉니다.

### 더 이상 지원되지 않는 기능

다음 가져오기 항목은 v6에서 사용 중단되었으며 v7에서 제거될 예정입니다. 프로젝트에서 계속 사용할 수 있지만, 지금 코드를 업데이트하는 것이 좋습니다. [업그레이드 방법 확인하기](/ko/guides/upgrade-to/v6/#지원-중단됨-노출된-astrotransitions-내부-기능).

<h4>`isTransitionBeforePreparationEvent()`</h4>

<p>

**타입:** `(value: any) => boolean`<br />
<Since v="3.6.0" />
</p>

:::caution[사용 중단]
이 함수는 v6에서 사용 중단되었으며 v7에서 제거될 예정입니다. 프로젝트에서 계속 사용할 수 있지만, 지금 코드를 업데이트하는 것이 좋습니다.
:::

지정된 값이 [`TransitionBeforePreparationEvent`](#transitionbeforepreparationevent)와 일치하는지 여부를 결정합니다. 이는 이벤트 리스너에서 이벤트의 타입을 좁혀야 할 때 유용할 수 있습니다.

```astro title="src/pages/index.astro" "isTransitionBeforePreparationEvent"
---
---

<script>
import {
isTransitionBeforePreparationEvent,
TRANSITION_BEFORE_PREPARATION,
} from "astro:transitions/client";

function listener(event: Event) {
const setting = isTransitionBeforePreparationEvent(event) ? 1 : 2;
/* 설정을 사용한 작업 */
}

document.addEventListener(TRANSITION_BEFORE_PREPARATION, listener);
</script>
```

<h4>`isTransitionBeforeSwapEvent()`</h4>

<p>

**타입:** `(value: any) => boolean`<br />
<Since v="3.6.0" />
</p>

:::caution[사용 중단]
이 함수는 v6에서 사용 중단되었으며 v7에서 제거될 예정입니다. 프로젝트에서 계속 사용할 수 있지만, 지금 코드를 업데이트하는 것이 좋습니다.
:::

주어진 값이 [`TransitionBeforeSwapEvent`](#transitionbeforeswapevent)와 일치하는지 여부를 결정합니다. 이는 이벤트 리스너에서 이벤트의 타입을 좁혀야 할 때 유용할 수 있습니다.

```astro title="src/pages/index.astro" "isTransitionBeforeSwapEvent"
---
---

<script>
import {
isTransitionBeforeSwapEvent,
TRANSITION_BEFORE_SWAP,
} from "astro:transitions/client";

function listener(event: Event) {
const setting = isTransitionBeforeSwapEvent(event) ? 1 : 2;
/* 설정을 사용한 작업 */
}

document.addEventListener(TRANSITION_BEFORE_SWAP, listener);
</script>
```

<h4>`TRANSITION_BEFORE_PREPARATION`</h4>

<p>

**타입:** `'astro:before-preparation'`<br />
<Since v="3.6.0" />
</p>

:::caution[사용 중단]
이 함수는 v6에서 사용 중단되었으며 v7에서 제거될 예정입니다. 프로젝트에서 계속 사용할 수 있지만, 지금 코드를 업데이트하는 것이 좋습니다.
:::

이벤트를 정의할 때 `astro:before-preparation` 이벤트 이름을 일반 텍스트로 작성하는 것을 피하기 위한 상수입니다.

```astro title="src/pages/index.astro" "TRANSITION_BEFORE_PREPARATION"
---
---

<script>
import { TRANSITION_BEFORE_PREPARATION } from "astro:transitions/client";

document.addEventListener(TRANSITION_BEFORE_PREPARATION, () => {
/* 리스너 로직 */
});
</script>
```

<h4>`TRANSITION_AFTER_PREPARATION`</h4>

<p>

**타입:** `'astro:after-preparation'`<br />
<Since v="3.6.0" />
</p>

:::caution[사용 중단]
이 함수는 v6에서 사용 중단되었으며 v7에서 제거될 예정입니다. 프로젝트에서 계속 사용할 수 있지만, 지금 코드를 업데이트하는 것이 좋습니다.
:::

이벤트를 정의할 때 `astro:after-preparation` 이벤트 이름을 일반 텍스트로 작성하는 것을 피하기 위한 상수입니다.

```astro title="src/pages/index.astro" "TRANSITION_AFTER_PREPARATION"
---
---

<script>
import { TRANSITION_AFTER_PREPARATION } from "astro:transitions/client";

document.addEventListener(TRANSITION_AFTER_PREPARATION, () => {
/* 리스너 로직 */
});
</script>
```

<h4>`TRANSITION_BEFORE_SWAP`</h4>

<p>

**타입:** `'astro:before-swap'`<br />
<Since v="3.6.0" />
</p>

:::caution[사용 중단]
이 함수는 v6에서 사용 중단되었으며 v7에서 제거될 예정입니다. 프로젝트에서 계속 사용할 수 있지만, 지금 코드를 업데이트하는 것이 좋습니다.
:::

이벤트를 정의할 때 `astro:before-swap` 이벤트 이름을 일반 텍스트로 작성하는 것을 피하기 위한 상수입니다.

```astro title="src/pages/index.astro" "TRANSITION_BEFORE_SWAP"
---
---

<script>
import { TRANSITION_BEFORE_SWAP } from "astro:transitions/client";

document.addEventListener(TRANSITION_BEFORE_SWAP, () => {
/* 리스너 로직 */
});
</script>
```

<h4>`TRANSITION_AFTER_SWAP`</h4>

<p>

**타입:** `'astro:after-swap'`<br />
<Since v="3.6.0" />
</p>

:::caution[사용 중단]
이 함수는 v6에서 사용 중단되었으며 v7에서 제거될 예정입니다. 프로젝트에서 계속 사용할 수 있지만, 지금 코드를 업데이트하는 것이 좋습니다.
:::

이벤트를 정의할 때 `astro:after-swap` 이벤트 이름을 일반 텍스트로 작성하는 것을 피하기 위한 상수입니다.

```astro title="src/pages/index.astro" "TRANSITION_AFTER_SWAP"
---
---

<script>
import { TRANSITION_AFTER_SWAP } from "astro:transitions/client";

document.addEventListener(TRANSITION_AFTER_SWAP, () => {
/* 리스너 로직 */
});
</script>
```

<h4>`TRANSITION_PAGE_LOAD`</h4>

<p>

**타입:** `'astro:page-load'`<br />
<Since v="3.6.0" />
</p>

:::caution[사용 중단]
이 함수는 v6에서 사용 중단되었으며 v7에서 제거될 예정입니다. 프로젝트에서 계속 사용할 수 있지만, 지금 코드를 업데이트하는 것이 좋습니다.
:::

이벤트를 정의할 때 `astro:page-load` 이벤트 이름을 일반 텍스트로 작성하는 것을 피하기 위한 상수입니다.

```astro title="src/pages/index.astro" "TRANSITION_PAGE_LOAD"
---
---

<script>
import { TRANSITION_PAGE_LOAD } from "astro:transitions/client";

document.addEventListener(TRANSITION_PAGE_LOAD, () => {
/* 리스너 로직 */
});
</script>
```

## `astro:transitions/client` types
## `astro:transitions/client` 타입

```ts
import type {
Expand Down
Loading