generated from MuiseDestiny/zotero-addon-template
-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89612a9
commit 3bc9840
Showing
42 changed files
with
10,642 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GITHUB_TOKEN="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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
**/builds | ||
node_modules | ||
package-lock.json | ||
zotero-cmd.json | ||
.vscode | ||
.env | ||
zotero-cmd.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"liveServer.settings.port": 5501 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,2 @@ | ||
# 新版预览图 | ||
![ac5fa8b94cc961330e710186dfb33b8](https://user-images.githubusercontent.com/51939531/211480906-2192dcfd-7798-4809-9ee1-89a94b6dacd6.png) | ||
做一些简单的可视化 | ||
![image](https://user-images.githubusercontent.com/51939531/211244957-cc6f293f-ba83-4325-bca0-47b10f461ee3.png) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
content __addonRef__ chrome/content/ | ||
skin __addonRef__ default chrome/skin/default/__addonRef__/ | ||
locale __addonRef__ en-US chrome/locale/en-US/ | ||
locale __addonRef__ zh-CN chrome/locale/zh-CN/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
"use strict"; | ||
|
||
var AddView = new function () { | ||
var _io; | ||
var _window; | ||
this.init = function (_window) { | ||
this._io = window.arguments[0] | ||
this._window = _window | ||
console.log("init", this._io) | ||
}; | ||
|
||
this.onDialogAccept = function () { | ||
this._io.name = this._window.document.querySelector("#view-name").value | ||
this._io.content = this._window.document.querySelector("#view-content").value | ||
console.log("onDialogAccept", this._io) | ||
}; | ||
|
||
this.onDialogCancel = function () { | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?xml version="1.0"?> | ||
<?xml-stylesheet href="chrome:https://global/skin/" type="text/css"?> | ||
<?xml-stylesheet href="chrome:https://zotero/skin/zotero.css" type="text/css"?> | ||
<!DOCTYPE window SYSTEM "chrome:https://zotero/locale/zotero.dtd"> | ||
|
||
<dialog xmlns="http:https://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | ||
title="New View" buttons="cancel,accept" | ||
id="save-current-view" | ||
buttonlabelaccept="Add" | ||
buttonlabelextra1="Add" | ||
ondialogaccept="AddView.onDialogAccept()" | ||
ondialogcancel="AddView.onDialogCancel()" | ||
onload="AddView.init(window)" | ||
width="350" | ||
height="250"> | ||
|
||
<script src="include.js"/> | ||
<script src="addView.js"/> | ||
|
||
<vbox id="container"> | ||
<label value="Name"/> | ||
<textbox id="view-name" flex="1"></textbox> | ||
<separator/> | ||
<label value="Content"/> | ||
<textbox id="view-content" multiline="true" rows="4" flex="1"></textbox> | ||
</vbox> | ||
</dialog> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<vbox | ||
id="zotero-prefpane-__addonRef__" | ||
onload="Zotero.AddonTemplate.hooks.onPrefsEvent('load', {window})" | ||
> | ||
<groupbox> | ||
<label><html:h2>&zotero.__addonRef__.pref.title;</html:h2></label> | ||
<checkbox | ||
id="zotero-prefpane-__addonRef__-enable" | ||
label="&zotero.__addonRef__.pref.enable.label;" | ||
preference="extensions.zotero.__addonRef__.enable" | ||
/> | ||
<hbox> | ||
<html:label for="zotero-prefpane-__addonRef__-input" | ||
>&zotero.__addonRef__.pref.input.label;</html:label | ||
> | ||
<html:input | ||
type="text" | ||
id="zotero-prefpane-__addonRef__-input" | ||
preference="extensions.zotero.__addonRef__.input" | ||
></html:input> | ||
</hbox> | ||
</groupbox> | ||
</vbox> | ||
<vbox> | ||
<label | ||
value="&zotero.__addonRef__.help.version.label; &zotero.__addonRef__.help.releasetime.label;" | ||
></label> | ||
</vbox> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.tag-box .tag-swatch { | ||
position: absolute; | ||
display: inline-block; | ||
height: .9em; | ||
width: .9em; | ||
border-radius: 100%; | ||
font-size: 1em; | ||
} | ||
|
||
.tag-box { | ||
display: inline-block; | ||
position: relative; | ||
height: 1em; | ||
line-height: 1em; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
startup.begin=Addon is loading | ||
startup.finish=Addon is ready | ||
menuitem.label=Addon Template: Menuitem | ||
menupopup.label=Addon Template: Menupopup | ||
menuitem.submenulabel=Addon Template | ||
menuitem.filemenulabel=Addon Template: File Menuitem | ||
prefs.title=Template | ||
tabpanel.lib.tab.label=Lib Tab | ||
tabpanel.reader.tab.label=Reader Tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!ENTITY zotero.__addonRef__.pref.title "Addon Template Example"> | ||
<!ENTITY zotero.__addonRef__.itemmenu.test.label "addon template"> | ||
<!ENTITY zotero.__addonRef__.pref.enable.label "Enable"> | ||
<!ENTITY zotero.__addonRef__.pref.input.label "Input"> | ||
|
||
<!ENTITY zotero.__addonRef__.help.version.label "__addonName__ VERSION __buildVersion__"> | ||
<!ENTITY zotero.__addonRef__.help.releasetime.label "Build __buildTime__"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
startup.begin=插件加载中 | ||
startup.finish=插件已就绪 | ||
menuitem.label=插件模板: 菜单 | ||
menupopup.label=插件模板: 弹出菜单 | ||
menuitem.submenulabel=插件模板:子菜单 | ||
menuitem.filemenulabel=插件模板: 文件菜单 | ||
prefs.title=插件模板 | ||
tabpanel.lib.tab.label=库标签 | ||
tabpanel.reader.tab.label=阅读器标签 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!ENTITY zotero.__addonRef__.pref.title "插件模板设置示例"> | ||
<!ENTITY zotero.__addonRef__.itemmenu.test.label "插件模板"> | ||
<!ENTITY zotero.__addonRef__.pref.enable.label "开启"> | ||
<!ENTITY zotero.__addonRef__.pref.input.label "输入"> | ||
|
||
<!ENTITY zotero.__addonRef__.help.version.label "__addonName__ 版本 __buildVersion__"> | ||
<!ENTITY zotero.__addonRef__.help.releasetime.label "Build __buildTime__"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
pref("extensions.zotero.__addonRef__.enable", true); | ||
|
||
pref("extensions.zotero.__addonRef__.tagsColumn.align", "left"); | ||
pref("extensions.zotero.__addonRef__.tagsColumn.margin", "0.35"); | ||
|
||
|
||
pref("extensions.zotero.__addonRef__.titleColumn.color", "#FFC6D3"); | ||
pref("extensions.zotero.__addonRef__.titleColumn.opacity", "0.7"); | ||
|
||
pref("extensions.zotero.__addonRef__.IFColumn.color", "#A8D1D1"); | ||
pref("extensions.zotero.__addonRef__.IFColumn.opacity", "0.7"); | ||
|
||
pref("extensions.zotero.__addonRef__.progressColumn.color", "#86C8BC"); | ||
pref("extensions.zotero.__addonRef__.progressColumn.opacity", "0.7"); | ||
pref("extensions.zotero.__addonRef__.progressColumn.circle", true); | ||
|
||
pref("extensions.zotero.__addonRef__.columnsViews", "[]"); | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.