Skip to content

Commit

Permalink
Remove custom widgets and non-working DataTables view
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanTsukanov committed Feb 5, 2025
1 parent b7a9fc1 commit 09ded07
Show file tree
Hide file tree
Showing 10 changed files with 30,921 additions and 124 deletions.
30,916 changes: 30,916 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"survey-creator-knockout": "latest",
"survey-pdf": "latest",
"survey-vue": "latest",
"surveyjs-widgets": "latest",
"vue": "^2.6.11",
"vue-router": "^3.1.6",
"xlsx": "^0.16.9"
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<script src="https://cdn.ckeditor.com/4.14.1/standard/ckeditor.js"></script>
<title>SurveyJS + Vue App</title>
<title>SurveyJS + Vue 2 App</title>
</head>
<body style="margin: 0;">
<noscript>
Expand Down
10 changes: 2 additions & 8 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="/">SurveyJS + Vue</a>
<a class="navbar-brand" href="/">SurveyJS + Vue 2</a>
</div>
<ul class="nav navbar-nav">
<li>
Expand All @@ -24,9 +24,6 @@
<li>
<router-link to="/analyticstabulator">Results Table</router-link>
</li>
<li>
<router-link to="/analyticsdatatables">Results Table (IE Support)</router-link>
</li>
</ul>
</div>
</nav>
Expand All @@ -53,8 +50,6 @@ const Analytics = () =>
import(/* webpackChunkName: "creator" */ "./views/Analytics.vue");
const AnalyticsTabulator = () =>
import(/* webpackChunkName: "creator" */ "./views/AnalyticsTabulator.vue");
const AnalyticsDatatables = () =>
import(/* webpackChunkName: "creator" */ "./views/AnalyticsDatatables.vue");
const router = new VueRouter({
mode: "history",
Expand All @@ -78,8 +73,7 @@ const router = new VueRouter({
{ path: "/creator", component: Creator },
{ path: "/exportpdf", component: ExportToPDF },
{ path: "/analytics", component: Analytics },
{ path: "/analyticstabulator", component: AnalyticsTabulator },
{ path: "/analyticsdatatables", component: AnalyticsDatatables },
{ path: "/analyticstabulator", component: AnalyticsTabulator }
],
});
Expand Down
18 changes: 0 additions & 18 deletions src/components/SurveyCreator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,9 @@

<script>
import { SurveyCreator } from "survey-creator-knockout";
import * as Survey from "survey-core";
import * as widgets from "surveyjs-widgets";
import { init as customWidget } from "../components/customwidget";
import "survey-core/defaultV2.css";
import "survey-creator-core/survey-creator-core.css";
// widgets.icheck(Survey);
widgets.select2(Survey);
widgets.inputmask(Survey);
widgets.jquerybarrating(Survey);
widgets.jqueryuidatepicker(Survey);
widgets.nouislider(Survey);
widgets.select2tagbox(Survey);
widgets.sortablejs(Survey);
widgets.ckeditor(Survey);
widgets.autocomplete(Survey);
widgets.bootstrapslider(Survey);
customWidget(Survey);
export default {
name: "survey-creator",
props: ['json'],
Expand Down
55 changes: 0 additions & 55 deletions src/components/customwidget.js

This file was deleted.

38 changes: 0 additions & 38 deletions src/views/AnalyticsDatatables.vue

This file was deleted.

1 change: 0 additions & 1 deletion src/views/AnalyticsTabulator.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<template>
<div>
<h1>Survey Analytics - Table View</h1>
<span>Uses Tabulator supported only by modern browsers.</span>
<div id="tableContainer"></div>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/ExportToPDF.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<p>SurveyJS PDF Export is a client-side extension over the SurveyJS Library that enables users to save surveys as PDF documents.</p>
<p>NOTE: Dynamic elements and characteristics (visibility, validation, navigation buttons) are not supported.</p>
<p>Click the button below to export survey to a PDF document.</p>
<button v-on:click="savePDF">Save as PDF</button>
<button class="btn btn-primary" v-on:click="savePDF">Save as PDF</button>
</div>
</div>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/views/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="col-lg-3 centered">
<img src="../assets/logo.png" />
</div>
<h1>SurveyJS + Vue Quickstart Template</h1>
<h1>SurveyJS + Vue 2 Quickstart Template</h1>
<div class="col-lg-9 jumbotron">
<p>
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:
Expand Down

0 comments on commit 09ded07

Please sign in to comment.