Skip to content

Commit

Permalink
Merging of the OpenEVSE web UI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremypoulter committed May 23, 2017
1 parent bd50da6 commit 23af147
Show file tree
Hide file tree
Showing 11 changed files with 1,098 additions and 761 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# http://editorconfig.org
root = true

[*]
indent_style = space
indent_size = 2
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

# The JSON files contain newlines inconsistently
[*.json]
insert_final_newline = ignore

# Minified JavaScript files shouldn't be changed
[**.min.js]
indent_style = ignore
insert_final_newline = ignore

[*.md]
trim_trailing_whitespace = false

21 changes: 21 additions & 0 deletions lib/js/combine.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

LIB_DIR=$(dirname $(realpath $0))
SRC_DIR=$LIB_DIR/../../src/data

rm $SRC_DIR/lib.*

C=0

if [ 1 -eq $C ]; then
COMP="gzip -c"
OUT=.gz
else
COMP="cat"
OUT=
fi

cat $LIB_DIR/jquery.slim.min.js \
$LIB_DIR/knockout.min.js \
$LIB_DIR/knockout.mapping.min.js \
| $COMP > $SRC_DIR/lib.js$OUT
4 changes: 4 additions & 0 deletions lib/js/jquery.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions lib/js/jquery.slim.min.js

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions lib/js/knockout.mapping.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 23af147

Please sign in to comment.