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

Vite ecommerce sample app #2687

Merged
merged 41 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
53f910d
feat(ecommerce): initial commit for the vite ecommerce app
svdimitr Oct 22, 2024
b0a0eb2
add Header and Footer, add alias for imports
filipKovachev Oct 28, 2024
248f2eb
add a tags and spacings for the footer
filipKovachev Oct 28, 2024
c0f6d92
chore(components): add two components
svdimitr Oct 29, 2024
a7e5b62
add the pages folder
svdimitr Oct 29, 2024
fa67032
add pages
svdimitr Oct 30, 2024
756bbc2
iteration over the design
svdimitr Nov 1, 2024
7710a44
add routing
filipKovachev Nov 3, 2024
4e72103
add images
svdimitr Nov 4, 2024
11ea905
polish components
svdimitr Nov 4, 2024
9431821
add filter
svdimitr Nov 6, 2024
f4a6a53
extract cardlist component
svdimitr Nov 6, 2024
6d3f044
remove outdated imports
svdimitr Nov 6, 2024
acef7cd
add detailed cat page
svdimitr Nov 7, 2024
b6adcc0
polish pages, extract types
svdimitr Nov 7, 2024
f2dafa4
add the productCard compo
svdimitr Nov 7, 2024
e7f2239
develop the app
svdimitr Nov 7, 2024
2c57c41
complete the home page
svdimitr Nov 8, 2024
91e6f48
add shopping cart
svdimitr Nov 11, 2024
fb9fddb
add payment details
filipKovachev Nov 12, 2024
6afdd1b
add button
filipKovachev Nov 12, 2024
bbcf1e7
add Thank you page
filipKovachev Nov 12, 2024
d0c1623
shopping cart
svdimitr Nov 12, 2024
490c8b0
link navigation
svdimitr Nov 12, 2024
6329826
add primary btns
svdimitr Nov 12, 2024
08c2cb2
polish shopping cart
svdimitr Nov 12, 2024
db61825
polish shopping cart
svdimitr Nov 12, 2024
9f30686
final polish:
svdimitr Nov 12, 2024
f89b19c
fix build errors
svdimitr Nov 13, 2024
fcfba30
fix build errors
svdimitr Nov 13, 2024
aac6800
removecolor palette button
svdimitr Nov 13, 2024
2ab47f8
add admin switching, item display logic, polish UI
filipKovachev Nov 14, 2024
c28b045
fix sampleDataItem
filipKovachev Nov 14, 2024
080e5a5
fixing build issues and feedback
svdimitr Nov 14, 2024
367aea6
remove errors
svdimitr Nov 14, 2024
8dcc4ee
delete a package lock file
svdimitr Nov 14, 2024
38d78b6
fix build errors
svdimitr Nov 14, 2024
983b16a
fix build errors
svdimitr Nov 14, 2024
d0ff53e
bump components and theme versions, fix build errors
filipKovachev Nov 14, 2024
7954384
build errors
svdimitr Nov 15, 2024
498cc97
Update README.md
filipKovachev Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions examples/ecommerce-jewellery-store/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
50 changes: 50 additions & 0 deletions examples/ecommerce-jewellery-store/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Currently, two official plugins are available:

- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh

## Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

- Configure the top-level `parserOptions` property like this:

```js
export default tseslint.config({
languageOptions: {
// other options...
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
},
})
```

- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
- Optionally add `...tseslint.configs.stylisticTypeChecked`
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:

```js
// eslint.config.js
import react from 'eslint-plugin-react'

export default tseslint.config({
// Set the react version
settings: { react: { version: '18.3' } },
plugins: {
// Add the react plugin
react,
},
rules: {
// other rules...
// Enable its recommended rules
...react.configs.recommended.rules,
...react.configs['jsx-runtime'].rules,
},
})
```
28 changes: 28 additions & 0 deletions examples/ecommerce-jewellery-store/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import tseslint from 'typescript-eslint'

export default tseslint.config(
{ ignores: ['dist'] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ['**/*.{ts,tsx}'],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
'react-hooks': reactHooks,
'react-refresh': reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
},
},
)
22 changes: 22 additions & 0 deletions examples/ecommerce-jewellery-store/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap"
rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>

</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>

</html>
Loading
Loading