Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add win95 example #5890

Merged
merged 88 commits into from
May 8, 2024
Merged
Show file tree
Hide file tree
Changes from 86 commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
59d06c3
feat(win95): init app
alicanerdurmaz Mar 28, 2024
090c869
feat(win95): add pagination icons
alicanerdurmaz Mar 29, 2024
d5ad86a
feat(win95): add out-of-stock icon
alicanerdurmaz Mar 29, 2024
621d05f
feat(win95): add notification provider
alicanerdurmaz Mar 29, 2024
2af62f3
feat(win95): add table filters
alicanerdurmaz Mar 29, 2024
55fd7dd
style: disable title select
aliemir Apr 4, 2024
d6cccfb
style: lower min screen height
aliemir Apr 4, 2024
29ff7dc
chore: move datetime component
aliemir Apr 4, 2024
5736a1f
chore: close start menu on outside click
aliemir Apr 4, 2024
78a61f7
chore: remove unused video-club components
aliemir Apr 4, 2024
85c622e
chore: temporarily comment out normalize upload
aliemir Apr 4, 2024
1696196
feat: add about window
aliemir Apr 4, 2024
da0c50b
feat: add initial loading overlay
aliemir Apr 4, 2024
c8818bc
chore: update window placement
aliemir Apr 4, 2024
b94a82a
chore: update subpage layout placement
aliemir Apr 4, 2024
682110d
chore: update video-club component imports
aliemir Apr 4, 2024
89a17a5
build: add type module
aliemir Apr 4, 2024
7616b2d
fix: loader overlay
aliemir Apr 4, 2024
66aea7a
fix: browse title table column widths
aliemir Apr 4, 2024
1a5547a
chore: add missing interfaces
aliemir Apr 4, 2024
49d3742
feat: add container style prop to sub page layout
aliemir Apr 4, 2024
b76cc4a
fix: auto filter prop names
aliemir Apr 4, 2024
d12d356
feat: add title detail page
aliemir Apr 4, 2024
238ead9
chore: fix title color
aliemir Apr 4, 2024
6dc924a
feat: add new title dummy page
aliemir Apr 4, 2024
6e08b06
feat: add new title window
aliemir Apr 5, 2024
adf9d53
chore: custom notification after create title
aliemir Apr 5, 2024
61e27ea
chore: add tmdb link to title in details
aliemir Apr 5, 2024
21fd9a8
chore: fix notification item paddings
aliemir Apr 5, 2024
e5f8f4f
chore(about): fix close button
aliemir Apr 14, 2024
ba417d1
chore: add devtools dependency
aliemir Apr 14, 2024
edb4553
feat(win95): rent tape
alicanerdurmaz Apr 16, 2024
a4ef99d
feat(win95): add missing pages
alicanerdurmaz Apr 25, 2024
c85f272
Merge branch 'master' into feat/add-win95-example
alicanerdurmaz Apr 25, 2024
42c8fc8
chore: remove nx cache
alicanerdurmaz Apr 25, 2024
3a84100
chore: remove debug code
alicanerdurmaz Apr 25, 2024
a4942d2
fix(win95): links
alicanerdurmaz Apr 25, 2024
c207389
fix(win95): add netlify toml
alicanerdurmaz Apr 25, 2024
db4e54c
fix(win95): fix font
alicanerdurmaz Apr 25, 2024
3a0154e
fix(win95): fix font
alicanerdurmaz Apr 25, 2024
0f72081
feat(win95): add default login values
alicanerdurmaz Apr 25, 2024
0897a5c
feat(win95): open tmdb link as blank
alicanerdurmaz Apr 25, 2024
541b6d0
fix(win95): minor improvements
alicanerdurmaz Apr 25, 2024
3cfa282
fix(win95): minor improvements
alicanerdurmaz Apr 25, 2024
85b65bf
fix(win95): minor improvements
alicanerdurmaz Apr 25, 2024
9af0ca5
feat(win95): add video player
alicanerdurmaz Apr 25, 2024
3cdbf29
fix(win95): alignment
alicanerdurmaz Apr 25, 2024
b39ee2c
fix(win95): window height
alicanerdurmaz Apr 26, 2024
864c232
Merge branch 'master' into feat/add-win95-example
alicanerdurmaz Apr 26, 2024
2c2c50a
feat(win95): add watch trailer icon
alicanerdurmaz Apr 26, 2024
13aaa7b
fix(win95): readme
alicanerdurmaz Apr 26, 2024
80e0b31
fix(win95): minor improvements
alicanerdurmaz Apr 29, 2024
3018f58
fix(win95): remove console.log
alicanerdurmaz Apr 29, 2024
08eb830
fix(win95): remove debug code
alicanerdurmaz Apr 29, 2024
96d6745
fix(win95): add loading screen
alicanerdurmaz Apr 29, 2024
ce338f4
fix(win95): undefined title
alicanerdurmaz Apr 29, 2024
93b1b09
feat(win95): add live mode auto
alicanerdurmaz Apr 29, 2024
1a7dee5
feat(win95): reduce loading time
alicanerdurmaz Apr 29, 2024
6a8c3b6
fix(win95): remove unused files
alicanerdurmaz Apr 29, 2024
e3c22f9
fix(win95): readme
alicanerdurmaz Apr 29, 2024
4e7b174
feat(win95): refactor login page
alicanerdurmaz Apr 30, 2024
b6ee221
feat(win95): use video club links from useNavigation
alicanerdurmaz Apr 30, 2024
93c8c41
Merge branch 'master' into feat/add-win95-example
alicanerdurmaz May 2, 2024
52ad77a
fix(win95): remove comented code
alicanerdurmaz May 2, 2024
489f613
fix(win95): refactor file structure
alicanerdurmaz May 2, 2024
b1257e8
fix(win95): refactor file structure
alicanerdurmaz May 2, 2024
928cec5
fix(win95): refactor naming convention
alicanerdurmaz May 2, 2024
fc43747
fix(win95): remove redundant else condition
alicanerdurmaz May 2, 2024
0b83cbb
fix(win95): import dayjs instance only once
alicanerdurmaz May 2, 2024
f1a90cb
fix(win95): remove commented codes
alicanerdurmaz May 2, 2024
fee6fe9
fix(win95): use getCdnUrl function to get image paths
alicanerdurmaz May 2, 2024
d781a95
feat(docs): update win95 templates description
alicanerdurmaz May 3, 2024
9b0fb8b
Merge branch 'master' into feat/add-win95-example
BatuhanW May 6, 2024
36f9222
fix(invoicer): remove commented lines and redundant files
alicanerdurmaz May 6, 2024
c75b4b7
chore(win95): get assets from project not from CDN
alicanerdurmaz May 6, 2024
daa95ef
Optimised images with calibre/image-actions
refine-bot May 6, 2024
2e169a7
fix(win95): refactor syntax
alicanerdurmaz May 7, 2024
c834140
fix(win95): use getDefaultFilter instead of custom function
alicanerdurmaz May 7, 2024
4992e53
fix(win95): remove DAILY_FEE use NIGHTLY_RENTAL_FEE from global const…
alicanerdurmaz May 7, 2024
7bf0719
fix(win95): unnecessary optional field
alicanerdurmaz May 7, 2024
8b214b7
fix(win95): add watch trailer button to titles create
alicanerdurmaz May 7, 2024
114431e
fix(win95): remove I prefix from types
alicanerdurmaz May 7, 2024
13acf6d
fix(win95): remove I prefix from types
alicanerdurmaz May 7, 2024
ccf4bd6
fix(win95): remove I prefix from types
alicanerdurmaz May 7, 2024
2bec790
fix(win95): use tsconfig paths
alicanerdurmaz May 7, 2024
4330f02
Merge branch 'master' into feat/add-win95-example
alicanerdurmaz May 7, 2024
84975ee
feat(win95): disable screen on mobile version
alicanerdurmaz May 7, 2024
a5a23e1
fix(win95): increase line height of mobile warning
alicanerdurmaz May 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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)
31 changes: 31 additions & 0 deletions examples/win95/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!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>
</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",
alicanerdurmaz marked this conversation as resolved.
Show resolved Hide resolved
"@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
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
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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/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