Skip to content

Commit

Permalink
chore: build dist for 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kyuwoo.choi committed Apr 13, 2018
1 parent 3af0fd8 commit 46ff75d
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/tui-color-picker.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Toast UI Colorpicker
* @version 2.0.1
* @version 2.1.0
* @author NHNEnt FE Development Team <[email protected]>
* @license MIT
*/
Expand Down
34 changes: 32 additions & 2 deletions dist/tui-color-picker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Toast UI Colorpicker
* @version 2.0.1
* @version 2.1.0
* @author NHNEnt FE Development Team <[email protected]>
* @license MIT
*/
Expand Down Expand Up @@ -1969,6 +1969,30 @@ return /******/ (function(modules) { // webpackBootstrap
var Palette = __webpack_require__(16);
var Slider = __webpack_require__(18);

var hostnameSent = false;

/**
* send hostname
* @ignore
*/
function sendHostname() {
var hostname = location.hostname;

if (hostnameSent) {
return;
}
hostnameSent = true;

util.imagePing('https://www.google-analytics.com/collect', {
v: 1,
t: 'event',
tid: 'UA-115377265-9',
cid: hostname,
dp: hostname,
dh: 'color-picker'
});
}

/**
* @constructor
* @mixes CustomEvents
Expand All @@ -1978,6 +2002,7 @@ return /******/ (function(modules) { // webpackBootstrap
* @param {string[]} [options.preset] - color preset for palette (use base16 palette if not supplied)
* @param {string} [options.cssPrefix='tui-colorpicker-'] - css prefix text for each child elements
* @param {string} [options.detailTxt='Detail'] - text for detail button.
* @param {boolean} [options.usageStatistics=true] - Let us know the hostname. If you don't want to send the hostname, please set to false.
* @example
* var colorPicker = tui.colorPicker; // or require('tui-color-picker')
*
Expand All @@ -2001,7 +2026,8 @@ return /******/ (function(modules) { // webpackBootstrap
color: '#f8f8f8',
preset: ['#181818', '#282828', '#383838', '#585858', '#b8b8b8', '#d8d8d8', '#e8e8e8', '#f8f8f8', '#ab4642', '#dc9656', '#f7ca88', '#a1b56c', '#86c1b9', '#7cafc2', '#ba8baf', '#a16946'],
cssPrefix: 'tui-colorpicker-',
detailTxt: 'Detail'
detailTxt: 'Detail',
usageStatistics: true
}, options);

if (!options.container) {
Expand Down Expand Up @@ -2040,6 +2066,10 @@ return /******/ (function(modules) { // webpackBootstrap
layout.addChild(this.slider);

this.render(options.color);

if (options.usageStatistics) {
sendHostname();
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion dist/tui-color-picker.min.css

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

Loading

0 comments on commit 46ff75d

Please sign in to comment.