Skip to content

Commit

Permalink
docs: refactor win95 example and blog (#4814)
Browse files Browse the repository at this point in the history
* refactor: example of win95

* docs: update the win95 blog

* fix: build errors
  • Loading branch information
salihozdemir authored Aug 11, 2023
1 parent 1a946b1 commit e0265cb
Show file tree
Hide file tree
Showing 40 changed files with 1,944 additions and 1,582 deletions.
1,781 changes: 1,041 additions & 740 deletions documentation/blog/2022-03-22-refine-with-react95.md

Large diffs are not rendered by default.

16 changes: 16 additions & 0 deletions examples/blog-win95/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* eslint-env node */

module.exports = {
env: { browser: true, es2020: true },
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react-hooks/recommended",
],
parser: "@typescript-eslint/parser",
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
plugins: ["react-refresh"],
rules: {
"react-refresh/only-export-components": "warn",
},
};
2 changes: 1 addition & 1 deletion examples/blog-win95/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@

npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn-error.log*
2 changes: 2 additions & 0 deletions examples/blog-win95/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
legacy-peer-deps=true
strict-peer-dependencies=false
Binary file removed examples/blog-win95/images/discord.png
Binary file not shown.
Binary file removed examples/blog-win95/images/github.png
Binary file not shown.
Binary file removed examples/blog-win95/images/reddit.png
Binary file not shown.
Binary file removed examples/blog-win95/images/twitter.png
Binary file not shown.
41 changes: 41 additions & 0 deletions examples/blog-win95/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="refine | Build your React-based CRUD applications, without constraints."
/>
<meta
data-rh="true"
property="og:image"
content="https://refine.dev/img/refine_social_new.png"
/>
<meta
data-rh="true"
name="twitter:image"
content="https://refine.dev/img/refine_social_new.png"
/>
<title>
refine - Build your React-based CRUD applications, without
constraints.
</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
You can add webfonts, meta tags, or analytics to this file.
The build step will place the bundled scripts into the <body> tag.
To begin the development, run `npm dev` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
--></body>
</html>
54 changes: 28 additions & 26 deletions examples/blog-win95/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,37 +2,42 @@
"name": "blog-win95",
"version": "3.25.0",
"private": true,
"type": "module",
"dependencies": {
"@refinedev/core": "^4.34.0",
"@refinedev/cli": "^2.7.6",
"@refinedev/react-hook-form": "^4.8.2",
"@refinedev/react-router-v6": "^4.5.0",
"@refinedev/cli": "^2.7.4",
"@refinedev/core": "^4.28.2",
"@refinedev/inferencer": "^4.3.2",
"@refinedev/kbar": "^1.1.2",
"@refinedev/supabase": "^5.0.0",
"@refinedev/react-router-v6": "^4.1.0",
"@refinedev/react-table": "^5.6.0",
"@tanstack/react-table": "^8.2.6",
"@refinedev/supabase": "^5.7.0",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.1.1",
"@testing-library/user-event": "^14.1.1",
"@types/jest": "^29.2.4",
"@types/node": "^18.16.2",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@refinedev/react-hook-form": "^4.8.2",
"react-hook-form": "^7.30.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "^6.8.1",
"react-scripts": "^5.0.0",
"cross-env": "^7.0.3",
"react95": "^3.11.1",
"styled-components": "^5.3.3",
"react95": "^4.0.0",
"styled-components": "^5.3.3"
},
"devDependencies": {
"@types/node": "^18.16.2",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/styled-components": "^5.1.26",
"@typescript-eslint/eslint-plugin": "5.48.0",
"@typescript-eslint/parser": "5.48.0",
"@vitejs/plugin-react": "^4.0.0",
"eslint": "^8.24.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.3.4",
"typescript": "^4.7.4",
"react-hook-form": "^7.30.0"
"vite": "^4.3.1"
},
"scripts": {
"dev": "cross-env DISABLE_ESLINT_PLUGIN=true refine start",
"start": "cross-env DISABLE_ESLINT_PLUGIN=true refine start",
"build": "cross-env DISABLE_ESLINT_PLUGIN=true refine build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"start": "refine dev",
"build": "tsc && refine build",
"preview": "refine start",
"refine": "refine"
},
"browserslist": {
Expand All @@ -46,8 +51,5 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@types/styled-components": "^5.1.24"
}
}
}
41 changes: 0 additions & 41 deletions examples/blog-win95/public/index.html

This file was deleted.

Binary file removed examples/blog-win95/public/refine.png
Binary file not shown.
Loading

0 comments on commit e0265cb

Please sign in to comment.