Skip to content

Commit 021f30c

Browse files
Merge pull request #1824 from telerik/kendo-react-ssr-app
chore: add kendo-react-ssr app
2 parents ca75af3 + b524900 commit 021f30c

File tree

23 files changed

+11763
-1
lines changed

23 files changed

+11763
-1
lines changed

examples/coffee-warehouse-nextjs/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
This project has been released under the [Apache License, version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html), the text of which is included below. This license applies ONLY to the source of this repository and does not extend to any other Kendo UI distribution or variant, or any other 3rd party libraries used in a repository. For licensing information about KendoReact, see the [License Agreements page](https://www.telerik.com/purchase/license-agreement/progress-kendoreact) at [KendoReact.com](http://www.kendoreact.com).
22

3-
> Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates.
3+
> Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates.
44

55
> Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

examples/kendo-react-ssr/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright © 2024 Progress Software Corporation and/or its subsidiaries or affiliates.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

examples/kendo-react-ssr/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Setup
2+
3+
To start the project and use the Server-side rendering execute the following commands:
4+
5+
1. yarn install
6+
1. yarn build
7+
1. yarn ssr
8+
9+
The applciation should be loaded on locahost:8000.
10+
11+
Inspect the received `index.html` file to observed how the KendoReact Grid is received pre-rendered on the server.
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"name": "kendo-react-ssr",
3+
"version": "0.1.0",
4+
"private": true,
5+
"dependencies": {
6+
"@babel/preset-env": "^7.23.5",
7+
"@babel/preset-react": "^7.23.3",
8+
"@babel/register": "^7.22.15",
9+
"@progress/kendo-data-query": "^1.7.0",
10+
"@progress/kendo-date-math": "^1.5.12",
11+
"@progress/kendo-drawing": "^1.19.0",
12+
"@progress/kendo-inputs-common": "^3.1.0",
13+
"@progress/kendo-intl": "^3.1.1",
14+
"@progress/kendo-licensing": "^1.3.3",
15+
"@progress/kendo-popup-common": "^1.9.2",
16+
"@progress/kendo-react-animation": "^7.0.2",
17+
"@progress/kendo-react-buttons": "^7.0.2",
18+
"@progress/kendo-react-common": "^7.0.2",
19+
"@progress/kendo-react-data-tools": "^7.0.2",
20+
"@progress/kendo-react-dateinputs": "^7.0.2",
21+
"@progress/kendo-react-dialogs": "^7.0.2",
22+
"@progress/kendo-react-dropdowns": "^7.0.2",
23+
"@progress/kendo-react-grid": "^7.0.2",
24+
"@progress/kendo-react-inputs": "^7.0.2",
25+
"@progress/kendo-react-intl": "^7.0.2",
26+
"@progress/kendo-react-labels": "^7.0.2",
27+
"@progress/kendo-react-layout": "^7.0.2",
28+
"@progress/kendo-react-popup": "^7.0.2",
29+
"@progress/kendo-react-progressbars": "^7.0.2",
30+
"@progress/kendo-react-tooltip": "^7.0.2",
31+
"@progress/kendo-react-treeview": "^7.0.2",
32+
"@progress/kendo-theme-default": "^7.0.2",
33+
"@testing-library/jest-dom": "^6.1.5",
34+
"@testing-library/react": "^14.1.2",
35+
"@testing-library/user-event": "^14.5.1",
36+
"express": "^4.18.2",
37+
"ignore-styles": "^5.0.1",
38+
"react": "^18.2.0",
39+
"react-dom": "^18.2.0",
40+
"react-scripts": "5.0.1",
41+
"react-transition-group": "^4.4.5",
42+
"rewire": "^7.0.0"
43+
},
44+
"scripts": {
45+
"start": "react-scripts start",
46+
"build": "react-scripts build",
47+
"test": "react-scripts test",
48+
"eject": "react-scripts eject",
49+
"ssr": "node server/index.js"
50+
},
51+
"eslintConfig": {
52+
"extends": "react-app"
53+
},
54+
"browserslist": {
55+
"production": [
56+
">0.2%",
57+
"not dead",
58+
"not op_mini all"
59+
],
60+
"development": [
61+
"last 1 chrome version",
62+
"last 1 firefox version",
63+
"last 1 safari version"
64+
]
65+
}
66+
}
3.08 KB
Binary file not shown.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web site created using create-react-app"
11+
/>
12+
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
13+
<!--
14+
manifest.json provides metadata used when your web app is installed on a
15+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16+
-->
17+
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
18+
<!--
19+
Notice the use of %PUBLIC_URL% in the tags above.
20+
It will be replaced with the URL of the `public` folder during the build.
21+
Only files inside the `public` folder can be referenced from the HTML.
22+
23+
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
24+
work correctly both with client-side routing and a non-root public URL.
25+
Learn how to configure a non-root public URL by running `npm run build`.
26+
-->
27+
<title>React App</title>
28+
</head>
29+
<body>
30+
<noscript>You need to enable JavaScript to run this app.</noscript>
31+
<div id="root"></div>
32+
<!--
33+
This HTML file is a template.
34+
If you open it directly in the browser, you will see an empty page.
35+
36+
You can add webfonts, meta tags, or analytics to this file.
37+
The build step will place the bundled scripts into the <body> tag.
38+
39+
To begin the development, run `npm start` or `yarn start`.
40+
To create a production bundle, use `npm run build` or `yarn build`.
41+
-->
42+
</body>
43+
</html>
5.22 KB
Loading
9.44 KB
Loading
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"short_name": "React App",
3+
"name": "Create React App Sample",
4+
"icons": [
5+
{
6+
"src": "favicon.ico",
7+
"sizes": "64x64 32x32 24x24 16x16",
8+
"type": "image/x-icon"
9+
},
10+
{
11+
"src": "logo192.png",
12+
"type": "image/png",
13+
"sizes": "192x192"
14+
},
15+
{
16+
"src": "logo512.png",
17+
"type": "image/png",
18+
"sizes": "512x512"
19+
}
20+
],
21+
"start_url": ".",
22+
"display": "standalone",
23+
"theme_color": "#000000",
24+
"background_color": "#ffffff"
25+
}

0 commit comments

Comments
 (0)