chore(deps): update dependency @antfu/eslint-config to v3 (#2984)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com>
This commit is contained in:
parent
97826c00bc
commit
320ddc0e28
65 changed files with 359 additions and 523 deletions
|
@ -1,7 +1,7 @@
|
|||
import { writeFile } from 'node:fs/promises'
|
||||
import { join, resolve } from 'pathe'
|
||||
import fs from 'fs-extra'
|
||||
import { ofetch } from 'ofetch'
|
||||
import { join, resolve } from 'pathe'
|
||||
import { elkTeamMembers } from '../composables/about'
|
||||
|
||||
const avatarsDir = resolve('./public/avatars/')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Buffer } from 'node:buffer'
|
||||
import { readFile, writeFile } from 'node:fs/promises'
|
||||
import { flatten, unflatten } from 'flat'
|
||||
import { createResolver } from '@nuxt/kit'
|
||||
import { flatten, unflatten } from 'flat'
|
||||
import { currentLocales } from '../config/i18n'
|
||||
|
||||
const resolver = createResolver(import.meta.url)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type { PngOptions, ResizeOptions } from 'sharp'
|
||||
import { rm, writeFile } from 'node:fs/promises'
|
||||
import process from 'node:process'
|
||||
import { resolve } from 'pathe'
|
||||
import type { PngOptions, ResizeOptions } from 'sharp'
|
||||
import sharp from 'sharp'
|
||||
import ico from 'sharp-ico'
|
||||
|
||||
|
@ -103,7 +103,8 @@ async function generateTransparentIcons(icons: ResolvedIcons, svgLogo: string, f
|
|||
Math.round(size * (1 - padding)),
|
||||
Math.round(size * (1 - padding)),
|
||||
resizeOptions,
|
||||
).toBuffer(),
|
||||
)
|
||||
.toBuffer(),
|
||||
}]).toFile(filePath)
|
||||
await optimizePng(filePath, icons.png)
|
||||
}))
|
||||
|
@ -126,7 +127,8 @@ async function generateMaskableIcons(type: IconType, icons: ResolvedIcons, svgLo
|
|||
Math.round(size * (1 - padding)),
|
||||
Math.round(size * (1 - padding)),
|
||||
resizeOptions,
|
||||
).toBuffer(),
|
||||
)
|
||||
.toBuffer(),
|
||||
}]).toFile(filePath)
|
||||
await optimizePng(filePath, icons.png)
|
||||
}))
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
import type { LocaleEntry } from '../docs/types'
|
||||
import { Buffer } from 'node:buffer'
|
||||
import { readFile, writeFile } from 'node:fs/promises'
|
||||
import { flatten } from 'flat'
|
||||
import { createResolver } from '@nuxt/kit'
|
||||
import { countryLocaleVariants, currentLocales } from '../config/i18n'
|
||||
import type { LocaleEntry } from '../docs/types'
|
||||
import { flatten } from 'flat'
|
||||
import type { ElkTranslationStatus } from '~/types/translation-status'
|
||||
import { countryLocaleVariants, currentLocales } from '../config/i18n'
|
||||
|
||||
export const localeData: [code: string, file: string[], title: string][]
|
||||
= currentLocales.map((l: any) => [l.code, l.files ? l.files : [l.file!], l.name ?? l.code])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue