feat: all dynamic
This commit is contained in:
parent
38a0eed2c0
commit
a1994a5eb4
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import {AnalyticsComponent} from "@gitroom/frontend/components/analytics/analytics.component";
|
||||
import {Metadata} from "next";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import { BillingComponent } from '@gitroom/frontend/components/billing/billing.component';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import {internalFetch} from "@gitroom/helpers/utils/internal.fetch";
|
||||
import {redirect} from "next/navigation";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import {LaunchesComponent} from "@gitroom/frontend/components/launches/launches.component";
|
||||
import {Metadata} from "next";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import { SettingsComponent } from '@gitroom/frontend/components/settings/settings.component';
|
||||
import { internalFetch } from '@gitroom/helpers/utils/internal.fetch';
|
||||
import { redirect } from 'next/navigation';
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import { ForgotReturn } from '@gitroom/frontend/components/auth/forgot-return';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import {Forgot} from "@gitroom/frontend/components/auth/forgot";
|
||||
import {Metadata} from "next";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import { ReactNode } from 'react';
|
||||
|
||||
export default async function AuthLayout({
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import {Login} from "@gitroom/frontend/components/auth/login";
|
||||
import {Metadata} from "next";
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import { Register } from '@gitroom/frontend/components/auth/register';
|
||||
import { Metadata } from 'next';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,3 +1,5 @@
|
|||
export const dynamic = 'force-dynamic';
|
||||
|
||||
import './global.css';
|
||||
import 'react-tooltip/dist/react-tooltip.css';
|
||||
|
||||
|
|
|
|||
|
|
@ -144,9 +144,7 @@ export const StarsTableComponent = () => {
|
|||
(type: 'increase' | 'decrease') => () => {
|
||||
const newPage = type === 'increase' ? page + 1 : page - 1;
|
||||
const keyAndState = key && state ? `&key=${key}&state=${state}` : '';
|
||||
router.replace(`/analytics?page=${newPage}${keyAndState}`, {
|
||||
forceOptimisticNavigation: false,
|
||||
});
|
||||
router.replace(`/analytics?page=${newPage}${keyAndState}`);
|
||||
},
|
||||
[page, key, state]
|
||||
);
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import dayjs from 'dayjs';
|
|||
import useSWR, { useSWRConfig } from 'swr';
|
||||
import { useFetch } from '@gitroom/helpers/utils/custom.fetch';
|
||||
import { Post, Integration } from '@prisma/client';
|
||||
import {useRouter, useSearchParams} from 'next/navigation';
|
||||
import { useRouter, useSearchParams } from 'next/navigation';
|
||||
|
||||
const CalendarContext = createContext({
|
||||
currentWeek: dayjs().week(),
|
||||
|
|
@ -60,9 +60,9 @@ export const CalendarWeekProvider: FC<{
|
|||
const setFiltersWrapper = useCallback(
|
||||
(filters: { currentWeek: number; currentYear: number }) => {
|
||||
setFilters(filters);
|
||||
router.replace(`/launches?week=${filters.currentWeek}&year=${filters.currentYear}`, {
|
||||
forceOptimisticNavigation: false,
|
||||
})
|
||||
router.replace(
|
||||
`/launches?week=${filters.currentWeek}&year=${filters.currentYear}`
|
||||
);
|
||||
setTimeout(() => {
|
||||
mutate('/posts');
|
||||
});
|
||||
|
|
@ -99,7 +99,10 @@ export const CalendarWeekProvider: FC<{
|
|||
setInternalData((d) =>
|
||||
d.map((post: Post) => {
|
||||
if (post.id === id) {
|
||||
return { ...post, publishDate: date.utc().format('YYYY-MM-DDTHH:mm:ss') };
|
||||
return {
|
||||
...post,
|
||||
publishDate: date.utc().format('YYYY-MM-DDTHH:mm:ss'),
|
||||
};
|
||||
}
|
||||
return post;
|
||||
})
|
||||
|
|
@ -114,7 +117,6 @@ export const CalendarWeekProvider: FC<{
|
|||
}
|
||||
}, [posts]);
|
||||
|
||||
|
||||
return (
|
||||
<CalendarContext.Provider
|
||||
value={{
|
||||
|
|
|
|||
|
|
@ -1,43 +0,0 @@
|
|||
{
|
||||
"migrations": [
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "17.3.0-beta.6",
|
||||
"description": "Updates the nx wrapper.",
|
||||
"implementation": "./src/migrations/update-17-3-0/update-nxw",
|
||||
"package": "nx",
|
||||
"name": "17.3.0-update-nx-wrapper"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "18.0.0-beta.2",
|
||||
"description": "Updates .env to disabled adding plugins when generating projects in an existing Nx workspace",
|
||||
"implementation": "./src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces",
|
||||
"x-repair-skip": true,
|
||||
"package": "nx",
|
||||
"name": "18.0.0-disable-adding-plugins-for-existing-workspaces"
|
||||
},
|
||||
{
|
||||
"cli": "nx",
|
||||
"version": "18.0.0-beta.0",
|
||||
"description": "Add NX_MF_DEV_SERVER_STATIC_REMOTES to inputs for task hashing when '@nx/webpack:webpack' is used for Module Federation.",
|
||||
"factory": "./src/migrations/update-18-0-0/add-mf-env-var-to-target-defaults",
|
||||
"package": "@nx/react",
|
||||
"name": "add-module-federation-env-var-to-target-defaults"
|
||||
},
|
||||
{
|
||||
"version": "17.2.9",
|
||||
"description": "Move executor options to target defaults",
|
||||
"implementation": "./src/migrations/update-17-2-9/move-options-to-target-defaults",
|
||||
"package": "@nx/eslint",
|
||||
"name": "move-options-to-target-defaults"
|
||||
},
|
||||
{
|
||||
"version": "17.3.0-beta.0",
|
||||
"description": "Move the vitest coverage thresholds in their own object if exists and add reporters.",
|
||||
"implementation": "./src/migrations/update-17-3-0/vitest-coverage-and-reporters",
|
||||
"package": "@nx/vite",
|
||||
"name": "vitest-coverage-and-reporters"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
|
|
@ -109,20 +109,20 @@
|
|||
"@types/cookie-parser": "^1.4.6",
|
||||
"@types/jest": "^29.4.0",
|
||||
"@types/multer": "^1.4.11",
|
||||
"@types/node": "18.19.22",
|
||||
"@types/node": "18.16.9",
|
||||
"@types/react": "18.2.33",
|
||||
"@types/react-dom": "18.2.14",
|
||||
"@types/uuid": "^9.0.8",
|
||||
"@types/yargs": "^17.0.32",
|
||||
"@typescript-eslint/eslint-plugin": "6.21.0",
|
||||
"@typescript-eslint/parser": "6.21.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
||||
"@typescript-eslint/parser": "^6.13.2",
|
||||
"@vitejs/plugin-react": "^4.2.0",
|
||||
"@vitest/coverage-v8": "1.3.1",
|
||||
"@vitest/ui": "1.3.1",
|
||||
"autoprefixer": "^10.4.17",
|
||||
"babel-jest": "^29.4.1",
|
||||
"eslint": "~8.48.0",
|
||||
"eslint-config-next": "13.4.4",
|
||||
"eslint-config-next": "14.0.4",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-plugin-import": "2.27.5",
|
||||
"eslint-plugin-jsx-a11y": "6.7.1",
|
||||
|
|
@ -142,11 +142,14 @@
|
|||
"tailwindcss": "^3.4.1",
|
||||
"ts-jest": "^29.1.0",
|
||||
"ts-node": "10.9.1",
|
||||
"typescript": "5.3.3",
|
||||
"typescript": "~5.3.2",
|
||||
"url-loader": "^4.1.1",
|
||||
"vite": "^5.0.0",
|
||||
"vitest": "1.3.1"
|
||||
},
|
||||
"nx": {
|
||||
"includedScripts": []
|
||||
},
|
||||
"workspaces": [
|
||||
"apps/*"
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue