-
-
Notifications
You must be signed in to change notification settings - Fork 294
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
Showing
12 changed files
with
56 additions
and
37 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
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,4 +1,9 @@ | ||
Components.utils.import('resource://gre/modules/Services.jsm') | ||
/* | ||
declare var Services: any | ||
if (typeof Services == 'undefined') { | ||
var { Services } = ChromeUtils.import('resource://gre/modules/Services.jsm') // eslint-disable-line no-var | ||
} | ||
*/ | ||
|
||
import * as client from './client' | ||
|
||
|
@@ -28,8 +33,6 @@ import { alert } from './prompt' | |
|
||
import * as s3 from './s3.json' | ||
|
||
import * as PACKAGE from '../package.json' | ||
|
||
const kB = 1024 | ||
|
||
type WizardButton = HTMLElement & { disabled: boolean } | ||
|
@@ -139,11 +142,11 @@ export class ErrorReport { | |
if (index === 0) Zotero.Utilities.Internal.quit(true) | ||
} | ||
|
||
private async latest() { | ||
private async latest(): Promise<string> { | ||
try { | ||
const latest = PACKAGE.xpi.releaseURL.replace('https://github.com/', 'https://api.github.com/repos/').replace(/\/releases\/.*/, '/releases/latest') | ||
// eslint-disable-next-line @typescript-eslint/no-unsafe-return | ||
return JSON.parse((await Zotero.HTTP.request('GET', latest, { noCache: true })).response).tag_name.replace('v', '') | ||
const latest = JSON.parse((await Zotero.HTTP.request('GET', 'https://github.com/retorquere/zotero-better-bibtex/releases/download/release/updates.json', { noCache: true })).response) | ||
return latest.addons['[email protected]'].updates[0].version as string | ||
} | ||
catch (err) { | ||
log.error('errorreport.latest:', err) | ||
|
@@ -434,7 +437,12 @@ export class ErrorReport { | |
context += 'Settings:\n' | ||
const settings = { default: '', set: '' } | ||
for (const [ key, value ] of Object.entries(Preference.all)) { | ||
settings[value === defaults[key] ? 'default' : 'set'] += ` ${ key } = ${ JSON.stringify(value) }\n` | ||
if (value === defaults[key]) { | ||
settings.default += ` ${key} = ${ JSON.stringify(value) }\n` | ||
} | ||
else { | ||
settings.set += ` ${key} = ${JSON.stringify(value)} (default: ${JSON.stringify(defaults[key])})\n` | ||
} | ||
} | ||
if (settings.default) settings.default = `Settings at default:\n${ settings.default }` | ||
context += settings.set + settings.default | ||
|
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,3 +1,5 @@ | ||
This release is compatible with Zotero 7 and Zotero 7 beta. The last version of BBT that is compatible with Zotero 6 can be found at https://github.com/retorquere/zotero-better-bibtex/releases/tag/v6.7.267. Zotero 6 support is in maintenance mode. | ||
|
||
If you use Firefox, make sure to right-click and save the XPI file, not just clicking it. | ||
|
||
You can verify you are on the latest version by going into 'Tools' -> 'Addons' in Zotero/Juris-M, clicking the gear icon, and selecting 'Check for updates' |
Submodule zotero
updated
4 files
+4 −8 | .github/workflows/ci.yml | |
+3 −3 | app/config.sh | |
+1 −1 | note-editor | |
+1 −1 | reader |
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