提交 9f820f6b 编写于 作者: C codecalm

version update

上级 9b552243
source: pages
destination: tmp
version: 1.0.0-alpha.3
version: 1.0.0-alpha.4
title: Tabler
description: Premium and Open Source dashboard template with responsive and high quality UI.
github_url: https://github.com/tabler/tabler
......
/*
* Tabler (v0.9.0): browsersync.js
* Copyright 2018-2019 The Tabler Authors
* Copyright 2018-2019 codecalm
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/
const bs = require('browser-sync').create();
bs.init({
......
#!/usr/bin/env node
const fs = require('fs');
const path = require('path');
const sh = require('shelljs');
sh.config.fatal = true;
// Blame TC39... https://github.com/benjamingr/RegExp.escape/issues/37
function regExpQuote(string) {
return string.replace(/[$()*+-.?[\\\]^{|}]/g, '\\$&')
}
function regExpQuoteReplacement(string) {
return string.replace(/\$/g, '$$')
}
const DRY_RUN = false;
function walkAsync(directory, excludedDirectories, fileCallback, errback) {
if (excludedDirectories.has(path.parse(directory).base)) {
return
}
fs.readdir(directory, (err, names) => {
if (err) {
errback(err);
return
}
names.forEach(name => {
const filepath = path.join(directory, name);
fs.lstat(filepath, (err, stats) => {
if (err) {
process.nextTick(errback, err);
return
}
if (stats.isDirectory()) {
process.nextTick(walkAsync, filepath, excludedDirectories, fileCallback, errback)
} else if (stats.isFile()) {
process.nextTick(fileCallback, filepath)
}
})
})
})
}
function replaceRecursively(directory, excludedDirectories, allowedExtensions, original, replacement) {
original = new RegExp(regExpQuote(original), 'g');
replacement = regExpQuoteReplacement(replacement);
const updateFile = DRY_RUN ?
filepath => {
if (allowedExtensions.has(path.parse(filepath).ext)) {
console.log(`FILE: ${filepath}`)
} else {
console.log(`EXCLUDED:${filepath}`)
}
} :
filepath => {
if (allowedExtensions.has(path.parse(filepath).ext)) {
sh.sed('-i', original, replacement, filepath)
}
};
walkAsync(directory, excludedDirectories, updateFile, err => {
console.error('ERROR while traversing directory!:');
console.error(err);
process.exit(1)
})
}
function main(args) {
if (args.length !== 2) {
console.error('USAGE: change-version old_version new_version');
console.error('Got arguments:', args);
process.exit(1);
}
const oldVersion = args[0];
const newVersion = args[1];
const EXCLUDED_DIRS = new Set([
'.git',
'_gh_pages',
'node_modules',
'vendor',
'demo',
'dist'
]);
const INCLUDED_EXTENSIONS = new Set([
// This extension whitelist is how we avoid modifying binary files
'',
'.css',
'.html',
'.js',
'.json',
'.md',
'.scss',
'.txt',
'.yml'
]);
replaceRecursively('.', EXCLUDED_DIRS, INCLUDED_EXTENSIONS, oldVersion, newVersion)
}
main(process.argv.slice(2));
\ No newline at end of file
/*
* Tabler (v0.9.0): postcss.config.js
* Copyright 2018-2019 The Tabler Authors
* Copyright 2018-2019 codecalm
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/
'use strict';
module.exports = ctx => ({
......
/*
* Tabler (v0.9.0): rollup.config.js
* Copyright 2018-2019 The Tabler Authors
* Copyright 2018-2019 codecalm
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/
'use strict';
const BUNDLE = process.env.BUNDLE === 'true';
......
/*
* Tabler (v0.9.0): scss-compile.js
* Copyright 2018-2019 The Tabler Authors
* Copyright 2018-2019 codecalm
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/
const BUNDLE = process.env.BUNDLE === 'true';
const path = require('path'),
......
#!/usr/bin/env node
const glob = require("glob"),
fs = require("fs");
......@@ -22,6 +24,3 @@ includeFiles.forEach(function (file) {
console.log('file', file);
}
});
// console.log('foundFiles', foundFiles);
// console.log('includeFiles', includeFiles);
/*!
* Tabler v1.0.0-alpha.3 (https://tabler.io)
* Tabler v1.0.0-alpha.4 (https://tabler.io)
* Copyright 2018-2020 codecalm
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/'use strict';var __assign=window&&window.__assign||function(){return(__assign=Object.assign||function(b){for(var c,d=1,e=arguments.length;d<e;d++)for(var f in c=arguments[d])Object.prototype.hasOwnProperty.call(c,f)&&(b[f]=c[f]);return b}).apply(this,arguments)},CountUp=function(){var b=Math.abs;function a(c,d,e){var f=Math.pow,g=this;this.target=c,this.endVal=d,this.options=e,this.version="2.0.4",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:""},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.count=function(a){g.startTime||(g.startTime=a);var b=a-g.startTime;g.remaining=g.duration-b,g.frameVal=g.useEasing?g.countDown?g.startVal-g.easingFn(b,0,g.startVal-g.endVal,g.duration):g.easingFn(b,g.startVal,g.endVal-g.startVal,g.duration):g.countDown?g.startVal-(g.startVal-g.endVal)*(b/g.duration):g.startVal+(g.endVal-g.startVal)*(b/g.duration),g.frameVal=g.countDown?g.frameVal<g.endVal?g.endVal:g.frameVal:g.frameVal>g.endVal?g.endVal:g.frameVal,g.frameVal=Math.round(g.frameVal*g.decimalMult)/g.decimalMult,g.printValue(g.frameVal),b<g.duration?g.rAF=requestAnimationFrame(g.count):null===g.finalEndVal?g.callback&&g.callback():g.update(g.finalEndVal)},this.formatNumber=function(c){var d,f,j,k,m,p=0>c?"-":"";if(d=b(c).toFixed(g.options.decimalPlaces),j=(f=(d+="").split("."))[0],k=1<f.length?g.options.decimal+f[1]:"",g.options.useGrouping){m="";for(var o=0,q=j.length;o<q;++o)0!=o&&0==o%3&&(m=g.options.separator+m),m=j[q-o-1]+m;j=m}return g.options.numerals&&g.options.numerals.length&&(j=j.replace(/[0-9]/g,function(a){return g.options.numerals[+a]}),k=k.replace(/[0-9]/g,function(a){return g.options.numerals[+a]})),p+g.options.prefix+j+k+g.options.suffix},this.easeOutExpo=function(b,c,d,a){return 1024*(d*(1-f(2,-10*b/a)))/1023+c},this.options=__assign({},this.defaults,e),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(d),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.decimalMult=f(10,this.options.decimalPlaces),this.resetDuration(),this.options.separator=this.options.separator+"",this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof c?document.getElementById(c):c,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined"}return a.prototype.determineDirectionAndSmartEasing=function(){var c=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>c;var d=c-this.startVal;if(b(d)>this.options.smartEasingThreshold){this.finalEndVal=c;var e=this.countDown?1:-1;this.endVal=c+e*this.options.smartEasingAmount,this.duration/=2}else this.endVal=c,this.finalEndVal=null;this.useEasing=!this.finalEndVal&&this.options.useEasing},a.prototype.start=function(a){this.error||(this.callback=a,0<this.duration?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},a.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},a.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},a.prototype.update=function(a){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(a),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal||this.resetDuration(),this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},a.prototype.printValue=function(a){var b=this.formattingFn(a);"INPUT"===this.el.tagName?this.el.value=b:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=b:this.el.innerHTML=b},a.prototype.ensureNumber=function(a){return"number"==typeof a&&!isNaN(a)},a.prototype.validateValue=function(a){var b=+a;return this.ensureNumber(b)?b:(this.error="[CountUp] invalid start or end value: "+a,null)},a.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*+this.options.duration,this.remaining=this.duration},a}();(function(){var a=[].slice.call(document.querySelectorAll("[data-toggle=\"dropdown\"]"));a.map(function(a){return new bootstrap.Dropdown(a,{})});var b=[].slice.call(document.querySelectorAll("[data-toggle=\"tooltip\"]"));b.map(function(a){return new bootstrap.Tooltip(a,{})});var c=[].slice.call(document.querySelectorAll("[data-toggle=\"popover\"]"));c.map(function(a){return new bootstrap.Popover(a,{autoHide:!0})});var d=[].slice.call(document.querySelectorAll("[data-countup]"));d.map(function(a){var b;return""!==a.getAttribute("data-countup")&&(b=JSON.parse(a.getAttribute("data-countup"))),new CountUp(a,parseFloat(a.innerText),b).start()})})();
......
{
"name": "tabler",
"version": "1.0.0-alpha.3",
"version_short": "1.0.0-alpha.3",
"version": "1.0.0-alpha.4",
"version_short": "1.0.0-alpha.4",
"description": "Premium and Open Source dashboard template with responsive and high quality UI.",
"scripts": {
"start": "npm-run-all clean css-main js-compile-standalone --parallel browsersync watch",
......@@ -99,6 +99,7 @@
"rollup-plugin-filesize": "6.2.1",
"rollup-plugin-multi-input": "1.0.3",
"rollup-plugin-node-resolve": "5.2.0",
"shelljs": "^0.8.3",
"stylelint": "13.2.0",
"stylelint-config-twbs-bootstrap": "2.0.1",
"svgo": "1.3.2",
......
/*!
* Tabler (v1.0.0-alpha.4)
* Copyright 2018-2020 The Tabler Authors
* Copyright 2018-2020 codecalm
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/
@import "config";
@import "demo/highlight";
@import "demo/examples";
......
/*!
* Tabler (v1.0.0-alpha.4)
* Copyright 2018-2020 The Tabler Authors
* Copyright 2018-2020 codecalm
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/
@import "config";
@import "ui/buttons-extra";
/*!
* Tabler Flags (v0.9.0)
* Copyright 2018-2019 The Tabler Authors
* Copyright 2018-2019 codecalm
* Tabler (v1.0.0-alpha.4)
* Copyright 2018-2020 The Tabler Authors
* Copyright 2018-2020 codecalm
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/
......
/*!
* Tabler Payments (v0.1.0)
* Copyright 2018-2019 The Tabler Authors
* Copyright 2018-2019 codecalm
* Tabler (v1.0.0-alpha.4)
* Copyright 2018-2020 The Tabler Authors
* Copyright 2018-2020 codecalm
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/
......
/*!
* Tabler (v0.9.0)
* Copyright 2018-2019 The Tabler Authors
* Copyright 2018-2019 codecalm
* Tabler (v1.0.0-alpha.4)
* Copyright 2018-2020 The Tabler Authors
* Copyright 2018-2020 codecalm
* Licensed under MIT (https://github.com/tabler/tabler/blob/master/LICENSE)
*/
@import "tabler-core";
@import "tabler-vendors";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册