Skip to content

Commit

Permalink
更改快捷键文本框大小
Browse files Browse the repository at this point in the history
  • Loading branch information
redleafnew committed Jun 24, 2023
1 parent 60f96a8 commit 91a25ed
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
14 changes: 8 additions & 6 deletions addon/chrome/content/preferences.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<html:label width='250' for="zotero-prefpane-__addonRef__-secretkey" data-l10n-id="pref-secretkey-label">
</html:label>
<html:input type="password" id="zotero-prefpane-__addonRef__-secretkey" value="" width='500'
preference="extensions.zotero.__addonRef__.secretkey">
preference="extensions.zotero.__addonRef__.secretkey" size="30" style="margin-right: 15px">
</html:input>
<!-- 空格 -->
<label value=" "></label>
<!-- <label value=" "></label> -->
<label data-l10n-id="pref-secretkey-apply-label" class="zotero-text-link" href="https://easyscholar.cc/"></label>
</hbox>

Expand Down Expand Up @@ -251,7 +251,7 @@
data-l10n-id="shortcut-title-sentence" preference="extensions.zotero.__addonRef__.shortcut.title.sentence" />
<label value="Ctrl + "></label>
<html:input type="text" id="zotero-prefpane-__addonRef__-shortcut-input-title-sentence" value="T" width='5'
preference="extensions.zotero.__addonRef__.shortcut.input.title.sentence">
preference="extensions.zotero.__addonRef__.shortcut.input.title.sentence" size="4" style="margin-right: 15px">
</html:input>
</hbox>
<!-- 期刊名称改为词首字母大写 -->
Expand All @@ -261,7 +261,8 @@
preference="extensions.zotero.__addonRef__.shortcut.publication.title.case" />
<label value="Ctrl + "></label>
<html:input type="text" id="zotero-prefpane-__addonRef__-shortcut-input-publication-title-case" value="U"
width='5' preference="extensions.zotero.__addonRef__.shortcut.input.publication.title.case">
width='5' preference="extensions.zotero.__addonRef__.shortcut.input.publication.title.case" size="4"
style="margin-right: 15px">
</html:input>
</hbox>
<!-- 显示数据目录 -->
Expand All @@ -270,7 +271,7 @@
preference="extensions.zotero.__addonRef__.shortcut.data.dir" />
<label value="Alt + "></label>
<html:input type="text" id="zotero-prefpane-__addonRef__-shortcut-input-data-dir" value="D" width='5'
preference="extensions.zotero.__addonRef__.shortcut.input.data.dir">
preference="extensions.zotero.__addonRef__.shortcut.input.data.dir" size="4" style="margin-right: 15px">
</html:input>
</hbox>
<!-- 显示配置目录 -->
Expand All @@ -279,12 +280,13 @@
preference="extensions.zotero.__addonRef__.shortcut.profile.dir" />
<label value="Alt + "></label>
<html:input type="text" id="zotero-prefpane-__addonRef__-shortcut-input-profile-dir" value="P" width='5'
preference="extensions.zotero.__addonRef__.shortcut.input.profile.dir">
preference="extensions.zotero.__addonRef__.shortcut.input.profile.dir" size="4" style="margin-right: 15px">
</html:input>
</hbox>

</groupbox>
</vbox>
<separator id="storage-separator" class="thick" />
<vbox>
<html:label data-l10n-id="pref-help"
data-l10n-args='{"time": "__buildTime__","name": "__addonName__","version":"__buildVersion__"}'></html:label>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
},
"homepage": "https://github.com/redleafnew/zotero-updateifsE#readme",
"dependencies": {
"zotero-plugin-toolkit": "^2.1.4"
"zotero-plugin-toolkit": "^2.1.5"
},
"devDependencies": {
"@types/node": "^20.3.1",
"chokidar-cli": "^3.0.0",
"compressing": "^1.9.0",
"concurrently": "^8.2.0",
"cross-env": "^7.0.3",
"esbuild": "^0.18.4",
"esbuild": "^0.18.6",
"minimist": "^1.2.8",
"release-it": "^15.11.0",
"replace-in-file": "^6.3.5",
Expand Down
2 changes: 1 addition & 1 deletion scripts/reload.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const script = `
progressWindow.startCloseTimer(5000);
})()`;

const url = `zotero://ztoolkit-debug/?run=${encodeURIComponent(script)}`;
const url = `zotero://ztoolkit-debug/?run=${encodeURIComponent(script)}&password=CTT`;

const command = `${startZotero} -url "${url}"`;

Expand Down

0 comments on commit 91a25ed

Please sign in to comment.