diff --git a/.github/workflows/firebase-hosting-deploy.yml b/.github/workflows/firebase-hosting-deploy.yml index dbc28d9..bdee957 100644 --- a/.github/workflows/firebase-hosting-deploy.yml +++ b/.github/workflows/firebase-hosting-deploy.yml @@ -1,59 +1,59 @@ name: Deploy to Firebase Hosting on merge on: - push: - branches: - - master + push: + branches: + - master jobs: - build: - if: ${{ github.repository_owner == 'developomp' }} - name: Build - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@master - - name: Setup Node - uses: actions/setup-node@v2 - with: - node-version: 16 - cache: yarn - cache-dependency-path: source/yarn.lock - - name: Install dependencies and Build - run: cd source && yarn install && yarn build - - name: Archive Production Artifact - uses: actions/upload-artifact@master - with: - name: build - path: source/build + build: + if: ${{ github.repository_owner == 'developomp' }} + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: 16 + cache: yarn + cache-dependency-path: source/yarn.lock + - name: Install dependencies and Build + run: cd source && yarn install && yarn build + - name: Archive Production Artifact + uses: actions/upload-artifact@master + with: + name: build + path: source/build - deploy: - if: ${{ github.repository_owner == 'developomp' }} - name: Deploy - needs: build - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@master - - name: Download Artifact - uses: actions/download-artifact@master - with: - name: build - path: source/build - - name: Set target - uses: w9jds/firebase-action@master - with: - args: use developomp-site - env: - FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} - - name: Apply target - uses: w9jds/firebase-action@master - with: - args: target:apply hosting stable developomp-site - env: - FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} - - name: Deploy to Firebase - uses: w9jds/firebase-action@master - with: - args: deploy --only hosting:stable - env: - FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} + deploy: + if: ${{ github.repository_owner == 'developomp' }} + name: Deploy + needs: build + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@master + - name: Download Artifact + uses: actions/download-artifact@master + with: + name: build + path: source/build + - name: Set target + uses: w9jds/firebase-action@master + with: + args: use developomp-site + env: + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} + - name: Apply target + uses: w9jds/firebase-action@master + with: + args: target:apply hosting stable developomp-site + env: + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} + - name: Deploy to Firebase + uses: w9jds/firebase-action@master + with: + args: deploy --only hosting:stable + env: + FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} diff --git a/.prettierrc b/.prettierrc index dd59784..6d9b2ba 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,5 +1,4 @@ { - "tabWidth": 4, "useTabs": true, "semi": false } diff --git a/README.md b/README.md index 3983b93..1e54d63 100644 --- a/README.md +++ b/README.md @@ -8,8 +8,8 @@ Source code for my (developomp's) - <% badges.forEach((badge) => { %> <%- include("badge.ejs", { badge }) %> <% - }) %> + <% badges.forEach((badge) => { %> + <%- include("badge.ejs", { badge }) %> + <% }) %> diff --git a/source/generate/postProcess.ts b/source/generate/postProcess.ts index 82ad834..2443677 100644 --- a/source/generate/postProcess.ts +++ b/source/generate/postProcess.ts @@ -44,9 +44,7 @@ function parseSeries() { // series length and order for (const seriesURL in seriesMap) { map.series[seriesURL].length = seriesMap[seriesURL].length - map.series[seriesURL].order = seriesMap[seriesURL].map( - (item) => item.url - ) + map.series[seriesURL].order = seriesMap[seriesURL].map((item) => item.url) } } @@ -68,13 +66,9 @@ function generatePortfolioSVGs() { } for (const skillCategory in skills) { - skills[skillCategory as keyof typeof skills].forEach( - (badge: string) => { - data[skillCategory as keyof typeof skills].push( - parseBadge(badge) - ) - } - ) + skills[skillCategory as keyof typeof skills].forEach((badge: string) => { + data[skillCategory as keyof typeof skills].push(parseBadge(badge)) + }) } const renderedSVG = ejs.render( @@ -92,9 +86,7 @@ function parseBadge(badgeRaw: string): Badge { const isMultiWord = badgeRaw.includes(" ") const words = badgeRaw.split(" ") - const icon = isMultiWord - ? simpleIcon.Get(words[0]) - : simpleIcon.Get(badgeRaw) + const icon = isMultiWord ? simpleIcon.Get(words[0]) : simpleIcon.Get(badgeRaw) const color = tinycolor(icon.hex).lighten(5).desaturate(5) diff --git a/source/generate/recursiveParse/parsePost.ts b/source/generate/recursiveParse/parsePost.ts index d63e8c5..0455164 100644 --- a/source/generate/recursiveParse/parsePost.ts +++ b/source/generate/recursiveParse/parsePost.ts @@ -7,13 +7,8 @@ import { map } from ".." import { DataToPass } from "." export default function parsePost(data: DataToPass): void { - const { - urlPath, - markdownRaw, - markdownData, - humanizedDuration, - totalWords, - } = data + const { urlPath, markdownRaw, markdownData, humanizedDuration, totalWords } = + data const postData: PostData = { title: markdownData.title as string, diff --git a/source/generate/recursiveParse/parseSeries.ts b/source/generate/recursiveParse/parseSeries.ts index 0d33609..bfcdb37 100644 --- a/source/generate/recursiveParse/parseSeries.ts +++ b/source/generate/recursiveParse/parseSeries.ts @@ -114,8 +114,7 @@ export default function parseSeries(data: DataToPass): void { ) ) - if (isNaN(index)) - throw Error(`Invalid series index at: ${path}`) + if (isNaN(index)) throw Error(`Invalid series index at: ${path}`) const itemToPush = { index: index, diff --git a/source/generate/util.ts b/source/generate/util.ts index 3e5864a..b8a1ecf 100644 --- a/source/generate/util.ts +++ b/source/generate/util.ts @@ -21,8 +21,7 @@ export function path2URL(pathToConvert: string): string { */ export function path2FileOrFolderName(inputPath: string): string { // remove trailing slash - if (inputPath[-1] == "/") - inputPath = inputPath.slice(0, inputPath.length - 1) + if (inputPath[-1] == "/") inputPath = inputPath.slice(0, inputPath.length - 1) // get the last section return inputPath.slice(inputPath.lastIndexOf("/") + 1) diff --git a/source/markdown/portfolio/developomp.com.md b/source/markdown/portfolio/developomp.com.md index 0182054..eea33a7 100644 --- a/source/markdown/portfolio/developomp.com.md +++ b/source/markdown/portfolio/developomp.com.md @@ -4,14 +4,14 @@ overview: my website for blogging, portfolio, and resume. image: /img/portfolio/developomp.com.png repo: https://github.com/developomp/developomp-site badges: - - typescript - - javascript - - nodedotjs - - firebase - - amazonaws - - react - - html5 - - css3 + - typescript + - javascript + - nodedotjs + - firebase + - amazonaws + - react + - html5 + - css3 --- ## Intro diff --git a/source/markdown/portfolio/linux setup script.md b/source/markdown/portfolio/linux setup script.md index 3ab864e..98f29b4 100644 --- a/source/markdown/portfolio/linux setup script.md +++ b/source/markdown/portfolio/linux setup script.md @@ -4,7 +4,7 @@ overview: A setup script and dotfiles for my arch linux setup. image: /img/portfolio/linux-setup-script.png repo: https://github.com/developomp/setup badges: - - linux - - gnubash - - vim + - linux + - gnubash + - vim --- diff --git a/source/markdown/portfolio/llama bot.md b/source/markdown/portfolio/llama bot.md index 4f46f26..8450289 100644 --- a/source/markdown/portfolio/llama bot.md +++ b/source/markdown/portfolio/llama bot.md @@ -4,11 +4,11 @@ overview: A discord bot. image: /img/portfolio/llama-bot.png repo: https://github.com/llama-bot badges: - - firebase - - nodedotjs - - javascript - - typescript - - react - - html5 - - css3 + - firebase + - nodedotjs + - javascript + - typescript + - react + - html5 + - css3 --- diff --git a/source/markdown/portfolio/mocha downloader.md b/source/markdown/portfolio/mocha downloader.md index 3a2e8e6..6782967 100644 --- a/source/markdown/portfolio/mocha downloader.md +++ b/source/markdown/portfolio/mocha downloader.md @@ -4,13 +4,13 @@ overview: A cross-platform desktop download manager built with web technologies. image: /img/portfolio/mocha-downloader.png repo: https://github.com/Mocha-Downloader badges: - - typescript - - javascript - - nodedotjs - - electron - - react - - html5 - - css3 + - typescript + - javascript + - nodedotjs + - electron + - react + - html5 + - css3 --- Mocha Downloader is a cross-platform desktop download manager built with web technologies. diff --git a/source/markdown/portfolio/pomky.md b/source/markdown/portfolio/pomky.md index 2bb6130..4064baa 100644 --- a/source/markdown/portfolio/pomky.md +++ b/source/markdown/portfolio/pomky.md @@ -4,10 +4,12 @@ overview: A conky-like system monitor. image: /img/portfolio/pomky.png repo: https://github.com/developomp/pomky badges: - - rust - # - gtk - # - cairo + - rust + # - gtk + # - cairo --- +## Intro + Pomky is a [conky](https://github.com/brndnmtthws/conky)-like system monitor written in rust. It is built to teach myself the rust programming language and to write a more flexible, efficient, and tailored version of conky. diff --git a/source/markdown/portfolio/wbm.md b/source/markdown/portfolio/wbm.md index acb587a..58da54f 100644 --- a/source/markdown/portfolio/wbm.md +++ b/source/markdown/portfolio/wbm.md @@ -4,14 +4,14 @@ overview: A game mod for a unity game. Provides in-game UI and OBS overlays. image: /img/portfolio/wbm.png repo: https://github.com/War-Brokers-Mods badges: - - csharp - - dotnet - - javascript - - html5 - - css3 - - svelte - - tailwindcss - - rust + - csharp + - dotnet + - javascript + - html5 + - css3 + - svelte + - tailwindcss + - rust --- ## Intro diff --git a/source/markdown/posts/test post.md b/source/markdown/posts/test post.md index 9f46369..0bd596d 100644 --- a/source/markdown/posts/test post.md +++ b/source/markdown/posts/test post.md @@ -2,7 +2,7 @@ title: Test post date: 2021-07-26 tags: - - test + - test --- @@ -32,23 +32,23 @@ A post have title, post date, tags, and content. ## List -- Unordered list item -- Unordered list item - - unordered list sub-item - - unordered list sub-item -- [ ] Unordered task list item (unchecked) -- [x] Unordered task list item (checked) - - [ ] unordered task list sub-item (unchecked) - - [x] unordered task list sub-item (checked) +- Unordered list item +- Unordered list item + - unordered list sub-item + - unordered list sub-item +- [ ] Unordered task list item (unchecked) +- [x] Unordered task list item (checked) + - [ ] unordered task list sub-item (unchecked) + - [x] unordered task list sub-item (checked) 1. Ordered list item 2. Ordered list item - 1. ordered list sub item - 2. ordered list sub item + 1. ordered list sub item + 2. ordered list sub item 3. [ ] Ordered list task item (unchecked) 4. [x] Ordered list task item (checked) - 1. [ ] Ordered list task sub-item (unchecked) - 2. [x] Ordered list task sub-item (checked) + 1. [ ] Ordered list task sub-item (unchecked) + 2. [x] Ordered list task sub-item (checked) ## Footnote diff --git a/source/markdown/series/my quotes/2_2.md b/source/markdown/series/my quotes/2_2.md index 0620b6b..38fe8b3 100755 --- a/source/markdown/series/my quotes/2_2.md +++ b/source/markdown/series/my quotes/2_2.md @@ -1,8 +1,8 @@ ---- -title: My Quote NO.2 -date: 2021-03-22 ---- - -> The 1000 miles you've walked so far are less important than another mile you are willing to walk. - -
- developomp 2019
+--- +title: My Quote NO.2 +date: 2021-03-22 +--- + +> The 1000 miles you've walked so far are less important than another mile you are willing to walk. + +
- developomp 2019
diff --git a/source/markdown/series/my quotes/3_3.md b/source/markdown/series/my quotes/3_3.md index c4cfd85..7bd9bd9 100755 --- a/source/markdown/series/my quotes/3_3.md +++ b/source/markdown/series/my quotes/3_3.md @@ -1,10 +1,10 @@ ---- -title: My Quote NO.3 -date: 2021-03-22 ---- - -> Yesterday is a lecture for today. - -
- developomp 2019
- -Don't forget the peaks and the valleys of your life. +--- +title: My Quote NO.3 +date: 2021-03-22 +--- + +> Yesterday is a lecture for today. + +
- developomp 2019
+ +Don't forget the peaks and the valleys of your life. diff --git a/source/markdown/series/my quotes/4_4.md b/source/markdown/series/my quotes/4_4.md index 2f22894..a5a8aef 100755 --- a/source/markdown/series/my quotes/4_4.md +++ b/source/markdown/series/my quotes/4_4.md @@ -1,10 +1,10 @@ ---- -title: My Quote NO.4 -date: 2021-03-22 ---- - -> Those who see only the present lose their future.
-> Those who see only the future lose both the present and the future.
-> Only those who can see both the present and the future are given the future. - -
- developomp 2019
+--- +title: My Quote NO.4 +date: 2021-03-22 +--- + +> Those who see only the present lose their future.
+> Those who see only the future lose both the present and the future.
+> Only those who can see both the present and the future are given the future. + +
- developomp 2019
diff --git a/source/markdown/series/my quotes/5_5.md b/source/markdown/series/my quotes/5_5.md index 0a84f35..8e53b83 100755 --- a/source/markdown/series/my quotes/5_5.md +++ b/source/markdown/series/my quotes/5_5.md @@ -1,10 +1,10 @@ ---- -title: My Quote NO.5 -date: 2021-03-22 ---- - -> Words of wisdom deepens the more you think about it. - -
- developomp 2019
- -They should not be taken lightly. +--- +title: My Quote NO.5 +date: 2021-03-22 +--- + +> Words of wisdom deepens the more you think about it. + +
- developomp 2019
+ +They should not be taken lightly. diff --git a/source/markdown/series/my quotes/6_6.md b/source/markdown/series/my quotes/6_6.md index b1a1585..f6bf8d7 100755 --- a/source/markdown/series/my quotes/6_6.md +++ b/source/markdown/series/my quotes/6_6.md @@ -1,10 +1,10 @@ ---- -title: My Quote NO.6 -date: 2021-03-22 ---- - -> The quickest way to learn the preciousness of time is to stare at a clock for 5 minutes. - -
- developomp 2019
- -This small investment will take you farther than you think. +--- +title: My Quote NO.6 +date: 2021-03-22 +--- + +> The quickest way to learn the preciousness of time is to stare at a clock for 5 minutes. + +
- developomp 2019
+ +This small investment will take you farther than you think. diff --git a/source/markdown/series/quotes/1_1.md b/source/markdown/series/quotes/1_1.md index d982ef2..313abd4 100644 --- a/source/markdown/series/quotes/1_1.md +++ b/source/markdown/series/quotes/1_1.md @@ -7,4 +7,4 @@ date: 2020-08-16
- Mahatma Ghanghi (1885)
-This quote is $e^{\pi i} \times 100$% true. \ No newline at end of file +This quote is $e^{\pi i} \times 100$% true. diff --git a/source/markdown/unsearchable/about.md b/source/markdown/unsearchable/about.md index 5b666ce..93dfe80 100644 --- a/source/markdown/unsearchable/about.md +++ b/source/markdown/unsearchable/about.md @@ -10,8 +10,8 @@ Year of Birth: 2002 ## Links -- [Github](https://github.com/developomp) -- [goals](/goals) +- [Github](https://github.com/developomp) +- [goals](/goals) ## Contact diff --git a/source/markdown/unsearchable/goals.md b/source/markdown/unsearchable/goals.md index 29d40e5..8a09c92 100644 --- a/source/markdown/unsearchable/goals.md +++ b/source/markdown/unsearchable/goals.md @@ -4,38 +4,38 @@ title: Goals ## Programming -- Get a total of X stars on github (not counting mine) - - [x] 10 - - [ ] 100 - - [ ] 500 - - [ ] 1,000 - - [ ] 10,000 -- Create... - - [x] My own website ([Github](https://github.com/developomp/developomp-site)) - - [x] My own linux setup script ([Github](https://github.com/developomp/setup)) - - [ ] My own programming language ([Github](https://github.com/boy-lang)) -- [ ] Push at least one commit every day for 365 days -- [ ] Get my code in the linux kernel +- Get a total of X stars on github (not counting mine) + - [x] 10 + - [ ] 100 + - [ ] 500 + - [ ] 1,000 + - [ ] 10,000 +- Create... + - [x] My own website ([Github](https://github.com/developomp/developomp-site)) + - [x] My own linux setup script ([Github](https://github.com/developomp/setup)) + - [ ] My own programming language ([Github](https://github.com/boy-lang)) +- [ ] Push at least one commit every day for 365 days +- [ ] Get my code in the linux kernel ## Lean how to -- Type at least X letters per minute (rules: count the number of correct keystrokes made in one minute. Use [10fastfingers.com](https://10fastfingers.com/typing-test) for testing. The typing speed must be consistent and could be replicated on-demand.) - - Korean - - [x] 100 - - [x] 200 - - [ ] 300 - - English - - [x] 100 - - [x] 200 - - [ ] 300 -- [ ] Type without looking at keyboard -- Speak basic Chinese - - [ ] Counting up to 15 digits - - [ ] Greetings -- Speak basic Japanese - - [ ] Counting up to 15 digits - - [ ] Greetings +- Type at least X letters per minute (rules: count the number of correct keystrokes made in one minute. Use [10fastfingers.com](https://10fastfingers.com/typing-test) for testing. The typing speed must be consistent and could be replicated on-demand.) + - Korean + - [x] 100 + - [x] 200 + - [ ] 300 + - English + - [x] 100 + - [x] 200 + - [ ] 300 +- [ ] Type without looking at keyboard +- Speak basic Chinese + - [ ] Counting up to 15 digits + - [ ] Greetings +- Speak basic Japanese + - [ ] Counting up to 15 digits + - [ ] Greetings ## Etc -- [ ] Make a high quality video that I'm proud of with at least 1M views on YouTube +- [ ] Make a high quality video that I'm proud of with at least 1M views on YouTube diff --git a/source/src/App.tsx b/source/src/App.tsx index 977f14a..2cbdc3e 100644 --- a/source/src/App.tsx +++ b/source/src/App.tsx @@ -91,10 +91,7 @@ const App = () => { ) : ( - } - /> + } /> } /> } /> } /> diff --git a/source/src/components/Badge.tsx b/source/src/components/Badge.tsx index e478778..ff7cbbb 100644 --- a/source/src/components/Badge.tsx +++ b/source/src/components/Badge.tsx @@ -27,9 +27,7 @@ const StyledSVG = styled.div<{ isDark: boolean }>` svg { height: 16px; fill: ${(props) => - props.isDark - ? theming.dark.color1 - : theming.light.color1} !important; + props.isDark ? theming.dark.color1 : theming.light.color1} !important; } ` diff --git a/source/src/components/Navbar.tsx b/source/src/components/Navbar.tsx index 8164f10..4c3b259 100644 --- a/source/src/components/Navbar.tsx +++ b/source/src/components/Navbar.tsx @@ -87,9 +87,7 @@ const ReadProgress = () => { const b = document.body // https://stackoverflow.com/a/8028584/12979111 - setScroll( - ((h[st] || b[st]) / ((h[sh] || b[sh]) - h.clientHeight)) * 100 - ) + setScroll(((h[st] || b[st]) / ((h[sh] || b[sh]) - h.clientHeight)) * 100) } window.addEventListener("scroll", scrollHandler) @@ -107,9 +105,7 @@ const Navbar = () => { - + diff --git a/source/src/components/PostCard.tsx b/source/src/components/PostCard.tsx index 477d327..d9ab73e 100644 --- a/source/src/components/PostCard.tsx +++ b/source/src/components/PostCard.tsx @@ -58,9 +58,7 @@ const PostCard = (props: Props) => { return ( - navigate(process.env.PUBLIC_URL + props.postData.url) - } + onClick={() => navigate(process.env.PUBLIC_URL + props.postData.url)} > {props.postData?.title || "No title"} @@ -70,12 +68,7 @@ const PostCard = (props: Props) => { {props.postData.tags && props.postData.tags.map((tag) => { - return ( - - ) + return })}
diff --git a/source/src/components/Sidebar.tsx b/source/src/components/Sidebar.tsx index c38f66c..040f23b 100644 --- a/source/src/components/Sidebar.tsx +++ b/source/src/components/Sidebar.tsx @@ -89,10 +89,7 @@ const Sidebar = () => { return ( <> - + { data-tip data-for="theme" className="right" - onClick={() => - setTheme(currentTheme === "dark" ? "light" : "dark") - } + onClick={() => setTheme(currentTheme === "dark" ? "light" : "dark")} > - {currentTheme == "dark" && ( - - )} - {currentTheme == "light" && ( - - )} + {currentTheme == "dark" && } + {currentTheme == "light" && } {!isMobile && ( diff --git a/source/src/pages/Page/Toc.tsx b/source/src/pages/Page/Toc.tsx index a2401b5..31cce06 100644 --- a/source/src/pages/Page/Toc.tsx +++ b/source/src/pages/Page/Toc.tsx @@ -48,9 +48,7 @@ const Toc = (props: { data?: string }) => { > Table of Contents{" "} - + diff --git a/source/src/pages/Page/index.tsx b/source/src/pages/Page/index.tsx index 37c252b..7f5ee7d 100644 --- a/source/src/pages/Page/index.tsx +++ b/source/src/pages/Page/index.tsx @@ -95,8 +95,7 @@ const Page = () => { } case PageType.SERIES: { - if (!(url.slice(0, url.lastIndexOf("/")) in map.series)) - show404 = true + if (!(url.slice(0, url.lastIndexOf("/")) in map.series)) show404 = true break } @@ -182,9 +181,7 @@ const Page = () => { pageData.seriesHome = seriesURL pageData.prev = - prev >= 0 - ? map.series[seriesURL].order[prev] - : undefined + prev >= 0 ? map.series[seriesURL].order[prev] : undefined pageData.next = next < map.series[seriesURL].order.length ? map.series[seriesURL].order[next] @@ -195,9 +192,7 @@ const Page = () => { case PageType.PORTFOLIO_PROJECT: { const data = - portfolio.projects[ - url as keyof typeof portfolio.projects - ] + portfolio.projects[url as keyof typeof portfolio.projects] pageData.content = fetched_content.content pageData.toc = fetched_content.toc @@ -246,10 +241,7 @@ const Page = () => { {/* next/previous series post buttons */} {pageType == PageType.SERIES && ( - + )} {pageType == PageType.PORTFOLIO_PROJECT && ( @@ -262,9 +254,7 @@ const Page = () => { {pageType == PageType.PORTFOLIO_PROJECT && - pageData.badges.map((badge) => ( - - ))} + pageData.badges.map((badge) => )} {/* Post tags */} @@ -294,10 +284,7 @@ const Page = () => { {pageType == PageType.PORTFOLIO_PROJECT && ( - + )} {/* page content */} diff --git a/source/src/pages/Portfolio/ProjectCard.tsx b/source/src/pages/Portfolio/ProjectCard.tsx index 07b7119..682860e 100644 --- a/source/src/pages/Portfolio/ProjectCard.tsx +++ b/source/src/pages/Portfolio/ProjectCard.tsx @@ -33,9 +33,7 @@ const ProjectCard = (props: ProjectCardProps) => { const navigate = useNavigate() useEffect(() => { - setBadges( - project.badges.map((badge) => ) - ) + setBadges(project.badges.map((badge) => )) }, []) return ( diff --git a/source/src/pages/Portfolio/index.tsx b/source/src/pages/Portfolio/index.tsx index 8f68d56..7262d00 100644 --- a/source/src/pages/Portfolio/index.tsx +++ b/source/src/pages/Portfolio/index.tsx @@ -52,10 +52,7 @@ const Portfolio = () => { property="og:image" content="http://developomp.com/icon/icon.svg" /> - + diff --git a/source/src/pages/PostList.tsx b/source/src/pages/PostList.tsx index 954378e..9ceb9ef 100644 --- a/source/src/pages/PostList.tsx +++ b/source/src/pages/PostList.tsx @@ -50,10 +50,7 @@ const PostList = (props: Props) => { postCount++ const url: string = map.date[date][length - i - 1] _postCards.push( - + ) } } diff --git a/source/src/pages/Search/TagSelect.tsx b/source/src/pages/Search/TagSelect.tsx index 43ffd34..1ef26b0 100644 --- a/source/src/pages/Search/TagSelect.tsx +++ b/source/src/pages/Search/TagSelect.tsx @@ -81,8 +81,7 @@ const TagSelect = (props: TagSelectProps) => { ":hover": { backgroundColor: theming .theme(currentTheme.currentTheme, { - light: theming.light - .backgroundColor0, + light: theming.light.backgroundColor0, dark: theming.dark.backgroundColor0, }) .toString(), @@ -96,13 +95,10 @@ const TagSelect = (props: TagSelectProps) => { dark: theming.dark.backgroundColor1, }) .toString(), - border: theming.theme( - currentTheme.currentTheme, - { - light: "1px solid #ccc", - dark: "1px solid #555", - } - ), + border: theming.theme(currentTheme.currentTheme, { + light: "1px solid #ccc", + dark: "1px solid #555", + }), }), multiValue: (styles) => ({ ...styles, diff --git a/source/src/pages/Search/index.tsx b/source/src/pages/Search/index.tsx index fd1591e..0614d63 100644 --- a/source/src/pages/Search/index.tsx +++ b/source/src/pages/Search/index.tsx @@ -114,15 +114,11 @@ const Search = () => { for (const [key, value] of URLSearchParams.entries()) { switch (key) { case "date_from": - setDateRange((prev) => [ - { ...prev[0], startDate: new Date(value) }, - ]) + setDateRange((prev) => [{ ...prev[0], startDate: new Date(value) }]) break case "date_to": - setDateRange((prev) => [ - { ...prev[0], endDate: new Date(value) }, - ]) + setDateRange((prev) => [{ ...prev[0], endDate: new Date(value) }]) break case "tags": @@ -258,17 +254,12 @@ const Search = () => { value={searchInput} autoComplete="off" placeholder="Search" - onChange={(event) => - setSearchInput(event.target.value) - } + onChange={(event) => setSearchInput(event.target.value)} onKeyPress={(event) => { - event.key === "Enter" && - searchInput && - doSearch() + event.key === "Enter" && searchInput && doSearch() }} /> - {postCards.length}{" "} - {postCards.length > 1 ? "results" : "result"} + {postCards.length} {postCards.length > 1 ? "results" : "result"} {