Skip to content

Commit

Permalink
Merge pull request #684 from totaljs/v3.0.1
Browse files Browse the repository at this point in the history
3.1.0
  • Loading branch information
petersirka committed Dec 7, 2018
2 parents 32919b6 + b90209d commit fb18dc3
Show file tree
Hide file tree
Showing 35 changed files with 4,570 additions and 5,612 deletions.
1 change: 0 additions & 1 deletion 503.html
Expand Up @@ -23,7 +23,6 @@
50%{ transform:scale(1.5) rotate(180deg); color:gray }
100%{ transform:scale(1); }
}

</style>
</head>
<body>
Expand Down
24 changes: 15 additions & 9 deletions bin/totaljs
Expand Up @@ -307,16 +307,22 @@ function parse_csv(content) {
var output = {};
var max = 0;

content.split('\n').forEach(function(line) {
content.split('\n').forEach(function(line, index) {

if (!index)
return;

line = line.trim();

if (!line)
return;

var arr = line.split(';');
if (arr.length <= 1)
return;

var key = arr[0].trim().replace(/(^\")|(\"$)/g, '');
var value = arr[1].trim().replace(/(^\")|(\"$)/g, '');
var key = arr[0].trim().replace(/(^")|("$)/g, '');
var value = arr[2].trim().replace(/(^")|("$)/g, '');
if (!key || !value)
return;

Expand Down Expand Up @@ -355,11 +361,11 @@ function main() {
var port = cmd.parseInt();
if (port) {

F.config['directory-temp'] = '~' + path.join(os.tmpdir(), 'totaljs' + dir.hash());
F.config['directory-public'] = '~' + dir;
F.config['allow-compile-html'] = false;
F.config['allow-compile-script'] = false;
F.config['allow-compile-style'] = false;
CONF.directory_temp = '~' + path.join(os.tmpdir(), 'totaljs' + dir.hash());
CONF.directory_public = '~' + dir;
CONF.allow_compile_html = false;
CONF.allow_compile_script = false;
CONF.allow_compile_style = false;

F.accept('.less', 'text/less');

Expand Down Expand Up @@ -810,7 +816,7 @@ function git(dir, type) {
}

F.path.mkdir(dir);
exec('git clone https://github.com/totaljs/{0}.git {1}'.format(type, dir), function(err) {
exec('git clone https://github.com/totaljs/{0}.git {1}'.format(type, dir), function() {
F.path.mkdir(path.join(dir, '/node_modules/'));
F.rmdir(path.join(dir, '.git'), function() {
F.unlink(path.join(dir, '.gitignore'), function() {
Expand Down

0 comments on commit fb18dc3

Please sign in to comment.