feat:detail konten,detail task

This commit is contained in:
Anang Yusman 2025-01-09 04:02:27 +08:00
commit fdf810d197
18 changed files with 1326 additions and 1053 deletions

View File

@ -293,7 +293,7 @@ const Galery = (props: any) => {
<div className="font-semibold p-4 text-white text-xs lg:text-sm dark:text-black truncate w-full">{video?.mediaUpload?.title}</div> <div className="font-semibold p-4 text-white text-xs lg:text-sm dark:text-black truncate w-full">{video?.mediaUpload?.title}</div>
<DropdownMenu> <DropdownMenu>
<DropdownMenuTrigger className="flex items-center gap-1"> <DropdownMenuTrigger className="flex items-center gap-1">
<a > <a>
<Icon className="text-white ml-1" fontSize={25} icon="tabler:dots" /> <Icon className="text-white ml-1" fontSize={25} icon="tabler:dots" />
</a> </a>
</DropdownMenuTrigger> </DropdownMenuTrigger>
@ -334,11 +334,7 @@ const Galery = (props: any) => {
contentAudio?.length > 0 ? ( contentAudio?.length > 0 ? (
<div className=" grid grid-cols-1 gap-6 "> <div className=" grid grid-cols-1 gap-6 ">
{contentAudio?.map((audio: any) => ( {contentAudio?.map((audio: any) => (
<Link <div key={audio?.id} className="flex flex-col sm:flex-row items-center bg-white dark:bg-gray-800 cursor-pointer shadow-md rounded-lg p-4 gap-4 w-full">
href={`/audio/detail/${audio?.mediaUpload?.slug}`}
key={audio?.id}
className="flex flex-col sm:flex-row items-center hover:scale-110 transition-transform duration-300 bg-white dark:bg-gray-800 cursor-pointer shadow-md rounded-lg p-4 gap-4 w-full"
>
<div className="flex items-center justify-center bg-red-500 text-white rounded-lg w-16 h-8 lg:h-16"> <div className="flex items-center justify-center bg-red-500 text-white rounded-lg w-16 h-8 lg:h-16">
<svg width="32" height="34" viewBox="0 0 32 34" fill="null" xmlns="http://www.w3.org/2000/svg"> <svg width="32" height="34" viewBox="0 0 32 34" fill="null" xmlns="http://www.w3.org/2000/svg">
<path <path
@ -347,9 +343,9 @@ const Galery = (props: any) => {
/> />
</svg> </svg>
</div> </div>
<div className="flex flex-col flex-1"> <Link href={`/audio/detail/${audio?.mediaUpload?.slug}`} className="flex flex-col flex-1">
<div className="font-semibold text-gray-900 dark:text-white mt-1 text-sm">{audio?.mediaUpload?.title}</div> <div className="font-semibold text-gray-900 dark:text-white mt-1 text-sm">{audio?.mediaUpload?.title}</div>
</div> </Link>
<div className="flex items-center justify-center gap-3"> <div className="flex items-center justify-center gap-3">
<div className="mt-2"> <div className="mt-2">
<img src="/assets/wave.svg" className="w-80" /> <img src="/assets/wave.svg" className="w-80" />
@ -365,7 +361,36 @@ const Galery = (props: any) => {
</svg> </svg>
</div> </div>
</div> </div>
</Link> <DropdownMenu>
<DropdownMenuTrigger className="flex items-center gap-1">
<a>
<Icon className="text-white ml-1" fontSize={25} icon="tabler:dots" />
</a>
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuItem>
<button onClick={() => handleSaveWishlist(audio?.mediaUpload?.id)} className="flex items-center gap-1 hover:bg-slate-600 w-full rounded-lg">
<Icon icon="material-symbols:bookmark-outline" fontSize={20} />
<p className="text-base font-semibold">Simpan</p>
</button>
</DropdownMenuItem>
<DropdownMenuItem>
<Link href={`/content-management/rewrite/create/${audio?.mediaUpload?.slug}`} className="flex items-center gap-1 hover:bg-slate-600 w-full rounded-lg">
<Icon icon="jam:write" fontSize={20} />
<p className="text-base font-semibold">Content Rewrite</p>
</Link>
</DropdownMenuItem>
<DropdownMenuItem>
<div className="flex items-center gap-1 hover:bg-slate-600 w-full rounded-lg">
<button onClick={() => copyToClip(audio?.mediaUpload?.slug)} className="w-full flex items-center gap-2">
<Icon icon="oi:share" fontSize={20} />
<p className="text-base font-semibold">Bagikan</p>
</button>
</div>
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</div>
))} ))}
</div> </div>
) : ( ) : (
@ -377,12 +402,41 @@ const Galery = (props: any) => {
contentImage?.length > 0 ? ( contentImage?.length > 0 ? (
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6"> <div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
{contentImage?.map((image: any) => ( {contentImage?.map((image: any) => (
<Card key={image?.id} className="hover:scale-110 transition-transform duration-300"> <Card key={image?.id} className="">
<CardContent className="flex flex-col bg-black dark:bg-white w-full rounded-lg p-0"> <CardContent className="flex flex-col bg-black dark:bg-white w-full rounded-lg p-0">
<Link href={`/image/detail/${image?.mediaUpload?.slug}`}> <Link href={`/image/detail/${image?.mediaUpload?.slug}`}>
<img src={image?.mediaUpload?.thumbnailLink} className="h-40 object-cover items-center justify-center cursor-pointer rounded-lg place-self-center" /> <img src={image?.mediaUpload?.thumbnailLink} className="h-40 object-cover items-center justify-center cursor-pointer rounded-lg place-self-center" />
<div className="font-semibold p-4 text-white text-xs lg:text-sm dark:text-black truncate w-full">{image?.mediaUpload?.title}</div> <div className="font-semibold p-4 text-white text-xs lg:text-sm dark:text-black truncate w-full">{image?.mediaUpload?.title}</div>
</Link> </Link>
<DropdownMenu>
<DropdownMenuTrigger className="flex items-center gap-1">
<a>
<Icon className="text-white ml-1" fontSize={25} icon="tabler:dots" />
</a>
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuItem>
<button onClick={() => handleSaveWishlist(image?.mediaUpload?.id)} className="flex items-center gap-1 hover:bg-slate-600 w-full rounded-lg">
<Icon icon="material-symbols:bookmark-outline" fontSize={20} />
<p className="text-base font-semibold">Simpan</p>
</button>
</DropdownMenuItem>
<DropdownMenuItem>
<Link href={`/content-management/rewrite/create/${image?.mediaUpload?.slug}`} className="flex items-center gap-1 hover:bg-slate-600 w-full rounded-lg">
<Icon icon="jam:write" fontSize={20} />
<p className="text-base font-semibold">Content Rewrite</p>
</Link>
</DropdownMenuItem>
<DropdownMenuItem>
<div className="flex items-center gap-1 hover:bg-slate-600 w-full rounded-lg">
<button onClick={() => copyToClip(image?.mediaUpload?.slug)} className="w-full flex items-center gap-2">
<Icon icon="oi:share" fontSize={20} />
<p className="text-base font-semibold">Bagikan</p>
</button>
</div>
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</CardContent> </CardContent>
</Card> </Card>
))} ))}
@ -395,7 +449,7 @@ const Galery = (props: any) => {
) : contentDocument.length > 0 ? ( ) : contentDocument.length > 0 ? (
<div className=" grid grid-cols-1 md:grid-cols-2 gap-6"> <div className=" grid grid-cols-1 md:grid-cols-2 gap-6">
{contentDocument?.map((document: any) => ( {contentDocument?.map((document: any) => (
<Link href={`/document/detail/${document?.mediaUpload?.slug}`} key={document?.id} className="flex flex-col bg-yellow-500 sm:flex-row items-center dark:bg-gray-800 cursor-pointer shadow-md rounded-lg p-4 gap-4 w-full"> <div key={document?.id} className="flex flex-col bg-yellow-500 sm:flex-row items-center dark:bg-gray-800 cursor-pointer shadow-md rounded-lg p-4 gap-4 w-full">
<div className="flex items-center justify-center rounded-lg w-16 h-16"> <div className="flex items-center justify-center rounded-lg w-16 h-16">
<svg width="28" height="34" viewBox="0 0 28 34" fill="none" xmlns="http://www.w3.org/2000/svg"> <svg width="28" height="34" viewBox="0 0 28 34" fill="none" xmlns="http://www.w3.org/2000/svg">
<path <path
@ -406,7 +460,9 @@ const Galery = (props: any) => {
</div> </div>
<div className="flex flex-col flex-1 gap-2"> <div className="flex flex-col flex-1 gap-2">
<div className="font-semibold text-gray-900 dark:text-white mt-1 text-sm">{document?.mediaUpload?.title}</div> <Link href={`/document/detail/${document?.mediaUpload?.slug}`} className="font-semibold text-gray-900 dark:text-white mt-1 text-sm">
{document?.mediaUpload?.title}
</Link>
<div className="flex gap-2 items-center text-xs text-red-500 dark:text-red-500"> <div className="flex gap-2 items-center text-xs text-red-500 dark:text-red-500">
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512"> <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 512 512">
<path fill="#f00" d="M224 30v256h-64l96 128l96-128h-64V30zM32 434v48h448v-48z" /> <path fill="#f00" d="M224 30v256h-64l96 128l96-128h-64V30zM32 434v48h448v-48z" />
@ -414,7 +470,36 @@ const Galery = (props: any) => {
Download Dokumen Download Dokumen
</div> </div>
</div> </div>
</Link> <DropdownMenu>
<DropdownMenuTrigger className="flex items-center gap-1">
<a>
<Icon className="text-white ml-1" fontSize={25} icon="tabler:dots" />
</a>
</DropdownMenuTrigger>
<DropdownMenuContent>
<DropdownMenuItem>
<button onClick={() => handleSaveWishlist(document?.mediaUpload?.id)} className="flex items-center gap-1 hover:bg-slate-600 w-full rounded-lg">
<Icon icon="material-symbols:bookmark-outline" fontSize={20} />
<p className="text-base font-semibold">Simpan</p>
</button>
</DropdownMenuItem>
<DropdownMenuItem>
<Link href={`/content-management/rewrite/create/${document?.mediaUpload?.slug}`} className="flex items-center gap-1 hover:bg-slate-600 w-full rounded-lg">
<Icon icon="jam:write" fontSize={20} />
<p className="text-base font-semibold">Content Rewrite</p>
</Link>
</DropdownMenuItem>
<DropdownMenuItem>
<div className="flex items-center gap-1 hover:bg-slate-600 w-full rounded-lg">
<button onClick={() => copyToClip(document?.mediaUpload?.slug)} className="w-full flex items-center gap-2">
<Icon icon="oi:share" fontSize={20} />
<p className="text-base font-semibold">Bagikan</p>
</button>
</div>
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
</div>
))} ))}
</div> </div>
) : ( ) : (

View File

@ -3,44 +3,289 @@
import HeaderManagement from "@/components/landing-page/header-management"; import HeaderManagement from "@/components/landing-page/header-management";
import SidebarManagement from "@/components/landing-page/sidebar-management"; import SidebarManagement from "@/components/landing-page/sidebar-management";
import { useRouter } from "@/i18n/routing"; import { useRouter } from "@/i18n/routing";
import { getCookiesDecrypt } from "@/lib/utils"; import { getCookiesDecrypt, setCookiesEncrypt } from "@/lib/utils";
import { useSearchParams } from "next/navigation"; import { useParams, useSearchParams } from "next/navigation";
import React, { useState } from "react"; import React, { useEffect, useState } from "react";
import Swal from "sweetalert2"; import Swal from "sweetalert2";
import withReactContent from "sweetalert2-react-content"; import withReactContent from "sweetalert2-react-content";
import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from "@/components/ui/select"; import { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectTrigger, SelectValue } from "@/components/ui/select";
import { Controller, useForm } from "react-hook-form";
import * as z from "zod";
import { zodResolver } from "@hookform/resolvers/zod";
import CustomEditor from "@/components/editor/custom-editor";
import { generateDataArticle, getDetailArticle } from "@/service/content/ai";
import { Button } from "@/components/ui/button";
import { close, error, loading } from "@/config/swal";
import { saveContentRewrite } from "@/service/content/content";
import { getPublicSuggestionList } from "@/service/landing/landing";
import { getDetail } from "@/service/detail/detail";
import { yupResolver } from "@hookform/resolvers/yup";
import * as Yup from "yup";
import { htmlToString } from "@/utils/globals";
import Cookies from "js-cookie";
import { Input } from "@/components/ui/input";
import { Textarea } from "@/components/ui/textarea";
const page = () => { const imageSchema = z.object({
// const { states } = props; title: z.string().min(1, { message: "Judul diperlukan" }),
const [profile, setProfile] = useState(); mainKeyword: z.string().min(1, { message: "Keyword diperlukan" }),
seo: z.string().min(1, { message: "Tuliskan kata kunci atau frasa yang relevan dengan blog Anda, lalu tekan enter" }),
description: z.string().min(2, { message: "Narasi Penugasan harus lebih dari 2 karakter." }),
creatorName: z.string().min(1, { message: "Creator diperlukan" }),
// tags: z.string().min(1, { message: "Judul diperlukan" }),
});
const page = (props: { states?: any }) => {
const { states } = props;
const MySwal = withReactContent(Swal); const MySwal = withReactContent(Swal);
const router = useRouter(); const router = useRouter();
const [, setLoadingState] = useState(false); const [, setLoadingState] = useState(false);
const searchParams = useSearchParams(); const searchParams = useSearchParams();
const id: any = searchParams?.get("title"); const getParams = useParams();
const [content, setContent] = useState([]); const id: any = getParams?.id;
const [content, setContent] = useState<any>([]);
const [isFromSPIT, setIsFromSPIT] = useState(false); const [isFromSPIT, setIsFromSPIT] = useState(false);
const [listSuggestion, setListSuggestion] = useState(); const [listSuggestion, setListSuggestion] = useState();
const [main, setMain] = useState(); const [main, setMain] = useState<any>();
const userId = getCookiesDecrypt("uie"); const userId = getCookiesDecrypt("uie");
const userRoleId = getCookiesDecrypt("urie"); const userRoleId = getCookiesDecrypt("urie");
const [articleIds, setArticleIds] = useState([]); const [articleIds, setArticleIds] = useState<any>([]);
const [isGeneratedArticle, setIsGeneratedArticle] = useState(false); const [isGeneratedArticle, setIsGeneratedArticle] = useState(false);
const [selectedArticleId, setSelectedArticleId] = useState(null); const [selectedArticleId, setSelectedArticleId] = useState<any>(null);
const [articleBody, setArticleBody] = useState(""); const [articleBody, setArticleBody] = useState("");
const [selectedAdvConfig, setSelectedAdvConfig] = useState(""); const [selectedAdvConfig, setSelectedAdvConfig] = useState("");
const [selectedWritingStyle, setSelectedWritingStyle] = useState(""); const [selectedWritingStyle, setSelectedWritingStyle] = useState("");
const [selectedContextType, setSelectedContextType] = useState(""); const [selectedContextType, setSelectedContextType] = useState("");
const [selectedLanguage, setSelectedLanguage] = useState(""); const [selectedLanguage, setSelectedLanguage] = useState("");
const [selectedTitle, setSelectedTitle] = useState(""); const [selectedTitle, setSelectedTitle] = useState("");
const [selectedMainKeyword, setSelectedMainKeyword] = useState("");
const [selectedSEO, setSelectedSEO] = useState("");
const [selectedSize, setSelectedSize] = useState(""); const [selectedSize, setSelectedSize] = useState("");
const [detailArticle, setDetailArticle] = useState(null); const [detailArticle, setDetailArticle] = useState<any>(null);
const [contentType, setContentType] = useState("all"); const [isLoadingData, setIsLoadingData] = useState<boolean>(false);
const [detailData, setDetailData] = useState<any>(null);
const [articleImages, setArticleImages] = useState<string[]>([]);
const userLevelId = getCookiesDecrypt("ulie"); const userLevelId = getCookiesDecrypt("ulie");
const roleId = getCookiesDecrypt("urie"); const roleId = getCookiesDecrypt("urie");
type ImageSchema = z.infer<typeof imageSchema>;
const validationSchema = Yup.object().shape({
title: Yup.string().required("Judul tidak boleh kosong"),
mainKeyword: Yup.string().required("Keyword tidak boleh kosong"),
seo: Yup.string().required("Tuliskan kata kunci atau frasa yang relevan dengan blog Anda, lalu tekan enter"),
description: Yup.string().required("Narasi Penugasan harus lebih dari 2 karakter."),
});
let componentMounted = true;
const { control } = useForm<ImageSchema>({
resolver: zodResolver(imageSchema),
});
const formOptions = {
resolver: yupResolver(validationSchema),
};
const {
register,
handleSubmit,
reset,
formState: { errors },
setValue,
getValues,
} = useForm(formOptions);
const save = async (data: any) => {
const request = {
title: data.title,
articleId: detailArticle?.id,
mediaUploadId: id.split("-")?.[0],
articleBody: detailArticle?.articleBody,
metaTitle: detailArticle?.metaTitle,
metaDescription: detailArticle?.metaDescription,
mainKeyword: detailArticle?.mainKeyword,
additionalKeyword: detailArticle?.additionalKeyword,
articleSize: detailArticle?.articleSize,
style: detailArticle?.style,
website: detailArticle?.website,
imageUrl: detailArticle?.imageUrl,
};
loading();
const res = await saveContentRewrite(request);
if (res?.error) {
error(res?.message);
return false;
}
successSubmit();
};
function successSubmit() {
MySwal.fire({
title: "Sukses",
icon: "success",
confirmButtonColor: "#3085d6",
confirmButtonText: "OK",
}).then((result) => {
if (result.isConfirmed) {
router.push("/content-management/rewrite");
}
});
}
function onSubmit(data: any) {
MySwal.fire({
title: "Simpan Data",
text: "",
icon: "warning",
showCancelButton: true,
cancelButtonColor: "#d33",
confirmButtonColor: "#3085d6",
confirmButtonText: "Simpan",
}).then((result) => {
if (result.isConfirmed) {
save(data);
}
});
}
useEffect(() => {
async function initState() {
setLoadingState(true);
const response = await getDetail(id, states == "polda" ? "polda" : "mabes");
console.log("Detail dataaaa ::", response);
if (response?.data?.data?.isActive == false) {
window.location.replace("/");
}
const responseGet = await getPublicSuggestionList(id?.split("-")?.[0]);
// close();
if (componentMounted) {
setValue("title", response?.data?.data?.title);
setValue("mainKeyword", response?.data?.data?.title);
setValue("seo", response?.data?.data?.description);
setContent(response?.data.data);
setIsFromSPIT(response?.data.data?.isFromSPIT);
setListSuggestion(responseGet?.data?.data);
console.log("data list file", response?.data?.data);
// const mainUrl = response?.data.data?.files[0]?.url;
// const ticket = response?.data.data?.files[0]?.ticket;
// const urlBlob = await getBlobContent(mainUrl, ticket);
setMain({
id: response?.data.data?.files[0]?.id,
type: response?.data.data?.fileType.name,
url: Number(response?.data.data?.fileType?.id) == 4 ? response?.data.data?.files[0]?.secondaryUrl : response?.data.data?.files[0]?.url,
thumbnailFileUrl: response?.data.data?.files[0]?.thumbnailFileUrl,
names: response?.data.data?.files[0]?.fileName,
format: response?.data.data?.files[0]?.format,
widthPixel: response?.data.data?.files[0]?.widthPixel,
heightPixel: response?.data.data?.files[0]?.heightPixel,
size: response?.data.data?.files[0]?.size,
caption: response?.data.data?.files[0]?.caption,
});
// Send Meta Data
const metaData = {
title: response?.data.data?.title,
image: response?.data.data?.thumbnailLink,
};
setCookiesEncrypt("meta_data", metaData);
setLoadingState(false); // (2) write some value to state
// await new Promise(resolve => setTimeout(resolve, 1000)); // 2 sec
// setIdm();
}
return () => {
// This code runs when component is unmounted
componentMounted = false; // (4) set it to false if we leave the page
};
}
initState();
}, [id]);
const handleGenerateArtikel = async () => {
loading();
const request = {
advConfig: "",
style: selectedWritingStyle,
website: "None",
connectToWeb: true,
lang: selectedLanguage,
pointOfView: "None",
title: getValues("title"),
imageSource: "Web",
mainKeyword: getValues("mainKeyword"),
additionalKeywords: getValues("seo"),
targetCountry: null,
articleSize: selectedSize,
projectId: 2,
createdBy: roleId,
// clientId: "ngDLPPiorplznw2jTqVe3YFCz5xqKfUJ",
clientId: "mediahubClientId",
};
console.log("Request", request);
const res = await generateDataArticle(request);
close();
if (res.error) {
console.error(res.message);
return false;
}
const newArticleId = res?.data?.data?.id;
setIsGeneratedArticle(true);
setArticleIds((prevIds: any) => {
if (prevIds.length < 5) {
return [...prevIds, newArticleId];
} else {
const updatedIds = [...prevIds];
updatedIds[4] = newArticleId;
return updatedIds;
}
});
Cookies.set("nulisAIArticleIdTemp", articleIds);
};
const handleArticleIdClick = async (id: string) => {
setIsLoadingData(true);
let retryCount = 0;
const maxRetries = 20;
try {
const waitForStatusUpdate = async () => {
while (retryCount < maxRetries) {
const res = await getDetailArticle(id);
const articleData = res?.data?.data;
if (articleData?.status === 2) {
return articleData;
}
retryCount++;
await new Promise((resolve) => setTimeout(resolve, 5000));
}
throw new Error("Timeout: Artikel belum selesai diproses.");
};
const articleData = await waitForStatusUpdate();
const cleanArticleBody = articleData?.articleBody?.replace(/<img[^>]*>/g, "");
console.log("lalalala", cleanArticleBody);
const articleImagesData = articleData?.imagesUrl?.split(",");
setValue("description", cleanArticleBody || "");
setArticleBody(cleanArticleBody || "");
setDetailData(articleData);
setSelectedArticleId(id);
setArticleImages(articleImagesData || []);
} catch (error) {
console.error("Error fetching article details:", error);
} finally {
setIsLoadingData(false);
}
};
return ( return (
<> <>
<HeaderManagement /> <HeaderManagement />
@ -51,88 +296,157 @@ const page = () => {
<div className="flex flex-col"> <div className="flex flex-col">
<div className="text-xl font-bold mb-5">Content Rewrite</div> <div className="text-xl font-bold mb-5">Content Rewrite</div>
<div className="p-8 border border-black rounded-lg"> <div className="p-8 border border-black rounded-lg">
<form> <form method="POST" onSubmit={handleSubmit(onSubmit)}>
<div className="flex flex-row gap-2 justify-between mb-3"> {content && (
<div className="gap-1"> <div className="flex flex-col gap-2 ">
<p className="font-semibold">Bahasa</p> <div className="flex flex-row gap-2">
<Select value={selectedLanguage} onValueChange={(e: any) => setSelectedLanguage(e.target.value)}> <div className="gap-1 flex flex-col mb-3">
<SelectTrigger className="w-[180px]"> <p className="font-semibold">Bahasa</p>
<SelectValue placeholder="Pilih Bahasa" /> <Select value={selectedLanguage} onValueChange={setSelectedLanguage}>
</SelectTrigger> <SelectTrigger className="w-[180px]">
<SelectContent> <SelectValue placeholder="Pilih Bahasa" />
<SelectGroup> </SelectTrigger>
<SelectLabel>Pilih Bahasa</SelectLabel> <SelectContent>
<SelectItem value="indonesia">Indonesia</SelectItem> <SelectGroup>
<SelectItem value="english">English</SelectItem> <SelectLabel>Pilih Bahasa</SelectLabel>
</SelectGroup> <SelectItem value="id">Indonesia</SelectItem>
</SelectContent> <SelectItem value="en">English</SelectItem>
</Select> </SelectGroup>
</SelectContent>
</Select>
</div>
<div className="gap-1 flex flex-col mb-3">
<p className="font-semibold">Context Type</p>
<Select value={selectedContextType} onValueChange={setSelectedContextType}>
<SelectTrigger className="w-[180px]">
<SelectValue placeholder="Select Context" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectLabel>Select Context Type</SelectLabel>
<SelectItem value="text">Text</SelectItem>
<SelectItem value="article">Article</SelectItem>
<SelectItem value="transcript">Transcript</SelectItem>
<SelectItem value="url">URL</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</div>
<div className="gap-1 flex flex-col mb-3">
<p className="font-semibold">Writing Style</p>
<Select value={selectedWritingStyle} onValueChange={setSelectedWritingStyle}>
<SelectTrigger className="w-[180px]">
<SelectValue placeholder="Select Writing" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectLabel>Select Writing Style</SelectLabel>
<SelectItem value="firendly">Friendly</SelectItem>
<SelectItem value="profesional">Profesional</SelectItem>
<SelectItem value="informational">Informational</SelectItem>
<SelectItem value="neutral">Neutral</SelectItem>
<SelectItem value="witty">Witty</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</div>
<div className="gap-1 flex flex-col mb-3">
<p className="font-semibold">Article Size</p>
<Select value={selectedSize} onValueChange={setSelectedSize}>
<SelectTrigger className="w-[180px]">
<SelectValue placeholder="Select Size" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectLabel>Select Article Size</SelectLabel>
<SelectItem value="news">News (300 - 900 words)</SelectItem>
<SelectItem value="info">Info (900 - 2000 words)</SelectItem>
<SelectItem value="detail">Detail (2000 - 5000 words)</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</div>
</div>
<div className="mb-3">
<p className="font-semibold">Judul</p>
<Controller
control={control}
name="title"
render={({ field: { onChange, value } }) => <Input type="text" className={`w-full border py-3 rounded-lg ${errors.title ? "is-invalid" : ""}`} {...register("title")} id="title" value={value} onChange={onChange} />}
/>
</div>
<div className="mb-3">
<p className="font-semibold">Main Keyword</p>
<Controller
control={control}
name="mainKeyword"
render={({ field: { onChange, value } }) => (
<Input type="text" className={`w-full border py-3 rounded-lg ${errors.mainKeyword ? "is-invalid" : ""}`} {...register("mainKeyword")} id="mainKeyword" value={value} onChange={onChange} />
)}
/>
</div>
<div className="mb-3">
<p className="font-semibold">SEO</p>
<Controller
control={control}
name="seo"
render={({ field: { onChange, value } }) => (
<Textarea className="py-20" id="seo" placeholder="Tuliskan kata kunci atau frasa yang relevan dengan blog Anda, lalu tekan enter" {...register("seo")} onChange={onChange} value={value} />
)}
/>
</div>
<div className="mb-4">
<a onClick={handleGenerateArtikel} className="text-blue-500 cursor-pointer hover:bg-blue-700 hover:text-white border border-blue-500 rounded-md p-2">
Generate Artikel
</a>
{isGeneratedArticle && (
<div className="mt-3 ml-2 pb-0">
{articleIds.map((id: any, index: any) => (
<p
key={index}
className={`text-black m-1 ${selectedArticleId === id ? "bg-[#31ce36] cursor-pointer border border-[#31ce36]" : "bg-[#48abf7] cursor-pointer border border-[#48abf7]"}`}
onClick={() => handleArticleIdClick(id)}
>
{id}
</p>
))}
</div>
)}
</div>
<div className=" mb-3">
<p className="font-semibold">Deskripsi Baru</p>
<Controller
control={control}
name="description"
render={({ field: { onChange, value } }) =>
isLoadingData ? (
<div className="flex justify-center items-center h-40">
<p className="text-gray-500">Loading Proses Data...</p>
</div>
) : (
<CustomEditor onChange={onChange} initialData={articleBody || value} />
)
}
/>
{articleBody === null || articleBody === "" ? <div className="text-red-400 px-0 text-sm">Deskripsi tidak boleh kosong*</div> : ""}
</div>
<div className="flex flex-row gap-3">
<Button
type="button"
onClick={() => {
router.back();
}}
className="border border-blue-400 hover:bg-blue-400 hover:text-white text-blue-400"
>
Kembali
</Button>
<Button type="submit" className="border border-blue-500 bg-blue-500 text-white">
Simpan
</Button>
</div>
</div> </div>
<div className="gap-1"> )}
<p className="font-semibold">Context Type</p>
<Select value={selectedContextType} onValueChange={(e: any) => setSelectedContextType(e.target.value)}>
<SelectTrigger className="w-[180px]">
<SelectValue placeholder="Select Context" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectLabel>Select Context Type</SelectLabel>
<SelectItem value="text">Text</SelectItem>
<SelectItem value="article">Article</SelectItem>
<SelectItem value="transcript">Transcript</SelectItem>
<SelectItem value="url">URL</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</div>
<div className="gap-1">
<p className="font-semibold">Writing Style</p>
<Select value={selectedWritingStyle} onValueChange={(e: any) => setSelectedWritingStyle(e.target.value)}>
<SelectTrigger className="w-[180px]">
<SelectValue placeholder="Select Writing" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectLabel>Select Writing Style</SelectLabel>
<SelectItem value="firendly">Friendly</SelectItem>
<SelectItem value="profesional">Profesional</SelectItem>
<SelectItem value="informational">Informational</SelectItem>
<SelectItem value="neutral">Neutral</SelectItem>
<SelectItem value="witty">Witty</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</div>
<div className="gap-1">
<p className="font-semibold">Article Size</p>
<Select value={selectedSize} onValueChange={(e: any) => setSelectedSize(e.target.value)}>
<SelectTrigger className="w-[180px]">
<SelectValue placeholder="Select Size" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectLabel>Select Article Size</SelectLabel>
<SelectItem value="news">News (300 - 900 words)</SelectItem>
<SelectItem value="info">Info (900 - 2000 words)</SelectItem>
<SelectItem value="detail">Detail (2000 - 5000 words)</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</div>
</div>
<div>
<p className="text-xl font-semibold mb-5">Judul</p>
<input
type="text"
className="w-full border rounded-lg"
// {...register("title", {
// value: content?.title,
// })}
id="title"
// defaultValue={content?.title}
// onChange={(e) => setSelectedTitle(e.target.value)}
/>
</div>
</form> </form>
</div> </div>
</div> </div>

View File

@ -15,7 +15,6 @@ import { generateDataArticle } from "@/service/content/ai";
import HeaderManagement from "@/components/landing-page/header-management"; import HeaderManagement from "@/components/landing-page/header-management";
import SidebarManagement from "@/components/landing-page/sidebar-management"; import SidebarManagement from "@/components/landing-page/sidebar-management";
import { saveContentRewrite } from "@/service/content/content"; import { saveContentRewrite } from "@/service/content/content";
import JoditEditor from "jodit-react";
const page = (props: any) => { const page = (props: any) => {
const { states } = props; const { states } = props;
@ -286,7 +285,6 @@ const page = (props: any) => {
<div className="font-semibold mb-3"> <div className="font-semibold mb-3">
<label htmlFor="description">Deskripsi Artikel</label> <label htmlFor="description">Deskripsi Artikel</label>
</div> </div>
{/* <JoditEditor ref={editor} value={field.value} className="dark:text-black" onChange={field.onChange} /> */}
{articleBody === null || articleBody === "" ? <div className="w-full px-0 text-sm">Deskripsi tidak boleh kosong</div> : ""} {articleBody === null || articleBody === "" ? <div className="w-full px-0 text-sm">Deskripsi tidak boleh kosong</div> : ""}
</div> </div>
</> </>

View File

@ -24,23 +24,11 @@ const Login = ({ params: { locale } }: { params: { locale: string } }) => {
> >
<div className="max-w-[520px] pt-16 ps-20 "> <div className="max-w-[520px] pt-16 ps-20 ">
<Link href="/" className="mb-6 inline-block"> <Link href="/" className="mb-6 inline-block">
<Image <Image src="/assets/mediahub-logo.png" alt="" width={250} height={250} className="mb-10 w-full h-full" />
src="/assets/mediahub-logo.png"
alt=""
width={250}
height={250}
className="mb-10 w-full h-full"
/>
</Link> </Link>
</div> </div>
<div className="absolute left-0 2xl:bottom-[-160px] bottom-[-130px] h-full w-full z-[-1]"> <div className="absolute left-0 2xl:bottom-[-160px] bottom-[-130px] h-full w-full z-[-1]">
<Image <Image src="/assets/vector-login.svg" alt="" width={300} height={300} className="mb-10 w-full h-full" />
src="/assets/vector-login.svg"
alt=""
width={300}
height={300}
className="mb-10 w-full h-full"
/>
</div> </div>
</div> </div>
<div className="flex-1 relative"> <div className="flex-1 relative">
@ -52,24 +40,21 @@ const Login = ({ params: { locale } }: { params: { locale: string } }) => {
</Link> </Link>
</div> </div>
<div className="text-left 2xl:mb-10 mb-4 mt-10"> <div className="text-left 2xl:mb-10 mb-4 mt-10">
<h4 className="font-semibold text-3xl text-left"> <h4 className="font-semibold text-3xl text-left">Silahkan masuk ke akun Anda terlebih dahulu</h4>
Silahkan masuk ke akun Anda terlebih dahulu
</h4>
<div className="text-default-500 text-base"> <div className="text-default-500 text-base">
Belum punya akun?{" "} Belum punya akun? <span className="text-red-500">registrasi</span>
<span className="text-red-500">registrasi</span>
</div> </div>
</div> </div>
<LoginForm /> <LoginForm />
<div className="relative border-b-[#9AA2AF] border-opacity-[16%] border-b pt-6"> {/* <div className="relative border-b-[#9AA2AF] border-opacity-[16%] border-b pt-6">
<div className="absolute inline-block bg-default-50 dark:bg-default-100 left-1/2 top-1/2 transform -translate-x-1/2 px-4 min-w-max text-sm text-default-500 font-normal"> <div className="absolute inline-block bg-default-50 dark:bg-default-100 left-1/2 top-1/2 transform -translate-x-1/2 px-4 min-w-max text-sm text-default-500 font-normal">
Or continue with Or continue with
</div> </div>
</div> </div> */}
<div className="max-w-[242px] mx-auto mt-8 w-full"> {/* <div className="max-w-[242px] mx-auto mt-8 w-full">
<Social locale={locale} /> <Social locale={locale} />
</div> </div> */}
<div className="md:max-w-[345px] mx-auto font-normal text-default-500 mt-12 uppercase text-sm"> {/* <div className="md:max-w-[345px] mx-auto font-normal text-default-500 mt-12 uppercase text-sm">
Dont have an account?{" "} Dont have an account?{" "}
<Link <Link
href="/auth/register" href="/auth/register"
@ -77,11 +62,11 @@ const Login = ({ params: { locale } }: { params: { locale: string } }) => {
> >
Sign up Sign up
</Link> </Link>
</div> </div> */}
</div> </div>
<div className="text-xs font-normal text-default-500 z-[999] pb-10 text-center"> {/* <div className="text-xs font-normal text-default-500 z-[999] pb-10 text-center">
<Copyright /> <Copyright />
</div> </div> */}
</div> </div>
</div> </div>
</div> </div>

6
service/detail/detail.ts Normal file
View File

@ -0,0 +1,6 @@
import { httpDeleteInterceptor, httpGetInterceptor, httpPostInterceptor } from "../http-config/http-interceptor-service";
export async function getDetail(id: any, state: any) {
const url = `media/public?slug=${id}&state=${state}`;
return httpGetInterceptor(url);
}

View File

@ -108,3 +108,8 @@ export async function saveWishlist(data: { mediaUploadId: string }) {
const url = "/media/wishlist"; const url = "/media/wishlist";
return httpPostInterceptor(url, data); return httpPostInterceptor(url, data);
} }
export async function getPublicSuggestionList(id: any) {
const url = `media/public/suggestion?mediaId=${id}`;
return httpGetInterceptor(url);
}

View File

@ -1,16 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*)
if command -v cygpath > /dev/null 2>&1; then
basedir=`cygpath -w "$basedir"`
fi
;;
esac
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
else
exec node "$basedir/../typescript/bin/tsc" "$@"
fi

1
vendor/ckeditor5/node_modules/.bin/tsc generated vendored Symbolic link
View File

@ -0,0 +1 @@
../typescript/bin/tsc

View File

@ -1,17 +0,0 @@
@ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\typescript\bin\tsc" %*

View File

@ -1,28 +0,0 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../typescript/bin/tsc" $args
} else {
& "$basedir/node$exe" "$basedir/../typescript/bin/tsc" $args
}
$ret=$LASTEXITCODE
} else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../typescript/bin/tsc" $args
} else {
& "node$exe" "$basedir/../typescript/bin/tsc" $args
}
$ret=$LASTEXITCODE
}
exit $ret

View File

@ -1,16 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*)
if command -v cygpath > /dev/null 2>&1; then
basedir=`cygpath -w "$basedir"`
fi
;;
esac
if [ -x "$basedir/node" ]; then
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
else
exec node "$basedir/../typescript/bin/tsserver" "$@"
fi

1
vendor/ckeditor5/node_modules/.bin/tsserver generated vendored Symbolic link
View File

@ -0,0 +1 @@
../typescript/bin/tsserver

View File

@ -1,17 +0,0 @@
@ECHO off
GOTO start
:find_dp0
SET dp0=%~dp0
EXIT /b
:start
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
endLocal & goto #_undefined_# 2>NUL || title %COMSPEC% & "%_prog%" "%dp0%\..\typescript\bin\tsserver" %*

View File

@ -1,28 +0,0 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "$basedir/node$exe" "$basedir/../typescript/bin/tsserver" $args
} else {
& "$basedir/node$exe" "$basedir/../typescript/bin/tsserver" $args
}
$ret=$LASTEXITCODE
} else {
# Support pipeline input
if ($MyInvocation.ExpectingInput) {
$input | & "node$exe" "$basedir/../typescript/bin/tsserver" $args
} else {
& "node$exe" "$basedir/../typescript/bin/tsserver" $args
}
$ret=$LASTEXITCODE
}
exit $ret

View File

@ -1,55 +1,55 @@
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004
http://www.apache.org/licenses/ http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions. 1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of this License; and You must give any other recipients of the Work or Derivative Works a copy of this License; and
You must cause any modified files to carry prominent notices stating that You changed the files; and You must cause any modified files to carry prominent notices stating that You changed the files; and
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS END OF TERMS AND CONDITIONS

View File

@ -1,49 +1,49 @@
# TypeScript # TypeScript
[![GitHub Actions CI](https://github.com/microsoft/TypeScript/workflows/CI/badge.svg)](https://github.com/microsoft/TypeScript/actions?query=workflow%3ACI) [![GitHub Actions CI](https://github.com/microsoft/TypeScript/workflows/CI/badge.svg)](https://github.com/microsoft/TypeScript/actions?query=workflow%3ACI)
[![Devops Build Status](https://dev.azure.com/typescript/TypeScript/_apis/build/status/Typescript/node10)](https://dev.azure.com/typescript/TypeScript/_build?definitionId=7) [![Devops Build Status](https://dev.azure.com/typescript/TypeScript/_apis/build/status/Typescript/node10)](https://dev.azure.com/typescript/TypeScript/_build?definitionId=7)
[![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript) [![npm version](https://badge.fury.io/js/typescript.svg)](https://www.npmjs.com/package/typescript)
[![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript) [![Downloads](https://img.shields.io/npm/dm/typescript.svg)](https://www.npmjs.com/package/typescript)
[TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescript). [TypeScript](https://www.typescriptlang.org/) is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the [playground](https://www.typescriptlang.org/play/), and stay up to date via [our blog](https://blogs.msdn.microsoft.com/typescript) and [Twitter account](https://twitter.com/typescript).
Find others who are using TypeScript at [our community page](https://www.typescriptlang.org/community/). Find others who are using TypeScript at [our community page](https://www.typescriptlang.org/community/).
## Installing ## Installing
For the latest stable version: For the latest stable version:
```bash ```bash
npm install -g typescript npm install -g typescript
``` ```
For our nightly builds: For our nightly builds:
```bash ```bash
npm install -g typescript@next npm install -g typescript@next
``` ```
## Contribute ## Contribute
There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md) to TypeScript. There are many ways to [contribute](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md) to TypeScript.
* [Submit bugs](https://github.com/microsoft/TypeScript/issues) and help us verify fixes as they are checked in. * [Submit bugs](https://github.com/microsoft/TypeScript/issues) and help us verify fixes as they are checked in.
* Review the [source code changes](https://github.com/microsoft/TypeScript/pulls). * Review the [source code changes](https://github.com/microsoft/TypeScript/pulls).
* Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript). * Engage with other TypeScript users and developers on [StackOverflow](https://stackoverflow.com/questions/tagged/typescript).
* Help each other in the [TypeScript Community Discord](https://discord.gg/typescript). * Help each other in the [TypeScript Community Discord](https://discord.gg/typescript).
* Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter. * Join the [#typescript](https://twitter.com/search?q=%23TypeScript) discussion on Twitter.
* [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md). * [Contribute bug fixes](https://github.com/microsoft/TypeScript/blob/main/CONTRIBUTING.md).
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see
the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com)
with any additional questions or comments. with any additional questions or comments.
## Documentation ## Documentation
* [TypeScript in 5 minutes](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html) * [TypeScript in 5 minutes](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html)
* [Programming handbook](https://www.typescriptlang.org/docs/handbook/intro.html) * [Programming handbook](https://www.typescriptlang.org/docs/handbook/intro.html)
* [Homepage](https://www.typescriptlang.org/) * [Homepage](https://www.typescriptlang.org/)
## Roadmap ## Roadmap
For details on our planned features and future direction please refer to our [roadmap](https://github.com/microsoft/TypeScript/wiki/Roadmap). For details on our planned features and future direction please refer to our [roadmap](https://github.com/microsoft/TypeScript/wiki/Roadmap).

File diff suppressed because one or more lines are too long

0
vendor/ckeditor5/node_modules/typescript/bin/tsc generated vendored Normal file → Executable file
View File

0
vendor/ckeditor5/node_modules/typescript/bin/tsserver generated vendored Normal file → Executable file
View File

View File

@ -1,497 +1,497 @@
{ {
"typesMap": { "typesMap": {
"jquery": { "jquery": {
"match": "jquery(-(\\.?\\d+)+)?(\\.intellisense)?(\\.min)?\\.js$", "match": "jquery(-(\\.?\\d+)+)?(\\.intellisense)?(\\.min)?\\.js$",
"types": ["jquery"] "types": ["jquery"]
}, },
"WinJS": { "WinJS": {
"match": "^(.*\\/winjs-[.\\d]+)\\/js\\/base\\.js$", "match": "^(.*\\/winjs-[.\\d]+)\\/js\\/base\\.js$",
"exclude": [["^", 1, "/.*"]], "exclude": [["^", 1, "/.*"]],
"types": ["winjs"] "types": ["winjs"]
}, },
"Kendo": { "Kendo": {
"match": "^(.*\\/kendo(-ui)?)\\/kendo\\.all(\\.min)?\\.js$", "match": "^(.*\\/kendo(-ui)?)\\/kendo\\.all(\\.min)?\\.js$",
"exclude": [["^", 1, "/.*"]], "exclude": [["^", 1, "/.*"]],
"types": ["kendo-ui"] "types": ["kendo-ui"]
}, },
"Office Nuget": { "Office Nuget": {
"match": "^(.*\\/office\\/1)\\/excel-\\d+\\.debug\\.js$", "match": "^(.*\\/office\\/1)\\/excel-\\d+\\.debug\\.js$",
"exclude": [["^", 1, "/.*"]], "exclude": [["^", 1, "/.*"]],
"types": ["office"] "types": ["office"]
}, },
"References": { "References": {
"match": "^(.*\\/_references\\.js)$", "match": "^(.*\\/_references\\.js)$",
"exclude": [["^", 1, "$"]] "exclude": [["^", 1, "$"]]
}, },
"Datatables.net": { "Datatables.net": {
"match": "^.*\\/(jquery\\.)?dataTables(\\.all)?(\\.min)?\\.js$", "match": "^.*\\/(jquery\\.)?dataTables(\\.all)?(\\.min)?\\.js$",
"types": ["datatables.net"] "types": ["datatables.net"]
}, },
"Ace": { "Ace": {
"match": "^(.*)\\/ace.js", "match": "^(.*)\\/ace.js",
"exclude": [["^", 1, "/.*"]], "exclude": [["^", 1, "/.*"]],
"types": ["ace"] "types": ["ace"]
} }
}, },
"simpleMap": { "simpleMap": {
"accounting": "accounting", "accounting": "accounting",
"ace.js": "ace", "ace.js": "ace",
"ag-grid": "ag-grid", "ag-grid": "ag-grid",
"alertify": "alertify", "alertify": "alertify",
"alt": "alt", "alt": "alt",
"amcharts.js": "amcharts", "amcharts.js": "amcharts",
"amplify": "amplifyjs", "amplify": "amplifyjs",
"angular": "angular", "angular": "angular",
"angular-bootstrap-lightbox": "angular-bootstrap-lightbox", "angular-bootstrap-lightbox": "angular-bootstrap-lightbox",
"angular-cookie": "angular-cookie", "angular-cookie": "angular-cookie",
"angular-file-upload": "angular-file-upload", "angular-file-upload": "angular-file-upload",
"angularfire": "angularfire", "angularfire": "angularfire",
"angular-gettext": "angular-gettext", "angular-gettext": "angular-gettext",
"angular-google-analytics": "angular-google-analytics", "angular-google-analytics": "angular-google-analytics",
"angular-local-storage": "angular-local-storage", "angular-local-storage": "angular-local-storage",
"angularLocalStorage": "angularLocalStorage", "angularLocalStorage": "angularLocalStorage",
"angular-scroll": "angular-scroll", "angular-scroll": "angular-scroll",
"angular-spinner": "angular-spinner", "angular-spinner": "angular-spinner",
"angular-strap": "angular-strap", "angular-strap": "angular-strap",
"angulartics": "angulartics", "angulartics": "angulartics",
"angular-toastr": "angular-toastr", "angular-toastr": "angular-toastr",
"angular-translate": "angular-translate", "angular-translate": "angular-translate",
"angular-ui-router": "angular-ui-router", "angular-ui-router": "angular-ui-router",
"angular-ui-tree": "angular-ui-tree", "angular-ui-tree": "angular-ui-tree",
"angular-wizard": "angular-wizard", "angular-wizard": "angular-wizard",
"async": "async", "async": "async",
"atmosphere": "atmosphere", "atmosphere": "atmosphere",
"aws-sdk": "aws-sdk", "aws-sdk": "aws-sdk",
"aws-sdk-js": "aws-sdk", "aws-sdk-js": "aws-sdk",
"axios": "axios", "axios": "axios",
"backbone": "backbone", "backbone": "backbone",
"backbone.layoutmanager": "backbone.layoutmanager", "backbone.layoutmanager": "backbone.layoutmanager",
"backbone.paginator": "backbone.paginator", "backbone.paginator": "backbone.paginator",
"backbone.radio": "backbone.radio", "backbone.radio": "backbone.radio",
"backbone-associations": "backbone-associations", "backbone-associations": "backbone-associations",
"backbone-relational": "backbone-relational", "backbone-relational": "backbone-relational",
"backgrid": "backgrid", "backgrid": "backgrid",
"Bacon": "baconjs", "Bacon": "baconjs",
"benchmark": "benchmark", "benchmark": "benchmark",
"blazy": "blazy", "blazy": "blazy",
"bliss": "blissfuljs", "bliss": "blissfuljs",
"bluebird": "bluebird", "bluebird": "bluebird",
"body-parser": "body-parser", "body-parser": "body-parser",
"bootbox": "bootbox", "bootbox": "bootbox",
"bootstrap": "bootstrap", "bootstrap": "bootstrap",
"bootstrap-editable": "x-editable", "bootstrap-editable": "x-editable",
"bootstrap-maxlength": "bootstrap-maxlength", "bootstrap-maxlength": "bootstrap-maxlength",
"bootstrap-notify": "bootstrap-notify", "bootstrap-notify": "bootstrap-notify",
"bootstrap-slider": "bootstrap-slider", "bootstrap-slider": "bootstrap-slider",
"bootstrap-switch": "bootstrap-switch", "bootstrap-switch": "bootstrap-switch",
"bowser": "bowser", "bowser": "bowser",
"breeze": "breeze", "breeze": "breeze",
"browserify": "browserify", "browserify": "browserify",
"bson": "bson", "bson": "bson",
"c3": "c3", "c3": "c3",
"canvasjs": "canvasjs", "canvasjs": "canvasjs",
"chai": "chai", "chai": "chai",
"chalk": "chalk", "chalk": "chalk",
"chance": "chance", "chance": "chance",
"chartist": "chartist", "chartist": "chartist",
"cheerio": "cheerio", "cheerio": "cheerio",
"chokidar": "chokidar", "chokidar": "chokidar",
"chosen.jquery": "chosen", "chosen.jquery": "chosen",
"chroma": "chroma-js", "chroma": "chroma-js",
"ckeditor.js": "ckeditor", "ckeditor.js": "ckeditor",
"cli-color": "cli-color", "cli-color": "cli-color",
"clipboard": "clipboard", "clipboard": "clipboard",
"codemirror": "codemirror", "codemirror": "codemirror",
"colors": "colors", "colors": "colors",
"commander": "commander", "commander": "commander",
"commonmark": "commonmark", "commonmark": "commonmark",
"compression": "compression", "compression": "compression",
"confidence": "confidence", "confidence": "confidence",
"connect": "connect", "connect": "connect",
"Control.FullScreen": "leaflet.fullscreen", "Control.FullScreen": "leaflet.fullscreen",
"cookie": "cookie", "cookie": "cookie",
"cookie-parser": "cookie-parser", "cookie-parser": "cookie-parser",
"cookies": "cookies", "cookies": "cookies",
"core": "core-js", "core": "core-js",
"core-js": "core-js", "core-js": "core-js",
"crossfilter": "crossfilter", "crossfilter": "crossfilter",
"crossroads": "crossroads", "crossroads": "crossroads",
"css": "css", "css": "css",
"ct-ui-router-extras": "ui-router-extras", "ct-ui-router-extras": "ui-router-extras",
"d3": "d3", "d3": "d3",
"dagre-d3": "dagre-d3", "dagre-d3": "dagre-d3",
"dat.gui": "dat-gui", "dat.gui": "dat-gui",
"debug": "debug", "debug": "debug",
"deep-diff": "deep-diff", "deep-diff": "deep-diff",
"Dexie": "dexie", "Dexie": "dexie",
"dialogs": "angular-dialog-service", "dialogs": "angular-dialog-service",
"dojo.js": "dojo", "dojo.js": "dojo",
"doT": "dot", "doT": "dot",
"dragula": "dragula", "dragula": "dragula",
"drop": "drop", "drop": "drop",
"dropbox": "dropboxjs", "dropbox": "dropboxjs",
"dropzone": "dropzone", "dropzone": "dropzone",
"Dts Name": "Dts Name", "Dts Name": "Dts Name",
"dust-core": "dustjs-linkedin", "dust-core": "dustjs-linkedin",
"easeljs": "easeljs", "easeljs": "easeljs",
"ejs": "ejs", "ejs": "ejs",
"ember": "ember", "ember": "ember",
"envify": "envify", "envify": "envify",
"epiceditor": "epiceditor", "epiceditor": "epiceditor",
"es6-promise": "es6-promise", "es6-promise": "es6-promise",
"ES6-Promise": "es6-promise", "ES6-Promise": "es6-promise",
"es6-shim": "es6-shim", "es6-shim": "es6-shim",
"expect": "expect", "expect": "expect",
"express": "express", "express": "express",
"express-session": "express-session", "express-session": "express-session",
"ext-all.js": "extjs", "ext-all.js": "extjs",
"extend": "extend", "extend": "extend",
"fabric": "fabricjs", "fabric": "fabricjs",
"faker": "faker", "faker": "faker",
"fastclick": "fastclick", "fastclick": "fastclick",
"favico": "favico.js", "favico": "favico.js",
"featherlight": "featherlight", "featherlight": "featherlight",
"FileSaver": "FileSaver", "FileSaver": "FileSaver",
"fingerprint": "fingerprintjs", "fingerprint": "fingerprintjs",
"fixed-data-table": "fixed-data-table", "fixed-data-table": "fixed-data-table",
"flickity.pkgd": "flickity", "flickity.pkgd": "flickity",
"flight": "flight", "flight": "flight",
"flow": "flowjs", "flow": "flowjs",
"Flux": "flux", "Flux": "flux",
"formly": "angular-formly", "formly": "angular-formly",
"foundation": "foundation", "foundation": "foundation",
"fpsmeter": "fpsmeter", "fpsmeter": "fpsmeter",
"fuse": "fuse", "fuse": "fuse",
"generator": "yeoman-generator", "generator": "yeoman-generator",
"gl-matrix": "gl-matrix", "gl-matrix": "gl-matrix",
"globalize": "globalize", "globalize": "globalize",
"graceful-fs": "graceful-fs", "graceful-fs": "graceful-fs",
"gridstack": "gridstack", "gridstack": "gridstack",
"gulp": "gulp", "gulp": "gulp",
"gulp-rename": "gulp-rename", "gulp-rename": "gulp-rename",
"gulp-uglify": "gulp-uglify", "gulp-uglify": "gulp-uglify",
"gulp-util": "gulp-util", "gulp-util": "gulp-util",
"hammer": "hammerjs", "hammer": "hammerjs",
"handlebars": "handlebars", "handlebars": "handlebars",
"hasher": "hasher", "hasher": "hasher",
"he": "he", "he": "he",
"hello.all": "hellojs", "hello.all": "hellojs",
"highcharts.js": "highcharts", "highcharts.js": "highcharts",
"highlight": "highlightjs", "highlight": "highlightjs",
"history": "history", "history": "history",
"History": "history", "History": "history",
"hopscotch": "hopscotch", "hopscotch": "hopscotch",
"hotkeys": "angular-hotkeys", "hotkeys": "angular-hotkeys",
"html2canvas": "html2canvas", "html2canvas": "html2canvas",
"humane": "humane", "humane": "humane",
"i18next": "i18next", "i18next": "i18next",
"icheck": "icheck", "icheck": "icheck",
"impress": "impress", "impress": "impress",
"incremental-dom": "incremental-dom", "incremental-dom": "incremental-dom",
"Inquirer": "inquirer", "Inquirer": "inquirer",
"insight": "insight", "insight": "insight",
"interact": "interactjs", "interact": "interactjs",
"intercom": "intercomjs", "intercom": "intercomjs",
"intro": "intro.js", "intro": "intro.js",
"ion.rangeSlider": "ion.rangeSlider", "ion.rangeSlider": "ion.rangeSlider",
"ionic": "ionic", "ionic": "ionic",
"is": "is_js", "is": "is_js",
"iscroll": "iscroll", "iscroll": "iscroll",
"jade": "jade", "jade": "jade",
"jasmine": "jasmine", "jasmine": "jasmine",
"joint": "jointjs", "joint": "jointjs",
"jquery": "jquery", "jquery": "jquery",
"jquery.address": "jquery.address", "jquery.address": "jquery.address",
"jquery.are-you-sure": "jquery.are-you-sure", "jquery.are-you-sure": "jquery.are-you-sure",
"jquery.blockUI": "jquery.blockUI", "jquery.blockUI": "jquery.blockUI",
"jquery.bootstrap.wizard": "jquery.bootstrap.wizard", "jquery.bootstrap.wizard": "jquery.bootstrap.wizard",
"jquery.bootstrap-touchspin": "bootstrap-touchspin", "jquery.bootstrap-touchspin": "bootstrap-touchspin",
"jquery.color": "jquery.color", "jquery.color": "jquery.color",
"jquery.colorbox": "jquery.colorbox", "jquery.colorbox": "jquery.colorbox",
"jquery.contextMenu": "jquery.contextMenu", "jquery.contextMenu": "jquery.contextMenu",
"jquery.cookie": "jquery.cookie", "jquery.cookie": "jquery.cookie",
"jquery.customSelect": "jquery.customSelect", "jquery.customSelect": "jquery.customSelect",
"jquery.cycle.all": "jquery.cycle", "jquery.cycle.all": "jquery.cycle",
"jquery.cycle2": "jquery.cycle2", "jquery.cycle2": "jquery.cycle2",
"jquery.dataTables": "jquery.dataTables", "jquery.dataTables": "jquery.dataTables",
"jquery.dropotron": "jquery.dropotron", "jquery.dropotron": "jquery.dropotron",
"jquery.fancybox.pack.js": "fancybox", "jquery.fancybox.pack.js": "fancybox",
"jquery.fancytree-all": "jquery.fancytree", "jquery.fancytree-all": "jquery.fancytree",
"jquery.fileupload": "jquery.fileupload", "jquery.fileupload": "jquery.fileupload",
"jquery.flot": "flot", "jquery.flot": "flot",
"jquery.form": "jquery.form", "jquery.form": "jquery.form",
"jquery.gridster": "jquery.gridster", "jquery.gridster": "jquery.gridster",
"jquery.handsontable.full": "jquery-handsontable", "jquery.handsontable.full": "jquery-handsontable",
"jquery.joyride": "jquery.joyride", "jquery.joyride": "jquery.joyride",
"jquery.jqGrid": "jqgrid", "jquery.jqGrid": "jqgrid",
"jquery.mmenu": "jquery.mmenu", "jquery.mmenu": "jquery.mmenu",
"jquery.mockjax": "jquery-mockjax", "jquery.mockjax": "jquery-mockjax",
"jquery.noty": "jquery.noty", "jquery.noty": "jquery.noty",
"jquery.payment": "jquery.payment", "jquery.payment": "jquery.payment",
"jquery.pjax": "jquery.pjax", "jquery.pjax": "jquery.pjax",
"jquery.placeholder": "jquery.placeholder", "jquery.placeholder": "jquery.placeholder",
"jquery.qrcode": "jquery.qrcode", "jquery.qrcode": "jquery.qrcode",
"jquery.qtip": "qtip2", "jquery.qtip": "qtip2",
"jquery.raty": "raty", "jquery.raty": "raty",
"jquery.scrollTo": "jquery.scrollTo", "jquery.scrollTo": "jquery.scrollTo",
"jquery.signalR": "signalr", "jquery.signalR": "signalr",
"jquery.simplemodal": "jquery.simplemodal", "jquery.simplemodal": "jquery.simplemodal",
"jquery.timeago": "jquery.timeago", "jquery.timeago": "jquery.timeago",
"jquery.tinyscrollbar": "jquery.tinyscrollbar", "jquery.tinyscrollbar": "jquery.tinyscrollbar",
"jquery.tipsy": "jquery.tipsy", "jquery.tipsy": "jquery.tipsy",
"jquery.tooltipster": "tooltipster", "jquery.tooltipster": "tooltipster",
"jquery.transit": "jquery.transit", "jquery.transit": "jquery.transit",
"jquery.uniform": "jquery.uniform", "jquery.uniform": "jquery.uniform",
"jquery.watch": "watch", "jquery.watch": "watch",
"jquery-sortable": "jquery-sortable", "jquery-sortable": "jquery-sortable",
"jquery-ui": "jqueryui", "jquery-ui": "jqueryui",
"js.cookie": "js-cookie", "js.cookie": "js-cookie",
"js-data": "js-data", "js-data": "js-data",
"js-data-angular": "js-data-angular", "js-data-angular": "js-data-angular",
"js-data-http": "js-data-http", "js-data-http": "js-data-http",
"jsdom": "jsdom", "jsdom": "jsdom",
"jsnlog": "jsnlog", "jsnlog": "jsnlog",
"json5": "json5", "json5": "json5",
"jspdf": "jspdf", "jspdf": "jspdf",
"jsrender": "jsrender", "jsrender": "jsrender",
"js-signals": "js-signals", "js-signals": "js-signals",
"jstorage": "jstorage", "jstorage": "jstorage",
"jstree": "jstree", "jstree": "jstree",
"js-yaml": "js-yaml", "js-yaml": "js-yaml",
"jszip": "jszip", "jszip": "jszip",
"katex": "katex", "katex": "katex",
"kefir": "kefir", "kefir": "kefir",
"keymaster": "keymaster", "keymaster": "keymaster",
"keypress": "keypress", "keypress": "keypress",
"kinetic": "kineticjs", "kinetic": "kineticjs",
"knockback": "knockback", "knockback": "knockback",
"knockout": "knockout", "knockout": "knockout",
"knockout.mapping": "knockout.mapping", "knockout.mapping": "knockout.mapping",
"knockout.validation": "knockout.validation", "knockout.validation": "knockout.validation",
"knockout-paging": "knockout-paging", "knockout-paging": "knockout-paging",
"knockout-pre-rendered": "knockout-pre-rendered", "knockout-pre-rendered": "knockout-pre-rendered",
"ladda": "ladda", "ladda": "ladda",
"later": "later", "later": "later",
"lazy": "lazy.js", "lazy": "lazy.js",
"Leaflet.Editable": "leaflet-editable", "Leaflet.Editable": "leaflet-editable",
"leaflet.js": "leaflet", "leaflet.js": "leaflet",
"less": "less", "less": "less",
"linq": "linq", "linq": "linq",
"loading-bar": "angular-loading-bar", "loading-bar": "angular-loading-bar",
"lodash": "lodash", "lodash": "lodash",
"log4javascript": "log4javascript", "log4javascript": "log4javascript",
"loglevel": "loglevel", "loglevel": "loglevel",
"lokijs": "lokijs", "lokijs": "lokijs",
"lovefield": "lovefield", "lovefield": "lovefield",
"lunr": "lunr", "lunr": "lunr",
"lz-string": "lz-string", "lz-string": "lz-string",
"mailcheck": "mailcheck", "mailcheck": "mailcheck",
"maquette": "maquette", "maquette": "maquette",
"marked": "marked", "marked": "marked",
"math": "mathjs", "math": "mathjs",
"MathJax.js": "mathjax", "MathJax.js": "mathjax",
"matter": "matter-js", "matter": "matter-js",
"md5": "blueimp-md5", "md5": "blueimp-md5",
"md5.js": "crypto-js", "md5.js": "crypto-js",
"messenger": "messenger", "messenger": "messenger",
"method-override": "method-override", "method-override": "method-override",
"minimatch": "minimatch", "minimatch": "minimatch",
"minimist": "minimist", "minimist": "minimist",
"mithril": "mithril", "mithril": "mithril",
"mobile-detect": "mobile-detect", "mobile-detect": "mobile-detect",
"mocha": "mocha", "mocha": "mocha",
"mock-ajax": "jasmine-ajax", "mock-ajax": "jasmine-ajax",
"modernizr": "modernizr", "modernizr": "modernizr",
"Modernizr": "Modernizr", "Modernizr": "Modernizr",
"moment": "moment", "moment": "moment",
"moment-range": "moment-range", "moment-range": "moment-range",
"moment-timezone": "moment-timezone", "moment-timezone": "moment-timezone",
"mongoose": "mongoose", "mongoose": "mongoose",
"morgan": "morgan", "morgan": "morgan",
"mousetrap": "mousetrap", "mousetrap": "mousetrap",
"ms": "ms", "ms": "ms",
"mustache": "mustache", "mustache": "mustache",
"native.history": "history", "native.history": "history",
"nconf": "nconf", "nconf": "nconf",
"ncp": "ncp", "ncp": "ncp",
"nedb": "nedb", "nedb": "nedb",
"ng-cordova": "ng-cordova", "ng-cordova": "ng-cordova",
"ngDialog": "ng-dialog", "ngDialog": "ng-dialog",
"ng-flow-standalone": "ng-flow", "ng-flow-standalone": "ng-flow",
"ng-grid": "ng-grid", "ng-grid": "ng-grid",
"ng-i18next": "ng-i18next", "ng-i18next": "ng-i18next",
"ng-table": "ng-table", "ng-table": "ng-table",
"node_redis": "redis", "node_redis": "redis",
"node-clone": "clone", "node-clone": "clone",
"node-fs-extra": "fs-extra", "node-fs-extra": "fs-extra",
"node-glob": "glob", "node-glob": "glob",
"Nodemailer": "nodemailer", "Nodemailer": "nodemailer",
"node-mime": "mime", "node-mime": "mime",
"node-mkdirp": "mkdirp", "node-mkdirp": "mkdirp",
"node-mongodb-native": "mongodb", "node-mongodb-native": "mongodb",
"node-mysql": "mysql", "node-mysql": "mysql",
"node-open": "open", "node-open": "open",
"node-optimist": "optimist", "node-optimist": "optimist",
"node-progress": "progress", "node-progress": "progress",
"node-semver": "semver", "node-semver": "semver",
"node-tar": "tar", "node-tar": "tar",
"node-uuid": "node-uuid", "node-uuid": "node-uuid",
"node-xml2js": "xml2js", "node-xml2js": "xml2js",
"nopt": "nopt", "nopt": "nopt",
"notify": "notify", "notify": "notify",
"nouislider": "nouislider", "nouislider": "nouislider",
"npm": "npm", "npm": "npm",
"nprogress": "nprogress", "nprogress": "nprogress",
"numbro": "numbro", "numbro": "numbro",
"numeral": "numeraljs", "numeral": "numeraljs",
"nunjucks": "nunjucks", "nunjucks": "nunjucks",
"nv.d3": "nvd3", "nv.d3": "nvd3",
"object-assign": "object-assign", "object-assign": "object-assign",
"oboe-browser": "oboe", "oboe-browser": "oboe",
"office": "office-js", "office": "office-js",
"offline": "offline-js", "offline": "offline-js",
"onsenui": "onsenui", "onsenui": "onsenui",
"OpenLayers.js": "openlayers", "OpenLayers.js": "openlayers",
"openpgp": "openpgp", "openpgp": "openpgp",
"p2": "p2", "p2": "p2",
"packery.pkgd": "packery", "packery.pkgd": "packery",
"page": "page", "page": "page",
"pako": "pako", "pako": "pako",
"papaparse": "papaparse", "papaparse": "papaparse",
"passport": "passport", "passport": "passport",
"passport-local": "passport-local", "passport-local": "passport-local",
"path": "pathjs", "path": "pathjs",
"pdfkit":"pdfkit", "pdfkit":"pdfkit",
"peer": "peerjs", "peer": "peerjs",
"peg": "pegjs", "peg": "pegjs",
"photoswipe": "photoswipe", "photoswipe": "photoswipe",
"picker.js": "pickadate", "picker.js": "pickadate",
"pikaday": "pikaday", "pikaday": "pikaday",
"pixi": "pixi.js", "pixi": "pixi.js",
"platform": "platform", "platform": "platform",
"Please": "pleasejs", "Please": "pleasejs",
"plottable": "plottable", "plottable": "plottable",
"polymer": "polymer", "polymer": "polymer",
"postal": "postal", "postal": "postal",
"preloadjs": "preloadjs", "preloadjs": "preloadjs",
"progress": "progress", "progress": "progress",
"purify": "dompurify", "purify": "dompurify",
"purl": "purl", "purl": "purl",
"q": "q", "q": "q",
"qs": "qs", "qs": "qs",
"qunit": "qunit", "qunit": "qunit",
"ractive": "ractive", "ractive": "ractive",
"rangy-core": "rangy", "rangy-core": "rangy",
"raphael": "raphael", "raphael": "raphael",
"raven": "ravenjs", "raven": "ravenjs",
"react": "react", "react": "react",
"react-bootstrap": "react-bootstrap", "react-bootstrap": "react-bootstrap",
"react-intl": "react-intl", "react-intl": "react-intl",
"react-redux": "react-redux", "react-redux": "react-redux",
"ReactRouter": "react-router", "ReactRouter": "react-router",
"ready": "domready", "ready": "domready",
"redux": "redux", "redux": "redux",
"request": "request", "request": "request",
"require": "require", "require": "require",
"restangular": "restangular", "restangular": "restangular",
"reveal": "reveal", "reveal": "reveal",
"rickshaw": "rickshaw", "rickshaw": "rickshaw",
"rimraf": "rimraf", "rimraf": "rimraf",
"rivets": "rivets", "rivets": "rivets",
"rx": "rx", "rx": "rx",
"rx.angular": "rx-angular", "rx.angular": "rx-angular",
"sammy": "sammyjs", "sammy": "sammyjs",
"SAT": "sat", "SAT": "sat",
"sax-js": "sax", "sax-js": "sax",
"screenfull": "screenfull", "screenfull": "screenfull",
"seedrandom": "seedrandom", "seedrandom": "seedrandom",
"select2": "select2", "select2": "select2",
"selectize": "selectize", "selectize": "selectize",
"serve-favicon": "serve-favicon", "serve-favicon": "serve-favicon",
"serve-static": "serve-static", "serve-static": "serve-static",
"shelljs": "shelljs", "shelljs": "shelljs",
"should": "should", "should": "should",
"showdown": "showdown", "showdown": "showdown",
"sigma": "sigmajs", "sigma": "sigmajs",
"signature_pad": "signature_pad", "signature_pad": "signature_pad",
"sinon": "sinon", "sinon": "sinon",
"sjcl": "sjcl", "sjcl": "sjcl",
"slick": "slick-carousel", "slick": "slick-carousel",
"smoothie": "smoothie", "smoothie": "smoothie",
"socket.io": "socket.io", "socket.io": "socket.io",
"socket.io-client": "socket.io-client", "socket.io-client": "socket.io-client",
"sockjs": "sockjs-client", "sockjs": "sockjs-client",
"sortable": "angular-ui-sortable", "sortable": "angular-ui-sortable",
"soundjs": "soundjs", "soundjs": "soundjs",
"source-map": "source-map", "source-map": "source-map",
"spectrum": "spectrum", "spectrum": "spectrum",
"spin": "spin", "spin": "spin",
"sprintf": "sprintf", "sprintf": "sprintf",
"stampit": "stampit", "stampit": "stampit",
"state-machine": "state-machine", "state-machine": "state-machine",
"Stats": "stats", "Stats": "stats",
"store": "storejs", "store": "storejs",
"string": "string", "string": "string",
"string_score": "string_score", "string_score": "string_score",
"strophe": "strophe", "strophe": "strophe",
"stylus": "stylus", "stylus": "stylus",
"sugar": "sugar", "sugar": "sugar",
"superagent": "superagent", "superagent": "superagent",
"svg": "svgjs", "svg": "svgjs",
"svg-injector": "svg-injector", "svg-injector": "svg-injector",
"swfobject": "swfobject", "swfobject": "swfobject",
"swig": "swig", "swig": "swig",
"swipe": "swipe", "swipe": "swipe",
"swiper": "swiper", "swiper": "swiper",
"system.js": "systemjs", "system.js": "systemjs",
"tether": "tether", "tether": "tether",
"three": "threejs", "three": "threejs",
"through": "through", "through": "through",
"through2": "through2", "through2": "through2",
"timeline": "timelinejs", "timeline": "timelinejs",
"tinycolor": "tinycolor", "tinycolor": "tinycolor",
"tmhDynamicLocale": "angular-dynamic-locale", "tmhDynamicLocale": "angular-dynamic-locale",
"toaster": "angularjs-toaster", "toaster": "angularjs-toaster",
"toastr": "toastr", "toastr": "toastr",
"tracking": "tracking", "tracking": "tracking",
"trunk8": "trunk8", "trunk8": "trunk8",
"turf": "turf", "turf": "turf",
"tweenjs": "tweenjs", "tweenjs": "tweenjs",
"TweenMax": "gsap", "TweenMax": "gsap",
"twig": "twig", "twig": "twig",
"twix": "twix", "twix": "twix",
"typeahead.bundle": "typeahead", "typeahead.bundle": "typeahead",
"typescript": "typescript", "typescript": "typescript",
"ui": "winjs", "ui": "winjs",
"ui-bootstrap-tpls": "angular-ui-bootstrap", "ui-bootstrap-tpls": "angular-ui-bootstrap",
"ui-grid": "ui-grid", "ui-grid": "ui-grid",
"uikit": "uikit", "uikit": "uikit",
"underscore": "underscore", "underscore": "underscore",
"underscore.string": "underscore.string", "underscore.string": "underscore.string",
"update-notifier": "update-notifier", "update-notifier": "update-notifier",
"url": "jsurl", "url": "jsurl",
"UUID": "uuid", "UUID": "uuid",
"validator": "validator", "validator": "validator",
"vega": "vega", "vega": "vega",
"vex": "vex-js", "vex": "vex-js",
"video": "videojs", "video": "videojs",
"vue": "vue", "vue": "vue",
"vue-router": "vue-router", "vue-router": "vue-router",
"webtorrent": "webtorrent", "webtorrent": "webtorrent",
"when": "when", "when": "when",
"winston": "winston", "winston": "winston",
"wrench-js": "wrench", "wrench-js": "wrench",
"ws": "ws", "ws": "ws",
"xlsx": "xlsx", "xlsx": "xlsx",
"xml2json": "x2js", "xml2json": "x2js",
"xmlbuilder-js": "xmlbuilder", "xmlbuilder-js": "xmlbuilder",
"xregexp": "xregexp", "xregexp": "xregexp",
"yargs": "yargs", "yargs": "yargs",
"yosay": "yosay", "yosay": "yosay",
"yui": "yui", "yui": "yui",
"yui3": "yui", "yui3": "yui",
"zepto": "zepto", "zepto": "zepto",
"ZeroClipboard": "zeroclipboard", "ZeroClipboard": "zeroclipboard",
"ZSchema-browser": "z-schema" "ZSchema-browser": "z-schema"
} }
} }