Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Production #94

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: build dist for 3.1.0
  • Loading branch information
kyuwoo.choi committed Apr 13, 2018
commit d899f788696ad8810c7a50c55dee7b7f5027c016
38 changes: 36 additions & 2 deletions dist/tui-image-editor.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* tui-image-editor.js
* @version 3.0.2
* @version 3.1.0
* @author NHNEnt FE Development Lab <[email protected]>
* @license MIT
*/
Expand Down Expand Up @@ -142,6 +142,8 @@ return /******/ (function(modules) { // webpackBootstrap

var _consts2 = _interopRequireDefault(_consts);

var _util = __webpack_require__(71);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
Expand All @@ -161,13 +163,16 @@ return /******/ (function(modules) { // webpackBootstrap
* @param {Object} [option] - Canvas max width & height of css
* @param {number} option.cssMaxWidth - Canvas css-max-width
* @param {number} option.cssMaxHeight - Canvas css-max-height
* @param {Boolean} [option.usageStatistics=true] - Let us know the hostname. If you don't want to send the hostname, please set to false.
*/

var ImageEditor = function () {
function ImageEditor(wrapper, option) {
_classCallCheck(this, ImageEditor);

option = option || {};
option = _tuiCodeSnippet2.default.extend({
usageStatistics: true
}, option);

/**
* Invoker
Expand Down Expand Up @@ -208,6 +213,10 @@ return /******/ (function(modules) { // webpackBootstrap
if (option.selectionStyle) {
this._setSelectionStyle(option.selectionStyle);
}

if (option.usageStatistics) {
(0, _util.sendHostName)();
}
}

/**
Expand Down Expand Up @@ -3666,6 +3675,8 @@ return /******/ (function(modules) { // webpackBootstrap
* @fileoverview Util
*/

var hostnameSent = false;

module.exports = {
/**
* Clamp value
Expand Down Expand Up @@ -3740,6 +3751,29 @@ return /******/ (function(modules) { // webpackBootstrap
}

return props;
},


/**
* send hostname
*/
sendHostName: function sendHostName() {
var _location = location,
hostname = _location.hostname;

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

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

Expand Down
Loading