9 Commits

Author SHA1 Message Date
ehab-hassan
0a5a0d0bcc fix conflict 2024-10-09 17:10:40 +03:00
ehab-hassan
6ebf81f138 test building 2024-10-02 10:45:12 +03:00
ehab-hassan
9bb32049f9 update development 2024-10-02 10:27:06 +03:00
ehab-hassan
fe48564aea Merge branch 'development' of https://git.ourworld.tf/ourworld_web/ourverse_new into development 2024-10-02 10:12:27 +03:00
ehab-hassan
1ef7eabb85 update gitignore 2024-10-02 10:12:18 +03:00
d2f69bdf02 Merge branch 'development' of https://git.ourworld.tf/ourworld_web/ourverse_new into development 2024-10-01 20:09:08 +02:00
18b3ca26d0 update colors 2024-10-01 20:09:05 +02:00
ehab-hassan
f333ae0e39 update gitignore 2024-10-01 15:40:14 +03:00
PeterNashaat
cd840b0aee fix building issue 2024-09-17 06:55:13 +00:00
125 changed files with 449 additions and 1014 deletions

5
.gitignore vendored
View File

@@ -1,3 +1,4 @@
node_modules
.next
.DS_Store
.next/
.DS_Store
out

View File

@@ -1,148 +0,0 @@
{
"pages": {
"/not-found": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/630-4e5a547cb3cb7b12.js",
"static/chunks/202-160b7381a2044522.js",
"static/chunks/app/not-found-0a3206cb77426a91.js"
],
"/_not-found/page": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/app/_not-found/page-65e0e2f07e8a6141.js"
],
"/layout": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/css/ddee38ae768e0241.css",
"static/chunks/app/layout-35f2696849b06dca.js"
],
"/(main)/page": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/630-4e5a547cb3cb7b12.js",
"static/chunks/650-160763afc42e38b2.js",
"static/chunks/app/(main)/page-52381833c52a8c9a.js"
],
"/(main)/layout": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/630-4e5a547cb3cb7b12.js",
"static/chunks/202-160b7381a2044522.js",
"static/chunks/app/(main)/layout-11b533d62ef16061.js"
],
"/usecases/page": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/56-68515e4009ab953a.js",
"static/chunks/app/usecases/page-7cb48d14b45554eb.js"
],
"/usecases/layout": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/630-4e5a547cb3cb7b12.js",
"static/chunks/202-160b7381a2044522.js",
"static/chunks/app/usecases/layout-0f407282dbdaa6cc.js"
],
"/community/blogs/herogpt/page": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/app/community/blogs/herogpt/page-2eb505b10051d970.js"
],
"/community/layout": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/630-4e5a547cb3cb7b12.js",
"static/chunks/202-160b7381a2044522.js",
"static/chunks/app/community/layout-3d1beadd291aaa55.js"
],
"/events/blockchainweek2/page": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/app/events/blockchainweek2/page-64af35de23b45881.js"
],
"/events/layout": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/630-4e5a547cb3cb7b12.js",
"static/chunks/202-160b7381a2044522.js",
"static/chunks/app/events/layout-6604fad0b5d1dd90.js"
],
"/events/blockchainweek1/page": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/app/events/blockchainweek1/page-0d5c5bb4c3050472.js"
],
"/events/versefest/page": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/630-4e5a547cb3cb7b12.js",
"static/chunks/56-68515e4009ab953a.js",
"static/chunks/93-1b5ea051b5e765a7.js",
"static/chunks/app/events/versefest/page-60791d470b1a8894.js"
],
"/events/page": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/c16f53c3-fa1c880ea7e47b1d.js",
"static/chunks/56-68515e4009ab953a.js",
"static/chunks/125-de1b12e8ccc3262d.js",
"static/chunks/app/events/page-28d67276a86c0675.js"
],
"/community/page": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/c16f53c3-fa1c880ea7e47b1d.js",
"static/chunks/56-68515e4009ab953a.js",
"static/chunks/125-de1b12e8ccc3262d.js",
"static/chunks/app/community/page-6a3b7b922f91ce8f.js"
],
"/features/page": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/app/features/page-2525f207046873b0.js"
],
"/features/layout": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js",
"static/chunks/630-4e5a547cb3cb7b12.js",
"static/chunks/202-160b7381a2044522.js",
"static/chunks/app/features/layout-3b895aa05dfe7eab.js"
]
}
}

View File

@@ -1,32 +0,0 @@
{
"polyfillFiles": [
"static/chunks/polyfills-78c92fac7aa8fdd8.js"
],
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [
"static/EhtvBIkwlO3bugw26exaV/_buildManifest.js",
"static/EhtvBIkwlO3bugw26exaV/_ssgManifest.js"
],
"rootMainFiles": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/fd9d1056-187367407b805b2f.js",
"static/chunks/23-ea8affc1bb5e40b7.js",
"static/chunks/main-app-bf5a6740983e2ceb.js"
],
"pages": {
"/_app": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/framework-aec844d2ccbe7592.js",
"static/chunks/main-003ad47792143762.js",
"static/chunks/pages/_app-6a626577ffa902a4.js"
],
"/_error": [
"static/chunks/webpack-7fdd419211d08fb1.js",
"static/chunks/framework-aec844d2ccbe7592.js",
"static/chunks/main-003ad47792143762.js",
"static/chunks/pages/_error-1be831200e60c5c0.js"
]
},
"ampFirstPages": []
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1 +0,0 @@
{"type": "commonjs"}

View File

@@ -1 +0,0 @@
{}

View File

@@ -1,12 +0,0 @@
{
"/_not-found/page": "app/_not-found/page.js",
"/(main)/page": "app/(main)/page.js",
"/usecases/page": "app/usecases/page.js",
"/community/blogs/herogpt/page": "app/community/blogs/herogpt/page.js",
"/events/blockchainweek2/page": "app/events/blockchainweek2/page.js",
"/events/blockchainweek1/page": "app/events/blockchainweek1/page.js",
"/events/versefest/page": "app/events/versefest/page.js",
"/events/page": "app/events/page.js",
"/community/page": "app/community/page.js",
"/features/page": "app/features/page.js"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
"use strict";(()=>{var e={};e.id=616,e.ids=[616],e.modules={2934:e=>{e.exports=require("next/dist/client/components/action-async-storage.external.js")},4580:e=>{e.exports=require("next/dist/client/components/request-async-storage.external.js")},5869:e=>{e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},399:e=>{e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},565:(e,r,t)=>{t.r(r),t.d(r,{GlobalError:()=>a.a,__next_app__:()=>c,originalPathname:()=>d,pages:()=>l,routeModule:()=>m,tree:()=>p}),t(6165),t(9155),t(3658),t(1837);var n=t(3191),o=t(8716),s=t(7922),a=t.n(s),i=t(5231),u={};for(let e in i)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(u[e]=()=>i[e]);t.d(r,u);let p=["",{children:["community",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(t.bind(t,6165)),"C:\\github-repos\\ourverse_new\\src\\app\\community\\page.jsx"]}]},{layout:[()=>Promise.resolve().then(t.bind(t,9155)),"C:\\github-repos\\ourverse_new\\src\\app\\community\\layout.jsx"]}]},{layout:[()=>Promise.resolve().then(t.bind(t,3658)),"C:\\github-repos\\ourverse_new\\src\\app\\layout.jsx"],"not-found":[()=>Promise.resolve().then(t.bind(t,1837)),"C:\\github-repos\\ourverse_new\\src\\app\\not-found.jsx"]}],l=["C:\\github-repos\\ourverse_new\\src\\app\\community\\page.jsx"],d="/community/page",c={require:t,loadChunk:()=>Promise.resolve()},m=new n.AppPageRouteModule({definition:{kind:o.x.APP_PAGE,page:"/community/page",pathname:"/community",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:p}})},9155:(e,r,t)=>{t.r(r),t.d(r,{default:()=>s});var n=t(9510),o=t(1928);function s({children:e}){return n.jsx(o.A,{children:e})}},6165:(e,r,t)=>{t.r(r),t.d(r,{default:()=>u});var n=t(9510);t(22),t(2570);var o=t(7430);t(9110);var s=t(7395),a=t(8260),i=t(347);function u(){return(0,n.jsxs)(n.Fragment,{children:[n.jsx(o.Z,{}),n.jsx(a.Z,{}),n.jsx(s.Z,{}),n.jsx(i.Z,{})]})}}};var r=require("../../webpack-runtime.js");r.C(e);var t=e=>r(r.s=e),n=r.X(0,[576,216,607,970,491],()=>t(565));module.exports=n})();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +0,0 @@
self.__INTERCEPTION_ROUTE_REWRITE_MANIFEST="[]";

View File

@@ -1 +0,0 @@
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-78c92fac7aa8fdd8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:[],rootMainFiles:["static/chunks/webpack-7fdd419211d08fb1.js","static/chunks/fd9d1056-187367407b805b2f.js","static/chunks/23-ea8affc1bb5e40b7.js","static/chunks/main-app-bf5a6740983e2ceb.js"],pages:{"/_app":["static/chunks/webpack-7fdd419211d08fb1.js","static/chunks/framework-aec844d2ccbe7592.js","static/chunks/main-003ad47792143762.js","static/chunks/pages/_app-6a626577ffa902a4.js"],"/_error":["static/chunks/webpack-7fdd419211d08fb1.js","static/chunks/framework-aec844d2ccbe7592.js","static/chunks/main-003ad47792143762.js","static/chunks/pages/_error-1be831200e60c5c0.js"]},ampFirstPages:[]},self.__BUILD_MANIFEST.lowPriorityFiles=["/static/"+process.env.__NEXT_BUILD_ID+"/_buildManifest.js",,"/static/"+process.env.__NEXT_BUILD_ID+"/_ssgManifest.js"];

View File

@@ -1,6 +0,0 @@
{
"version": 3,
"middleware": {},
"functions": {},
"sortedMiddleware": []
}

View File

@@ -1 +0,0 @@
self.__REACT_LOADABLE_MANIFEST="{}";

View File

@@ -1 +0,0 @@
self.__NEXT_FONT_MANIFEST='{"pages":{},"app":{},"appUsingSizeAdjust":false,"pagesUsingSizeAdjust":false}';

View File

@@ -1 +0,0 @@
{"pages":{},"app":{},"appUsingSizeAdjust":false,"pagesUsingSizeAdjust":false}

View File

@@ -1 +0,0 @@
{"/_app":"pages/_app.js","/_error":"pages/_error.js","/_document":"pages/_document.js","/404":"pages/404.html"}

View File

@@ -1 +0,0 @@
self.__RSC_SERVER_MANIFEST="{\"node\":{},\"edge\":{},\"encryptionKey\":\"process.env.NEXT_SERVER_ACTIONS_ENCRYPTION_KEY\"}"

View File

@@ -1 +0,0 @@
{"node":{},"edge":{},"encryptionKey":"/knEK15SVATKr8abgPgFhCx6yJkkoicqmPTeRFWsPXE="}

View File

@@ -1 +0,0 @@
(()=>{"use strict";var e={},r={};function t(o){var n=r[o];if(void 0!==n)return n.exports;var a=r[o]={exports:{}},u=!0;try{e[o](a,a.exports,t),u=!1}finally{u&&delete r[o]}return a.exports}t.m=e,t.n=e=>{var r=e&&e.__esModule?()=>e.default:()=>e;return t.d(r,{a:r}),r},(()=>{var e,r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;t.t=function(o,n){if(1&n&&(o=this(o)),8&n||"object"==typeof o&&o&&(4&n&&o.__esModule||16&n&&"function"==typeof o.then))return o;var a=Object.create(null);t.r(a);var u={};e=e||[null,r({}),r([]),r(r)];for(var f=2&n&&o;"object"==typeof f&&!~e.indexOf(f);f=r(f))Object.getOwnPropertyNames(f).forEach(e=>u[e]=()=>o[e]);return u.default=()=>o,t.d(a,u),a}})(),t.d=(e,r)=>{for(var o in r)t.o(r,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:r[o]})},t.f={},t.e=e=>Promise.all(Object.keys(t.f).reduce((r,o)=>(t.f[o](e,r),r),[])),t.u=e=>""+e+".js",t.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),t.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.X=(e,r,o)=>{var n=r;o||(r=e,o=()=>t(t.s=n)),r.map(t.e,t);var a=o();return void 0===a?e:a},(()=>{var e={658:1},r=r=>{var o=r.modules,n=r.ids,a=r.runtime;for(var u in o)t.o(o,u)&&(t.m[u]=o[u]);a&&a(t);for(var f=0;f<n.length;f++)e[n[f]]=1};t.f.require=(o,n)=>{e[o]||(658!=o?r(require("./chunks/"+t.u(o))):e[o]=1)},module.exports=t,t.C=r})()})();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 118 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 92 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 103 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 216 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 17 KiB

File diff suppressed because one or more lines are too long

View File

@@ -1,79 +0,0 @@
// File: C:\github-repos\ourverse_new\src\app\(main)\layout.jsx
import * as entry from '../../../../src/app/(main)/layout.js'
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
type TEntry = typeof import('../../../../src/app/(main)/layout.js')
// Check that the entry is a valid entry
checkFields<Diff<{
default: Function
config?: {}
generateStaticParams?: Function
revalidate?: RevalidateRange<TEntry> | false
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
dynamicParams?: boolean
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
maxDuration?: number
metadata?: any
generateMetadata?: Function
viewport?: any
generateViewport?: Function
}, TEntry, ''>>()
// Check the prop type of the entry function
checkFields<Diff<LayoutProps, FirstArg<TEntry['default']>, 'default'>>()
// Check the arguments and return type of the generateMetadata function
if ('generateMetadata' in entry) {
checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
}
// Check the arguments and return type of the generateViewport function
if ('generateViewport' in entry) {
checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
}
// Check the arguments and return type of the generateStaticParams function
if ('generateStaticParams' in entry) {
checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
}
type PageParams = any
export interface PageProps {
params?: any
searchParams?: any
}
export interface LayoutProps {
children?: React.ReactNode
params?: any
}
// =============
// Utility types
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
function checkFields<_ extends { [k in keyof any]: never }>() {}
// https://github.com/sindresorhus/type-fest
type Numeric = number | bigint
type Zero = 0 | 0n
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'

View File

@@ -1,79 +0,0 @@
// File: C:\github-repos\ourverse_new\src\app\(main)\page.jsx
import * as entry from '../../../../src/app/(main)/page.js'
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
type TEntry = typeof import('../../../../src/app/(main)/page.js')
// Check that the entry is a valid entry
checkFields<Diff<{
default: Function
config?: {}
generateStaticParams?: Function
revalidate?: RevalidateRange<TEntry> | false
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
dynamicParams?: boolean
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
maxDuration?: number
metadata?: any
generateMetadata?: Function
viewport?: any
generateViewport?: Function
}, TEntry, ''>>()
// Check the prop type of the entry function
checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
// Check the arguments and return type of the generateMetadata function
if ('generateMetadata' in entry) {
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
}
// Check the arguments and return type of the generateViewport function
if ('generateViewport' in entry) {
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
}
// Check the arguments and return type of the generateStaticParams function
if ('generateStaticParams' in entry) {
checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
}
type PageParams = any
export interface PageProps {
params?: any
searchParams?: any
}
export interface LayoutProps {
children?: React.ReactNode
params?: any
}
// =============
// Utility types
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
function checkFields<_ extends { [k in keyof any]: never }>() {}
// https://github.com/sindresorhus/type-fest
type Numeric = number | bigint
type Zero = 0 | 0n
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'

View File

@@ -1,79 +0,0 @@
// File: C:\github-repos\ourverse_new\src\app\community\layout.jsx
import * as entry from '../../../../src/app/community/layout.js'
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
type TEntry = typeof import('../../../../src/app/community/layout.js')
// Check that the entry is a valid entry
checkFields<Diff<{
default: Function
config?: {}
generateStaticParams?: Function
revalidate?: RevalidateRange<TEntry> | false
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
dynamicParams?: boolean
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
maxDuration?: number
metadata?: any
generateMetadata?: Function
viewport?: any
generateViewport?: Function
}, TEntry, ''>>()
// Check the prop type of the entry function
checkFields<Diff<LayoutProps, FirstArg<TEntry['default']>, 'default'>>()
// Check the arguments and return type of the generateMetadata function
if ('generateMetadata' in entry) {
checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
}
// Check the arguments and return type of the generateViewport function
if ('generateViewport' in entry) {
checkFields<Diff<LayoutProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
}
// Check the arguments and return type of the generateStaticParams function
if ('generateStaticParams' in entry) {
checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
}
type PageParams = any
export interface PageProps {
params?: any
searchParams?: any
}
export interface LayoutProps {
children?: React.ReactNode
params?: any
}
// =============
// Utility types
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
function checkFields<_ extends { [k in keyof any]: never }>() {}
// https://github.com/sindresorhus/type-fest
type Numeric = number | bigint
type Zero = 0 | 0n
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'

View File

@@ -1,79 +0,0 @@
// File: C:\github-repos\ourverse_new\src\app\community\page.jsx
import * as entry from '../../../../src/app/community/page.js'
import type { ResolvingMetadata, ResolvingViewport } from 'next/dist/lib/metadata/types/metadata-interface.js'
type TEntry = typeof import('../../../../src/app/community/page.js')
// Check that the entry is a valid entry
checkFields<Diff<{
default: Function
config?: {}
generateStaticParams?: Function
revalidate?: RevalidateRange<TEntry> | false
dynamic?: 'auto' | 'force-dynamic' | 'error' | 'force-static'
dynamicParams?: boolean
fetchCache?: 'auto' | 'force-no-store' | 'only-no-store' | 'default-no-store' | 'default-cache' | 'only-cache' | 'force-cache'
preferredRegion?: 'auto' | 'global' | 'home' | string | string[]
runtime?: 'nodejs' | 'experimental-edge' | 'edge'
maxDuration?: number
metadata?: any
generateMetadata?: Function
viewport?: any
generateViewport?: Function
}, TEntry, ''>>()
// Check the prop type of the entry function
checkFields<Diff<PageProps, FirstArg<TEntry['default']>, 'default'>>()
// Check the arguments and return type of the generateMetadata function
if ('generateMetadata' in entry) {
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
checkFields<Diff<ResolvingMetadata, SecondArg<MaybeField<TEntry, 'generateMetadata'>>, 'generateMetadata'>>()
}
// Check the arguments and return type of the generateViewport function
if ('generateViewport' in entry) {
checkFields<Diff<PageProps, FirstArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
checkFields<Diff<ResolvingViewport, SecondArg<MaybeField<TEntry, 'generateViewport'>>, 'generateViewport'>>()
}
// Check the arguments and return type of the generateStaticParams function
if ('generateStaticParams' in entry) {
checkFields<Diff<{ params: PageParams }, FirstArg<MaybeField<TEntry, 'generateStaticParams'>>, 'generateStaticParams'>>()
checkFields<Diff<{ __tag__: 'generateStaticParams', __return_type__: any[] | Promise<any[]> }, { __tag__: 'generateStaticParams', __return_type__: ReturnType<MaybeField<TEntry, 'generateStaticParams'>> }>>()
}
type PageParams = any
export interface PageProps {
params?: any
searchParams?: any
}
export interface LayoutProps {
children?: React.ReactNode
params?: any
}
// =============
// Utility types
type RevalidateRange<T> = T extends { revalidate: any } ? NonNegative<T['revalidate']> : never
// If T is unknown or any, it will be an empty {} type. Otherwise, it will be the same as Omit<T, keyof Base>.
type OmitWithTag<T, K extends keyof any, _M> = Omit<T, K>
type Diff<Base, T extends Base, Message extends string = ''> = 0 extends (1 & T) ? {} : OmitWithTag<T, keyof Base, Message>
type FirstArg<T extends Function> = T extends (...args: [infer T, any]) => any ? unknown extends T ? any : T : never
type SecondArg<T extends Function> = T extends (...args: [any, infer T]) => any ? unknown extends T ? any : T : never
type MaybeField<T, K extends string> = T extends { [k in K]: infer G } ? G extends Function ? G : never : never
function checkFields<_ extends { [k in keyof any]: never }>() {}
// https://github.com/sindresorhus/type-fest
type Numeric = number | bigint
type Zero = 0 | 0n
type Negative<T extends Numeric> = T extends Zero ? never : `${T}` extends `-${string}` ? T : never
type NonNegative<T extends Numeric> = T extends Zero ? T : Negative<T> extends never ? T : '__invalid_negative_number__'

Some files were not shown because too many files have changed in this diff Show More