From 0c2efeb629620aa9134f9c14f69ec35d8238457f Mon Sep 17 00:00:00 2001 From: Marutian Date: Tue, 19 Feb 2019 13:16:24 +0900 Subject: [PATCH] Change copy to clipboard library --- package.json | 2 +- src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js | 2 +- src/app/tabs/compile-tab.js | 7 ++++++- src/app/ui/copy-to-clipboard.js | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 889dcebcdf..dee59f2d32 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ "babelify": "^7.3.0", "brace": "^0.8.0", "browserify-reload": "^1.0.3", - "clipboard-copy": "^1.2.0", "component-type": "^1.2.1", + "copy-text-to-clipboard": "^1.0.4", "csjs-inject": "^1.0.1", "csslint": "^1.0.2", "deep-equal": "^1.0.1", diff --git a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js index 3b1220a5ed..3517f9920b 100644 --- a/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js +++ b/src/app/debugger/debuggerUI/vmDebugger/DropdownPanel.js @@ -1,6 +1,6 @@ 'use strict' var yo = require('yo-yo') -const copy = require('clipboard-copy') +const copy = require('copy-text-to-clipboard') var EventManager = require('../../../../lib/events') var TreeView = require('../../../ui/TreeView') // TODO setup a direct reference to the UI components diff --git a/src/app/tabs/compile-tab.js b/src/app/tabs/compile-tab.js index 3c26ea539c..0a6a65b96e 100644 --- a/src/app/tabs/compile-tab.js +++ b/src/app/tabs/compile-tab.js @@ -2,7 +2,12 @@ const EventEmitter = require('events') const $ = require('jquery') const yo = require('yo-yo') -const copy = require('clipboard-copy') +const csjs = require('csjs-inject') +const copy = require('copy-text-to-clipboard') +var minixhr = require('minixhr') +var remixTests = require('remix-tests') +var Compiler = require('remix-solidity').Compiler +var CompilerImport = require('../compiler/compiler-imports') var QueryParams = require('../../lib/query-params') const TreeView = require('../ui/TreeView') const modalDialog = require('../ui/modaldialog') diff --git a/src/app/ui/copy-to-clipboard.js b/src/app/ui/copy-to-clipboard.js index bda6acf3a3..af41834bb5 100644 --- a/src/app/ui/copy-to-clipboard.js +++ b/src/app/ui/copy-to-clipboard.js @@ -1,6 +1,6 @@ var yo = require('yo-yo') // -------------- copyToClipboard ---------------------- -const copy = require('clipboard-copy') +const copy = require('copy-text-to-clipboard') var addTooltip = require('./tooltip') // -------------- styling ---------------------- var csjs = require('csjs-inject') @@ -34,4 +34,4 @@ module.exports = function copyToClipboard (getContent, tip = 'Copy value to clip } } return copyIcon -} +} \ No newline at end of file