Skip to content

Commit 83d8ecd

Browse files
Merge pull request #2926 from telerik/freemium-sample-app
Freemium sample app
2 parents 83e9ac2 + d1ec180 commit 83d8ecd

Some content is hidden

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

47 files changed

+6780
-3
lines changed

.github/dependabot.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,24 @@ updates:
108108
labels:
109109
- "Dependencies"
110110

111+
- package-ecosystem: "npm"
112+
directory: "/examples/kendo-react-freemium"
113+
schedule:
114+
interval: "daily"
115+
groups:
116+
kendo-dependencies:
117+
patterns:
118+
- '@progress/kendo-*'
119+
allow:
120+
- dependency-name: '@progress/kendo-*'
121+
commit-message:
122+
prefix: "chore:"
123+
reviewers:
124+
- "telerik/kendo-react-devs"
125+
- "telerik/kendo-react-support"
126+
labels:
127+
- "Dependencies"
128+
111129
- package-ecosystem: "npm"
112130
directory: "/examples/kendo-react-homepage-demo"
113131
schedule:

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-24.04
1515

1616
steps:
1717
- name: Use NodeJS v18
@@ -41,6 +41,8 @@ jobs:
4141
- 'examples/kendo-react-file-manager/**'
4242
kendo-react-finance-portfolio:
4343
- 'examples/kendo-react-finance-portfolio/**'
44+
kendo-react-freemium:
45+
- 'examples/kendo-react-freemium/**'
4446
kendo-react-homepage-demo:
4547
- 'examples/kendo-react-homepage-demo/**'
4648
kendo-react-nextjs:
@@ -113,6 +115,13 @@ jobs:
113115
npm ci
114116
npm run build
115117
118+
- name: Build Kendo React Freemium app
119+
working-directory: ./examples/kendo-react-freemium
120+
if: steps.changes.outputs.kendo-react-freemium == 'true'
121+
run: |
122+
npm ci
123+
npm run build
124+
116125
- name: Build Homepage demo app
117126
working-directory: ./examples/kendo-react-homepage-demo
118127
if: steps.changes.outputs.kendo-react-homepage-demo == 'true'
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: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# React + TypeScript + Vite
2+
3+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4+
5+
Currently, two official plugins are available:
6+
7+
- [@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
8+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9+
10+
## Expanding the ESLint configuration
11+
12+
If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:
13+
14+
- Configure the top-level `parserOptions` property like this:
15+
16+
```js
17+
export default tseslint.config({
18+
languageOptions: {
19+
// other options...
20+
parserOptions: {
21+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
22+
tsconfigRootDir: import.meta.dirname,
23+
},
24+
},
25+
})
26+
```
27+
28+
- Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked`
29+
- Optionally add `...tseslint.configs.stylisticTypeChecked`
30+
- Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config:
31+
32+
```js
33+
// eslint.config.js
34+
import react from 'eslint-plugin-react'
35+
36+
export default tseslint.config({
37+
// Set the react version
38+
settings: { react: { version: '18.3' } },
39+
plugins: {
40+
// Add the react plugin
41+
react,
42+
},
43+
rules: {
44+
// other rules...
45+
// Enable its recommended rules
46+
...react.configs.recommended.rules,
47+
...react.configs['jsx-runtime'].rules,
48+
},
49+
})
50+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
declare module "*.svg" {
2+
const content: string;
3+
export default content;
4+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>Vite + KendoReact</title>
8+
</head>
9+
<body class="k-body">
10+
<div id="root"></div>
11+
<script type="module" src="/src/main.tsx"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)