Skip to content

Commit dc5b438

Browse files
authored
Merge pull request #2687 from telerik/vite-ecommerce-sample-app
Vite ecommerce sample app
2 parents d6c7276 + 498cc97 commit dc5b438

File tree

101 files changed

+8541
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+8541
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
## The following KendoReact components are used in the sample application:
2+
3+
- [Data Grid](https://www.telerik.com/kendo-react-ui/components/grid/)
4+
5+
- [Chart](https://www.telerik.com/kendo-react-ui/components/chart/)
6+
7+
- [ChartWizard](https://www.telerik.com/kendo-react-ui/components/chart-wizard)
8+
9+
- [DropdownList](https://www.telerik.com/kendo-react-ui/components/dropdowns/dropdownlist)
10+
11+
- [Input](https://www.telerik.com/kendo-react-ui/components/inputs/input)
12+
13+
- [MaskedTextBox](https://www.telerik.com/kendo-react-ui/components/inputs/maskedtextbox)
14+
15+
- [Appbar](https://www.telerik.com/kendo-react-ui/components/layout/appbar)
16+
17+
- [Button](https://www.telerik.com/kendo-react-ui/components/buttons/button)
18+
19+
- [Form](https://www.telerik.com/kendo-react-ui/components/form)
20+
21+
## Prerequisites
22+
23+
- Node.js [18.17](https://nodejs.org/en) or later.
24+
- macOS, Windows (including WSL), and Linux are supported.
25+
26+
## Installation
27+
28+
Run `npm install`
29+
30+
## Available Scripts
31+
In the project directory, you can run:
32+
33+
### `npm run build`
34+
Build the application for production usage.
35+
36+
### `npm run dev`
37+
Start a Vite production server.
38+
39+
### `npm run lint`
40+
Check for linting errors.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
7+
export default tseslint.config(
8+
{ ignores: ['dist'] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ['**/*.{ts,tsx}'],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
'react-hooks': reactHooks,
18+
'react-refresh': reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
'react-refresh/only-export-components': [
23+
'warn',
24+
{ allowConstantExport: true },
25+
],
26+
},
27+
},
28+
)
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8" />
6+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
7+
<link rel="preconnect" href="https://fonts.googleapis.com">
8+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
9+
<link
10+
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"
11+
rel="stylesheet">
12+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
13+
<title>Ecommerce Jewellery Store</title>
14+
15+
</head>
16+
17+
<body>
18+
<div id="root"></div>
19+
<script type="module" src="/src/main.tsx"></script>
20+
</body>
21+
22+
</html>

0 commit comments

Comments
 (0)