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
12 changes: 6 additions & 6 deletions platform.bible-extension/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# fw-lite-extension
# lexicon

FieldWorks Lite packaged as an extension for Platform.Bible.
The Platform.Bible extension for managing the lexicon for your project's target/vernacular language.

<!--

Expand Down Expand Up @@ -94,7 +94,7 @@ The general file structure is as follows:
- `src/components/` contains stand-alone (i.e., WebView- and service-independent) components
- `src/main.ts` is the main entry file for the extension
- `src/services/` contains services to be used with `networkObjects.set()` in `src/main.ts`
- `src/types/fw-lite-extension.d.ts` is this extension's types file that defines how other extensions can use this extension through the `papi`. It is copied into the build folder
- `src/types/lexicon.d.ts` is this extension's types file that defines how other extensions can use this extension through the `papi`. It is copied into the build folder
- `src/utils/` contains utility classes and functions
- `src/web-views/` contains WebView components to be used with `registerWebViewProvider()` in `src/main.ts`
- `*.web-view.tsx` files will be treated as React WebViews
Expand Down Expand Up @@ -124,13 +124,13 @@ In order to interact with `paranext-core`, you must clone `paranext-core` in the

## To run

First, you must build FieldWorks Lite using the task defined in this folder:
First, you must build FieldWorks Lite (FW Lite) using the task defined in this folder:

```bash
task build-fw-lite-web
task build-fw-lite
```

This is a normal production build, so changes to FwLite files will not be rebuilt automatically. If you want to do FwLite development, look at [README.md](../backend/FwLite/README.md)
This is a normal production build, so changes to FW Lite files will not be rebuilt automatically. If you want to do FW Lite development, look at [README.md](../backend/FwLite/README.md)

### Running Platform.Bible with this extension

Expand Down
6 changes: 3 additions & 3 deletions platform.bible-extension/Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ tasks:
- npm install

package:
deps: [build-fw-lite-web, install]
deps: [build-fw-lite, install]
cmds:
- npm run package

run:
deps: [build-fw-lite-web, install]
deps: [build-fw-lite, install]
cmds:
- npm run start

build-fw-lite-web:
build-fw-lite:
deps: [build-viewer]
cmds:
- dotnet publish ../backend/FwLite/FwLiteWeb/FwLiteWeb.csproj --configuration Release --sc --output ./public/fw-lite
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FieldWorks Lite for Platform.Bible. Powered by webpack.
Manage the lexicon for your project's target/vernacular language.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FieldWorks Lite para Platform.Bible. Desarrollado por webpack.
Manage the lexicon for your project's target/vernacular language.
Comment thread
imnasnainaec marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FieldWorks Lite pour Platform.Bible. Équipé de Webpack.
Manage the lexicon for your project's target/vernacular language.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FieldWorks Lite untuk Platform.Bible. Didukung oleh webpack.
Manage the lexicon for your project's target/vernacular language.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Platform.Bible용 FieldWorks Lite. 웹팩으로 구동됩니다.
Manage the lexicon for your project's target/vernacular language.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FieldWorks Lite for Platform.Bible. Powered by webpack.
Manage the lexicon for your project's target/vernacular language.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FieldWorks Lite for Platform.Bible. Powered by webpack.
Manage the lexicon for your project's target/vernacular language.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FieldWorks Lite for Platform.Bible. Powered by webpack.
Manage the lexicon for your project's target/vernacular language.
Comment thread
imnasnainaec marked this conversation as resolved.
4 changes: 2 additions & 2 deletions platform.bible-extension/assets/displayData.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"supportUrl": "",
"localizedDisplayInfo": {
"en": {
"displayName": "FieldWorks Lite",
"shortSummary": "FieldWorks Lite extension for Platform.Bible",
"displayName": "Lexicon",
"shortSummary": "Lexicon extension for Platform.Bible",
"description": "assets/descriptions/description-en.md"
}
}
Expand Down
82 changes: 41 additions & 41 deletions platform.bible-extension/contributions/localizedStrings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,47 @@
"metadata": {},
"localizedStrings": {
"en": {
"%fwLiteExtension_addWord_buttonAdd%": "Add new entry",
"%fwLiteExtension_addWord_buttonSubmit%": "Submit new entry",
"%fwLiteExtension_addWord_title%": "Add entry to FieldWorks",
"%fwLiteExtension_button_cancel%": "Cancel",
"%fwLiteExtension_dictionary_backToList%": "Back to list",
"%fwLiteExtension_dictionary_loading%": "Loading...",
"%fwLiteExtension_dictionary_noResults%": "No results",
"%fwLiteExtension_dictionarySelect_clear%": "Clear selection",
"%fwLiteExtension_dictionarySelect_confirm%": "Confirm selection",
"%fwLiteExtension_dictionarySelect_loading%": "Loading dictionaries ...",
"%fwLiteExtension_dictionarySelect_noneFound%": "No dictionaries found",
"%fwLiteExtension_dictionarySelect_saved%": "Dictionary selection saved. You can close this window.",
"%fwLiteExtension_dictionarySelect_saveError%": "Error saving dictionary selection:",
"%fwLiteExtension_dictionarySelect_saving%": "Saving dictionary selection",
"%fwLiteExtension_dictionarySelect_select%": "Select a dictionary",
"%fwLiteExtension_dictionarySelect_selected%": "Selected:",
"%fwLiteExtension_entryDisplay_definition%": "Definition",
"%fwLiteExtension_entryDisplay_gloss%": "Gloss",
"%fwLiteExtension_entryDisplay_headword%": "Headword",
"%fwLiteExtension_entryDisplay_partOfSpeech%": "Part of speech",
"%fwLiteExtension_entryDisplay_senses%": "Senses",
"%fwLiteExtension_error_failedToAddEntry%": "Failed to add entry!",
"%fwLiteExtension_error_gettingNetworkObject%": "Error getting network object:",
"%fwLiteExtension_error_missingParam%": "Missing required parameter: ",
"%fwLiteExtension_findRelatedWord_noResultsInDomain%": "No entries in this semantic domain.",
"%fwLiteExtension_findRelatedWord_selectInstruction%": "Select a semantic domain for related words in that domain",
"%fwLiteExtension_findRelatedWord_textField%": "Find related words in dictionary...",
"%fwLiteExtension_findWord_textField%": "Find in dictionary...",
"%fwLiteExtension_menu_addEntry%": "Add to FieldWorks...",
"%fwLiteExtension_menu_browseDictionary%": "Browse FieldWorks dictionary",
"%fwLiteExtension_menu_findEntry%": "Search in FieldWorks...",
"%fwLiteExtension_menu_findRelatedEntries%": "Search for related words...",
"%fwLiteExtension_projectSettings_analysisLanguage%": "Analysis language",
"%fwLiteExtension_projectSettings_dictionary%": "FieldWorks dictionary",
"%fwLiteExtension_projectSettings_dictionaryDescription%": "The FieldWorks dictionary to use with this project",
"%fwLiteExtension_projectSettings_title%": "FieldWorks Lite settings",
"%fwLiteExtension_webViewTitle_addWord%": "Add to FieldWorks",
"%fwLiteExtension_webViewTitle_findRelatedWords%": "Find related words in FieldWorks",
"%fwLiteExtension_webViewTitle_findWord%": "Search in FieldWorks",
"%fwLiteExtension_webViewTitle_browseDictionary%": "FieldWorks Lite",
"%fwLiteExtension_webViewTitle_selectDictionary%": "Select FieldWorks dictionary"
"%lexicon_addWord_buttonAdd%": "Add new entry",
"%lexicon_addWord_buttonSubmit%": "Submit new entry",
"%lexicon_addWord_title%": "Add entry to lexicon",
"%lexicon_button_cancel%": "Cancel",
"%lexicon_entryDisplay_definition%": "Definition",
"%lexicon_entryDisplay_gloss%": "Gloss",
"%lexicon_entryDisplay_headword%": "Headword",
"%lexicon_entryDisplay_partOfSpeech%": "Part of speech",
"%lexicon_entryDisplay_senses%": "Senses",
"%lexicon_entryList_backToList%": "Back to list",
"%lexicon_entryList_loading%": "Loading...",
"%lexicon_entryList_noResults%": "No results",
"%lexicon_error_failedToAddEntry%": "Failed to add entry!",
"%lexicon_error_gettingNetworkObject%": "Error getting network object:",
"%lexicon_error_missingParam%": "Missing required parameter: ",
"%lexicon_findRelatedWord_noResultsInDomain%": "No entries in this semantic domain.",
"%lexicon_findRelatedWord_selectInstruction%": "Select a semantic domain for related words in that domain",
"%lexicon_findRelatedWord_textField%": "Find related words in lexicon...",
"%lexicon_findWord_textField%": "Find in lexicon...",
"%lexicon_menu_addEntry%": "Add to lexicon...",
"%lexicon_menu_browseLexicon%": "Browse lexicon",
"%lexicon_menu_findEntry%": "Search in lexicon...",
"%lexicon_menu_findRelatedEntries%": "Search for related words...",
"%lexicon_projectSettings_analysisLanguage%": "Analysis language",
"%lexicon_projectSettings_lexicon%": "Lexicon",
"%lexicon_projectSettings_lexiconDescription%": "The lexicon to use with this project",
"%lexicon_projectSettings_title%": "Lexicon settings",
"%lexicon_selectLexicon_clear%": "Clear selection",
"%lexicon_selectLexicon_confirm%": "Confirm selection",
"%lexicon_selectLexicon_loading%": "Loading lexicons ...",
"%lexicon_selectLexicon_noneFound%": "No lexicons found",
"%lexicon_selectLexicon_saved%": "Lexicon selection saved. You can close this window.",
"%lexicon_selectLexicon_saveError%": "Error saving lexicon selection:",
"%lexicon_selectLexicon_saving%": "Saving lexicon selection",
"%lexicon_selectLexicon_select%": "Select a lexicon",
"%lexicon_selectLexicon_selected%": "Selected:",
"%lexicon_webViewTitle_addWord%": "Add to lexicon",
"%lexicon_webViewTitle_browseLexicon%": "Lexicon",
"%lexicon_webViewTitle_findRelatedWords%": "Find related words in lexicon",
"%lexicon_webViewTitle_findWord%": "Search in lexicon",
"%lexicon_webViewTitle_selectLexicon%": "Select lexicon"
}
}
}
26 changes: 13 additions & 13 deletions platform.bible-extension/contributions/menus.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,35 +18,35 @@
"topMenu": {
"columns": {},
"groups": {
"fw-lite-extension.editor": {
"lexicon.editor": {
"column": "platformScriptureEditor.edit",
"order": 11
}
},
"items": [
{
"label": "%fwLiteExtension_menu_browseDictionary%",
"group": "fw-lite-extension.editor",
"label": "%lexicon_menu_browseLexicon%",
"group": "lexicon.editor",
"order": 1,
"command": "fwLiteExtension.browseDictionary"
"command": "lexicon.browseLexicon"
},
{
"label": "%fwLiteExtension_menu_addEntry%",
"group": "fw-lite-extension.editor",
"label": "%lexicon_menu_addEntry%",
"group": "lexicon.editor",
"order": 2,
"command": "fwLiteExtension.addEntry"
"command": "lexicon.addEntry"
},
{
"label": "%fwLiteExtension_menu_findEntry%",
"group": "fw-lite-extension.editor",
"label": "%lexicon_menu_findEntry%",
"group": "lexicon.editor",
"order": 3,
"command": "fwLiteExtension.findEntry"
"command": "lexicon.findEntry"
},
{
"label": "%fwLiteExtension_menu_findRelatedEntries%",
"group": "fw-lite-extension.editor",
"label": "%lexicon_menu_findRelatedEntries%",
"group": "lexicon.editor",
"order": 4,
"command": "fwLiteExtension.findRelatedEntries"
"command": "lexicon.findRelatedEntries"
}
]
}
Expand Down
12 changes: 6 additions & 6 deletions platform.bible-extension/contributions/projectSettings.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[
{
"label": "%fwLiteExtension_projectSettings_title%",
"label": "%lexicon_projectSettings_title%",
"properties": {
"fw-lite-extension.fwAnalysisLanguage": {
"label": "%fwLiteExtension_projectSettings_analysisLanguage%",
"lexicon.analysisLanguage": {
"label": "%lexicon_projectSettings_analysisLanguage%",
"default": "",
"isHidden": true
},
"fw-lite-extension.fwDictionaryCode": {
"label": "%fwLiteExtension_projectSettings_dictionary%",
"description": "%fwLiteExtension_projectSettings_dictionaryDescription%",
"lexicon.lexiconCode": {
"label": "%lexicon_projectSettings_lexicon%",
"description": "%lexicon_projectSettings_lexiconDescription%",
"default": ""
}
}
Expand Down
4 changes: 2 additions & 2 deletions platform.bible-extension/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "fw-lite-extension",
"name": "lexicon",
"version": "0.0.1",
"publisher": "LexicalTools",
"displayData": "assets/displayData.json",
Expand All @@ -8,7 +8,7 @@
"main": "src/main.js",
"extensionDependencies": {},
"elevatedPrivileges": ["createProcess"],
"types": "src/types/fw-lite-extension.d.ts",
"types": "src/types/lexicon.d.ts",
"menus": "contributions/menus.json",
"settings": "contributions/settings.json",
"projectSettings": "contributions/projectSettings.json",
Expand Down
45 changes: 20 additions & 25 deletions platform.bible-extension/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading