nhn / tui.code-snippet Goto Github PK
View Code? Open in Web Editor NEWGroup of utility methods to make ease with developing javascript applications.
Home Page: https://nhn.github.io/tui.code-snippet/latest/
License: MIT License
Group of utility methods to make ease with developing javascript applications.
Home Page: https://nhn.github.io/tui.code-snippet/latest/
License: MIT License
1.5.0
Windows, Linux, Chrome, Firefox
Running the image editor using the latest releases of the color picker, image editor and code snippet.
The code snippet script is sending usage statistics to www.google-analytics.com
Setting tui.usageStatistics = false
right before or after loading the script does not prevent that.
Here is an example: https://fiddle.sencha.com/#view/editor&fiddle/2p07
You can see that it silently sends a request to https://www.google-analytics.com/collect?v=1&t=event&tid=UA-115377265-9&cid=fiddle.sencha.com&dp=fiddle.sencha.com&dh=color-picker
if you inspect the network traffic.
Setting tui.usageStatistics
to false
should reliably disable Google Analytics completely! This is absolutely crucial as it is illegal to collect such data without user consent in the EU and other countries.
v2.0.0
$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bullseye/sid
Release: unstable
Codename: sid
$ node --version
v12.13.0
[askdna@bebop-i5 tui.code-snippet master]$ git checkout v2.0.0
Note: switching to 'v2.0.0'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at fb0d71e Merge branch 'master' into production
[askdna@bebop-i5 tui.code-snippet (v2.0.0)]$ yarn install
yarn install v1.19.1
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.9: The platform "linux" is incompatible with this module.
info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 2.28s.
[askdna@bebop-i5 tui.code-snippet (v2.0.0)]$ npm run bundle
> tui-code-snippet@2.0.0 bundle /tmp/askdna/tui.code-snippet
> webpack & webpack --production
Hash: 451d148498b0218ba862
Version: webpack 1.15.0
Time: 13ms
ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' ./src/js/index.js in /tmp/askdna/tui.code-snippet
Hash: 4cc2c8905467c5a2eeb0
Version: webpack 1.15.0
Time: 13ms
ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory' ./src/js/index.js in /tmp/askdna/tui.code-snippet
[askdna@bebop-i5 tui.code-snippet (v2.0.0)]$
I expect npm run bundle
generates built result, but the build fails. Since d04b9cb commit removes the webpack entry file which is index.js
, then webpack complains about that.
2.3.2
iOS Chrome
Mozilla/5.0 (iPhone; CPU iPhone OS 13_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/84.0.4147.122 Mobile/15E148 Safari/604.1
// browser result
chrome : false,
....
others : true,
version : 0
// browser result
chrome : true,
....
others : false,
version : 84
Can we cut a new release of this? I'd like to see tui-calendar
use a version of this library that includes the fix in #27, and that hasn't yet made it to a released version.
2.3.2
MacOS 10.15.6
Chrome 84.0.4147.135
toast-ui color-picker를 web components로 만들어서 사용할 때 아래와 같은 문제가 발생.
palette 영역 클릭 시, getTarget 함수가 e.target을 반환하는데, 이때 target이 palette 영역이 아닌 web component가 반환되어, click에 대한 이벤트핸들러에서 오류가 발생
(lotstar87/twc-color-picker#1)
// domEvent/getTarget.js
function getTarget(e) {
return e.target || e.srcElement;
}
getTarget 함수가 e.composedPath()[0]을 반환하도록 변경
// domEvent/getTarget.js
function getTarget(e) {
return e.composedPath()[0];
}
HashMap
classdefineNamespace('ne.util.common')
defineNamespace('ne.util')
A module with a potential security vulnerability is found on package-lock.json
file.
This module is marked
related to jsdoc
and this module's version should be updated.
Reference :
Remove node_modules
folder and package-lock.json
file on local environment.
Install all packages and confirm to update version of marked
on package-lock.json
.
참고: underscore
latest
All
browser()
occurs an error in Node.js
// ReferenceError: window is not defined
if (window && window.navigator) {
detectBrowser();
}
If browser()
runs in Node.js, do not execute detectBrowser()
.
// Write example code
Update a major version
// Write example code
아래의 버그가 있음.
off(context, type)
이 context
를 구분하지 않고 모든 이벤트를 제거'_play'
이벤트와 'play'
이벤트를 등록하고 off('play')
실행 시 모든 이벤트를 제거_play
이벤트는 제거하지 않아야 함There are any plans to register this library at https://cdnjs.com/ to use it via CND. Same as tui-editor
and tui-calendar
// current condition
isValidYear = (year > -1 && year < 100) || ((year > 1969) && (year < 2070));
Fix condition for formatting over 2070 years
1.3.0
ALL
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.