♻️ refactor: use ESM import notation

This commit is contained in:
2025-06-16 13:56:42 +00:00
parent 428c908651
commit 235e1f675f
8 changed files with 16 additions and 15 deletions
+3 -2
View File
@@ -49,6 +49,8 @@
// Javascript // Javascript
"javascript.updateImportsOnFileMove.enabled": "always", "javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always", "typescript.updateImportsOnFileMove.enabled": "always",
"javascript.preferences.importModuleSpecifierEnding": "js",
"typescript.preferences.importModuleSpecifierEnding": "js",
"typescript.suggest.paths": true, "typescript.suggest.paths": true,
// json // json
"[json,jsonc]": { "[json,jsonc]": {
@@ -68,9 +70,8 @@
"todo-tree.filtering.excludeGlobs": [ "todo-tree.filtering.excludeGlobs": [
"**/node_modules" "**/node_modules"
], ],
// other extensions
"vitest.enable": true, "vitest.enable": true,
"javascript.preferences.importModuleSpecifierEnding": "js",
"typescript.preferences.importModuleSpecifierEnding": "js",
"cSpell.words": [ "cSpell.words": [
"SRDF", "SRDF",
"URDF" "URDF"
+1 -1
View File
@@ -4,7 +4,7 @@ import { Box, Link, Stack, Typography } from '@mui/material'
import PolicyIcon from '@mui/icons-material/Policy' import PolicyIcon from '@mui/icons-material/Policy'
import CookieIcon from '@mui/icons-material/Cookie' import CookieIcon from '@mui/icons-material/Cookie'
import { EmailIconLink, GitHubIconLink, LinkedInIconLink } from 'components/atoms' import { EmailIconLink, GitHubIconLink, LinkedInIconLink } from 'components/atoms/IconLinks/index.js'
import CookieConsent from 'components/molecules/CookieConsent/index.js' import CookieConsent from 'components/molecules/CookieConsent/index.js'
type FooterProps = { type FooterProps = {
+2 -2
View File
@@ -1,8 +1,8 @@
import React from 'react' import React from 'react'
import { Avatar, Box, IconButton, Stack, Typography } from '@mui/material' import { Avatar, Box, IconButton, Stack, Typography } from '@mui/material'
import ExpandMore from '@mui/icons-material/ExpandMore'
import { EmailIconLink, GitHubIconLink, LinkedInIconLink } from 'components/atoms' import { EmailIconLink, GitHubIconLink, LinkedInIconLink } from 'components/atoms/IconLinks/index.js'
import { ExpandMore } from '@mui/icons-material'
const Hero = (props: { scrollTarget?: React.ForwardedRef<HTMLSelectElement> }) => { const Hero = (props: { scrollTarget?: React.ForwardedRef<HTMLSelectElement> }) => {
return ( return (
@@ -3,7 +3,7 @@ import DraftsIcon from '@mui/icons-material/Drafts'
import LinkedInIcon from '@mui/icons-material/LinkedIn' import LinkedInIcon from '@mui/icons-material/LinkedIn'
import GitHubIcon from '@mui/icons-material/GitHub' import GitHubIcon from '@mui/icons-material/GitHub'
import { Page } from 'components/templates' import { Page } from 'components/templates/index.js'
interface ListItemProps { interface ListItemProps {
children?: React.ReactNode children?: React.ReactNode
@@ -1,8 +1,8 @@
import { Box, Divider, Link, Stack, Table, TableCell, TableRow, Typography } from '@mui/material' import { Box, Divider, Link, Stack, Table, TableCell, TableRow, Typography } from '@mui/material'
import { Award, ExternalIconLink, Extracurricular, Publication, SectionHeader, SectionSubheader } from 'components/atoms' import { Award, ExternalIconLink, Extracurricular, Publication, SectionHeader, SectionSubheader } from 'components/atoms/index.js'
import { CurriculumItem } from 'components/molecules' import { CurriculumItem } from 'components/molecules/index.js'
import { Page } from 'components/templates' import { Page } from 'components/templates/index.js'
const Curriculum = () => { const Curriculum = () => {
return ( return (
+2 -2
View File
@@ -2,8 +2,8 @@ import React from 'react'
import { Box, Stack, Typography } from '@mui/material' import { Box, Stack, Typography } from '@mui/material'
import { ViewportProvider } from 'components/utils/viewport' import { ViewportProvider } from 'components/utils/viewport'
import { AcademyIconLink, DescriptionIconLink, ExternalAppIconLink, GitHubIconLink, VideoIconLink } from 'components/atoms' import { AcademyIconLink, DescriptionIconLink, ExternalAppIconLink, GitHubIconLink, VideoIconLink } from 'components/atoms/index.js'
import { Footer, Hero, Toolbar, ProjectSpotlight } from 'components/molecules' import { Footer, Hero, Toolbar, ProjectSpotlight } from 'components/molecules/index.js'
const MainPage = () => { const MainPage = () => {
React.useEffect(() => { React.useEffect(() => {
@@ -1,8 +1,8 @@
import { Box, Divider, Link, Typography } from '@mui/material' import { Box, Divider, Link, Typography } from '@mui/material'
import { GitHubIconLink, DescriptionIconLink, VideoIconLink, AcademyIconLink, ExternalAppIconLink } from 'components/atoms' import { GitHubIconLink, DescriptionIconLink, VideoIconLink, AcademyIconLink, ExternalAppIconLink } from 'components/atoms/index.js'
import { Project } from 'components/molecules' import { Project } from 'components/molecules/index.js'
import { Page } from 'components/templates' import { Page } from 'components/templates/index.js'
const ProjectsPage = () => { const ProjectsPage = () => {
return ( return (
+1 -1
View File
@@ -1,7 +1,7 @@
import React from 'react' import React from 'react'
import { Box, BoxProps, Container, Divider, Typography } from '@mui/material' import { Box, BoxProps, Container, Divider, Typography } from '@mui/material'
import { Footer, Toolbar } from 'components/molecules' import { Footer, Toolbar } from 'components/molecules/index.js'
interface PageProps extends BoxProps { interface PageProps extends BoxProps {
showCookieConsent?: boolean showCookieConsent?: boolean