build: upgrade to v16.2.4

This commit is contained in:
2026-04-16 12:52:51 +04:00
parent 60732601da
commit f7bd82754b
8 changed files with 2282 additions and 126 deletions
+4 -2
View File
@@ -19,7 +19,8 @@ async function jwennAwtis(slug) {
return awtis return awtis
} }
export async function generateMetadata({params}) { export async function generateMetadata(props) {
const params = await props.params;
const {slug} = params const {slug} = params
const anAwtis = await jwennAwtis(slug) const anAwtis = await jwennAwtis(slug)
@@ -62,7 +63,8 @@ export async function generateMetadata({params}) {
} }
} }
export default async function AwtisPajSlug({params}) { export default async function AwtisPajSlug(props) {
const params = await props.params;
const {slug} = params const {slug} = params
const anAwtis = await jwennAwtis(slug) const anAwtis = await jwennAwtis(slug)
+2 -1
View File
@@ -58,7 +58,8 @@ async function jwennDone(paj) {
return {pajTotal, awtisPouChakPaj, pajParsed} return {pajTotal, awtisPouChakPaj, pajParsed}
} }
export default async function AwitsPaj({searchParams}) { export default async function AwitsPaj(props) {
const searchParams = await props.searchParams;
const {paj} = searchParams const {paj} = searchParams
const {pajTotal, awtisPouChakPaj, pajParsed} = await jwennDone(paj || 1) const {pajTotal, awtisPouChakPaj, pajParsed} = await jwennDone(paj || 1)
+4 -2
View File
@@ -20,7 +20,8 @@ async function jwennAnTeks(slug) {
return teks return teks
} }
export async function generateMetadata({params}) { export async function generateMetadata(props) {
const params = await props.params;
const {slug} = params const {slug} = params
const anTeks = await jwennAnTeks(slug) const anTeks = await jwennAnTeks(slug)
@@ -65,7 +66,8 @@ export async function generateMetadata({params}) {
} }
} }
export default async function AnPawolPaj({params}) { export default async function AnPawolPaj(props) {
const params = await props.params;
const {slug} = params const {slug} = params
const anTeks = await jwennAnTeks(slug) const anTeks = await jwennAnTeks(slug)
-3
View File
@@ -13,7 +13,6 @@ import '@fontsource/roboto/500.css'
import '@fontsource/roboto/700.css' import '@fontsource/roboto/700.css'
import '../styles/nprogress.css' import '../styles/nprogress.css'
import PlausibleProvider from 'next-plausible'
import ChanjeTem from '../components/chanje-tem' import ChanjeTem from '../components/chanje-tem'
import NextAppDirEmotionCacheProvider from './emotion-cache-provider' import NextAppDirEmotionCacheProvider from './emotion-cache-provider'
@@ -70,7 +69,6 @@ export default function ThemeRegistry(props) {
return ( return (
<> <>
<InitColorSchemeScript attribute='class' /> <InitColorSchemeScript attribute='class' />
<PlausibleProvider domain='oki.re'>
<NextAppDirEmotionCacheProvider options={{key: 'mui'}}> <NextAppDirEmotionCacheProvider options={{key: 'mui'}}>
<ThemeProvider theme={theme}> <ThemeProvider theme={theme}>
<CssBaseline enableColorScheme /> <CssBaseline enableColorScheme />
@@ -78,7 +76,6 @@ export default function ThemeRegistry(props) {
{children} {children}
</ThemeProvider> </ThemeProvider>
</NextAppDirEmotionCacheProvider> </NextAppDirEmotionCacheProvider>
</PlausibleProvider>
</> </>
) )
} }
+25
View File
@@ -0,0 +1,25 @@
import { dirname } from "path";
import { fileURLToPath } from "url";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
});
const eslintConfig = [
...compat.extends("next/core-web-vitals"),
{
ignores: [
"node_modules/**",
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
],
},
];
export default eslintConfig;
+1 -4
View File
@@ -1,5 +1,3 @@
const {withPlausibleProxy} = require('next-plausible')
const withPWA = require('next-pwa')({ const withPWA = require('next-pwa')({
disable: process.env.NODE_ENV !== 'production', disable: process.env.NODE_ENV !== 'production',
dest: 'public', dest: 'public',
@@ -7,7 +5,7 @@ const withPWA = require('next-pwa')({
skipWaiting: true skipWaiting: true
}) })
module.exports = withPlausibleProxy()(withPWA({ module.exports = (withPWA({
webpack: config => { webpack: config => {
config.module.rules.push({ config.module.rules.push({
test: /\.svg$/, test: /\.svg$/,
@@ -16,7 +14,6 @@ module.exports = withPlausibleProxy()(withPWA({
return config return config
}, },
swcMinify: true,
images: { images: {
remotePatterns: [ remotePatterns: [
{ {
+6 -5
View File
@@ -15,7 +15,7 @@
}, },
"scripts": { "scripts": {
"lint": "xo", "lint": "xo",
"dev": "next dev -p 3001", "dev": "next dev --turbopack -p 3001",
"build": "next build", "build": "next build",
"start": "next start -p 3001" "start": "next start -p 3001"
}, },
@@ -38,22 +38,23 @@
"express": "^4.17.1", "express": "^4.17.1",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"next": "^14.1.4", "next": "16.2.4",
"next-auth": "^4.22.1", "next-auth": "^4.22.1",
"next-plausible": "^3.6.3",
"next-pwa": "5.6.0", "next-pwa": "5.6.0",
"nextjs-toploader": "^1.4.2", "nextjs-toploader": "^1.4.2",
"nodemailer": "^6.7.2", "nodemailer": "^6.7.2",
"nprogress": "^0.2.0", "nprogress": "^0.2.0",
"react": "^18.3.1", "react": "19.2.5",
"react-dom": "^18.3.1", "react-dom": "19.2.5",
"react-swipeable-views": "^0.13.9", "react-swipeable-views": "^0.13.9",
"react-virtuoso": "^4.4.0", "react-virtuoso": "^4.4.0",
"sharp": "^0.29.3", "sharp": "^0.29.3",
"slugify": "^1.6.6" "slugify": "^1.6.6"
}, },
"devDependencies": { "devDependencies": {
"@eslint/eslintrc": "^3",
"eslint": "^8.7.0", "eslint": "^8.7.0",
"eslint-config-next": "16.2.4",
"eslint-config-xo-nextjs": "^4.0.3", "eslint-config-xo-nextjs": "^4.0.3",
"eslint-plugin-react": "^7.28.0", "eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0", "eslint-plugin-react-hooks": "^4.3.0",
+2240 -109
View File
File diff suppressed because it is too large Load Diff