Remove accidentally committed files from 4077428b4
This commit is contained in:
parent
87c3ef6aca
commit
6b7b57da3c
7 changed files with 0 additions and 1455 deletions
|
@ -1,18 +0,0 @@
|
|||
import React, { useState } from 'react';
|
||||
|
||||
function Foo() {
|
||||
// Declare a new state variable, which we'll call "count"
|
||||
const [count, setCount] = useState(0);
|
||||
Zotero.debug("RUNNING FOO");
|
||||
|
||||
return (
|
||||
<div>
|
||||
<p>You clicked {count} times</p>
|
||||
<button onClick={() => setCount(count + 1)}>
|
||||
Click me
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
module.exports = Foo;
|
|
@ -1 +0,0 @@
|
|||
fswatch -o . | xargs -n1 -I{} sh -c 'rsync -av --delete ./ ~/react-app/tmp/; find ~/react-app/tmp -name "*.jsx" -exec perl -pi -e "print \"import Zotero from \\\"zotero\\\"\; \/\/ eslint-disable-line no-unused-vars\n\" if $. == 1" \{\} \; ; rsync -av --delete ~/react-app/tmp/ ~/react-app/src/components/;' _
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
|
||||
<?xml-stylesheet href="chrome://zotero/skin/about.css" type="text/css"?>
|
||||
<!DOCTYPE window SYSTEM "chrome://zotero/locale/about.dtd">
|
||||
|
||||
<window
|
||||
id="zotero-about"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
orient="vertical"
|
||||
buttons="accept">
|
||||
|
||||
<script src="include.js"/>
|
||||
|
||||
<!--<iframe type="content" src="test2.html"/>-->
|
||||
<iframe type="content" src="zotero://pdf.js/pdf/1/FZD2PBSY"/>
|
||||
</window>
|
|
@ -1,22 +0,0 @@
|
|||
<html>
|
||||
<body>
|
||||
Hello
|
||||
<script>
|
||||
alert(window);
|
||||
var str = '';
|
||||
for (let key of Object.keys(ChromeUtils)) {
|
||||
str += key + '\n';
|
||||
}
|
||||
alert(str);
|
||||
Components.utils.import("resource://gre/modules/osfile.jsm")
|
||||
|
||||
|
||||
let decoder = new TextDecoder(); // This decoder can be reused for several reads
|
||||
OS.File.remove("/Users/dan/Desktop/refs2.bib");
|
||||
|
||||
//const {Services} = ChromeUtils.import("resource://gre/modules/Services.jsm");
|
||||
//var ps = Services.prompt;
|
||||
//ps.alert(null, "Title", "Test");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load diff
|
@ -1,98 +0,0 @@
|
|||
/*
|
||||
***** BEGIN LICENSE BLOCK *****
|
||||
|
||||
Copyright © 2019 Corporation for Digital Scholarship
|
||||
Vienna, Virginia, USA
|
||||
https://www.zotero.org
|
||||
|
||||
This file is part of Zotero.
|
||||
|
||||
Zotero is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Zotero is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with Zotero. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
Zotero.UndoStack = function (maxUndo) {
|
||||
this.maxUndo = maxUndo || 20;
|
||||
this._stack = [];
|
||||
}
|
||||
|
||||
Zotero.UndoStack.prototype = {
|
||||
_index: 0,
|
||||
|
||||
addBatch: function (name, steps) {
|
||||
// Remove forward from the current index and from the beginning to stay below the max size
|
||||
var start = Math.max((this._index + 1) - this.maxUndo, 0);
|
||||
this._stack = this._stack.slice(start, this._index);
|
||||
|
||||
this._stack.push({ name, steps });
|
||||
this._index = this._stack.length;
|
||||
|
||||
this._update();
|
||||
},
|
||||
|
||||
undo: async function () {
|
||||
var steps = this._stack[--this._index].steps;
|
||||
for (let step of steps) {
|
||||
await step.undo();
|
||||
}
|
||||
this._update();
|
||||
},
|
||||
|
||||
redo: async function () {
|
||||
var batch = this._stack[this._index++].steps;
|
||||
for (let step of steps) {
|
||||
await step.redo();
|
||||
}
|
||||
this._update();
|
||||
},
|
||||
|
||||
clear: function () {
|
||||
this._stack = [];
|
||||
this._index = 0;
|
||||
this._update();
|
||||
},
|
||||
|
||||
_update: function () {
|
||||
var win = Zotero.getTopWindow();
|
||||
if (!win) {
|
||||
return;
|
||||
}
|
||||
var doc = win.document;
|
||||
var undoMenuItem = doc.getElementById('menu_undo');
|
||||
var redoMenuItem = doc.getElementById('menu_redo');
|
||||
var undoCmd = doc.getElementById('cmd_undo');
|
||||
var redoCmd = doc.getElementById('cmd_redo');
|
||||
var undoStep = this._stack[this._index - 1];
|
||||
var redoStep = this._stack[this._index];
|
||||
|
||||
if (undo) {
|
||||
undoMenuItem.label = undoStep ? Zotero.getString('general.undoX', undoStep.name) : null;
|
||||
undoCmd.removeAttribute('disabled');
|
||||
}
|
||||
else {
|
||||
undoMenuItem.label = Zotero.getString('general.undo');
|
||||
undoCmd.setAttribute('disabled', 'disabled');
|
||||
}
|
||||
|
||||
if (redoStep) {
|
||||
redoMenuItem.label = redo ? Zotero.getString('general.redoX', redoStep.name) : null;
|
||||
redoCmd.removeAttribute('disabled');
|
||||
}
|
||||
else {
|
||||
redoMenuItem.label = Zotero.getString('general.redo');
|
||||
redoCmd.setAttribute('disabled', 'disabled');
|
||||
}
|
||||
}
|
||||
};
|
|
@ -1,3 +0,0 @@
|
|||
.addon-view .legacy-warning {
|
||||
display: none;
|
||||
}
|
Loading…
Add table
Reference in a new issue