Skip to content

Commit eda6113

Browse files
Merge pull request #1261 from OpenSignLabs/raktima-patch-2
fix: update npm package name of public sign
2 parents dfcf32e + 4f1509c commit eda6113

File tree

6 files changed

+31
-24
lines changed

6 files changed

+31
-24
lines changed

apps/OpenSign/public/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@
635635
"decline-by":"Declined/revoked by",
636636
"document-declined": "Document declined",
637637
"public-template-mssg-1":"To integrate OpenSign into your React or Next.js project, simply run the following command:",
638-
"public-template-mssg-2" :"Ensure you have npm or yarn set up in your project. If you’re using Yarn, you can replace npm install with yarn add opensign-react.",
638+
"public-template-mssg-2" :"Ensure you have npm or yarn set up in your project. If you’re using Yarn, you can replace npm install with yarn add @opensign/react.",
639639
"public-template-mssg-3" :"Need more details or examples?",
640640
"public-template-mssg-4": "Visit the",
641641
"public-template-mssg-5": " npm for the latest updates, detailed documentation, and version history.",

apps/OpenSign/public/locales/fr/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@
634634
"decline-by" :"Refusé/révoqué par",
635635
"document-declined":"document refusé",
636636
"public-template-mssg-1" :"Pour intégrer OpenSign dans votre projet React ou Next.js, exécutez simplement la commande suivante :",
637-
"public-template-mssg-2" :"Assurez-vous que npm ou Yarn est configuré dans votre projet. Si vous utilisez Yarn, vous pouvez remplacer npm install par Yarn Add opensign-react.",
637+
"public-template-mssg-2" :"Assurez-vous que npm ou Yarn est configuré dans votre projet. Si vous utilisez Yarn, vous pouvez remplacer npm install par Yarn Add @opensign/react.",
638638
"public-template-mssg-3" :"Besoin de plus de détails ou d'exemples ?",
639639
"public-template-mssg-4": "Visitez le",
640640
"public-template-mssg-5": "npm pour les dernières mises à jour, une documentation détaillée et l'historique des versions.",

apps/OpenSign/src/components/pdf/EmbedTab.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ function EmbedTab(props) {
1919
id: 0,
2020
title: "Installation",
2121
codeString: `
22-
npm install opensign-react`
22+
npm install @opensign/react`
2323
},
2424
{
2525
id: 1,
2626
title: "Usage",
2727
codeString: `
2828
import React from "react";
29-
import Opensign from "opensign-react";
29+
import Opensign from "@opensign/react";
3030
3131
export function App() {
3232
return (
@@ -50,14 +50,14 @@ export function App() {
5050
id: 0,
5151
title: "Installation",
5252
codeString: `
53-
npm install opensign-angular-lib`
53+
npm install @opensign/angular`
5454
},
5555
{
5656
id: 1,
5757
title: "Usage",
5858
codeString: `
5959
import { Component } from '@angular/core';
60-
import {OpensignComponent} from "opensign-angular-lib"
60+
import {OpensignComponent} from "@opensign/angular"
6161
6262
@Component({
6363
selector:'app-root',
@@ -163,7 +163,7 @@ export class AppComponent{
163163
{" "}
164164
{t("public-template-mssg-4")}
165165
<a
166-
href="https://www.npmjs.com/package/opensign-react"
166+
href="https://www.npmjs.com/package/@opensign/react"
167167
target="_blank"
168168
rel="noreferrer"
169169
className="cursor-pointer text-blue-700 "
@@ -246,7 +246,7 @@ export class AppComponent{
246246
{" "}
247247
{t("public-template-mssg-4")}
248248
<a
249-
href="https://www.npmjs.com/package/opensign-angular-lib"
249+
href="https://www.npmjs.com/package/@opensign/angular"
250250
target="_blank"
251251
rel="noreferrer"
252252
className="cursor-pointer text-blue-700 "

apps/OpenSign/src/json/ReportJson.js

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { isEnableSubscription } from "../constant/const";
2+
13
export default function reportJson(id) {
24
// console.log("json ", json);
35
const head = ["Sr.No", "Title", "Note", "Folder", "File", "Owner", "Signers"];
@@ -22,6 +24,24 @@ export default function reportJson(id) {
2224
const contactbook = ["Sr.No", "Name", "Email", "Phone"];
2325
const dashboardReportHead = ["Title", "File", "Owner", "Signers"];
2426
const templateReport = ["Sr.No", "Title", "File", "Owner", "Signers"];
27+
const templateSubAction = isEnableSubscription
28+
? [
29+
{
30+
btnId: "2434",
31+
btnLabel: "Embed",
32+
hoverLabel: "Embed",
33+
btnIcon: "fa-light fa-code",
34+
action: "Embed"
35+
},
36+
{
37+
btnId: "2434",
38+
btnLabel: "Copy TemplateId",
39+
hoverLabel: "Copy TemplateId",
40+
btnIcon: "fa-light fa-copy",
41+
action: "CopyTemplateId"
42+
}
43+
]
44+
: [];
2545
switch (id) {
2646
// draft documents report
2747
case "ByHuevtCFY":
@@ -363,20 +383,7 @@ export default function reportJson(id) {
363383
redirectUrl: "template",
364384
action: "redirect"
365385
},
366-
{
367-
btnId: "2434",
368-
btnLabel: "Embed",
369-
hoverLabel: "Embed",
370-
btnIcon: "fa-light fa-code",
371-
action: "Embed"
372-
},
373-
{
374-
btnId: "2434",
375-
btnLabel: "Copy TemplateId",
376-
hoverLabel: "Copy TemplateId",
377-
btnIcon: "fa-light fa-copy",
378-
action: "CopyTemplateId"
379-
},
386+
...templateSubAction,
380387
{
381388
btnId: "1834",
382389
btnLabel: "Delete",

apps/OpenSign/src/script/locales/en/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@
635635
"decline-by":"Declined/revoked by",
636636
"document-declined": "Document declined",
637637
"public-template-mssg-1":"To integrate OpenSign into your React or Next.js project, simply run the following command:",
638-
"public-template-mssg-2" :"Ensure you have npm or yarn set up in your project. If you’re using Yarn, you can replace npm install with yarn add opensign-react.",
638+
"public-template-mssg-2" :"Ensure you have npm or yarn set up in your project. If you’re using Yarn, you can replace npm install with yarn add @opensign/react.",
639639
"public-template-mssg-3" :"Need more details or examples?",
640640
"public-template-mssg-4": "Visit the",
641641
"public-template-mssg-5": " npm for the latest updates, detailed documentation, and version history.",

apps/OpenSign/src/script/locales/fr/translation.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@
634634
"decline-by" :"Refusé/révoqué par",
635635
"document-declined":"document refusé",
636636
"public-template-mssg-1" :"Pour intégrer OpenSign dans votre projet React ou Next.js, exécutez simplement la commande suivante :",
637-
"public-template-mssg-2" :"Assurez-vous que npm ou Yarn est configuré dans votre projet. Si vous utilisez Yarn, vous pouvez remplacer npm install par Yarn Add opensign-react.",
637+
"public-template-mssg-2" :"Assurez-vous que npm ou Yarn est configuré dans votre projet. Si vous utilisez Yarn, vous pouvez remplacer npm install par Yarn Add @opensign/react.",
638638
"public-template-mssg-3" :"Besoin de plus de détails ou d'exemples ?",
639639
"public-template-mssg-4": "Visitez le",
640640
"public-template-mssg-5": "npm pour les dernières mises à jour, une documentation détaillée et l'historique des versions.",

0 commit comments

Comments
 (0)