chore: rename "blog-content" to "content"
This commit is contained in:
parent
c573fcd9b9
commit
e7e50eed39
64 changed files with 27 additions and 29 deletions
|
@ -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