Skip to content

Commit 0c9ccc2

Browse files
committed
Refactor demo state.
1 parent 9e6bc6b commit 0c9ccc2

38 files changed

+2099
-1085
lines changed

gulpfile.babel.js

Lines changed: 444 additions & 131 deletions
Large diffs are not rendered by default.

package.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
"scripts": {
55
"test": "yarn eslint ./src/ui5/viz --ext .js --cache ",
66
"start":
7-
"NODE_ENV=development babel-node node_modules/gulp/bin/gulp.js --silent",
7+
"NODE_ENV=development DEV_PORT=3000 babel-node node_modules/gulp/bin/gulp.js --silent",
88
"start:verbose":
9-
"NODE_ENV=development babel-node node_modules/gulp/bin/gulp.js",
9+
"NODE_ENV=development DEV_PORT=3000 babel-node node_modules/gulp/bin/gulp.js",
1010
"start:dist":
11-
"NODE_ENV=production babel-node node_modules/gulp/bin/gulp.js testDist --silent",
11+
"NODE_ENV=production DEV_PORT=3000 babel-node node_modules/gulp/bin/gulp.js testDist",
1212
"build":
1313
"NODE_ENV=production babel-node node_modules/gulp/bin/gulp.js build --silent",
1414
"build:verbose":
@@ -31,8 +31,11 @@
3131
"homepage": "https://github.com/pulseshift/openui5-gulp-starter-kit#readme",
3232
"main": "src/demo/index.hbs",
3333
"ui5": {
34-
"cacheBuster": false,
3534
"indexTitle": "UI5 Visualization Library",
35+
"build": {
36+
"cacheBuster": false,
37+
"compression": false
38+
},
3639
"src": "cdn",
3740
"srcLinks": {
3841
"cdn": {
@@ -73,6 +76,7 @@
7376
"babelify": "^8.0.0",
7477
"browser-sync": "^2.18.13",
7578
"browserify": "^15.0.0",
79+
"connect-gzip-static": "^2.1.1",
7680
"del": "^3.0.0",
7781
"dox": "^0.9.0",
7882
"eslint": "^4.8.0",
@@ -82,7 +86,10 @@
8286
"fs-es6-promise": "^0.0.3",
8387
"gulp": "github:gulpjs/gulp#4.0",
8488
"gulp-babel": "^7.0.0",
89+
"gulp-brotli": "^1.2.1",
8590
"gulp-clean-css": "^3.9.0",
91+
"gulp-favicons": "^2.2.7",
92+
"gulp-gzip": "^1.4.2",
8693
"gulp-handlebars-html": "^0.0.2",
8794
"gulp-htmlmin": "^4.0.0",
8895
"gulp-if": "^2.0.1",

src/demo/c3-viz-fusion.html

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

src/demo/index.hbs

Lines changed: 39 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -31,91 +31,46 @@
3131

3232
<body>
3333
<h1>UI5 Visualization Library Demo</h1>
34-
<h2>1. Chart types</h2>
35-
<h3>1.1 Area charts</h3>
36-
<table>
37-
<tr>
38-
<td>
39-
<a href="/demo/index_demo_area-line.html">Area line</a>
40-
</td>
41-
</tr>
42-
<tr>
43-
<td>
44-
<a href="/demo/index_demo_area-spline.html">Area spline</a>
45-
</td>
46-
</tr>
47-
<tr>
48-
<td>
49-
<a href="/demo/index_demo_area-step.html">Area step</a>
50-
</td>
51-
</tr>
52-
</table>
53-
54-
55-
<h3>1.2 Line charts</h3>
56-
<table>
57-
<tr>
58-
<td>
59-
<a href="/demo/index_demo_line.html">Line</a>
60-
</td>
61-
</tr>
62-
<tr>
63-
<td>
64-
<a href="/demo/index_demo_spline.html">Spline</a>
65-
</td>
66-
</tr>
67-
<tr>
68-
<td>
69-
<a href="/demo/index_demo_step.html">Step</a>
70-
</td>
71-
</tr>
72-
</table>
73-
74-
75-
<h3>1.3 Other charts</h3>
76-
<table>
77-
<tr>
78-
<td>
79-
<a href="/demo/index_demo_bar.html">Bar</a>
80-
</td>
81-
</tr>
82-
</table>
83-
84-
85-
<h2>2. Axis options</h2>
86-
<h3>2.1 Tick options</h3>
87-
<h3>2.2 Other options</h3>
88-
<table>
89-
<tr>
90-
<td>
91-
<a href="/demo/index_demo_addyaxis.html">Additional y axis</a>
92-
</td>
93-
</tr>
94-
<tr>
95-
<td>
96-
<a href="/demo/index_demo_axis_rotated.html">Rotated axis</a>
97-
</td>
98-
</tr>
99-
</table>
100-
101-
102-
<h2>3. Interaction</h2>
103-
<table>
104-
<tr>
105-
<td>
106-
<a href="/demo/index_demo_subchart_zoom.html">Subchart & Zoom</a>
107-
</td>
108-
</tr>
109-
</table>
11034

35+
<p>Final demo is coming soon.</p>
36+
37+
<p>Deprecated demos:</p>
38+
39+
<h3>1. Chart types</h3>
40+
<h4>1.1 Area charts</h4>
41+
<ul>
42+
<li><a href="/demo/todo_refactor_to_final_demo/index_demo_area-line.html">Area line</a></li>
43+
<li><a href="/demo/todo_refactor_to_final_demo/index_demo_area-spline.html">Area spline</a></li>
44+
<li><a href="/demo/todo_refactor_to_final_demo/index_demo_area-step.html">Area step</a></li>
45+
</ul>
46+
47+
<h4>1.2 Line charts</h4>
48+
<ul>
49+
<li><a href="/demo/todo_refactor_to_final_demo/index_demo_line.html">Line</a></li>
50+
<li><a href="/demo/todo_refactor_to_final_demo/index_demo_spline.html">Spline</a></li>
51+
<li><a href="/demo/todo_refactor_to_final_demo/index_demo_step.html">Step</a></li>
52+
</ul>
53+
54+
<h4>1.3 Other charts</h4>
55+
<ul>
56+
<li><a href="/demo/todo_refactor_to_final_demo/index_demo_bar.html">Bar</a></li>
57+
</ul>
58+
59+
<h3>2. Axis options</h3>
60+
<h4>2.1 Tick options</h4>
61+
<h4>2.2 Other options</h4>
62+
<ul>
63+
<li><a href="/demo/todo_refactor_to_final_demo/index_demo_addyaxis.html">Additional y axis</a></li>
64+
<li><a href="/demo/todo_refactor_to_final_demo/index_demo_axis_rotated.html">Rotated axis</a></li>
65+
</ul>
66+
67+
<h3>3. Interaction</h3>
68+
<ul>
69+
<li><a href="/demo/todo_refactor_to_final_demo/index_demo_subchart_zoom.html">Subchart & Zoom</a></li>
70+
</ul>
11171

11272
<h2>4. C3 extension charts</h2>
113-
<table>
114-
<tr>
115-
<td>
116-
<a href="/demo/c3-viz-fusion.html">C3 viz fusion</a>
117-
</td>
118-
</tr>
119-
</table>
120-
73+
<ul>
74+
<li><a href="/demo/todo_refactor_to_final_demo/c3-viz-fusion.html">C3 viz fusion</a></li>
75+
</ul>
12176
</body>

src/demo/index_demo_addyaxis.html

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

0 commit comments

Comments
 (0)