Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,078 changes: 1,282 additions & 796 deletions SortVision/package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion SortVision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"framer-motion": "^12.38.0",
"http-proxy-middleware": "^3.0.5",
"jake": "^11.9.5",
"lucide-react": "^0.577.0",
"lucide-react": "^1.7.0",
"micromatch": "^4.0.8",
"minimatch": "^10.2.4",
"next": "^16.2.1",
Expand Down
10 changes: 5 additions & 5 deletions SortVision/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion SortVision/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,14 @@
startTransition,
} from 'react';
import { useParams, useLocation, Link, useNavigate } from 'react-router-dom';
import { Terminal, Code, Github, Linkedin, Twitter, Users } from 'lucide-react';
import {
Terminal,
Code,
Users,
Github,
Linkedin,
Twitter,
} from '@/components/ui/OptimizedIcons';
import { algorithms } from './utils/seo';
import { FeedbackButton } from './components/feedback';
import { SettingsButton } from './components/settings';
Expand Down Expand Up @@ -195,7 +202,7 @@
}
});
}
}, [

Check warning on line 205 in SortVision/src/App.jsx

View workflow job for this annotation

GitHub Actions / Format and lint

React Hook useEffect has a missing dependency: 'pathParts'. Either include it or remove the dependency array
location.pathname,
tabFromPath,
isAlgorithmPath,
Expand Down
3 changes: 2 additions & 1 deletion SortVision/src/components/StarOnGithubPopup.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState, useEffect, useRef } from 'react';
import { X, Github, Star } from 'lucide-react';
import { X, Star } from 'lucide-react';
import { Github } from '@/components/ui/OptimizedIcons';
import StarOnGithub from './mvpblocks/star-on-github.jsx';
import { POPUP_CONFIG } from '../utils/popupConfig';
import { fetchRepoInfo } from '../utils/githubApi';
Expand Down
4 changes: 2 additions & 2 deletions SortVision/src/components/mvpblocks/star-on-github.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button } from '../ui/button';
import { GithubIcon } from 'lucide-react';
import { Github } from '@/components/ui/OptimizedIcons';
import { useState, useEffect } from 'react';
import { fetchStarCount } from '../../utils/githubApi';

Expand Down Expand Up @@ -31,7 +31,7 @@ export default function StarOnGithub({ onClick, className = '' }) {
className={`animate-rainbow before:animate-rainbow group text-foreground ring-offset-background focus-visible:ring-ring relative inline-flex h-10 cursor-pointer items-center justify-center rounded-md border-0 bg-[linear-gradient(#fff,#fff),linear-gradient(#fff_50%,rgba(255,255,255,0.6)_80%,rgba(0,0,0,0)),linear-gradient(90deg,hsl(0,100%,63%),hsl(90,100%,63%),hsl(210,100%,63%),hsl(195,100%,63%),hsl(270,100%,63%))] bg-[length:200%] [background-clip:padding-box,border-box,border-box] [background-origin:border-box] px-4 py-2 text-sm font-medium whitespace-nowrap transition-all duration-200 [border:calc(0.08*1rem)_solid_transparent] before:absolute before:bottom-[-20%] before:left-1/2 before:z-[0] before:h-[20%] before:w-[60%] before:-translate-x-1/2 before:bg-[linear-gradient(90deg,hsl(0,100%,63%),hsl(90,100%,63%),hsl(210,100%,63%),hsl(195,100%,63%),hsl(270,100%,63%))] before:[filter:blur(calc(0.8*1rem))] hover:scale-105 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none active:scale-95 disabled:pointer-events-none disabled:opacity-50 dark:bg-[linear-gradient(#121213,#121213),linear-gradient(#121213_50%,rgba(18,18,19,0.6)_80%,rgba(18,18,19,0)),linear-gradient(90deg,hsl(0,100%,63%),hsl(90,100%,63%),hsl(210,100%,63%),hsl(195,100%,63%),hsl(270,100%,63%))] ${className}`}
>
<div className="flex items-center">
<GithubIcon className="h-4 w-4" />
<Github className="h-4 w-4" />
<span className="ml-1 p-1 lg:inline">Star on GitHub</span>
</div>
<div className="ml-2 flex items-center gap-1 text-sm md:flex">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useState, useEffect, useCallback } from 'react';
import {
X,
Github,
ExternalLink,
GitPullRequest,
Bug,
Expand All @@ -23,6 +22,7 @@ import {
Code,
FileText,
} from 'lucide-react';
import { Github } from '@/components/ui/OptimizedIcons';
import { motion, AnimatePresence } from 'framer-motion';
import { useLanguage } from '../../../../context/LanguageContext';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React, { useState, useEffect, startTransition } from 'react';
import {
Github,
ExternalLink,
Crown,
Bot,
Expand All @@ -10,6 +9,7 @@ import {
RefreshCw,
ChevronRight,
} from 'lucide-react';
import { Github } from '@/components/ui/OptimizedIcons';
import { useLanguage } from '@/context/LanguageContext';
import {
Select,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import React, { useState, useEffect } from 'react';
import {
Github,
ExternalLink,
Search,
RefreshCw,
Trophy,
Filter,
} from 'lucide-react';
import { ExternalLink, Search, RefreshCw, Trophy, Filter } from 'lucide-react';
import { Github } from '@/components/ui/OptimizedIcons';
import {
Select,
SelectContent,
Expand Down
7 changes: 4 additions & 3 deletions SortVision/src/components/ui/OptimizedIcons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ export { DiDotnet } from 'react-icons/di';
export {
Terminal,
Code,
Github,
Linkedin,
Twitter,
Users,
Settings2,
X,
Expand All @@ -53,3 +50,7 @@ export {
Code2,
Languages as LanguagesIcon,
} from 'lucide-react';

// Brand Icons - Re-export from react-icons (lucide-react removed brand icons in v1+)
export { SiGithub as Github, SiX as Twitter } from 'react-icons/si';
export { FaLinkedin as Linkedin } from 'react-icons/fa';
Loading