chore: rename "blog-content" to "content"
This commit is contained in:
parent
c573fcd9b9
commit
e7e50eed39
64 changed files with 27 additions and 29 deletions
|
@ -14,7 +14,7 @@
|
|||
- `blog` - https://blog.developomp.com
|
||||
- `portfolio` - https://portfolio.developomp.com
|
||||
- `packages` - shared stuff used across different packages
|
||||
- `blog-content` - Contents for the blog
|
||||
- `content` - Contents for the blog
|
||||
- `eslint-config` - ESLint configuration files
|
||||
- `tailwind-config` -tailwindCSS configuration files
|
||||
- `theme` - universal developomp theme
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"name": "@developomp-site/blog-content",
|
||||
"name": "@developomp-site/content",
|
||||
"version": "0.0.0",
|
||||
"license": "MIT",
|
||||
"files": [
|
Before Width: | Height: | Size: 639 B After Width: | Height: | Size: 639 B |
10
pnpm-lock.yaml
generated
10
pnpm-lock.yaml
generated
|
@ -26,9 +26,9 @@ importers:
|
|||
|
||||
apps/blog:
|
||||
dependencies:
|
||||
'@developomp-site/blog-content':
|
||||
'@developomp-site/content':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/blog-content
|
||||
version: link:../../packages/content
|
||||
'@developomp-site/theme':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/theme
|
||||
|
@ -283,9 +283,9 @@ importers:
|
|||
specifier: ^2.11.0
|
||||
version: 2.11.0(react@18.2.0)
|
||||
devDependencies:
|
||||
'@developomp-site/blog-content':
|
||||
'@developomp-site/content':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/blog-content
|
||||
version: link:../../packages/content
|
||||
'@developomp-site/tailwind-config':
|
||||
specifier: workspace:*
|
||||
version: link:../../packages/tailwind-config
|
||||
|
@ -356,7 +356,7 @@ importers:
|
|||
specifier: ^4.2.0
|
||||
version: 4.2.0(typescript@5.1.6)(vite@4.3.9)
|
||||
|
||||
packages/blog-content:
|
||||
packages/content:
|
||||
dependencies:
|
||||
'@developomp-site/tsconfig':
|
||||
specifier: workspace:*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue