Skip to content

Commit

Permalink
Merge branch 'master' into fix/type-errors-on-older-ts-versions
Browse files Browse the repository at this point in the history
  • Loading branch information
BatuhanW committed May 8, 2024
2 parents 30e1425 + 5d8d4d5 commit 32e1fc6
Show file tree
Hide file tree
Showing 173 changed files with 9,427 additions and 285 deletions.
589 changes: 313 additions & 276 deletions documentation/plugins/templates.js

Large diffs are not rendered by default.

12 changes: 5 additions & 7 deletions documentation/plugins/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,19 +310,17 @@ We built this template to showcase the efficiency and ease of using the Refine f
slug: "win-95-style-admin-panel",
title: "Win95 Style Admin Panel",
images: [
"https://refine.ams3.cdn.digitaloceanspaces.com/templates/detail-win95.jpg",
"https://refine.ams3.cdn.digitaloceanspaces.com/templates/video-club-win95.png",
],
runOnYourLocalPath: "blog-win95",
liveDemo: "https://win95.refine.dev/",
github: "https://github.com/refinedev/refine/tree/master/examples/blog-win95",
tutorial:
"https://refine.dev/blog/awesome-react-windows95-ui-with-refine/",
runOnYourLocalPath: "win95",
liveDemo: "https://videoclub.refine.dev",
github: "https://github.com/refinedev/refine/tree/master/examples/win95",
reactPlatform: "Vite",
uiFramework: "Headless",
dataProvider: "Supabase",
authProvider: "Supabase",
description: `
This Fun CRUD app example demonstrates how you can customize the Refine app design for specific needs. It is connected to a Supabase backend through Refine’s Supabase data provider and its user interface is developed using [React95](https://github.com/React95/React95).
This Fun CRUD app example demonstrates how you can customize the Refine app design for specific needs. It is connected to a Supabase backend through Refine’s Supabase data provider and its user interface is developed using [React95](https://github.com/react95-io/React95).
The source code of the CRUD app is also open-source; feel free to use or inspect it to discover how Refine works along with external UI packages.
`,
Expand Down
3 changes: 2 additions & 1 deletion documentation/src/pages/templates/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,8 @@ const dataTemplates: {
title: "Win95 Style Admin Panel",
description:
"With the headless architecture of Refine, you have the flexibility to implement any custom design!",
image: "https://refine.ams3.cdn.digitaloceanspaces.com/templates/win95.jpg",
image:
"https://refine.ams3.cdn.digitaloceanspaces.com/templates/video-club.png",
integrations: [
{
label: "Headless",
Expand Down
2 changes: 1 addition & 1 deletion documentation/src/refine-theme/css/fonts.css
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:wght@200;400;500;600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap');
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap");
23 changes: 23 additions & 0 deletions examples/win95/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
43 changes: 43 additions & 0 deletions examples/win95/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<div align="center" style="margin: 30px;">
<a href="https://refine.dev/">
<img alt="refine logo" src="https://refine.ams3.cdn.digitaloceanspaces.com/readme/refine-readme-banner.png">
</a>

</br>
</br>

<div align="center">
<a href="https://refine.dev">Home Page</a> |
<a href="https://discord.gg/refine">Discord</a> |
<a href="https://refine.dev/examples/">Examples</a> |
<a href="https://refine.dev/blog/">Blog</a> |
<a href="https://refine.dev/docs/">Documentation</a>
</div>
</div>

</br>
</br>

<div align="center"><strong>Build your <a href="https://reactjs.org/">React</a>-based CRUD applications, without constraints.</strong><br>An open source, headless web application framework developed with flexibility in mind.

<br />
<br />

[![Discord](https://img.shields.io/discord/837692625737613362.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/refine)
[![Twitter Follow](https://img.shields.io/twitter/follow/refine_dev?style=social)](https://twitter.com/refine_dev)

<a href="https://www.producthunt.com/posts/refine-3?utm_source=badge-top-post-badge&utm_medium=badge&utm_souce=badge-refine&#0045;3" target="_blank"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=362220&theme=light&period=daily" alt="refine - 100&#0037;&#0032;open&#0032;source&#0032;React&#0032;framework&#0032;to&#0032;build&#0032;web&#0032;apps&#0032;3x&#0032;faster | Product Hunt" style="width: 250px; height: 54px;" width="250" height="54" /></a>

</div>

## Try this example on your local

```bash
npm create refine-app@latest -- --example win95
```

## Try this example on CodeSandbox

<br/>

[![Open win95 example from Refine](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/embed/github/refinedev/refine/tree/master/examples/win95?view=preview&theme=dark&codemirror=1)
44 changes: 44 additions & 0 deletions examples/win95/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<!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="Web site created using refine" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="/manifest.json" />
<title>refine win95 example</title>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-9S1N05Z9DN"
></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("js", new Date());

gtag("config", "G-9S1N05Z9DN");
</script>
</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 run dev` or `yarn dev`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</html>
4 changes: 4 additions & 0 deletions examples/win95/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 404
56 changes: 56 additions & 0 deletions examples/win95/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"name": "win95",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"build": "tsc && refine build",
"dev": "refine dev",
"preview": "refine start",
"refine": "refine"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"dependencies": {
"@refinedev/cli": "^2.16.27",
"@refinedev/core": "^4.48.0",
"@refinedev/devtools": "^1.1.35",
"@refinedev/react-hook-form": "^4.8.15",
"@refinedev/react-router-v6": "^4.5.6",
"@refinedev/react-table": "^5.6.7",
"@refinedev/supabase": "^5.7.7",
"@tanstack/react-table": "^8.2.6",
"dayjs": "^1.10.7",
"ditherjs": "^0.10.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-hot-toast": "^2.4.1",
"react-modal": "^3.16.1",
"react-player": "^2.16.0",
"react-router-dom": "^6.8.1",
"react95": "^4.0.0",
"recharts": "^2.1.9",
"styled-components": "^6.1.8",
"swiper": "^11.1.0"
},
"devDependencies": {
"@types/node": "^18.16.2",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@types/react-modal": "^3.16.3",
"@vitejs/plugin-react": "^4.2.1",
"typescript": "^5.4.2",
"vite": "^5.1.6",
"vite-tsconfig-paths": "^4.2.1"
}
}
Binary file added examples/win95/public/favicon.ico
Binary file not shown.
Binary file added examples/win95/public/fonts/ms_sans_serif.woff
Binary file not shown.
Binary file added examples/win95/public/fonts/ms_sans_serif.woff2
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added examples/win95/public/images/FPCreated.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/Video.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/about-email.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/about-globe.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/about-webpage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/add-member.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/add-title.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/arrow1.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/bg-white-noise.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/book.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/browse-members.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/browse-titles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/browser-icons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/camera.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/checkmark-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/construction.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/discord-pixelated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/dollarspindownd.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/earth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/email.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/explorer.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added examples/win95/public/images/external-icon.png
Binary file added examples/win95/public/images/firenew2.gif
Binary file added examples/win95/public/images/gc_icon.gif
Binary file added examples/win95/public/images/github-pixelated.png
Binary file added examples/win95/public/images/info-bubble.png
Binary file added examples/win95/public/images/logo.gif
Binary file added examples/win95/public/images/logoff.png
Binary file added examples/win95/public/images/members.jpg
Binary file added examples/win95/public/images/new.gif
Binary file added examples/win95/public/images/noisy-gray.png
Binary file added examples/win95/public/images/notepad.png
Binary file added examples/win95/public/images/paper-with-pencil.png
Binary file added examples/win95/public/images/popover-shadow.png
Binary file added examples/win95/public/images/reel2.gif
Binary file added examples/win95/public/images/refine-pixelated.png
Binary file added examples/win95/public/images/refinecrm.gif
Binary file added examples/win95/public/images/refinefoods.gif
Binary file added examples/win95/public/images/rent-tape.png
Binary file added examples/win95/public/images/report.png
Binary file added examples/win95/public/images/return-tape.png
Binary file added examples/win95/public/images/rvc-hero-logo.png
Binary file added examples/win95/public/images/separator.gif
Binary file added examples/win95/public/images/settings.png
Binary file added examples/win95/public/images/splash-screen.png
Binary file added examples/win95/public/images/stars.gif
Binary file added examples/win95/public/images/tape.jpg
Binary file added examples/win95/public/images/tile.png
Binary file added examples/win95/public/images/top10.gif
Binary file added examples/win95/public/images/vcr_md_wht.gif
Binary file added examples/win95/public/images/vcrtape-ecsull.gif
Binary file added examples/win95/public/images/video2.gif
Binary file added examples/win95/public/images/volume-off.png
Binary file added examples/win95/public/images/volume-on.png
Binary file added examples/win95/public/images/watch-trailer.png
Binary file added examples/win95/public/images/win95-logo.png
Binary file added examples/win95/public/images/windows-key.png
Binary file added examples/win95/public/images/windows-logo.png
Binary file added examples/win95/public/images/x-pixelated.png
15 changes: 15 additions & 0 deletions examples/win95/public/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"short_name": "Refine win95",
"name": "Refine win95 example",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
10 changes: 10 additions & 0 deletions examples/win95/public/refine.svg
Loading

0 comments on commit 32e1fc6

Please sign in to comment.