Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import "select2/dist/css/select2.css";
import "bootstrap-slider/dist/css/bootstrap-slider.css";
import "jquery-bar-rating/dist/themes/css-stars.css";
import $ from "jquery";
import "jquery-ui/ui/widgets/datepicker.js";
import "select2/dist/js/select2.js";
import "jquery-bar-rating";
import "icheck/skins/square/blue.css";
window["$"] = window["jQuery"] = $;
SurveyJS.StylesManager.applyTheme("default");
const mapStateToProps = ({session, survey}) => ({
session,
survey
});
const mapDispatchToProps = dispatch => ({
logout: () => dispatch(logout()),
getSurvey: (surveyId) => dispatch(getSurvey(surveyId))
});
class Survey extends Component {
componentDidMount() {
const {surveyId} = this.props.match.params;
import "select2/dist/js/select2.js";
import "jquery-bar-rating";
import * as SurveyCore from "survey-core";
import * as SurveyPDF from "survey-pdf";
import * as widgets from "surveyjs-widgets";
import "pretty-checkbox/dist/pretty-checkbox.css";
//import "icheck/skins/square/blue.css";
window["$"] = window["jQuery"] = $;
//require("icheck");
export { MyQuestion } from "./MyQuestion";
Survey.StylesManager.applyTheme("default");
//widgets.icheck(Survey, $);
widgets.prettycheckbox(Survey);
//widgets.select2(Survey, $);
widgets.inputmask(Survey);
widgets.jquerybarrating(Survey, $);
widgets.jqueryuidatepicker(Survey, $);
widgets.nouislider(Survey);
widgets.select2tagbox(Survey, $);
widgets.signaturepad(Survey);
widgets.sortablejs(Survey);
widgets.ckeditor(Survey);
widgets.autocomplete(Survey, $);
widgets.bootstrapslider(Survey);
//widgets.icheck(SurveyCore, $);