From d2bec2c487eb256ca557a2cfcb829c3c128ebfc9 Mon Sep 17 00:00:00 2001 From: tjcouch-sil Date: Fri, 1 Nov 2024 16:16:01 -0500 Subject: [PATCH] Moved paratext registration to its own extension --- c-sharp/Users/ParatextRegistrationService.cs | 4 +- extensions/src/paratext-registration/LICENSE | 2 +- .../src/paratext-registration/README.md | 8 +- .../assets/descriptions/description-en.md | 4 +- .../assets/displayData.json | 4 +- .../contributions/localizedStrings.json | 28 +++- .../contributions/menus.json | 10 +- .../contributions/settings.json | 14 +- .../src/paratext-registration/manifest.json | 4 +- .../src/paratext-registration/package.json | 12 +- .../src/paratext-registration/src/main.ts | 76 +++++++++- ...paratext-registration.web-view-provider.ts | 2 +- .../src/paratext-registration.web-view.tsx | 9 +- .../types/paranext-extension-template.d.ts | 4 - .../src/types/paratext-registration.d.ts | 54 ++++++++ .../src/paratext-registration/tsconfig.json | 24 +--- .../webpack/webpack.config.base.ts | 20 +-- .../contributions/localizedStrings.json | 25 +--- .../contributions/menus.json | 7 - .../contributions/settings.json | 11 -- extensions/src/platform-scripture/src/main.ts | 61 -------- .../src/types/platform-scripture.d.ts | 49 ------- package-lock.json | 131 +++++++++++++++++- 23 files changed, 335 insertions(+), 228 deletions(-) rename extensions/src/{platform-scripture => paratext-registration}/src/paratext-registration.web-view-provider.ts (93%) rename extensions/src/{platform-scripture => paratext-registration}/src/paratext-registration.web-view.tsx (95%) delete mode 100644 extensions/src/paratext-registration/src/types/paranext-extension-template.d.ts create mode 100644 extensions/src/paratext-registration/src/types/paratext-registration.d.ts diff --git a/c-sharp/Users/ParatextRegistrationService.cs b/c-sharp/Users/ParatextRegistrationService.cs index 877f522856..b2d4284373 100644 --- a/c-sharp/Users/ParatextRegistrationService.cs +++ b/c-sharp/Users/ParatextRegistrationService.cs @@ -34,11 +34,11 @@ public async Task InitializeAsync() { // Set up commands on the PAPI await PapiClient.RegisterRequestHandlerAsync( - "command:platformScripture.getParatextRegistrationData", + "command:paratextRegistration.getParatextRegistrationData", GetParatextRegistrationData ); await PapiClient.RegisterRequestHandlerAsync( - "command:platformScripture.setParatextRegistrationData", + "command:paratextRegistration.setParatextRegistrationData", SetParatextRegistrationData ); } diff --git a/extensions/src/paratext-registration/LICENSE b/extensions/src/paratext-registration/LICENSE index 59882a9250..f43d285eef 100644 --- a/extensions/src/paratext-registration/LICENSE +++ b/extensions/src/paratext-registration/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) +Copyright © 2024 SIL International Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/extensions/src/paratext-registration/README.md b/extensions/src/paratext-registration/README.md index 2fe51ecbbf..3d80f4060e 100644 --- a/extensions/src/paratext-registration/README.md +++ b/extensions/src/paratext-registration/README.md @@ -1,8 +1,8 @@ -# paranext-extension-template +# paratext-registration -Basic extension template for Platform.Bible +Platform.Bible extension that helps users to set up authentication with the Paratext Registry - +