chore: rename "blog-content" to "content"
This commit is contained in:
parent
c573fcd9b9
commit
e7e50eed39
64 changed files with 27 additions and 29 deletions
|
@ -3,7 +3,7 @@
|
|||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"cp": "cp -a ../../packages/blog-content/dist/public/. ./public",
|
||||
"cp": "cp -a ../../packages/content/dist/public/. ./public",
|
||||
"dev": "pnpm cp && react-scripts start",
|
||||
"build": "pnpm cp && react-scripts build",
|
||||
"lint": "eslint .",
|
||||
|
@ -11,7 +11,7 @@
|
|||
"clean": "rm -rf .turbo build node_modules"
|
||||
},
|
||||
"dependencies": {
|
||||
"@developomp-site/blog-content": "workspace:*",
|
||||
"@developomp-site/content": "workspace:*",
|
||||
"@developomp-site/theme": "workspace:*",
|
||||
"@fontsource/noto-sans-kr": "^5.0.3",
|
||||
"@fontsource/source-code-pro": "^5.0.3",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { PostData } from "@developomp-site/blog-content/src/types/types"
|
||||
import { PostData } from "@developomp-site/content/src/types/types"
|
||||
import {
|
||||
faBook,
|
||||
faCalendar,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import contentMapJson from "@developomp-site/blog-content/dist/map.json"
|
||||
import { ContentMap } from "@developomp-site/blog-content/src/types/types"
|
||||
import contentMapJson from "@developomp-site/content/dist/map.json"
|
||||
import { ContentMap } from "@developomp-site/content/src/types/types"
|
||||
|
||||
const contentMap: ContentMap = contentMapJson
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { PageData } from "@developomp-site/blog-content/src/types/types"
|
||||
import { PageData } from "@developomp-site/content/src/types/types"
|
||||
import {
|
||||
faBook,
|
||||
faCalendar,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { PageData } from "@developomp-site/blog-content/src/types/types"
|
||||
import type { PageData } from "@developomp-site/content/src/types/types"
|
||||
import { useMeta, useTitle } from "hoofd"
|
||||
import { useEffect, useState } from "react"
|
||||
import { useLocation } from "react-router-dom"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import portfolio from "@developomp-site/blog-content/dist/portfolio.json"
|
||||
import type { PageData } from "@developomp-site/blog-content/src/types/types"
|
||||
import portfolio from "@developomp-site/content/dist/portfolio.json"
|
||||
import type { PageData } from "@developomp-site/content/src/types/types"
|
||||
|
||||
import contentMap from "../../contentMap"
|
||||
|
||||
|
@ -15,11 +15,11 @@ export async function fetchContent(pageType: PageType, url: string) {
|
|||
try {
|
||||
if (pageType == PageType.UNSEARCHABLE) {
|
||||
return await import(
|
||||
`@developomp-site/blog-content/dist/content/unsearchable${url}.json`
|
||||
`@developomp-site/content/dist/content/unsearchable${url}.json`
|
||||
)
|
||||
} else {
|
||||
return await import(
|
||||
`@developomp-site/blog-content/dist/content${url}.json`
|
||||
`@developomp-site/content/dist/content${url}.json`
|
||||
)
|
||||
}
|
||||
} catch (err) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import "react-date-range/dist/styles.css"
|
||||
import "react-date-range/dist/theme/default.css"
|
||||
|
||||
import searchData from "@developomp-site/blog-content/dist/search.json"
|
||||
import searchData from "@developomp-site/content/dist/search.json"
|
||||
import elasticlunr from "elasticlunr" // search engine
|
||||
import { useMeta, useTitle } from "hoofd"
|
||||
import { useCallback, useEffect, useState } from "react"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
"wouter": "^2.11.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@developomp-site/blog-content": "workspace:*",
|
||||
"@developomp-site/content": "workspace:*",
|
||||
"@developomp-site/tailwind-config": "workspace:*",
|
||||
"@linaria/babel-preset": "^4.4.5",
|
||||
"@linaria/vite": "^4.2.11",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import "./style.scss"
|
||||
|
||||
import { type Badge as BadgeType } from "@developomp-site/blog-content/src/types/types"
|
||||
import { type Badge as BadgeType } from "@developomp-site/content/src/types/types"
|
||||
import { type FC, useEffect, useState } from "react"
|
||||
|
||||
interface BadgeProps {
|
||||
|
@ -13,9 +13,7 @@ const Badge: FC<BadgeProps> = ({ slug }) => {
|
|||
useEffect(() => {
|
||||
;(async () => {
|
||||
setBadgeData(
|
||||
await import(
|
||||
`@developomp-site/blog-content/dist/icons/${slug}.json`
|
||||
)
|
||||
await import(`@developomp-site/content/dist/icons/${slug}.json`)
|
||||
)
|
||||
})()
|
||||
}, [slug])
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import "./style.scss"
|
||||
|
||||
import { PortfolioProject } from "@developomp-site/blog-content/src/types/types"
|
||||
import { PortfolioProject } from "@developomp-site/content/src/types/types"
|
||||
import { type FC, useEffect, useState } from "react"
|
||||
|
||||
import Badge from "@/components/Badge"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import "./style.scss"
|
||||
|
||||
import portfolio from "@developomp-site/blog-content/dist/portfolio.json"
|
||||
import type { PortfolioProject } from "@developomp-site/blog-content/src/types/types"
|
||||
import portfolio from "@developomp-site/content/dist/portfolio.json"
|
||||
import type { PortfolioProject } from "@developomp-site/content/src/types/types"
|
||||
import { useMeta, useTitle } from "hoofd"
|
||||
import { type FC } from "react"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import "./style.scss"
|
||||
|
||||
import portfolio from "@developomp-site/blog-content/dist/portfolio.json"
|
||||
import portfolio from "@developomp-site/content/dist/portfolio.json"
|
||||
import { useMeta, useTitle } from "hoofd"
|
||||
import { type FC, useEffect, useState } from "react"
|
||||
import { useRoute } from "wouter"
|
||||
|
@ -42,7 +42,7 @@ const Project: FC = () => {
|
|||
]
|
||||
|
||||
const fetched_content = await import(
|
||||
`@developomp-site/blog-content/dist/content/projects/${params.id}.json`
|
||||
`@developomp-site/content/dist/content/projects/${params.id}.json`
|
||||
)
|
||||
|
||||
setPageData({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue