Skip to content

Commit

Permalink
docs: update finefoods example paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Ömer Faruk APLAK committed Dec 14, 2022
1 parent 234ba9a commit 264ae47
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .codesandbox/ci.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@
"packages/react-table",
"packages/simple-rest"
],
"sandboxes": ["/examples/fineFoods/admin/antd", "/examples/fineFoods/client", "/examples/fineFoods/admin/mui", "/examples/base/antd"]
"sandboxes": ["/examples/finefoods-antd", "/examples/finefoods-client", "/examples/finefoods-mui", "/examples/base-antd"]
}
12 changes: 6 additions & 6 deletions .github/workflows/master-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
registry: ghcr.io
repository: refinedev/refine/refine-example
tags: sha-${{ steps.current-time.outputs.formattedTime }}
dockerfile: examples/fineFoods/admin/antd/Dockerfile
dockerfile: examples/finefoods-antd/Dockerfile
- name: Set up kubectl
uses: matootie/[email protected]
with:
Expand All @@ -127,7 +127,7 @@ jobs:
run: kubectl get nodes
- name: Deploy refine-example to k8s
run: |
cd examples/fineFoods/admin/antd
cd examples/finefoods-antd
echo ${{ env.domain }}
mv ./k8s/refine-example/Chart.yaml ./k8s/refine-example/Chart.old.yaml &&
cat ./k8s/refine-example/Chart.old.yaml | grep -v appVersion > ./k8s/refine-example/Chart.yaml &&
Expand Down Expand Up @@ -177,7 +177,7 @@ jobs:
registry: ghcr.io
repository: refinedev/refine/refine-mui-example
tags: sha-${{ steps.current-time.outputs.formattedTime }}
dockerfile: examples/fineFoods/admin/mui/Dockerfile
dockerfile: examples/finefoods-mui/Dockerfile
- name: Set up kubectl
uses: matootie/[email protected]
with:
Expand All @@ -188,7 +188,7 @@ jobs:
run: kubectl get nodes
- name: Deploy refine-example to k8s
run: |
cd examples/fineFoods/admin/mui
cd examples/finefoods-mui
echo ${{ env.domain }}
mv ./k8s/refine-example/Chart.yaml ./k8s/refine-example/Chart.old.yaml &&
cat ./k8s/refine-example/Chart.old.yaml | grep -v appVersion > ./k8s/refine-example/Chart.yaml &&
Expand Down Expand Up @@ -232,7 +232,7 @@ jobs:
registry: ghcr.io
repository: refinedev/refine/refine-client-example
tag_with_sha: true
dockerfile: examples/fineFoods/client/Dockerfile
dockerfile: examples/finefoods-client/Dockerfile
- name: Set up kubectl
uses: matootie/[email protected]
with:
Expand All @@ -243,7 +243,7 @@ jobs:
run: kubectl get nodes
- name: Deploy refine-example to k8s
run: |
cd examples/fineFoods/client
cd examples/finefoods-client
mv ./k8s/refine-example/Chart.yaml ./k8s/refine-example/Chart.old.yaml &&
cat ./k8s/refine-example/Chart.old.yaml | grep -v appVersion > ./k8s/refine-example/Chart.yaml &&
echo -e "\r\nappVersion: sha-${GITHUB_SHA::7}\r\n" >> ./k8s/refine-example/Chart.yaml &&
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/pull-request-previews.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ on:
- reopened
paths:
- "packages/**"
- "examples/fineFoods/**"
- "examples/finefoods-antd/**"
- "examples/finefoods-mui/**"
- "examples/finefoods-client/**"

jobs:
antd-fine-foods:
Expand All @@ -35,7 +37,7 @@ jobs:
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './examples/fineFoods/admin/antd/build'
publish-dir: './examples/finefoods-antd/build'
github-token: ${{ secrets.PANKOD_BOT_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
alias: deploy-preview-antd-${{ github.event.number }}
Expand Down Expand Up @@ -70,7 +72,7 @@ jobs:
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './examples/fineFoods/admin/mui/build'
publish-dir: './examples/finefoods-mui/build'
github-token: ${{ secrets.PANKOD_BOT_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
alias: deploy-preview-mui-${{ github.event.number }}
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ coverage
.env.test.local
.env.production.local

!examples/fineFoods/admin/antd/.env
!examples/fineFoods/admin/mui/.env
!examples/finefoods-antd/.env
!examples/finefoods-mui/.env
!examples/store/.env


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ declare module "@pankod/refine-mui" {
}
```

You can see an example of how to [`create your own theme with custom variables`](https://github.com/refinedev/refine/blob/next/examples/fineFoods/admin/mui/src/theme.ts) and its [`interface`](https://github.com/refinedev/refine/blob/next/examples/fineFoods/admin/mui/src/interfaces/theme.d.ts) by accessing the links.
You can see an example of how to [`create your own theme with custom variables`](https://github.com/refinedev/refine/blob/next/examples/finefoods-mui/src/theme.ts) and its [`interface`](https://github.com/refinedev/refine/blob/next/examples/finefoods-mui/src/interfaces/theme.d.ts) by accessing the links.

## Dark Mode

Expand Down
9 changes: 5 additions & 4 deletions documentation/src/assets/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const SHOW_CASES: Examples = [
text: "VIEW DEMO",
link: "https://example.admin.refine.dev",
},
source: "https://github.com/refinedev/refine/tree/master/examples/fineFoods/admin/antd",
source: "https://github.com/refinedev/refine/tree/master/examples/finefoods-antd",
},
{
title: "FINEFOODS STOREFRONT",
Expand All @@ -32,7 +32,7 @@ export const SHOW_CASES: Examples = [
text: "VIEW DEMO",
link: "https://example.refine.dev",
},
source: "https://github.com/refinedev/refine/tree/master/examples/fineFoods/client",
source: "https://github.com/refinedev/refine/tree/master/examples/finefoods-client",
},
{
title: "FINEFOODS ADMIN PANEL [MATERIAL UI]",
Expand All @@ -43,7 +43,7 @@ export const SHOW_CASES: Examples = [
text: "VIEW DEMO",
link: "https://example.mui.admin.refine.dev",
},
source: "https://github.com/refinedev/refine/tree/master/examples/fineFoods/admin/mui",
source: "https://github.com/refinedev/refine/tree/master/examples/finefoods-mui",
},
];

Expand Down Expand Up @@ -141,8 +141,9 @@ export const EXAMPLES: Examples = [
image: "/examples/refine-pixels.png",
button: {
text: "VIEW DEMO",
link: "https://refine-pixels.vercel.app/canvases",
link: "https://pixels.refine.dev",
},
source: "https://github.com/refinedev/refine/tree/master/examples/pixels",
isExternal: true,
},
];
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,5 @@ All variable overrides configured in `lessOptions.modifyVars` always have higher
></iframe>
[superplate]: https://github.com/pankod/superplate
[finefoods-client]: https://github.com/refinedev/refine/tree/master/examples/fineFoods/client
[finefoods-client]: https://github.com/refinedev/refine/tree/master/examples/finefoods-client
[next-plugin-antd-less]: https://github.com/SolidZORO/next-plugin-antd-less
2 changes: 1 addition & 1 deletion examples/finefoods-antd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN npm run build -- --scope fine-foods

FROM node:16-alpine

COPY --from=0 /opt/app/examples/fineFoods/admin/antd/build /opt/app
COPY --from=0 /opt/app/examples/finefoods-antd/build /opt/app
WORKDIR /opt/app/

ENV NODE_ENV=production
Expand Down
2 changes: 1 addition & 1 deletion examples/finefoods-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ RUN npm run bootstrap -- --scope fine-foods-client
RUN npm run build -- --scope fine-foods-client

#Example client
WORKDIR /opt/app/examples/fineFoods/client
WORKDIR /opt/app/examples/finefoods-client

CMD npm run start:prod
2 changes: 1 addition & 1 deletion examples/finefoods-mui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN npm run build -- --scope mui-fine-foods

FROM node:16-alpine

COPY --from=0 /opt/app/examples/fineFoods/admin/mui/build /opt/app
COPY --from=0 /opt/app/examples/finefoods-mui/build /opt/app
WORKDIR /opt/app/

ENV NODE_ENV=production
Expand Down

0 comments on commit 264ae47

Please sign in to comment.