Skip to content

Commit cdd3ee3

Browse files
committed
Update integrate-third-party-react-components
1 parent e56291e commit cdd3ee3

File tree

48 files changed

+1882
-242
lines changed

Some content is hidden

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

48 files changed

+1882
-242
lines changed

dashboard-table-view/react/src/pages/_app.jsx

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import '../styles/globals.css'
2+
import type { AppProps } from 'next/app'
3+
4+
export default function MyApp({ Component, pageProps }: AppProps) {
5+
return <Component {...pageProps} />
6+
}

get-started-analytics/react/src/pages/_app.jsx

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import '../styles/globals.css'
2+
import type { AppProps } from 'next/app'
3+
4+
export default function MyApp({ Component, pageProps }: AppProps) {
5+
return <Component {...pageProps} />
6+
}

get-started-creator/react/src/pages/_app.jsx

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import '../styles/globals.css'
2+
import type { AppProps } from 'next/app'
3+
4+
export default function MyApp({ Component, pageProps }: AppProps) {
5+
return <Component {...pageProps} />
6+
}

get-started-library/react/src/pages/_app.jsx

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import '../styles/globals.css'
2+
import type { AppProps } from 'next/app'
3+
4+
export default function MyApp({ Component, pageProps }: AppProps) {
5+
return <Component {...pageProps} />
6+
}

get-started-pdf/react/src/pages/_app.jsx

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import '../styles/globals.css'
2+
import type { AppProps } from 'next/app'
3+
4+
export default function MyApp({ Component, pageProps }: AppProps) {
5+
return <Component {...pageProps} />
6+
}

integrate-third-party-angular-components/src/app/color-picker/color-picker.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ locale.pe.colorPickerType = "Color picker type";
7373
locale.pe.disableAlpha = "Disable alpha channel";
7474

7575
// Register an SVG icon for the question type
76-
SvgRegistry.registerIconFromSvg(
76+
SvgRegistry.registerIcon(
7777
CUSTOM_TYPE,
7878
'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M24 21.4201C23.9387 22.1566 23.5894 22.8394 23.0278 23.3202C22.4662 23.8011 21.7376 24.0413 21 23.9888C20.2624 24.0413 19.5338 23.8011 18.9722 23.3202C18.4106 22.8394 18.0613 22.1566 18 21.4201C18 18.8513 21 16.2826 21 14.9932C21 16.2826 24 18.8513 24 21.4201ZM22 12.9942L11 1.99951L8.71 4.2884L10.12 5.70771L11 4.82814L18.17 11.9946L5.64 15.8028L2.83 12.9942L7.71 8.11653L9.29 9.70576C9.38296 9.79944 9.49356 9.8738 9.61542 9.92455C9.73728 9.97529 9.86799 10.0014 10 10.0014C10.132 10.0014 10.2627 9.97529 10.3846 9.92455C10.5064 9.8738 10.617 9.79944 10.71 9.70576C10.8037 9.61284 10.8781 9.5023 10.9289 9.3805C10.9797 9.2587 11.0058 9.12805 11.0058 8.99611C11.0058 8.86416 10.9797 8.73352 10.9289 8.61172C10.8781 8.48992 10.8037 8.37937 10.71 8.28645L3.71 1.28986C3.5217 1.10165 3.2663 0.995911 3 0.995911C2.7337 0.995911 2.4783 1.10165 2.29 1.28986C2.1017 1.47807 1.99591 1.73334 1.99591 1.99951C1.99591 2.26569 2.1017 2.52096 2.29 2.70917L6.29 6.70722L0 12.9942L10 22.9893L18 14.9932L22 12.9942Z" /></svg>'
7979
);

integrate-third-party-react-components/.gitignore

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,39 @@
33
# dependencies
44
/node_modules
55
/.pnp
6-
.pnp.js
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
712

813
# testing
914
/coverage
1015

16+
# next.js
17+
/.next/
18+
/out/
19+
1120
# production
1221
/build
1322

1423
# misc
1524
.DS_Store
16-
.env.local
17-
.env.development.local
18-
.env.test.local
19-
.env.production.local
25+
*.pem
2026

27+
# debug
2128
npm-debug.log*
2229
yarn-debug.log*
2330
yarn-error.log*
31+
.pnpm-debug.log*
32+
33+
# env files (can opt-in for committing if needed)
34+
.env*
35+
36+
# vercel
37+
.vercel
38+
39+
# typescript
40+
*.tsbuildinfo
41+
next-env.d.ts
Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
# Integrate Third-Party React Components into SurveyJS
1+
# Get Started with SurveyJS React Form Library
22

3-
This example is used in the following help topic: [Integrate Third-Party React Components](https://surveyjs.io/Documentation/Survey-Creator?id=third-party-component-integration-react). It was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3+
This example is used in the following help topic: [Add a Survey to a React Application](https://surveyjs.io/form-library/documentation/get-started-react). It is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/pages/api-reference/create-next-app).
44

5-
## Development server
5+
## Run the Application
66

7-
Run the app in the development mode:
8-
9-
```cmd
10-
npm run start
7+
```bash
8+
npm run dev
119
```
1210

13-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. The page will reload if you make edits.
11+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
/* config options here */
5+
reactStrictMode: true,
6+
};
7+
8+
export default nextConfig;

0 commit comments

Comments
 (0)