Skip to content

Commit 3b23573

Browse files
authored
Merge pull request #154 from highcharts/ui-experiment
Merge in version 0.2.0
2 parents 8604426 + cfcf143 commit 3b23573

File tree

231 files changed

+5634
-39973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

231 files changed

+5634
-39973
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ rules:
1010
no-unmodified-loop-condition: 0
1111
object-curly-spacing: [2, "always"]
1212
operator-linebreak: [2, "after"]
13-
space-before-function-paren: [2, {"anonymous": "always", "named": "never"}] # JSLint style
13+
# space-before-function-paren: [2, {"anonymous": "always", "named": "never"}] # JSLint style
1414
strict: 0
1515
quotes: [2, "single"]

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 0.2.0-beta-preview
1+
# 0.2.0-rc1
22
* Added `complete` target to build script which bakes in all modules and advanced mode into one source file
33
* Re-implemented advanced view: now has a smaller footprint, and bugs regarding arrays are fixed
44
* Grid data importer is now the default (can be disabled by overriding `features` when instancing the editor)
@@ -8,12 +8,19 @@
88
* Templates now have sample data sets associated with them
99
* Module system for product bundles: Highstock support now lives in its own module so that it's easier to include just what's needed. This is the first step in enabling maps support.
1010
* WordPress plugin now has a settings page (Under "Settings" in the WP admin panel) where advanced mode, and Highstock support can be toggled
11+
* New design
12+
* New modal-based help system
13+
* Highcharts Cloud integrations - save/load charts to/from the cloud
14+
* Google Spreadsheets now integrated out-of-the-box
15+
* Template thumbnails are now part of the editor rather than linking to cloud.highcharts.com
1116
* Misc bug fixes and enhancements
17+
* Editor plugins are now deprecated: use `editor.on('ChartChangedLately'..)` instead.
1218
* Custom wizard steps can now be added using the `highed.plugins.step` interface
1319
* Added sticky chart properties. See [wiki](https://github.com/highcharts/highcharts-editor/wiki/Sticky-Chart-Options).
1420
* Added `highed.options` to set multiple options in one call.
1521
* Added `defaultLanguage` to global options
1622
* Added `includeCDNInExport` to global options, which when false will not include CDN references in HTML exports
23+
* Added `thumbnailURL` to global options, which allows for specifying where to fetch the template thumbnails from
1724

1825
## NOTES
1926

README.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ Highcharts Editor
55

66
# IMPORTANT NOTICE
77

8-
**The Highcharts Editor is currently in Beta. The master branch is not suited for production - use one of the [pre-built releases](https://github.com/highcharts/highcharts-editor/releases).
8+
**The Highcharts Editor is currently in Beta. The master branch is not suited for production - use one of the [pre-built releases](https://github.com/highcharts/highcharts-editor/releases).**
99

1010
## Introduction
1111

12-
![screenshots/customize.png](screenshots/customize.png)
12+
![screenshots/customize.png](screenshots/new_design.png)
1313

1414
**[Click here for live demos](http://editor.highcharts.com)**
1515

@@ -21,11 +21,28 @@ It requires no back-end service to operate.
2121
* Light on dependencies: requires only Highcharts, FontAwesome, and (optionally) two Google Fonts
2222
* Lightweight: weighs in at ~40kb minified and gzipped
2323
* 100% client-side
24+
* Integration with Highcharts Cloud
2425
* Outputs embeddable HTML, JavaScript, and JSON
25-
* Optional wizard-style interface
2626
* Highly configurable
2727
* Plug-in system
2828

29+
## Note about upgrading from 0.1.3
30+
31+
The transition from 0.1.3 to 0.2.0 introduces some fundemental changes.
32+
33+
Most notable is the complete design overhaul.
34+
35+
There are however also changes to the way the editor is built.
36+
37+
Previously, templates were part of the default build - now, templates are bundled
38+
in separate product bundles. This means that in order for the default templates to
39+
show up, `highcharts-editor.with.modules.min.js` must also be included.
40+
41+
Alternatively, include `highcharts-editor.complete.js` which includes the editor itself, all templates,
42+
and advanced mode baked into a single file.
43+
44+
A full list of changes can be found [here](CHANGELOG.md).
45+
2946
## Installing and Building
3047

3148
**Pre-built**
@@ -45,6 +62,7 @@ You can find these [here](https://github.com/highcharts/highcharts-editor/releas
4562
* `gulp`: Builds distribution packages for the editor and the bundled integrations and plugins
4663
* `gulp electron`: Builds Electron packages for Windows/Linux/OSX
4764
* `gulp with-advanced`: Builds packages for the advanced editor which exposes all API settings
65+
* `gulp complete`: Builds a complete bundle with advanced mode, and all supported modules
4866

4967
**Notice for windows users:** You need [7zip](http://www.7-zip.org/) installed and added to your path for `gulp electron` to work!
5068

@@ -89,22 +107,14 @@ A number of example integrations are included in the editor:
89107
* [Electron](https://github.com/highcharts/highcharts-editor/wiki/Native-OSX-Windows-Linux)
90108
* [CKEditor](https://github.com/highcharts/highcharts-editor/wiki/CKEditor)
91109

92-
## API Reference & General Documentation
93-
94-
* [API reference](https://github.com/highcharts/highcharts-editor/wiki/API)
110+
## General Documentation
95111
* [Full documentation](https://github.com/highcharts/highcharts-editor/wiki)
96112
* [Using plug-ins](https://github.com/highcharts/highcharts-editor/wiki/Plugins)
97113
* [Enabling the advanced editor](https://github.com/highcharts/highcharts-editor/wiki/Enable-Advanced-Customization)
98114
* [Customizing available editable properties](https://github.com/highcharts/highcharts-editor/wiki/Choosing-Options)
99115
* [Adding custom templates](https://github.com/highcharts/highcharts-editor/wiki/Custom-Templates)
100116
* [Disabling editor features](https://github.com/highcharts/highcharts-editor/wiki/Disable-Features)
101117

102-
Documentation can also be generated offline by running `js-skald` in the project root, which outputs the API reference
103-
in the `docs/`.
104-
105-
`js-skald` is a simple doc generator that outputs markdown files and JSON trees representing the code.
106-
It can be installed by running `npm install -g js-skald`.
107-
108118
## License
109119

110120
The editor is licensed under [MIT](LICENSE).

ROADMAP.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,9 @@
6060
* Wordpress
6161
* CKEditor
6262

63-
## 0.2.0: Initial non-beta release, date TBA
63+
## Upcoming
6464

65-
*Main focus will be bug fixes and general improvements*
66-
67-
**Editor Features**
68-
69-
* Sample data for each template
70-
* Interface for multiple axis in simple view
71-
* Property search
72-
65+
* Maps support
66+
* Annotations support
67+
* Convert to JSDoc instead of jskald
68+
* Property searching

bin/cli.js

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
#!/usr/bin/env node
2+
3+
/*******************************************************************************
4+
5+
Copyright (c) 2016-2017, Highsoft
6+
7+
Permission is hereby granted, free of charge, to any person obtaining
8+
a copy of this software and associated documentation files (the
9+
"Software"), to deal in the Software without restriction, including
10+
without limitation the rights to use, copy, modify, merge, publish,
11+
distribute, sublicense, and/or sell copies of the Software, and to
12+
permit persons to whom the Software is furnished to do so, subject to
13+
the following conditions:
14+
15+
The above copyright notice and this permission notice shall be
16+
included in all copies or substantial portions of the Software.
17+
18+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
21+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
22+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
23+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
24+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
25+
26+
******************************************************************************/
27+
28+
const fs = require('fs');
29+
const mkdir = require('mkdirp');
30+
const args = process.argv;
31+
32+
const options = {
33+
help: {
34+
help: [
35+
'Displays help information.',
36+
'Use help [category] to see help on specific topics, e.g. "help module"'
37+
]
38+
},
39+
module: {
40+
help: [
41+
'Module functions.'
42+
],
43+
subs: {
44+
init: {
45+
help: [
46+
'Scaffold a new editor module.'
47+
]
48+
},
49+
build: {
50+
help: [
51+
'Build the module.',
52+
'The minified module ends up in the dist/ folder.'
53+
]
54+
}
55+
}
56+
}
57+
};
58+
59+
require('colors');
60+
61+
// Print help
62+
function help(cat) {
63+
var c = options[cat] || options;
64+
65+
Object.keys(c).forEach(function (key) {
66+
console.log(key.bold, c[key].help.join('\n');
67+
});
68+
}
69+
70+
//Handle args
71+
args.forEach(function (a) {
72+
73+
});
74+
75+
76+

bin/www

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ app.use('/css', expressLess(__dirname + '/../less', {
9292
debug: true
9393
}));
9494

95+
app.use('/help', express.static(__dirname + '/../res/help'));
96+
app.use('/gen_src', express.static(__dirname + '/../generated_src'));
9597
app.use('/src', express.static(__dirname + '/../src'));
9698
app.use('/plugins', express.static(__dirname + '/../plugins'));
9799
app.use('/integrations', express.static(__dirname + '/../integrations'));
@@ -113,6 +115,16 @@ app.get('/full', function (req, res) {
113115
});
114116
});
115117

118+
app.get('/experiment', function (req, res) {
119+
updateFiles();
120+
121+
res.render('ui-test', {
122+
scripts: files,
123+
package: package,
124+
title: 'Highcharts Editor - Full'
125+
});
126+
});
127+
116128
app.get('/modal', function (req, res) {
117129
updateFiles();
118130

gulpfile.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ gulp.task('bundled-modules', ['modules'], function () {
9494
;
9595
});
9696

97-
gulp.task('complete', ['default', 'bundled-modules', 'with-advanced'], function () {
97+
gulp.task('complete', ['default', 'cache-thumbnails', 'bundled-modules', 'with-advanced'], function () {
9898
return gulp.src([
9999
dest + '/' + name + '.with.modules.min.js',
100100
dest + '/' + name + '.advanced.js'
@@ -123,13 +123,13 @@ gulp.task('localization', function () {
123123
return run('node tools/gen.localization.js').exec();
124124
});
125125

126-
gulp.task('fetch-thumbnails', function () {
126+
gulp.task('bake-thumbnails', function () {
127127
return run('node tools/bake.previews.js').exec();
128128
});
129129

130-
gulp.task('cache-thumbnails', ['fetch-thumbnails'], function () {
130+
gulp.task('cache-thumbnails', ['bake-thumbnails'], function () {
131131
return gulp.src('generated_src/highed.meta.images.js')
132-
.pipe(gulp.dest(dest))
132+
// .pipe(gulp.dest(dest))
133133
.pipe(rename(name + '.thumbnails.min.js'))
134134
.pipe(uglify())
135135
.pipe(header(license, packageJson))

0 commit comments

Comments
 (0)