Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
onokumus committed May 5, 2020
1 parent 0e6b1ed commit da8e4bd
Show file tree
Hide file tree
Showing 571 changed files with 80,335 additions and 9,964 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "bower_components"
}
13 changes: 13 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# https://github.com/browserslist/browserslist#readme

>= 1%
last 1 major version
not dead
Chrome >= 45
Firefox >= 38
Edge >= 12
Explorer >= 10
iOS >= 9
Safari >= 9
Android >= 4.4
Opera >= 30
25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org

root = true


[*]

# change these settings to your own preference
indent_style = space
indent_size = 2

# we recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[{package,bower}.json]
indent_style = space
indent_size = 2
145 changes: 145 additions & 0 deletions assemblefile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
'use strict';
var assemble = require('assemble');
var extname = require('gulp-extname');
var path = require('path');
var rename = require('gulp-rename');
var helpers = require('handlebars-helpers');
var prettify = require('gulp-prettify');
var pkg = require('./package.json');
var bower = require('./bower.json');

var vnd = 'docs/assets/vendor';

var banner = [
'/**',
' * <%= pkg.name %> - <%= pkg.description %>',
' * @version v<%= pkg.version %>',
' * @author <%= pkg.author %>',
' */',
''
].join('\n');

var app = assemble();
app.create('home');


app.task('init', function(cb) {
var demo = app.options.demo;
var projectName = 'Chaldene';
var imgExt = 'svg';

app.data({
topNav: false
});
app.data('rtl', app.options.rtl);
app.data('demo', demo);
app.data('hasColumn', false);
app.data('imgExt', imgExt);
app.data('projectName', projectName);
app.data('prod', app.options.prod);
app.option('layout', 'first');
app.option('assets', '../assets/');
app.helper('math', helpers.math());
app.helper('number', helpers.number());
app.helper('date', helpers.date());
app.helper('html', helpers.html());
app.helper('object', helpers.object());
app.helper('comparison', helpers.comparison());
app.helper('markdown', helpers.markdown());
app.data(['./templates/data/**/*.json']);
app.data('pkg', pkg);
app.data('bower', bower);
app.layouts(path.join(__dirname, './templates/layouts/**/*.hbs'));
app.partials(path.join(__dirname, './templates/includes/**/*.hbs'));
app.pages(path.join(__dirname, './templates/content/**/*.hbs'));
app.home(path.join(__dirname, './home.hbs'));
cb();
});


function contentBuild(dest) {
return app.toStream('pages')
.pipe(app.renderFile())
.on('err', console.error)
.pipe(prettify({
indent_inner_html: false,
preserve_newlines: true,
end_with_newline: true,
extra_liners: ['head', 'body']
}))
.pipe(extname())
.pipe(app.dest(path.join(__dirname, './docs/' + dest)));
}

app.task('home', ['init'], function() {
var homeImageExt = 'png';

app.data('homeImageExt', homeImageExt);

return app.toStream('home')
.pipe(app.renderFile())
.on('err', console.error)
.pipe(prettify({
indent_inner_html: false,
preserve_newlines: true,
end_with_newline: true,
extra_liners: ['head', 'body']
}))
.pipe(extname())
.pipe(rename('index.html'))
.pipe(app.dest(path.join(__dirname, './docs')));
});

app.task('content-first', ['init'], function() {
app.option('layout', 'first');
app.data('lay', 'first');
return contentBuild('first');
});

app.task('content-second', ['init'], function() {
app.option('layout', 'second');
app.data('lay', 'second');
return contentBuild('second');
});

app.task('content-third', ['init'], function() {
app.option('layout', 'third');
app.data('lay', 'third');
app.data({
topNav: true
});
return contentBuild('third');
});

app.task('content-firstrtl', ['init'], function() {
app.option('layout', 'first');
app.data('lay', 'first');
app.data('rtl', true);
return contentBuild('firstrtl');
});

app.task('content-secondrtl', ['init'], function() {
app.option('layout', 'second');
app.data('lay', 'second');
app.data('rtl', true);
return contentBuild('secondrtl');
});

app.task('content-thirdrtl', ['init'], function() {
app.option('layout', 'third');
app.data('lay', 'third');
app.data({
topNav: true
});
app.data('rtl', true);
return contentBuild('thirdrtl');
});

app.task('content', ['content-*']);

app.task('rtl', ['content-firstrtl', 'content-secondrtl', 'content-thirdrtl'], function(){});
app.task('ltr', ['content-first', 'content-second', 'content-third'], function(){});

app.task('default', ['content-first'], function() {});

module.exports = app;
3 changes: 0 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
"bootstrap-touchspin": "^3.1.2",
"jquery-ui": "^1.12.0",
"datatables": "^1.10.12",
"flot": "^0.8.3",
"fullcalendar": "^3.0.1",
"screenfull": "^3.0.2",
"jquery-validation": "^1.15.1",
"jquery-knob": "^1.2.13",
"counterup": "^1.0.0"
Expand Down
3 changes: 1 addition & 2 deletions docs/assets/css/vendor-rtl.css

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions docs/assets/css/vendor.css

Large diffs are not rendered by default.

66 changes: 2 additions & 64 deletions docs/assets/js/vendor.js

Large diffs are not rendered by default.

180 changes: 0 additions & 180 deletions docs/assets/vendor/flot/jquery.colorhelpers.js

This file was deleted.

Loading

0 comments on commit da8e4bd

Please sign in to comment.