Skip to content

Commit 09ded07

Browse files
committed
Remove custom widgets and non-working DataTables view
1 parent b7a9fc1 commit 09ded07

File tree

10 files changed

+30921
-124
lines changed

10 files changed

+30921
-124
lines changed

package-lock.json

Lines changed: 30916 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"survey-creator-knockout": "latest",
2121
"survey-pdf": "latest",
2222
"survey-vue": "latest",
23-
"surveyjs-widgets": "latest",
2423
"vue": "^2.6.11",
2524
"vue-router": "^3.1.6",
2625
"xlsx": "^0.16.9"

public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width,initial-scale=1.0">
77
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
88
<script src="https://cdn.ckeditor.com/4.14.1/standard/ckeditor.js"></script>
9-
<title>SurveyJS + Vue App</title>
9+
<title>SurveyJS + Vue 2 App</title>
1010
</head>
1111
<body style="margin: 0;">
1212
<noscript>

src/App.vue

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<nav class="navbar navbar-default">
44
<div class="container-fluid">
55
<div class="navbar-header">
6-
<a class="navbar-brand" href="/">SurveyJS + Vue</a>
6+
<a class="navbar-brand" href="/">SurveyJS + Vue 2</a>
77
</div>
88
<ul class="nav navbar-nav">
99
<li>
@@ -24,9 +24,6 @@
2424
<li>
2525
<router-link to="/analyticstabulator">Results Table</router-link>
2626
</li>
27-
<li>
28-
<router-link to="/analyticsdatatables">Results Table (IE Support)</router-link>
29-
</li>
3027
</ul>
3128
</div>
3229
</nav>
@@ -53,8 +50,6 @@ const Analytics = () =>
5350
import(/* webpackChunkName: "creator" */ "./views/Analytics.vue");
5451
const AnalyticsTabulator = () =>
5552
import(/* webpackChunkName: "creator" */ "./views/AnalyticsTabulator.vue");
56-
const AnalyticsDatatables = () =>
57-
import(/* webpackChunkName: "creator" */ "./views/AnalyticsDatatables.vue");
5853
5954
const router = new VueRouter({
6055
mode: "history",
@@ -78,8 +73,7 @@ const router = new VueRouter({
7873
{ path: "/creator", component: Creator },
7974
{ path: "/exportpdf", component: ExportToPDF },
8075
{ path: "/analytics", component: Analytics },
81-
{ path: "/analyticstabulator", component: AnalyticsTabulator },
82-
{ path: "/analyticsdatatables", component: AnalyticsDatatables },
76+
{ path: "/analyticstabulator", component: AnalyticsTabulator }
8377
],
8478
});
8579

src/components/SurveyCreator.vue

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,9 @@
44

55
<script>
66
import { SurveyCreator } from "survey-creator-knockout";
7-
8-
import * as Survey from "survey-core";
9-
import * as widgets from "surveyjs-widgets";
10-
import { init as customWidget } from "../components/customwidget";
11-
127
import "survey-core/defaultV2.css";
138
import "survey-creator-core/survey-creator-core.css";
149
15-
// widgets.icheck(Survey);
16-
widgets.select2(Survey);
17-
widgets.inputmask(Survey);
18-
widgets.jquerybarrating(Survey);
19-
widgets.jqueryuidatepicker(Survey);
20-
widgets.nouislider(Survey);
21-
widgets.select2tagbox(Survey);
22-
widgets.sortablejs(Survey);
23-
widgets.ckeditor(Survey);
24-
widgets.autocomplete(Survey);
25-
widgets.bootstrapslider(Survey);
26-
customWidget(Survey);
27-
2810
export default {
2911
name: "survey-creator",
3012
props: ['json'],

src/components/customwidget.js

Lines changed: 0 additions & 55 deletions
This file was deleted.

src/views/AnalyticsDatatables.vue

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/views/AnalyticsTabulator.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<template>
22
<div>
33
<h1>Survey Analytics - Table View</h1>
4-
<span>Uses Tabulator supported only by modern browsers.</span>
54
<div id="tableContainer"></div>
65
</div>
76
</template>

src/views/ExportToPDF.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<p>SurveyJS PDF Export is a client-side extension over the SurveyJS Library that enables users to save surveys as PDF documents.</p>
66
<p>NOTE: Dynamic elements and characteristics (visibility, validation, navigation buttons) are not supported.</p>
77
<p>Click the button below to export survey to a PDF document.</p>
8-
<button v-on:click="savePDF">Save as PDF</button>
8+
<button class="btn btn-primary" v-on:click="savePDF">Save as PDF</button>
99
</div>
1010
</div>
1111
</template>

src/views/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div class="col-lg-3 centered">
44
<img src="../assets/logo.png" />
55
</div>
6-
<h1>SurveyJS + Vue Quickstart Template</h1>
6+
<h1>SurveyJS + Vue 2 Quickstart Template</h1>
77
<div class="col-lg-9 jumbotron">
88
<p>
99
SurveyJS is a set of JavaScript components that allow you and your users to build surveys / forms, store them in your database, and visualize survey results for data analysis. This quick start template uses the following SurveyJS components:

0 commit comments

Comments
 (0)