-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy paththeme.config.jsx
37 lines (32 loc) · 1.25 KB
/
theme.config.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import Kindle_HomePage from "@/themes/kindle/pages/HomePage";
import Kindle_ArticlePage from "@/themes/kindle/pages/ArticlePage";
import Kindle_ArchivePage from "@/themes/kindle/pages/ArchivePage";
import Kindle_SettingsPage from "@/themes/kindle/pages/SettingsPage";
import Kindle_Layout from "@/themes/kindle/Layout";
import Instagram_Layout from "@/themes/instagram/Layout";
import Instagram_HomePage from "@/themes/instagram/pages/HomePage";
import Instagram_ArticlePage from "@/themes/instagram/pages/ArticlePage";
import Instagram_ArchivePage from "@/themes/instagram/pages/ArchivePage";
import Instagram_SettingsPage from "@/themes/instagram/pages/SettingsPage";
const THEME_NAME = "kindle";
// const THEME_NAME = "instagram";
const themeConfig = {
kindle: {
layout: Kindle_Layout,
homePage: Kindle_HomePage,
articlePage: Kindle_ArticlePage,
archivePage: Kindle_ArchivePage,
settingsPage: Kindle_SettingsPage,
},
instagram: {
layout: Instagram_Layout,
homePage: Instagram_HomePage,
articlePage: Instagram_ArticlePage,
archivePage: Instagram_ArchivePage,
settingsPage: Instagram_SettingsPage,
},
};
if (!THEME_NAME || !themeConfig[THEME_NAME]) {
throw new Error(`Invalid THEME_NAME: ${THEME_NAME}`);
}
export default themeConfig[THEME_NAME];