Skip to content

SSR & Router provider - 2.0.0#1179

Merged
refine-bot merged 116 commits intomasterfrom
alpha
Nov 9, 2021
Merged

SSR & Router provider - 2.0.0#1179
refine-bot merged 116 commits intomasterfrom
alpha

Conversation

@omeraplak
Copy link
Contributor

@omeraplak omeraplak commented Oct 22, 2021

Hey, I'm client! Test me! 'MASTER'
Link to ALPHA

Test me! 'MASTER'
Link to ALPHA

Hey, I'm client! Test me! 'MASTER'
Link to ALPHA

Test me! 'MASTER'
Link to ALPHA

Hey, I'm client! Test me! 'MASTER'
Link to ALPHA

Test me! 'MASTER'
Link to ALPHA

Hey, I'm client! Test me! 'MASTER'
Link to ALPHA

Test me! 'MASTER'
Link to ALPHA

Hey, I'm client! Test me! 'MASTER'
Link to ALPHA

Test me! 'MASTER'
Link to ALPHA

Hey, I'm client! Test me! 'MASTER'
Link to ALPHA

Test me! 'MASTER'
Link to ALPHA

Hey, I'm client! Test me! 'MASTER'
Link to ALPHA

IMPORTANT: Please do not create a Pull Request without creating an issue first.

Any change needs to be discussed before proceeding. Failure to do so may result in the rejection of the pull request.

Please provide enough information so that others can review your pull request:

Explain the details for making this change. What existing problem does the pull request solve?

Test plan (required)

Demonstrate the code is solid. If not, please add WIP: in its title.

Closing issues

Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

Test documentation! 'MASTER'
Link to ALPHA

omeraplak and others added 30 commits October 6, 2021 10:24
* init next example

* add ssr example project. hack until react-router

* use react-router-dom everywhere

* get client side router elements from props

* add router provider for react-router as a standalone package

* init nextjs-router

* remove react-router from core

* fix temporary router provider components

* update core package-lock

* add resources prop to Refine

* add hooks to nextjs router provider

* add crud compontns to NextRouteComponent

* remoce css components example from nextjs example

* add remaining crud operations to next example

* handle custom routes

* react query ssr

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

* refine, nextjs ssr for custom routes

* handle authentication

* remove unnecessary custom routes read

* syncWithLocation for server side rendering

* remove console log

* turn off router types

* remove unused import

* remove console.log's

* fix sider active menu item

* fix active menu item

* create router context

* delete router props in refine context

* use router context in core

* change reactrouter package name to react-router

* react-router package-lock

* Prompt for nextjs-router (#1120)

* implement Prompt component for nextjs-router to handle warnWhenUnsavedChanges

* remove unnecessary line

* better error message

* better type naming

* fix ssr tests (#1121)

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

* componentize nextjs-router. add nextroutecomponent to nextjs-router.

* use only one hooks import

* add useRefineContext. use nextroutecomponent from nextjs-route

* use hooks from within the package

* rename react-router package name in base example

Co-authored-by: Muharrem Kocadere <mkocadere@gmail.com>

* route provider move to react-router package

Co-authored-by: Muharrem Kocadere <mkocadere@gmail.com>

* change NextRouteComponent import

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
Co-authored-by: mhrrmk <mkocadere@gmail.com>

* add versioning for doc

* add roureProvider to fineFoods. export Link from routerProvider packages.

* re-organize kubectl auth

* update pr doc deployment timeout

* add BrowserRouterProps ro RouterComponent

* fix ssr tests

Co-authored-by: mhrrmk <mkocadere@gmail.com>

* fix syncWithLocationIssues on fineFoods

* add catchAll prop to refine context

* update pr doc deploy helm timeout 15m to 20m

* delete Resource component

* update examples with new resources prop

* update examples with new resources prop

* add routerProvider support for examples

* update doc website Dockerfile

* delete examples folder from lerna

* delete package-lock files for examples

* add missing deps and scripts for examples projects

* version bump 1.1.0 for core

* update nextjs-router and react-router versions

* router provider function convert to object

* fix examples

* handle ssr authentication

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>

* extract checkAuthentication to nextjs-router package

* add fineFoods package-lock

* redirect to lastpath when user successfully login

* update redirect path

* fix redirect path logic

* remove redirect when go to root path

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
Co-authored-by: Salih <salihozdemir94@gmail.com>
* remove unused props

* fix authentication redirects

* add fineFoods package-lock

* add @pankod/refine dep for fineFoods

* add react-router dep for finefoods

* update Link usage from refine-react-router on fineFoods

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
* fix fineFoods admin

* move admin app to admin dir

* init client app

* add less. remove unnecessary components. add temporary components

* add babel-plugin-import

* update fineFoods example path

* update fineFoods admin package-lock

* add .env file for fineFoods admin

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
* handle layout

Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com>

* design category card

* remove unused lines

* create product card

* add vsgr. add footer.

* add header

* fix items type

* create responsive design

* add promotional section

* integrate promotional section

* refactoring

* fix homepage background color

* remove unnecessary icons. use ant design icon component

* Ssr for category cards

* move Dockerfile to fineFoods/admin

* handle promtoinal area responsive

* Ssr for products and get dynamic badge title and color

* handle header responsive

* add finefoods client example Dockerfile

* update dockerfile path on PR action

* delete posts components

* update Docker image name for client example

* remove svgr

* add dummy resource for finefoods client

* disable auth provider on finefoods client

* remove auth provider imports

* footer responsive

Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com>
Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
* handle layout

Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com>

* design category card

* remove unused lines

* create product card

* add vsgr. add footer.

* add header

* fix items type

* create responsive design

* add promotional section

* integrate promotional section

* refactoring

* fix homepage background color

* remove unnecessary icons. use ant design icon component

* Ssr for category cards

* move Dockerfile to fineFoods/admin

* handle promtoinal area responsive

* Ssr for products and get dynamic badge title and color

* handle header responsive

* add finefoods client example Dockerfile

* update dockerfile path on PR action

* delete posts components

* update Docker image name for client example

* remove svgr

* add dummy resource for finefoods client

* disable auth provider on finefoods client

* remove auth provider imports

* footer responsive

* create constant file for constants

* update primary key

* create product list card component

* create category with products page

* add link to category cards

* snake case component name convert to camel case

* delete authProvider import

* remove authProvider imports

Co-authored-by: Muharrem Kocadere <mkocadere@gmail.com>
Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
* create order success page

* add confetti

* add animation and redirect link

* fix message arrow position
* remove unused svgs

* rename style file names

* fix vertical card padding

* card fix col size
* handle layout

Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com>

* design category card

* remove unused lines

* create product card

* add vsgr. add footer.

* add header

* fix items type

* create responsive design

* add promotional section

* integrate promotional section

* refactoring

* fix homepage background color

* remove unnecessary icons. use ant design icon component

* Ssr for category cards

* move Dockerfile to fineFoods/admin

* handle promtoinal area responsive

* Ssr for products and get dynamic badge title and color

* handle header responsive

* add finefoods client example Dockerfile

* update dockerfile path on PR action

* delete posts components

* update Docker image name for client example

* remove svgr

* add dummy resource for finefoods client

* disable auth provider on finefoods client

* remove auth provider imports

* footer responsive

* add basket context

* merge alpha

* remove old component dirs

* fix css

* add add to cart to productlistitem

* add orders modal

* add link to homepage in logo in header

* sticky header

* fix header styles

* add order creation method

* improve orders modal

Co-authored-by: Salih Özdemir <salihozdemir94@gmail.com>
Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
omeraplak and others added 19 commits November 3, 2021 14:11
* create demo page

* update doc Dockerfile

* update demo nav item path

* add mobile view

* Optimised images with calibre/image-actions

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
Co-authored-by: Pankod Community Bot <53254888+pankod-bot@users.noreply.github.com>
* create admin switch toggle

* create client switch toggle

* fix admin toggle transform value

* update client toggle link
* add codemod

* remove unrelated types

* wip: handle custom routes

* finalize routerProvider migration

* get cli to work

* refactor

* use vercel license because of forked cli

* add codemod cli forked from nextjs's codemod

* add refine1-to-refine2 codemod 🎉

* remove example files

* update codemod package dependencies

* update codemod deps

Co-authored-by: Ömer Faruk APLAK <omer@pankod.com>
* add @pankod/refine-codemod migration recommendation

* add codemod README.md

* use the word "migrating" instead of "migrate" in headers
@refine-bot refine-bot merged commit bf4dadb into master Nov 9, 2021
@omeraplak omeraplak deleted the alpha branch November 9, 2021 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

Comments