Skip to content

Commit

Permalink
Add CodeVerse
Browse files Browse the repository at this point in the history
  • Loading branch information
Akash Singh committed Apr 27, 2024
1 parent bd33c6a commit ac88ba6
Show file tree
Hide file tree
Showing 24 changed files with 1,069 additions and 1,113 deletions.
2 changes: 1 addition & 1 deletion documentation/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const siteConfig = {
"./plugins/examples.js",
"./plugins/featureRequests/FeatureRequestsPlugin.js",
"./plugins/intercom.js",
// "./plugins/templates.js",
"./plugins/templates.js",
"./plugins/tutorial-navigation.js",
[
"@docusaurus/plugin-content-docs",
Expand Down
411 changes: 12 additions & 399 deletions documentation/plugins/templates.js

Large diffs are not rendered by default.

439 changes: 10 additions & 429 deletions documentation/plugins/templates.ts

Large diffs are not rendered by default.

52 changes: 52 additions & 0 deletions documentation/src/assets/integration-icons/cpp.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import * as React from "react";
import { SVGProps } from "react";

const SvgCpp = (props: SVGProps<SVGSVGElement>) => (
<svg
width={48}
height={48}
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fill="#00549d"
fill-rule="evenodd"
d="M22.903,3.286c0.679-0.381,1.515-0.381,2.193,0 c3.355,1.883,13.451,7.551,16.807,9.434C42.582,13.1,43,13.804,43,14.566c0,3.766,0,15.101,0,18.867 c0,0.762-0.418,1.466-1.097,1.847c-3.355,1.883-13.451,7.551-16.807,9.434c-0.679,0.381-1.515,0.381-2.193,0 c-3.355-1.883-13.451-7.551-16.807-9.434C5.418,34.899,5,34.196,5,33.434c0-3.766,0-15.101,0-18.867 c0-0.762,0.418-1.466,1.097-1.847C9.451,10.837,19.549,5.169,22.903,3.286z"
clip-rule="evenodd">
</path>
<path
fill="#0086d4"
fill-rule="evenodd"
d="M5.304,34.404C5.038,34.048,5,33.71,5,33.255 c0-3.744,0-15.014,0-18.759c0-0.758,0.417-1.458,1.094-1.836c3.343-1.872,13.405-7.507,16.748-9.38 c0.677-0.379,1.594-0.371,2.271,0.008c3.343,1.872,13.371,7.459,16.714,9.331c0.27,0.152,0.476,0.335,0.66,0.576L5.304,34.404z"
clip-rule="evenodd">
</path>
<path
fill="#fff"
fill-rule="evenodd"
d="M24,10c7.727,0,14,6.273,14,14s-6.273,14-14,14 s-14-6.273-14-14S16.273,10,24,10z M24,17c3.863,0,7,3.136,7,7c0,3.863-3.137,7-7,7s-7-3.137-7-7C17,20.136,20.136,17,24,17z"
clip-rule="evenodd">
</path>
<path
fill="#0075c0"
fill-rule="evenodd"
d="M42.485,13.205c0.516,0.483,0.506,1.211,0.506,1.784 c0,3.795-0.032,14.589,0.009,18.384c0.004,0.396-0.127,0.813-0.323,1.127L23.593,24L42.485,13.205z"
clip-rule="evenodd">
</path>
<path
fill="#fff"
fill-rule="evenodd"
d="M31 21H33V27H31zM38 21H40V27H38z"
clip-rule="evenodd">
</path>
<path
fill="#fff"
fill-rule="evenodd"
d="M29 23H35V25H29zM36 23H42V25H36z"
clip-rule="evenodd">
</path>
</svg>
);

export default SvgCpp;
32 changes: 32 additions & 0 deletions documentation/src/assets/integration-icons/css.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import * as React from "react";
import { SVGProps } from "react";

const SvgCSS = (props: SVGProps<SVGSVGElement>) => (
<svg
width={48}
height={48}
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fill="#0277BD"
d="M41,5H7l3,34l14,4l14-4L41,5L41,5z">
</path>
<path
fill="#039BE5"
d="M24 8L24 39.9 35.2 36.7 37.7 8z">
</path>
<path
fill="#FFF"
d="M33.1 13L24 13 24 17 28.9 17 28.6 21 24 21 24 25 28.4 25 28.1 29.5 24 30.9 24 35.1 31.9 32.5 32.6 21 32.6 21z">
</path>
<path
fill="#EEE"
d="M24,13v4h-8.9l-0.3-4H24z M19.4,21l0.2,4H24v-4H19.4z M19.8,27h-4l0.3,5.5l7.9,2.6v-4.2l-4.1-1.4L19.8,27z">
</path>
</svg>
);

export default SvgCSS;
32 changes: 32 additions & 0 deletions documentation/src/assets/integration-icons/html.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import * as React from "react";
import { SVGProps } from "react";

const SvgHTML = (props: SVGProps<SVGSVGElement>) => (
<svg
width={48}
height={48}
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fill="#E65100"
d="M41,5H7l3,34l14,4l14-4L41,5L41,5z">
</path>
<path
fill="#FF6D00"
d="M24 8L24 39.9 35.2 36.7 37.7 8z">
</path>
<path
fill="#FFF"
d="M24,25v-4h8.6l-0.7,11.5L24,35.1v-4.2l4.1-1.4l0.3-4.5H24z M32.9,17l0.3-4H24v4H32.9z">
</path>
<path
fill="#EEE"
d="M24,30.9v4.2l-7.9-2.6L15.7,27h4l0.2,2.5L24,30.9z M19.1,17H24v-4h-9.1l0.7,12H24v-4h-4.6L19.1,17z">
</path>
</svg>
);

export default SvgHTML;
6 changes: 6 additions & 0 deletions documentation/src/assets/integration-icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,9 @@ export { default as Oracle } from "./oracle";
export { default as RestWithoutText } from "./rest-without-text";
export { default as CustomAuth } from "./custom-auth";
export { default as Vite } from "./vite";
export { default as Cpp } from "./cpp";
export { default as Python } from "./py";
export { default as Java } from "./java";
export { default as HTML } from "./html";
export { default as CSS } from "./css";
export { default as JavaScript } from "./js";
46 changes: 46 additions & 0 deletions documentation/src/assets/integration-icons/java.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
import * as React from "react";
import { SVGProps } from "react";

const SvgJava = (props: SVGProps<SVGSVGElement>) => (
<svg
width={48}
height={48}
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fill="#F44336"
d="M23.65,24.898c-0.998-1.609-1.722-2.943-2.725-5.455C19.229,15.2,31.24,11.366,26.37,3.999c2.111,5.089-7.577,8.235-8.477,12.473C17.07,20.37,23.645,24.898,23.65,24.898z">
</path>
<path
fill="#F44336"
d="M23.878,17.27c-0.192,2.516,2.229,3.857,2.299,5.695c0.056,1.496-1.447,2.743-1.447,2.743s2.728-0.536,3.579-2.818c0.945-2.534-1.834-4.269-1.548-6.298c0.267-1.938,6.031-5.543,6.031-5.543S24.311,11.611,23.878,17.27z">
</path>
<g>
<path
fill="#1565C0"
d="M32.084 25.055c1.754-.394 3.233.723 3.233 2.01 0 2.901-4.021 5.643-4.021 5.643s6.225-.742 6.225-5.505C37.521 24.053 34.464 23.266 32.084 25.055zM29.129 27.395c0 0 1.941-1.383 2.458-1.902-4.763 1.011-15.638 1.147-15.638.269 0-.809 3.507-1.638 3.507-1.638s-7.773-.112-7.773 2.181C11.683 28.695 21.858 28.866 29.129 27.395z">
</path>
<path
fill="#1565C0"
d="M27.935,29.571c-4.509,1.499-12.814,1.02-10.354-0.993c-1.198,0-2.974,0.963-2.974,1.889c0,1.857,8.982,3.291,15.63,0.572L27.935,29.571z">
</path>
<path
fill="#1565C0"
d="M18.686,32.739c-1.636,0-2.695,1.054-2.695,1.822c0,2.391,9.76,2.632,13.627,0.205l-2.458-1.632C24.271,34.404,17.014,34.579,18.686,32.739z">
</path>
<path
fill="#1565C0"
d="M36.281,36.632c0-0.936-1.055-1.377-1.433-1.588c2.228,5.373-22.317,4.956-22.317,1.784c0-0.721,1.807-1.427,3.477-1.093l-1.42-0.839C11.26,34.374,9,35.837,9,37.017C9,42.52,36.281,42.255,36.281,36.632z">
</path>
<path
fill="#1565C0"
d="M39,38.604c-4.146,4.095-14.659,5.587-25.231,3.057C24.341,46.164,38.95,43.628,39,38.604z">
</path>
</g>
</svg>
);

export default SvgJava;
24 changes: 24 additions & 0 deletions documentation/src/assets/integration-icons/js.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import * as React from "react";
import { SVGProps } from "react";

const SvgJs = (props: SVGProps<SVGSVGElement>) => (
<svg
width={48}
height={48}
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fill="#ffd600"
d="M6,42V6h36v36H6z">
</path>
<path
fill="#000001"
d="M29.538 32.947c.692 1.124 1.444 2.201 3.037 2.201 1.338 0 2.04-.665 2.04-1.585 0-1.101-.726-1.492-2.198-2.133l-.807-.344c-2.329-.988-3.878-2.226-3.878-4.841 0-2.41 1.845-4.244 4.728-4.244 2.053 0 3.528.711 4.592 2.573l-2.514 1.607c-.553-.988-1.151-1.377-2.078-1.377-.946 0-1.545.597-1.545 1.377 0 .964.6 1.354 1.985 1.951l.807.344C36.452 29.645 38 30.839 38 33.523 38 36.415 35.716 38 32.65 38c-2.999 0-4.702-1.505-5.65-3.368L29.538 32.947zM17.952 33.029c.506.906 1.275 1.603 2.381 1.603 1.058 0 1.667-.418 1.667-2.043V22h3.333v11.101c0 3.367-1.953 4.899-4.805 4.899-2.577 0-4.437-1.746-5.195-3.368L17.952 33.029z">
</path>
</svg>
);

export default SvgJs;
24 changes: 24 additions & 0 deletions documentation/src/assets/integration-icons/py.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import * as React from "react";
import { SVGProps } from "react";

const SvgPy = (props: SVGProps<SVGSVGElement>) => (
<svg
width={48}
height={48}
viewBox="0 0 48 48"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path
fill="#0277BD"
d="M24.047,5c-1.555,0.005-2.633,0.142-3.936,0.367c-3.848,0.67-4.549,2.077-4.549,4.67V14h9v2H15.22h-4.35c-2.636,0-4.943,1.242-5.674,4.219c-0.826,3.417-0.863,5.557,0,9.125C5.851,32.005,7.294,34,9.931,34h3.632v-5.104c0-2.966,2.686-5.896,5.764-5.896h7.236c2.523,0,5-1.862,5-4.377v-8.586c0-2.439-1.759-4.263-4.218-4.672C27.406,5.359,25.589,4.994,24.047,5z M19.063,9c0.821,0,1.5,0.677,1.5,1.502c0,0.833-0.679,1.498-1.5,1.498c-0.837,0-1.5-0.664-1.5-1.498C17.563,9.68,18.226,9,19.063,9z">
</path>
<path
fill="#FFC107"
d="M23.078,43c1.555-0.005,2.633-0.142,3.936-0.367c3.848-0.67,4.549-2.077,4.549-4.67V34h-9v-2h9.343h4.35c2.636,0,4.943-1.242,5.674-4.219c0.826-3.417,0.863-5.557,0-9.125C41.274,15.995,39.831,14,37.194,14h-3.632v5.104c0,2.966-2.686,5.896-5.764,5.896h-7.236c-2.523,0-5,1.862-5,4.377v8.586c0,2.439,1.759,4.263,4.218,4.672C19.719,42.641,21.536,43.006,23.078,43z M28.063,39c-0.821,0-1.5-0.677-1.5-1.502c0-0.833,0.679-1.498,1.5-1.498c0.837,0,1.5,0.664,1.5,1.498C29.563,38.32,28.899,39,28.063,39z">
</path>
</svg>
);

export default SvgPy;
8 changes: 4 additions & 4 deletions documentation/src/components/templates-detail-page/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ const TemplatesDetailPage = (props) => {

return (
<>
<Head title={`${content.title} Template | Refine`}>
<html data-page="templates_refine" />
<Head title={`${content.title} CodeVerse | PrepVerse`}>
<html data-page="templates_prepverse" />
<title>{content.title}</title>
<meta property="og:title" content={content.title} />
<meta
name="description"
content={`${content.title} Template | Refine`}
content={`${content.title} CodeVerse | PrepVerse`}
/>
<meta
property="og:description"
content={`${content.description} Template | Refine`}
content={`${content.description} CodeVerse | PrepVerse`}
/>
<meta
data-rh="true"
Expand Down
20 changes: 10 additions & 10 deletions documentation/src/context/CommunityStats/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ export const CommunityStatsProvider: FC = ({ children }) => {
const [githubAvatarPageUrl, setGithubAvatarPageUrl] = useState<String[]>([]);
const [githubAvatarName, setGithubAvatarName] = useState<String[]>([]);
const [leetcodeBadgeImg, setLeetcodeBadgeImg] = useState<String[]>([]);
const [leetcodeBadgeCount, setLeetcodeBadgesCount] = useState(73);
const [solvedProblem, setSolvedProblem] = useState(3031);
const [easySolved, setEasySolved] = useState(772);
const [mediumSolved, setMediumSolved] = useState(1589);
const [hardSolved, setHardSolved] = useState(670);
const [totalLCProblem, setTotalLCProblem] = useState(3103);
const [totalLCEasy, setTotalLCEasy] = useState(785);
const [totalLCMedium, setTotalLCMedium] = useState(1628);
const [totalLCHard, setTotalLCHard] = useState(690);
const [lcStreakCount, setLCStreakCount] = useState(1000);
const [leetcodeBadgeCount, setLeetcodeBadgesCount] = useState(74);
const [solvedProblem, setSolvedProblem] = useState(3047);
const [easySolved, setEasySolved] = useState(776);
const [mediumSolved, setMediumSolved] = useState(1596);
const [hardSolved, setHardSolved] = useState(675);
const [totalLCProblem, setTotalLCProblem] = useState(3125);
const [totalLCEasy, setTotalLCEasy] = useState(788);
const [totalLCMedium, setTotalLCMedium] = useState(1641);
const [totalLCHard, setTotalLCHard] = useState(696);
const [lcStreakCount, setLCStreakCount] = useState(1010);

const fetchData = useCallback(async () => {
try {
Expand Down
10 changes: 0 additions & 10 deletions documentation/src/pages/AkashSingh3031/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,8 @@ import { CommonHeader } from "@site/src/prepverse-theme/common-header";
import { CommonLayout } from "@site/src/prepverse-theme/common-layout";
import { useColorMode } from "@docusaurus/theme-common";
import { CommonThemedImage } from "@site/src/prepverse-theme/common-themed-image";
import { EnterpriseHeroSection } from "@site/src/prepverse-theme/enterprise-hero-section";
import { AboutMeProfile } from "@site/src/prepverse-theme/about-me-profile";
import BackToTopButton from '@theme/BackToTopButton';
import { EnterpriseFaq } from "@site/src/prepverse-theme/enterprise-faq";
import ProjectList from "@site/src/components/project-list";

const About: React.FC = () => {
const { colorMode } = useColorMode();
Expand Down Expand Up @@ -41,13 +38,6 @@ const About: React.FC = () => {
"landing-lg:pr-12",
)}
/>
{/* <ProjectList /> */}
{/* <EnterpriseFaq
className={clsx(
"px-4 landing-sm:px-10 landing-lg:px-0",
"w-full landing-lg:max-w-[792px] mx-auto",
)}
/> */}
</div>
<CommonFooter />
</div>
Expand Down
Loading

0 comments on commit ac88ba6

Please sign in to comment.