Skip to content

Commit fcd96f1

Browse files
Update Vue 3 examples to SurveyJS v2.0 (#27)
* Update Dashboard example * Update Table View * Update the rest of the projects
1 parent fa05855 commit fcd96f1

File tree

86 files changed

+24737
-386
lines changed

Some content is hidden

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

86 files changed

+24737
-386
lines changed

Diff for: dashboard-table-view/react/src/components/Tabulator.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ interface INpsDataObject {
4444
}
4545

4646
function generateData(): Array<INpsDataObject> {
47-
const data = [];
47+
const data: Array<INpsDataObject> = [];
4848
for (let index = 0; index < 100; index++) {
4949
const satisfactionScore = randomIntFromInterval(1, 5);
5050
const npsScore = satisfactionScore > 3 ? randomIntFromInterval(7, 10) : randomIntFromInterval(1, 6);

Diff for: dashboard-table-view/vue/README.md

+2-12
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
# Table View - SurveyJS Dashboard for Vue
1+
# (Obsolete) Table View - SurveyJS Dashboard for Vue 2
22

3-
This example is used in the following help topic: [Table View for Survey Results in a Vue.js Application](https://surveyjs.io/dashboard/documentation/set-up-table-view/vue).
4-
5-
## Project setup
6-
```
7-
npm install
8-
```
9-
10-
### Compiles and hot-reloads for development
11-
```
12-
npm run serve
13-
```
3+
Use the [Vue 3](../vue3/) example instead.

Diff for: dashboard-table-view/vue/babel.config.js

-5
This file was deleted.

Diff for: dashboard-table-view/vue/jsconfig.json

-19
This file was deleted.

Diff for: dashboard-table-view/vue/package.json

-44
This file was deleted.

Diff for: dashboard-table-view/vue/public/index.html

-23
This file was deleted.

Diff for: dashboard-table-view/vue/src/App.vue

-19
This file was deleted.

Diff for: dashboard-table-view/vue/src/assets/logo.png

-6.69 KB
Binary file not shown.

Diff for: dashboard-table-view/vue/src/main.js

-8
This file was deleted.

Diff for: dashboard-table-view/vue/vue.config.js

-4
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
1-
.DS_Store
2-
node_modules
3-
/dist
4-
5-
6-
# local env files
7-
.env.local
8-
.env.*.local
9-
10-
# Log files
1+
# Logs
2+
logs
3+
*.log
114
npm-debug.log*
125
yarn-debug.log*
136
yarn-error.log*
147
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
.DS_Store
12+
dist
13+
dist-ssr
14+
coverage
15+
*.local
16+
17+
/cypress/videos/
18+
/cypress/screenshots/
1519

1620
# Editor directories and files
21+
.vscode/*
22+
!.vscode/extensions.json
1723
.idea
18-
.vscode
1924
*.suo
2025
*.ntvs*
2126
*.njsproj
2227
*.sln
2328
*.sw?
29+
30+
*.tsbuildinfo

Diff for: dashboard-table-view/vue3/.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["Vue.volar"]
3+
}

Diff for: dashboard-table-view/vue3/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Table View - SurveyJS Dashboard for Vue.js
2+
3+
This example is used in the following help topic: [Table View for Survey Results in a Vue.js Application](https://surveyjs.io/dashboard/documentation/set-up-table-view/vue).
4+
5+
## Project Setup
6+
7+
```sh
8+
npm install
9+
```
10+
11+
### Compile and Hot-Reload for Development
12+
13+
```sh
14+
npm run dev
15+
```

Diff for: dashboard-table-view/vue3/env.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/// <reference types="vite/client" />

Diff for: dashboard-table-view/vue3/index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Vite App</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)