Skip to content

Commit 93cf774

Browse files
committedDec 5, 2017
fixed version in about, documentation update
1 parent e69e256 commit 93cf774

File tree

8 files changed

+11
-97
lines changed

8 files changed

+11
-97
lines changed
 

‎LICENSE.txt ‎MIT-LICENSE.txt

File renamed without changes.

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To embed this app in other page, use this HTML code:
4242
## Build instructions
4343

4444
- git clone https://github.com/viliusle/miniPaint.git
45-
- cd [miniPaint directory]
45+
- cd miniPaint
4646
- npm install
4747
- webpack-dev-server (using http://localhost:8080/ with live reload, require: npm install -g webpack-dev-server)
4848
- edit files...

‎images/preview.json

-91
This file was deleted.

‎package.json

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
"layers",
1111
"effects"
1212
],
13+
"scripts": {
14+
"dev-server": "webpack-dev-server"
15+
},
1316
"repository": {
1417
"type": "git",
1518
"url": "https://github.com/viliusle/miniPaint"

‎src/js/config.js

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
var config = {};
44

5-
config.VERSION = '4.0.0';
65
config.TRANSPARENCY = false;
76
config.TRANSPARENCY_TYPE = 'squares'; //squares, green, grey
87
config.LANG = 'en';

‎src/js/modules/file/save.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ class File_save_class {
512512
about: 'Image data with multi-layers. Can be opened using miniPaint - '
513513
+ 'https://github.com/viliusle/miniPaint',
514514
date: today,
515-
version: config.VERSION,
515+
version: VERSION,
516516
layer_active: config.layer.id,
517517
};
518518

‎src/js/modules/help/about.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ class Help_about_class {
99

1010
//about
1111
about() {
12-
var email = 'www.viliusl@gmail.com';
13-
12+
var email = 'www.viliusl@gmail.com';
13+
1414
var settings = {
1515
title: 'About',
1616
params: [
1717
{title: "", html: '<img style="height:64px;" class="about-logo" alt="" src="images/logo-colors.png" />'},
1818
{title: "Name:", html: '<span class="about-name">miniPaint</span>'},
19-
{title: "Version:", value: config.VERSION},
19+
{title: "Version:", value: VERSION},
2020
{title: "Description:", value: "Online image editor."},
2121
{title: "Author:", value: 'ViliusL'},
2222
{title: "Email:", html: '<a href="mailto:' + email + '">' + email + '</a>'},

‎webpack.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ module.exports = {
4444
jQuery: "jquery",
4545
"window.jQuery": "jquery"
4646
}),
47+
new webpack.DefinePlugin({
48+
VERSION: JSON.stringify(require("./package.json").version)
49+
}),
4750
],
4851
devtool: "cheap-module-source-map",
4952
devServer: {

0 commit comments

Comments
 (0)
Please sign in to comment.