Skip to content

❄️ Translation Batch - 2025-08-09 #1272

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
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
3 changes: 3 additions & 0 deletions .vitepress/inlined-scripts/banner.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
interface Window {
__VITE_BANNER_ID__: string
}
4 changes: 2 additions & 2 deletions .vitepress/theme/components/SponsorBanner.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script setup>
<script setup lang="ts">
/**
* Adding a new banner:
* 1. uncomment the banner slot in ../index.ts
Expand All @@ -15,7 +15,7 @@ const open = ref(true)
function dismiss() {
open.value = false
document.documentElement.classList.add('banner-dismissed')
localStorage.setItem(`vite-docs-banner-${__VITE_BANNER_ID__}`, 'true')
localStorage.setItem(`vite-docs-banner-${window.__VITE_BANNER_ID__}`, 'true')
}
</script>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script setup lang="ts">
import { gsap } from 'gsap'
import { MotionPathPlugin } from 'gsap/dist/MotionPathPlugin'
import { onMounted, onUnmounted, Ref, ref } from 'vue'
import { onMounted, onUnmounted, type Ref, ref } from 'vue'
import SvgInputs from './svg-elements/SvgInputs.vue'
import SvgOutputs from './svg-elements/SvgOutputs.vue'
import SvgBlueIndicator from './svg-elements/SvgBlueIndicator.vue'
import SvgPinkIndicator from './svg-elements/SvgPinkIndicator.vue'
import { ScrollTrigger } from 'gsap/dist/ScrollTrigger'
import { SvgNodeProps } from '../common/SvgNode.vue'
import type { SvgNodeProps } from '../common/SvgNode.vue'

gsap.registerPlugin(MotionPathPlugin)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import SvgNode, { SvgNodeProps } from '../../common/SvgNode.vue'
import { Ref } from 'vue'
import SvgNode, { type SvgNodeProps } from '../../common/SvgNode.vue'
import type { Ref } from 'vue'

defineProps({
inputLines: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import SvgNode, { SvgNodeProps } from '../../common/SvgNode.vue'
import { Ref } from 'vue'
import SvgNode, { type SvgNodeProps } from '../../common/SvgNode.vue'
import type { Ref } from 'vue'

defineProps({
outputLines: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { Ref, ref } from 'vue'
import { type Ref, ref } from 'vue'
import SvgNode from '../common/SvgNode.vue'
import { gsap } from 'gsap'
import { useSlideIn } from '../../../composables/useSlideIn'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import SvgNode from '../common/SvgNode.vue'
import { ref, Ref } from 'vue'
import { ref, type Ref } from 'vue'
import { gsap } from 'gsap'
import { useSlideIn } from '../../../composables/useSlideIn'
import { useCardAnimation } from '../../../composables/useCardAnimation'
Expand Down Expand Up @@ -29,7 +29,7 @@ const { startAnimation } = useCardAnimation(
const timeline = gsap.timeline()

// Animate in each node
nodes.forEach((node, i) => {
nodes.forEach((node) => {
let subTimeline = gsap.timeline()
subTimeline.call(() => {
node.visible.value = true
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import SvgNode from '../common/SvgNode.vue'
import { onMounted, onUnmounted, Ref, ref } from 'vue'
import { onMounted, onUnmounted, type Ref, ref } from 'vue'
import { gsap } from 'gsap'

const props = defineProps({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { Ref, ref } from 'vue'
import { type Ref, ref } from 'vue'

/**
* A single framework or tool to display in the frameworks section.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
<script setup lang="ts">
import { computed, ComputedRef, onMounted, onUnmounted, Ref, ref } from 'vue'
import FrameworkCard, { Framework } from './FrameworkCard.vue'
import {
computed,
type ComputedRef,
onMounted,
onUnmounted,
type Ref,
ref,
} from 'vue'
import FrameworkCard, { type Framework } from './FrameworkCard.vue'
import { gsap } from 'gsap'
import { ScrollTrigger } from 'gsap/dist/ScrollTrigger'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import CommunityCard, { Testimonial } from './CommunityCard.vue'
import CommunityCard, { type Testimonial } from './CommunityCard.vue'

const testimonials: Testimonial[] = [
{
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/components/landing/common/SvgNode.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { computed, Ref, ref, watch, ComputedRef } from 'vue'
import { computed, type Ref, ref, watch, type ComputedRef } from 'vue'
import { gsap } from 'gsap'

/**
Expand Down
13 changes: 0 additions & 13 deletions .vitepress/tsconfig.json

This file was deleted.

1 change: 0 additions & 1 deletion .vitepress/vite-env.d.ts

This file was deleted.

5 changes: 3 additions & 2 deletions _data/blog.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ export default createContentLoader('blog/*.md', {
transform(raw): Post[] {
return raw
.map(({ url, frontmatter }) => ({
title: frontmatter.head.find((e) => e[1].property === 'og:title')[1]
.content,
title: frontmatter.head.find(
(e: any) => e[1].property === 'og:title',
)[1].content,
url,
date: formatDate(frontmatter.date),
}))
Expand Down
25 changes: 25 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"target": "ES2023",
"lib": ["ES2023", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
"types": ["vite/client"],

/* Bundler mode */
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"moduleDetection": "force",
"noEmit": true,

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"erasableSyntaxOnly": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedSideEffectImports": true
},
"include": ["**/*.ts", ".vitepress/**/*.ts", ".vitepress/**/*.vue"]
}