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
|
- `blog` - https://blog.developomp.com
|
||||||
- `portfolio` - https://portfolio.developomp.com
|
- `portfolio` - https://portfolio.developomp.com
|
||||||
- `packages` - shared stuff used across different packages
|
- `packages` - shared stuff used across different packages
|
||||||
- `blog-content` - Contents for the blog
|
- `content` - Contents for the blog
|
||||||
- `eslint-config` - ESLint configuration files
|
- `eslint-config` - ESLint configuration files
|
||||||
- `tailwind-config` -tailwindCSS configuration files
|
- `tailwind-config` -tailwindCSS configuration files
|
||||||
- `theme` - universal developomp theme
|
- `theme` - universal developomp theme
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"cp": "cp -a ../../packages/blog-content/dist/public/. ./public",
|
"cp": "cp -a ../../packages/content/dist/public/. ./public",
|
||||||
"dev": "pnpm cp && react-scripts start",
|
"dev": "pnpm cp && react-scripts start",
|
||||||
"build": "pnpm cp && react-scripts build",
|
"build": "pnpm cp && react-scripts build",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
"clean": "rm -rf .turbo build node_modules"
|
"clean": "rm -rf .turbo build node_modules"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@developomp-site/blog-content": "workspace:*",
|
"@developomp-site/content": "workspace:*",
|
||||||
"@developomp-site/theme": "workspace:*",
|
"@developomp-site/theme": "workspace:*",
|
||||||
"@fontsource/noto-sans-kr": "^5.0.3",
|
"@fontsource/noto-sans-kr": "^5.0.3",
|
||||||
"@fontsource/source-code-pro": "^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 {
|
import {
|
||||||
faBook,
|
faBook,
|
||||||
faCalendar,
|
faCalendar,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import contentMapJson from "@developomp-site/blog-content/dist/map.json"
|
import contentMapJson from "@developomp-site/content/dist/map.json"
|
||||||
import { ContentMap } from "@developomp-site/blog-content/src/types/types"
|
import { ContentMap } from "@developomp-site/content/src/types/types"
|
||||||
|
|
||||||
const contentMap: ContentMap = contentMapJson
|
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 {
|
import {
|
||||||
faBook,
|
faBook,
|
||||||
faCalendar,
|
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 { useMeta, useTitle } from "hoofd"
|
||||||
import { useEffect, useState } from "react"
|
import { useEffect, useState } from "react"
|
||||||
import { useLocation } from "react-router-dom"
|
import { useLocation } from "react-router-dom"
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import portfolio from "@developomp-site/blog-content/dist/portfolio.json"
|
import portfolio from "@developomp-site/content/dist/portfolio.json"
|
||||||
import type { PageData } from "@developomp-site/blog-content/src/types/types"
|
import type { PageData } from "@developomp-site/content/src/types/types"
|
||||||
|
|
||||||
import contentMap from "../../contentMap"
|
import contentMap from "../../contentMap"
|
||||||
|
|
||||||
|
@ -15,11 +15,11 @@ export async function fetchContent(pageType: PageType, url: string) {
|
||||||
try {
|
try {
|
||||||
if (pageType == PageType.UNSEARCHABLE) {
|
if (pageType == PageType.UNSEARCHABLE) {
|
||||||
return await import(
|
return await import(
|
||||||
`@developomp-site/blog-content/dist/content/unsearchable${url}.json`
|
`@developomp-site/content/dist/content/unsearchable${url}.json`
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
return await import(
|
return await import(
|
||||||
`@developomp-site/blog-content/dist/content${url}.json`
|
`@developomp-site/content/dist/content${url}.json`
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import "react-date-range/dist/styles.css"
|
import "react-date-range/dist/styles.css"
|
||||||
import "react-date-range/dist/theme/default.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 elasticlunr from "elasticlunr" // search engine
|
||||||
import { useMeta, useTitle } from "hoofd"
|
import { useMeta, useTitle } from "hoofd"
|
||||||
import { useCallback, useEffect, useState } from "react"
|
import { useCallback, useEffect, useState } from "react"
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
"wouter": "^2.11.0"
|
"wouter": "^2.11.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@developomp-site/blog-content": "workspace:*",
|
"@developomp-site/content": "workspace:*",
|
||||||
"@developomp-site/tailwind-config": "workspace:*",
|
"@developomp-site/tailwind-config": "workspace:*",
|
||||||
"@linaria/babel-preset": "^4.4.5",
|
"@linaria/babel-preset": "^4.4.5",
|
||||||
"@linaria/vite": "^4.2.11",
|
"@linaria/vite": "^4.2.11",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import "./style.scss"
|
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"
|
import { type FC, useEffect, useState } from "react"
|
||||||
|
|
||||||
interface BadgeProps {
|
interface BadgeProps {
|
||||||
|
@ -13,9 +13,7 @@ const Badge: FC<BadgeProps> = ({ slug }) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
;(async () => {
|
;(async () => {
|
||||||
setBadgeData(
|
setBadgeData(
|
||||||
await import(
|
await import(`@developomp-site/content/dist/icons/${slug}.json`)
|
||||||
`@developomp-site/blog-content/dist/icons/${slug}.json`
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
})()
|
})()
|
||||||
}, [slug])
|
}, [slug])
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import "./style.scss"
|
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 { type FC, useEffect, useState } from "react"
|
||||||
|
|
||||||
import Badge from "@/components/Badge"
|
import Badge from "@/components/Badge"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import "./style.scss"
|
import "./style.scss"
|
||||||
|
|
||||||
import portfolio from "@developomp-site/blog-content/dist/portfolio.json"
|
import portfolio from "@developomp-site/content/dist/portfolio.json"
|
||||||
import type { PortfolioProject } from "@developomp-site/blog-content/src/types/types"
|
import type { PortfolioProject } from "@developomp-site/content/src/types/types"
|
||||||
import { useMeta, useTitle } from "hoofd"
|
import { useMeta, useTitle } from "hoofd"
|
||||||
import { type FC } from "react"
|
import { type FC } from "react"
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import "./style.scss"
|
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 { useMeta, useTitle } from "hoofd"
|
||||||
import { type FC, useEffect, useState } from "react"
|
import { type FC, useEffect, useState } from "react"
|
||||||
import { useRoute } from "wouter"
|
import { useRoute } from "wouter"
|
||||||
|
@ -42,7 +42,7 @@ const Project: FC = () => {
|
||||||
]
|
]
|
||||||
|
|
||||||
const fetched_content = await import(
|
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({
|
setPageData({
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "@developomp-site/blog-content",
|
"name": "@developomp-site/content",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"files": [
|
"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:
|
apps/blog:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@developomp-site/blog-content':
|
'@developomp-site/content':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/blog-content
|
version: link:../../packages/content
|
||||||
'@developomp-site/theme':
|
'@developomp-site/theme':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/theme
|
version: link:../../packages/theme
|
||||||
|
@ -283,9 +283,9 @@ importers:
|
||||||
specifier: ^2.11.0
|
specifier: ^2.11.0
|
||||||
version: 2.11.0(react@18.2.0)
|
version: 2.11.0(react@18.2.0)
|
||||||
devDependencies:
|
devDependencies:
|
||||||
'@developomp-site/blog-content':
|
'@developomp-site/content':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/blog-content
|
version: link:../../packages/content
|
||||||
'@developomp-site/tailwind-config':
|
'@developomp-site/tailwind-config':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../../packages/tailwind-config
|
version: link:../../packages/tailwind-config
|
||||||
|
@ -356,7 +356,7 @@ importers:
|
||||||
specifier: ^4.2.0
|
specifier: ^4.2.0
|
||||||
version: 4.2.0(typescript@5.1.6)(vite@4.3.9)
|
version: 4.2.0(typescript@5.1.6)(vite@4.3.9)
|
||||||
|
|
||||||
packages/blog-content:
|
packages/content:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@developomp-site/tsconfig':
|
'@developomp-site/tsconfig':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue