This file contains hidden or 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
| var { install, onMainWindowLoad, onMainWindowUnload, shutdown, startup, uninstall } = (() => { | |
| var __create = Object.create; | |
| var __defProp = Object.defineProperty; | |
| var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | |
| var __getOwnPropNames = Object.getOwnPropertyNames; | |
| var __getProtoOf = Object.getPrototypeOf; | |
| var __hasOwnProp = Object.prototype.hasOwnProperty; | |
| var __esm = (fn, res) => function __init() { | |
| return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res; | |
| }; |
This file contains hidden or 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
| function a0_0x4c19(){var _0x185144=['nodeType','count','decodeText','filter','source','Error\x20running\x20export','A&T\x20\x22Export\x20to\x20DEVONThink\x22\x20is\x20not\x20active.','sticky','ATTRIBUTE','(?:','chars','Bearer\x20','default','currentApplication','legacy','processInfo','An\x20error\x20was\x20suppressed\x20during\x20disposal.','rawData','nameStart','Stop','static','char','NSMutableURLRequest','DOCUMENT','pop','displayGroupSelector','dataWithContentsOfURL','div','attributeTokenPool','displayAlert','label','Please\x20provide\x20a\x20collection/item\x20URI','URLWithString','__assign','application/javascript','asyncIterator','endsAncestorAt','number','stack','<tr>','includeStandardAdditions','entries','index','critical','toUpperCase','<a\x20href=\x22','call','replace','Object\x20not\x20disposable.','</tr>','sourceEnd','99981hQklJo','getter','constructor','none','initWithUTF8String','createEntityDecoder','Zotero\x20is\x20not\x20online.\x20Is\x20extensions.zotero.httpServer.localAPI.enabled\x20set\x20 |
This file contains hidden or 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
| print('zotero-live-citations 7569117') | |
| local mt, latest = pandoc.mediabag.fetch('https://retorque.re/zotero-better-bibtex/exporting/zotero.lua.revision') | |
| latest = string.sub(latest, 1, 10) | |
| if '7569117' ~= latest then | |
| print('new version "' .. latest .. '" available at https://retorque.re/zotero-better-bibtex/exporting') | |
| end | |
| do | |
| local _ENV = _ENV |
This file contains hidden or 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
| print('zotero-live-citations bc894b4') | |
| local mt, latest = pandoc.mediabag.fetch('https://retorque.re/zotero-better-bibtex/exporting/zotero.lua.revision') | |
| latest = string.sub(latest, 1, 10) | |
| if 'bc894b4' ~= latest then | |
| print('new version "' .. latest .. '" available at https://retorque.re/zotero-better-bibtex/exporting') | |
| end | |
| do | |
| local _ENV = _ENV |
This file contains hidden or 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
| print('zotero-live-citations 4b9705e') | |
| local mt, latest = pandoc.mediabag.fetch('https://retorque.re/zotero-better-bibtex/exporting/zotero.lua.revision') | |
| latest = string.sub(latest, 1, 10) | |
| if '4b9705e' ~= latest then | |
| print('new version "' .. latest .. '" available at https://retorque.re/zotero-better-bibtex/exporting') | |
| end | |
| do | |
| local _ENV = _ENV |
This file contains hidden or 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
| print('zotero-live-citations 4b9705e') | |
| local mt, latest = pandoc.mediabag.fetch('https://retorque.re/zotero-better-bibtex/exporting/zotero.lua.revision') | |
| latest = string.sub(latest, 1, 10) | |
| if '4b9705e' ~= latest then | |
| print('new version "' .. latest .. '" available at https://retorque.re/zotero-better-bibtex/exporting') | |
| end | |
| do | |
| local _ENV = _ENV |
This file contains hidden or 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
| declare const Zotero: any | |
| declare const location: any | |
| export const is7 = (typeof location !== 'undefined' && location.search) ? ((new URLSearchParams(location.search)).get('is7') === 'true') : Zotero.platformMajorVersion >= 102 | |
| function clientname(): string { | |
| if (typeof location !== 'undefined' && location.search) return (new URLSearchParams(location.search)).get('clientName') | |
| // if (process.versions.node) return 'Zotero' // testing | |
| if (Zotero.clientName) return Zotero.clientName as string | |
| if (Zotero.BetterBibTeX?.clientName) return Zotero.BetterBibTeX.clientName as string |
This file contains hidden or 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
| // class from https://gist.github.com/lentschi/3fcbf7f6894b11bee1eb3d6a832a84e6 | |
| /** | |
| * Asyncronous iterable iterator for IndexedDB object stores or indexes | |
| * | |
| * @author Florian Lentsch <office@florian-lentsch.at> | |
| * @license MIT | |
| * | |
| * ____________________________________________________________________________ | |
| * REQUIREMENTS: You may have to add "lib": ["esnext.asynciterable"] to | |
| * your tsconfig.json - see https://stackoverflow.com/questions/43694281/ts2318-cannot-find-global-type-asynciterableiterator-async-generator?answertab=votes#tab-top |
This file contains hidden or 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
| var CSL = require('citeproc') | |
| var styleAsText = <contents of style.csl> | |
| // Load your list of references | |
| const references = { | |
| item1: { | |
| id: 'item1', | |
| type: 'book', | |
| title: 'Stuff', |
This file contains hidden or 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
| { | |
| "name": "tt", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "test": "tap && echo success" | |
| }, | |
| "author": "", | |
| "license": "ISC", |