feat:client id key ng
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
6bbc4e98a7
commit
9140b71679
|
|
@ -320,7 +320,7 @@ export default function CreateArticleForm() {
|
||||||
createdBy: "345",
|
createdBy: "345",
|
||||||
style: "Informational",
|
style: "Informational",
|
||||||
projectId: 2,
|
projectId: 2,
|
||||||
clientId: "humasClientIdtest",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
lang: "id",
|
lang: "id",
|
||||||
};
|
};
|
||||||
const res = await updateManualArticle(request);
|
const res = await updateManualArticle(request);
|
||||||
|
|
@ -341,7 +341,7 @@ export default function CreateArticleForm() {
|
||||||
createdBy: "345",
|
createdBy: "345",
|
||||||
style: "Informational",
|
style: "Informational",
|
||||||
projectId: 2,
|
projectId: 2,
|
||||||
clientId: "humasClientIdtest",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
lang: "id",
|
lang: "id",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ const CustomEditor = dynamic(
|
||||||
() => {
|
() => {
|
||||||
return import("@/components/editor/custom-editor");
|
return import("@/components/editor/custom-editor");
|
||||||
},
|
},
|
||||||
{ ssr: false }
|
{ ssr: false },
|
||||||
);
|
);
|
||||||
|
|
||||||
const writingStyle = [
|
const writingStyle = [
|
||||||
|
|
@ -104,7 +104,7 @@ export default function GenerateContentRewriteForm(props: {
|
||||||
contextType: "article",
|
contextType: "article",
|
||||||
lang: selectedLanguage,
|
lang: selectedLanguage,
|
||||||
createdBy: "123123",
|
createdBy: "123123",
|
||||||
clientId: "humasClientIdtest",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
};
|
};
|
||||||
const res = await getGenerateRewriter(request);
|
const res = await getGenerateRewriter(request);
|
||||||
close();
|
close();
|
||||||
|
|
@ -266,8 +266,8 @@ export default function GenerateContentRewriteForm(props: {
|
||||||
selectedId == id && isLoading
|
selectedId == id && isLoading
|
||||||
? "warning"
|
? "warning"
|
||||||
: selectedId == id
|
: selectedId == id
|
||||||
? "success"
|
? "success"
|
||||||
: "default"
|
: "default"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<p className={selectedId == id ? "text-white" : "text-black"}>
|
<p className={selectedId == id ? "text-white" : "text-black"}>
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@ export default function GenerateSingleArticleForm(props: {
|
||||||
connectToWeb: true,
|
connectToWeb: true,
|
||||||
lang: selectedLanguage,
|
lang: selectedLanguage,
|
||||||
pointOfView: "None",
|
pointOfView: "None",
|
||||||
clientId: "",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
};
|
};
|
||||||
const res = await getGenerateTitle(req);
|
const res = await getGenerateTitle(req);
|
||||||
const data = res?.data?.data;
|
const data = res?.data?.data;
|
||||||
|
|
@ -121,7 +121,7 @@ export default function GenerateSingleArticleForm(props: {
|
||||||
connectToWeb: true,
|
connectToWeb: true,
|
||||||
lang: selectedLanguage,
|
lang: selectedLanguage,
|
||||||
pointOfView: "0",
|
pointOfView: "0",
|
||||||
clientId: "",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
};
|
};
|
||||||
loading();
|
loading();
|
||||||
const res = await getGenerateKeywords(req);
|
const res = await getGenerateKeywords(req);
|
||||||
|
|
@ -148,7 +148,7 @@ export default function GenerateSingleArticleForm(props: {
|
||||||
articleSize: selectedArticleSize,
|
articleSize: selectedArticleSize,
|
||||||
projectId: 2,
|
projectId: 2,
|
||||||
createdBy: "123123",
|
createdBy: "123123",
|
||||||
clientId: "humasClientIdtest",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
};
|
};
|
||||||
const res = await generateDataArticle(request);
|
const res = await generateDataArticle(request);
|
||||||
close();
|
close();
|
||||||
|
|
@ -400,8 +400,8 @@ export default function GenerateSingleArticleForm(props: {
|
||||||
selectedId == id && isLoading
|
selectedId == id && isLoading
|
||||||
? "warning"
|
? "warning"
|
||||||
: selectedId == id
|
: selectedId == id
|
||||||
? "success"
|
? "success"
|
||||||
: "default"
|
: "default"
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<p className={selectedId == id ? "text-white" : "text-black"}>
|
<p className={selectedId == id ? "text-white" : "text-black"}>
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ const formSchema = z.object({
|
||||||
additionalKeyword: z.string().min(1, {
|
additionalKeyword: z.string().min(1, {
|
||||||
message: "Additional Keyword must be at least 2 characters.",
|
message: "Additional Keyword must be at least 2 characters.",
|
||||||
}),
|
}),
|
||||||
})
|
}),
|
||||||
),
|
),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
@ -128,7 +128,7 @@ export default function GenerateBulkArticle(props: {
|
||||||
projectId: 2,
|
projectId: 2,
|
||||||
data: listData,
|
data: listData,
|
||||||
createdBy: "123123",
|
createdBy: "123123",
|
||||||
clientId: "humasClientIdtest",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
};
|
};
|
||||||
|
|
||||||
const res = await saveBulkArticle(request);
|
const res = await saveBulkArticle(request);
|
||||||
|
|
@ -152,7 +152,7 @@ export default function GenerateBulkArticle(props: {
|
||||||
connectToWeb: true,
|
connectToWeb: true,
|
||||||
lang: selectedLanguage,
|
lang: selectedLanguage,
|
||||||
pointOfView: "None",
|
pointOfView: "None",
|
||||||
clientId: "",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
};
|
};
|
||||||
setValue(`rows.${index}.title`, "process...");
|
setValue(`rows.${index}.title`, "process...");
|
||||||
|
|
||||||
|
|
@ -164,7 +164,7 @@ export default function GenerateBulkArticle(props: {
|
||||||
|
|
||||||
const generateKeywords = async (
|
const generateKeywords = async (
|
||||||
keyword: string | undefined,
|
keyword: string | undefined,
|
||||||
index: number
|
index: number,
|
||||||
) => {
|
) => {
|
||||||
if (keyword) {
|
if (keyword) {
|
||||||
const req = {
|
const req = {
|
||||||
|
|
@ -174,7 +174,7 @@ export default function GenerateBulkArticle(props: {
|
||||||
connectToWeb: true,
|
connectToWeb: true,
|
||||||
lang: selectedLanguage,
|
lang: selectedLanguage,
|
||||||
pointOfView: "0",
|
pointOfView: "0",
|
||||||
clientId: "",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
};
|
};
|
||||||
setValue(`rows.${index}.additionalKeyword`, "process...");
|
setValue(`rows.${index}.additionalKeyword`, "process...");
|
||||||
const res = await getGenerateKeywords(req);
|
const res = await getGenerateKeywords(req);
|
||||||
|
|
@ -394,7 +394,7 @@ export default function GenerateBulkArticle(props: {
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
generateTitle(
|
generateTitle(
|
||||||
getValues(`rows.${index}.mainKeyword`),
|
getValues(`rows.${index}.mainKeyword`),
|
||||||
index
|
index,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
@ -432,7 +432,7 @@ export default function GenerateBulkArticle(props: {
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
generateKeywords(
|
generateKeywords(
|
||||||
getValues(`rows.${index}.mainKeyword`),
|
getValues(`rows.${index}.mainKeyword`),
|
||||||
index
|
index,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
|
|
@ -96,7 +96,7 @@ export default function GenerateRewriteArticle(props: {
|
||||||
context: contextType == "url" ? null : values.field1,
|
context: contextType == "url" ? null : values.field1,
|
||||||
style: selectedWritingSyle,
|
style: selectedWritingSyle,
|
||||||
sentiment: "Humorous",
|
sentiment: "Humorous",
|
||||||
clientId: "humasClientIdtest",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
createdBy: "123123",
|
createdBy: "123123",
|
||||||
contextType: contextType,
|
contextType: contextType,
|
||||||
urlContext: contextType === "url" ? values.field1 : null,
|
urlContext: contextType === "url" ? values.field1 : null,
|
||||||
|
|
|
||||||
|
|
@ -106,7 +106,7 @@ export default function GenerateSingleArticle(props: {
|
||||||
connectToWeb: true,
|
connectToWeb: true,
|
||||||
lang: selectedLanguage,
|
lang: selectedLanguage,
|
||||||
pointOfView: "None",
|
pointOfView: "None",
|
||||||
clientId: "",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
};
|
};
|
||||||
const res = await getGenerateTitle(req);
|
const res = await getGenerateTitle(req);
|
||||||
const data = res?.data?.data;
|
const data = res?.data?.data;
|
||||||
|
|
@ -124,7 +124,7 @@ export default function GenerateSingleArticle(props: {
|
||||||
connectToWeb: true,
|
connectToWeb: true,
|
||||||
lang: selectedLanguage,
|
lang: selectedLanguage,
|
||||||
pointOfView: "0",
|
pointOfView: "0",
|
||||||
clientId: "",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
};
|
};
|
||||||
loading();
|
loading();
|
||||||
const res = await getGenerateKeywords(req);
|
const res = await getGenerateKeywords(req);
|
||||||
|
|
@ -151,7 +151,7 @@ export default function GenerateSingleArticle(props: {
|
||||||
articleSize: selectedArticleSize,
|
articleSize: selectedArticleSize,
|
||||||
projectId: 2,
|
projectId: 2,
|
||||||
createdBy: "123123",
|
createdBy: "123123",
|
||||||
clientId: "humasClientIdtest",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
};
|
};
|
||||||
console.log("reqq", request);
|
console.log("reqq", request);
|
||||||
const res = await generateDataArticle(request);
|
const res = await generateDataArticle(request);
|
||||||
|
|
|
||||||
|
|
@ -228,7 +228,7 @@ export default function FormArticle() {
|
||||||
createdBy: "123432",
|
createdBy: "123432",
|
||||||
style: "Informational",
|
style: "Informational",
|
||||||
projectId: 2,
|
projectId: 2,
|
||||||
clientId: "humasClientIdtest",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
lang: "id",
|
lang: "id",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ export default function TranscriptDraftTable(props: {
|
||||||
const res = await getListTranscript({
|
const res = await getListTranscript({
|
||||||
query: search || "",
|
query: search || "",
|
||||||
page: page,
|
page: page,
|
||||||
clientId: "humasClientIdTest",
|
clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
|
||||||
limit: 10,
|
limit: 10,
|
||||||
createdBy: null,
|
createdBy: null,
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue