-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v1.0.3 代码审改 #374
base: main
Are you sure you want to change the base?
v1.0.3 代码审改 #374
Changes from 4 commits
e3a162b
771614c
a813c1c
d8666d0
f1c576e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,112 @@ | ||||||||||
<?xml version="1.0"?> | ||||||||||
<!-- prettier-ignore --> | ||||||||||
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> | ||||||||||
<!-- prettier-ignore --> | ||||||||||
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?> | ||||||||||
<!-- prettier-ignore --> | ||||||||||
<?xml-stylesheet href="chrome://zotero-platform/content/zotero-react-client.css" type="text/css"?> | ||||||||||
<!-- prettier-ignore --> | ||||||||||
<?xml-stylesheet href="chrome://zotero-platform/content/zotero.css" type="text/css"?> | ||||||||||
<!-- prettier-ignore --> | ||||||||||
<!DOCTYPE html> | ||||||||||
<html | ||||||||||
id="__addonRef__-translators" | ||||||||||
xmlns="http://www.w3.org/1999/xhtml" | ||||||||||
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" | ||||||||||
xmlns:html="http://www.w3.org/1999/xhtml" | ||||||||||
windowtype="__addonRef__:translators" | ||||||||||
> | ||||||||||
<head> | ||||||||||
<title data-l10n-id="title"></title> | ||||||||||
<meta charset="utf-8" /> | ||||||||||
<xul:linkset> | ||||||||||
<link rel="localization" href="zotero.ftl" /> | ||||||||||
<link rel="localization" href="__addonRef__-preferences-translators.ftl" /> | ||||||||||
</xul:linkset> | ||||||||||
<xul:keyset> | ||||||||||
<xul:key id="key_close" key="W" modifiers="accel" oncommand="window.close()"/> | ||||||||||
</xul:keyset> | ||||||||||
<script> | ||||||||||
document.addEventListener("DOMContentLoaded", (ev) => { | ||||||||||
Services.scriptloader.loadSubScript( | ||||||||||
"chrome://zotero/content/include.js", | ||||||||||
this, | ||||||||||
); | ||||||||||
window.arguments[0]._initPromise.resolve(); | ||||||||||
}); | ||||||||||
</script> | ||||||||||
<style> | ||||||||||
html, | ||||||||||
body { | ||||||||||
margin: 0; | ||||||||||
min-width: 800px; | ||||||||||
min-height: 400px; | ||||||||||
height: 100%; | ||||||||||
} | ||||||||||
header, footer { | ||||||||||
display: flex; | ||||||||||
align-items: center; | ||||||||||
height: 50px; | ||||||||||
padding: 0 10px; | ||||||||||
} | ||||||||||
toolbar, toolbar > hbox { | ||||||||||
width: 100%; | ||||||||||
} | ||||||||||
.toolbarbutton-text{ | ||||||||||
margin-left: 4px; | ||||||||||
} | ||||||||||
main { | ||||||||||
width: 100%; | ||||||||||
height: calc(100% - 2*50px); | ||||||||||
background: var(--material-background); | ||||||||||
} | ||||||||||
#table-container { | ||||||||||
height: 100%; | ||||||||||
width: 100%; | ||||||||||
} | ||||||||||
#translators-table { | ||||||||||
height: 100%; | ||||||||||
} | ||||||||||
footer { | ||||||||||
justify-content: space-between; | ||||||||||
} | ||||||||||
footer > * { | ||||||||||
display: flex; | ||||||||||
gap: 6px; | ||||||||||
} | ||||||||||
#links > .zotero-text-link { | ||||||||||
margin: 0 5px; | ||||||||||
} | ||||||||||
footer > * > :first-child { | ||||||||||
margin-left: 0; | ||||||||||
} | ||||||||||
footer > * > :last-child { | ||||||||||
margin-right: 0; | ||||||||||
} | ||||||||||
</style> | ||||||||||
</head> | ||||||||||
<body> | ||||||||||
<header xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | ||||||||||
<toolbar class="zotero-toolbar toolbar toolbar-primary"> | ||||||||||
<hbox align="center"> | ||||||||||
<toolbarbutton id="github-link" class="zotero-tb-button" data-l10n-id="github-link" image="chrome://__addonRef__/content/icons/github.svg" /> | ||||||||||
<spacer flex="1"></spacer> | ||||||||||
<search-textbox id="search-box" data-l10n-id="search-box" data-l10n-attrs="placeholder" timeout="1" style="padding: 0;"/> | ||||||||||
</hbox> | ||||||||||
</toolbar> | ||||||||||
</header> | ||||||||||
<main> | ||||||||||
<div id="table-container"></div> | ||||||||||
</main> | ||||||||||
<footer> | ||||||||||
<div id="buttons" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | ||||||||||
<button id="request-new-translator" data-l10n-id="request-new-translator" /> | ||||||||||
<button id="report-translator-bug" data-l10n-id="report-translator-bug" /> | ||||||||||
</div> | ||||||||||
<div id="links" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> | ||||||||||
<label data-l10n-id="how-to-update-translators" class="zotero-text-link"/> | ||||||||||
<label data-l10n-id="translators-dashboard" class="zotero-text-link"/> | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 我注意到这个 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 只有带有这个 is 属性的文本链接才能拉起浏览器。 |
||||||||||
</div> | ||||||||||
</footer> | ||||||||||
</body> | ||||||||||
</html> |
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里声明命名空间是刻意的吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
刻意的,button 在两个命名空间里都有,在此明示之。