Skip to content

Commit

Permalink
Create standalone survey UI package (#8537)
Browse files Browse the repository at this point in the history
* Fixed jquery-ui bundle size

* Added localization to test pages

* Added example/test pages and functional/visual test scripts

* Fixed example page

* Get rid of unneeded build artifacts

* Try to fix f- and vr- tests

* Try to fix f- and vr- tests

* Fixed lint

* Fixed f-tests

* Fixed ranking item template test

* Fixed vr-tests

---------

Co-authored-by: tsv2013 <[email protected]>
  • Loading branch information
tsv2013 and tsv2013 authored Jul 11, 2024
1 parent 1f21856 commit b25059b
Show file tree
Hide file tree
Showing 26 changed files with 1,230 additions and 250 deletions.
17 changes: 0 additions & 17 deletions build-scripts/survey-jquery-ui/tsconfig.plugins.themes.typing.json

This file was deleted.

5 changes: 0 additions & 5 deletions build-scripts/survey-jquery-ui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ var packageJson = require("./package.json");
var path = require("path");

const config = {
entry: {
survey: path.resolve(__dirname, "../../src/main.scss"),
modern: path.resolve(__dirname, "../../src/modern.scss"),
defaultV2: path.resolve(__dirname, "../../src/defaultV2-theme/defaultV2.scss")
},
resolve: {
alias: {
"react": "preact/compat",
Expand Down
77 changes: 0 additions & 77 deletions build-scripts/survey-jquery-ui/webpack.themes.config.js

This file was deleted.

17 changes: 0 additions & 17 deletions build-scripts/survey-ui/tsconfig.plugins.themes.typing.json

This file was deleted.

5 changes: 0 additions & 5 deletions build-scripts/survey-ui/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@ var packageJson = require("./package.json");
var path = require("path");

const config = {
entry: {
survey: path.resolve(__dirname, "../../src/main.scss"),
modern: path.resolve(__dirname, "../../src/modern.scss"),
defaultV2: path.resolve(__dirname, "../../src/defaultV2-theme/defaultV2.scss")
},
resolve: {
alias: {
"react": "preact/compat",
Expand Down
77 changes: 0 additions & 77 deletions build-scripts/survey-ui/webpack.themes.config.js

This file was deleted.

6 changes: 3 additions & 3 deletions examples/jquery-ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />

<!-- <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css"> -->
<!-- <link rel="stylesheet" href="../../build/survey-jquery-ui/survey.css" /> -->
<!-- <link rel="stylesheet" href="../../build/survey-jquery-ui/modern.css" /> -->
<link rel="stylesheet" href="../../build/survey-jquery-ui/defaultV2.css" />
<!-- <link rel="stylesheet" href="../../build/survey-core/survey.css" /> -->
<!-- <link rel="stylesheet" href="../../build/survey-core/modern.css" /> -->
<link rel="stylesheet" href="../../build/survey-core/defaultV2.css" />
<script src="../../build/survey-core/survey.core.js"></script>
<script src="../../build/survey-jquery-ui/survey-jquery-ui.js"></script>
</head>
Expand Down
23 changes: 23 additions & 0 deletions examples/survey-ui/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Welcome to JQuery</title>


<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1" />

<!-- <link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/css/bootstrap.min.css"> -->
<!-- <link rel="stylesheet" href="../../build/survey-core/survey.css" /> -->
<!-- <link rel="stylesheet" href="../../build/survey-core/modern.css" /> -->
<link rel="stylesheet" href="../../build/survey-core/defaultV2.css" />
<script src="../../build/survey-core/survey.core.js"></script>
<script src="../../build/survey-ui/survey-ui.js"></script>
</head>

<body>
<div id="surveyElement"></div>
<div id="surveyResultElement"></div>
<script src="./index.js"></script>
</body>
</html>
Loading

0 comments on commit b25059b

Please sign in to comment.