Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# zotero-types depends on git-hosted packages (epubjs, pdfjs-dist).
# npm >= 12 blocks git dependencies by default.
allow-git=all
12 changes: 1 addition & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Search `@example` in `src/examples.ts`. The examples are called in `src/hooks.ts
![image](https://user-images.githubusercontent.com/33902321/211739774-cc5c2df8-5fd9-42f0-9cdf-0f2e5946d427.png)

- registerStyleSheet(the official make-it-red example)
- registerRightClickMenuItem
- registerRightClickMenuItem (uses the native `Zotero.MenuManager`, Zotero 8+)
- registerRightClickMenuPopup
- registerWindowMenuWithSeprator
- registerExtraColumn
Expand Down Expand Up @@ -119,16 +119,6 @@ See [`src/modules/preferenceScript.ts`](./src/modules/preferenceScript.ts)
- progressWindowExample
- vtableExample(See Preference Pane Examples)

### PromptExamples

An Obsidian-style prompt(popup command input) module. It accepts text command to run callback, with optional display in the popup.

Activate with `Shift+P`.

![image](https://user-images.githubusercontent.com/33902321/215120009-e7c7ed27-33a0-44fe-b021-06c272481a92.png)

- registerAlertPromptExample

## Quick Start Guide

### 0 Requirement
Expand Down
4 changes: 0 additions & 4 deletions addon/locale/en-US/addon.ftl
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
startup-begin = Addon is loading
startup-finish = Addon is ready
menuitem-label = Addon Template: Helper Examples
menupopup-label = Addon Template: Menupopup
menuitem-submenulabel = Addon Template
menuitem-filemenulabel = Addon Template: File Menuitem
prefs-title = Template
prefs-table-title = Title
prefs-table-detail = Detail
Expand Down
4 changes: 4 additions & 0 deletions addon/locale/en-US/mainWindow.ftl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
menuitem-label = Addon Template: Helper Examples
menupopup-label = Addon Template: Menupopup
menuitem-submenulabel = Addon Template
menuitem-filemenulabel = Addon Template: File Menuitem
item-section-example1-head-text =
.label = Plugin Template: Item Info
item-section-example1-sidenav-tooltip =
Expand Down
4 changes: 0 additions & 4 deletions addon/locale/zh-CN/addon.ftl
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
startup-begin = 插件加载中
startup-finish = 插件已就绪
menuitem-label = 插件模板: 帮助工具样例
menupopup-label = 插件模板: 弹出菜单
menuitem-submenulabel = 插件模板:子菜单
menuitem-filemenulabel = 插件模板: 文件菜单
prefs-title = 插件模板
prefs-table-title = 标题
prefs-table-detail = 详情
Expand Down
4 changes: 4 additions & 0 deletions addon/locale/zh-CN/mainWindow.ftl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
menuitem-label = 插件模板: 帮助工具样例
menupopup-label = 插件模板: 弹出菜单
menuitem-submenulabel = 插件模板:子菜单
menuitem-filemenulabel = 插件模板: 文件菜单
item-section-example1-head-text =
.label = 插件模板: 条目信息
item-section-example1-sidenav-tooltip =
Expand Down
2 changes: 1 addition & 1 deletion addon/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"zotero": {
"id": "__addonID__",
"update_url": "__updateURL__",
"strict_min_version": "6.999",
"strict_min_version": "8.0",
"strict_max_version": "8.*"
}
}
Expand Down
16 changes: 3 additions & 13 deletions doc/README-frFR.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Recherchez `@example` dans `src/examples.ts`. Les exemples sont appelés dans `s
![image](https://user-images.githubusercontent.com/33902321/211739774-cc5c2df8-5fd9-42f0-9cdf-0f2e5946d427.png)

- registerStyleSheet (utilisé par l'extension officielle make-it-red qui sert d'exemple)
- registerRightClickMenuItem
- registerRightClickMenuItem (utilise l'API native `Zotero.MenuManager`, Zotero 8+)
- registerRightClickMenuPopup
- registerWindowMenuWithSeprator
- registerExtraColumn
Expand Down Expand Up @@ -122,16 +122,6 @@ Voir [`src/modules/preferenceScript.ts`](../src/modules/preferenceScript.ts)
- progressWindowExample
- vtableExample (voir Exemples avec des panneaux de préférences)

### Exemples de prompts

Un module d'invite (entrée de commande contextuelle) de style Obsidian. Il accepte les commandes textuelles pour exécuter le callback, avec un affichage optionnel dans la fenêtre popup.

S'active avec `Shift+P`.

![image](https://user-images.githubusercontent.com/33902321/215120009-e7c7ed27-33a0-44fe-b021-06c272481a92.png)

- registerAlertPromptExample

## Guide de démarrage rapide

### 0. Pré-requis
Expand Down Expand Up @@ -205,9 +195,9 @@ vim .env

3. Installez les dépendances avec `npm install`

> Si vous utilisez `pnpm` comme gestionnaire de paquets pour votre projet, vous devez ajouter `public-hoist-pattern[]=*@types/bluebird*` à `.npmrc`, voir <https://github.com/windingwind/zotero-types?tab=readme-ov-file#usage>.
> Si vous utilisez `pnpm` comme gestionnaire de paquets pour votre projet, vous devez ajouter `public-hoist-pattern[]=*@types/bluebird*` à `.npmrc`, voir <https://github.com/windingwind/zotero-types?tab=readme-ov-file#usage>.

Si vous obtenez `npm ERR ! ERESOLVE unable to resolve dependency tree` avec `npm install`, qui est un bogue de dépendance en amont de typescript-eslint, utilisez la commande `npm i -f` pour l'installer.
Si vous obtenez `npm ERR ! ERESOLVE unable to resolve dependency tree` avec `npm install`, qui est un bogue de dépendance en amont de typescript-eslint, utilisez la commande `npm i -f` pour l'installer.

### 3. Codez

Expand Down
12 changes: 1 addition & 11 deletions doc/README-zhCN.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
![image](https://user-images.githubusercontent.com/33902321/211739774-cc5c2df8-5fd9-42f0-9cdf-0f2e5946d427.png)

- registerStyleSheet(the official make-it-red example)
- registerRightClickMenuItem
- registerRightClickMenuItem (使用原生 `Zotero.MenuManager`,需要 Zotero 8+)
- registerRightClickMenuPopup
- registerWindowMenuWithSeprator
- registerExtraColumn
Expand Down Expand Up @@ -116,16 +116,6 @@
- progressWindowExample
- vtableExample(See Preference Pane Examples)

### 指令行示例 (PromptExamples)

Obsidian 风格的指令输入模块,它通过接受文本来运行插件,并在弹出窗口中显示可选项。

使用 `Shift+P` 激活。

![image](https://user-images.githubusercontent.com/33902321/215120009-e7c7ed27-33a0-44fe-b021-06c272481a92.png)

- registerAlertPromptExample

## 快速上手

### 0 环境要求
Expand Down
Loading
Loading