Skip to content

Commit

Permalink
fix: add enhanced:img dep
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Nov 12, 2023
1 parent ed02aae commit 7c0e6ef
Show file tree
Hide file tree
Showing 18 changed files with 297 additions and 258 deletions.
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ schema.graphql
$houdini
infra/hasura
*.min.css
# generated files by typesafe-i18n
src/lib/i18n
4 changes: 2 additions & 2 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
"@sveltejs/adapter-node": "1.3.1",
"@sveltejs/adapter-static": "2.0.3",
"@sveltejs/adapter-vercel": "3.0.3",
"@sveltejs/kit": "1.27.4",
"@sveltejs/enhanced-img": "0.1.1",
"@sveltejs/kit": "1.27.5",
"@sveltinio/essentials": "0.7.9",
"@sveltinio/media-content": "0.4.3",
"@sveltinio/remark-headings": "1.0.3",
Expand Down Expand Up @@ -91,7 +92,6 @@
"typescript": "5.2.2",
"ui": "workspace:*",
"vite": "4.5.0",
"vite-imagetools": "6.2.3",
"vite-plugin-tailwind-purgecss": "0.1.3",
"vitest": "0.34.6",
"workbox-build": "7.0.0",
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as child_process from 'node:child_process';
import path from 'node:path';
import { sveltekit } from '@sveltejs/kit/vite';
import { SvelteKitPWA } from '@vite-pwa/sveltekit';
import { imagetools } from 'vite-imagetools';
import { enhancedImages } from '@sveltejs/enhanced-img';
import { purgeCss } from 'vite-plugin-tailwind-purgecss';
import { defineConfig } from 'vite';

Expand Down Expand Up @@ -40,8 +40,8 @@ export default defineConfig({
}
},
plugins: [
enhancedImages(),
sveltekit(),
imagetools(),
purgeCss(),
SvelteKitPWA({
registerType: 'autoUpdate',
Expand Down
3 changes: 2 additions & 1 deletion apps/nhapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"@nhost/nhost-js": "2.2.18",
"@playwright/test": "1.39.0",
"@sveltejs/adapter-auto": "2.1.1",
"@sveltejs/kit": "1.27.4",
"@sveltejs/enhanced-img": "0.1.1",
"@sveltejs/kit": "1.27.5",
"@types/js-cookie": "3.0.6",
"autoprefixer": "10.4.16",
"eslint": "8.53.0",
Expand Down
4 changes: 2 additions & 2 deletions apps/offline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"@sveltejs/adapter-auto": "2.1.1",
"@sveltejs/adapter-node": "1.3.1",
"@sveltejs/adapter-vercel": "3.0.3",
"@sveltejs/kit": "1.27.4",
"@sveltejs/enhanced-img": "0.1.1",
"@sveltejs/kit": "1.27.5",
"@tailwindcss/forms": "0.5.7",
"@tailwindcss/typography": "0.5.10",
"@types/node": "20.9.0",
Expand Down Expand Up @@ -55,7 +56,6 @@
"typescript": "5.2.2",
"ui": "workspace:*",
"vite": "4.5.0",
"vite-imagetools": "6.2.3",
"vite-plugin-tailwind-purgecss": "0.1.3",
"vitest": "0.34.6"
},
Expand Down
4 changes: 2 additions & 2 deletions apps/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"@sveltejs/adapter-auto": "2.1.1",
"@sveltejs/adapter-node": "1.3.1",
"@sveltejs/adapter-vercel": "3.0.3",
"@sveltejs/kit": "1.27.4",
"@sveltejs/enhanced-img": "0.1.1",
"@sveltejs/kit": "1.27.5",
"@tailwindcss/container-queries": "0.1.1",
"@tailwindcss/forms": "0.5.7",
"@tailwindcss/typography": "0.5.10",
Expand Down Expand Up @@ -67,7 +68,6 @@
"typescript": "5.2.2",
"ui": "workspace:*",
"vite": "4.5.0",
"vite-imagetools": "6.2.3",
"vite-plugin-tailwind-purgecss": "0.1.3",
"vitest": "0.34.6",
"zod": "3.22.4"
Expand Down
12 changes: 6 additions & 6 deletions apps/playground/src/lib/i18n/i18n-svelte.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// This file was auto-generated by 'typesafe-i18n'. Any manual changes will be overwritten.
/* eslint-disable */

import { initI18nSvelte } from 'typesafe-i18n/svelte';
import type { Formatters, Locales, TranslationFunctions, Translations } from './i18n-types';
import { loadedFormatters, loadedLocales } from './i18n-util';
import { initI18nSvelte } from 'typesafe-i18n/svelte'
import type { Formatters, Locales, TranslationFunctions, Translations } from './i18n-types'
import { loadedFormatters, loadedLocales } from './i18n-util'

const { locale, LL, setLocale } = initI18nSvelte<Locales, Translations, TranslationFunctions, Formatters>(loadedLocales, loadedFormatters);
const { locale, LL, setLocale } = initI18nSvelte<Locales, Translations, TranslationFunctions, Formatters>(loadedLocales, loadedFormatters)

export { locale, LL, setLocale };
export { locale, LL, setLocale }

export default LL;
export default LL
Loading

0 comments on commit 7c0e6ef

Please sign in to comment.