cubernet / insert-img Goto Github PK
View Code? Open in Web Editor NEWThis Atom package helps you insert images easily from clipboard, save the image into file and upload the image to qiniu cloud.
License: MIT License
This Atom package helps you insert images easily from clipboard, save the image into file and upload the image to qiniu cloud.
License: MIT License
[Enter steps to reproduce:]
Atom: 1.15.0 x64
Electron: 1.3.13
OS: Unknown Windows version
Thrown From: insert-img package 0.1.4
Failed to activate the insert-img package
At Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self'".
at /packages/insert-img/node_modules/sync-request/index.js:10:1)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at /packages/insert-img/node_modules/qiniu/qiniu/zone.js:1:94)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at /packages/insert-img/node_modules/qiniu/qiniu/io.js:11:12)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at /packages/insert-img/node_modules/qiniu/index.js:8:7)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at /packages/insert-img/lib/paster.js:9:13)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at /packages/insert-img/lib/insert-img.js:12:14)
at Module._compile (/app.asar/src/native-compile-cache.js:109:30)
at /app.asar/src/compile-cache.js:216:21)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.require (module.js:483:17)
at require (/app.asar/src/native-compile-cache.js:50:27)
at Package.module.exports.Package.requireMainModule (/app.asar/src/package.js:796:27)
at Package.module.exports.Package.activateNow (/app.asar/src/package.js:207:16)
at /app.asar/src/package.js:876:25
at Function.module.exports.Emitter.simpleDispatch (/app.asar/node_modules/event-kit/lib/emitter.js:25:14)
at Emitter.module.exports.Emitter.emit (/app.asar/node_modules/event-kit/lib/emitter.js:129:28)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/app.asar/src/command-registry.js:240:20)
at /app.asar/src/command-registry.js:3:59
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:599:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/app.asar/node_modules/atom-keymap/lib/keymap-manager.js:390:22)
at WindowEventHandler.module.exports.WindowEventHandler.handleDocumentKeyEvent (/app.asar/src/window-event-handler.js:106:36)
at /app.asar/src/window-event-handler.js:3:59)
-0:12.1.0 insert-img:paste (input.hidden-input)
atom-beautify 0.29.17
atom-material-syntax 1.0.2
atom-material-syntax-light 0.4.6
atom-material-ui 1.3.9
autocomplete-python 1.8.57
insert-img 0.1.4
markdown-preview-plus 2.4.5
markdown-scroll-sync 2.1.2
markdown-writer 2.6.4
script 3.14.1
tool-bar-markdown-writer 0.2.0
[Enter steps to reproduce:]
Atom: 1.17.0-beta5 x64
Electron: 1.3.15
OS: Unknown Windows version
Thrown From: insert-img package 0.1.4
Uncaught Error: invalid putpolicy options
At C:\Users\Meekdai\.atom\packages\insert-img\node_modules\qiniu\qiniu\storage\rs.js:659
Error: invalid putpolicy options
at /packages/insert-img/node_modules/qiniu/qiniu/storage/rs.js:659:11)
at uptoken (/packages/insert-img/lib/paster.js:69:37)
at /packages/insert-img/lib/paster.js:74:27
at C:/Atom/resources/app/node_modules/graceful-fs/graceful-fs.js:43:10
at FSReqWrap.oncomplete (fs.js:123:15)
-6:06.4.0 core:copy (input.hidden-input)
6x -5:01.0 insert-img:paste (input.hidden-input)
-3:55.1.0 script:run (input.hidden-input)
-3:53.4.0 markdown-preview-enhanced:toggle (input.hidden-input)
-2:44.7.0 core:backspace (input.hidden-input)
-2:29.4.0 script:close-view (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
-1:55.8.0 insert-img:paste (input.hidden-input)
-1:43.1.0 core:copy (input.hidden-input)
activate-power-mode 1.4.0
atom-clock 0.1.7
script 3.14.1
auto-convert-to-utf8 0.1.0
ex-mode 0.15.0
insert-img 0.1.4
markdown-pdf 1.5.0
markdown-preview-enhanced 0.13.0
minimap 4.28.2
vim-mode 0.66.0
有时要用到的不仅仅是截图,而是本地的一些图片文件。
[Enter steps to reproduce:]
Atom: 1.38.2 x64
Electron: 2.0.18
OS: Ubuntu 18.10
Thrown From: insert-img package 0.1.4
Uncaught TypeError: img.toPng is not a function
At /home/khanhhh/.atom/packages/insert-img/lib/paster.js:42
TypeError: img.toPng is not a function
at Object.paste (/packages/insert-img/lib/paster.js:42:29)
at HTMLElement.insertImgPaste (/packages/insert-img/lib/insert-img.js:21:46)
at CommandRegistry.handleCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:348418)
at KeymapManager.t.exports.KeymapManager.dispatchCommandEvent (/usr/share/atom/resources/app/static/<embedded>:11:1247210)
at KeymapManager.t.exports.KeymapManager.handleKeyboardEvent (/usr/share/atom/resources/app/static/<embedded>:11:1243344)
at WindowEventHandler.handleDocumentKeyEvent (/usr/share/atom/resources/app/static/<embedded>:11:283624)
-0:10.2.0 insert-img:paste (input.hidden-input)
insert-img 0.1.4
language-opencl 0.1.1
markdown-preview-enhanced 0.16.2
markdown-toc 0.4.2
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.