chore: reorganize project into monorepo

This commit is contained in:
2026-03-28 10:40:22 +08:00
parent 60367a5f51
commit 1455d93246
201 changed files with 30081 additions and 93 deletions

View File

@@ -0,0 +1,167 @@
export interface TerminalConfig {
defaultCategory: string;
welcomeMessage: string;
prompt: {
prefix: string;
separator: string;
path: string;
suffix: string;
mobile: string;
};
asciiArt: string;
title: string;
welcome: {
title: string;
subtitle: string;
};
navLinks: Array<{
icon: string;
text: string;
href: string;
}>;
categories: {
[key: string]: {
title: string;
description: string;
items: Array<{
command: string;
description: string;
shortDesc?: string;
url?: string;
}>;
};
};
postTypes: {
article: { color: string; label: string };
tweet: { color: string; label: string };
};
pinnedPost?: {
title: string;
description: string;
date: string;
readTime: string;
type: 'article' | 'tweet';
tags: string[];
link: string;
};
socialLinks: {
github: string;
twitter: string;
email: string;
};
tools: Array<{
icon: string;
href: string;
title: string;
}>;
search?: {
placeholders: {
default: string;
small: string;
medium: string;
};
promptText: string;
emptyResultText: string;
};
terminal?: {
defaultWindowTitle: string;
controls: {
colors: {
close: string;
minimize: string;
expand: string;
};
};
animation?: {
glowDuration: string;
};
};
branding?: {
name: string;
shortName?: string;
};
}
export const terminalConfig: TerminalConfig = {
defaultCategory: 'blog',
welcomeMessage: '欢迎来到我的博客!',
prompt: {
prefix: 'user@blog',
separator: ':',
path: '~/',
suffix: '$',
mobile: '~$'
},
asciiArt: `
I N N I TTTTT CCCC OOO OOO L
I NN N I T C O O O O L
I N N N I T C O O O O L
I N NN I T C O O O O L
I N N I T CCCC OOO OOO LLLLL`,
title: '~/blog',
welcome: {
title: '欢迎来到我的极客终端博客',
subtitle: '这里记录技术、代码和生活点滴'
},
navLinks: [
{ icon: 'fa-file-code', text: '文章', href: '/articles' },
{ icon: 'fa-folder', text: '分类', href: '/categories' },
{ icon: 'fa-tags', text: '标签', href: '/tags' },
{ icon: 'fa-stream', text: '时间轴', href: '/timeline' },
{ icon: 'fa-star', text: '评价', href: '/reviews' },
{ icon: 'fa-link', text: '友链', href: '/friends' },
{ icon: 'fa-user-secret', text: '关于', href: '/about' }
],
categories: {
blog: {
title: '博客',
description: '我的个人博客文章',
items: [
{
command: 'help',
description: '显示帮助信息',
shortDesc: '显示帮助信息'
}
]
}
},
postTypes: {
article: { color: '#00ff9d', label: '博客文章' },
tweet: { color: '#00b8ff', label: '推文' }
},
socialLinks: {
github: '',
twitter: '',
email: ''
},
tools: [
{ icon: 'fa-sitemap', href: '/sitemap.xml', title: '站点地图' },
{ icon: 'fa-rss', href: '/rss.xml', title: 'RSS订阅' }
],
search: {
placeholders: {
default: "'关键词' articles/*.md",
small: "搜索...",
medium: "搜索文章..."
},
promptText: "grep -i",
emptyResultText: "输入关键词搜索文章"
},
terminal: {
defaultWindowTitle: 'user@terminal: ~/blog',
controls: {
colors: {
close: '#ff5f56',
minimize: '#ffbd2e',
expand: '#27c93f'
}
},
animation: {
glowDuration: '4s'
}
},
branding: {
name: 'InitCool',
shortName: 'Termi'
}
};