@lauravivan/notion-portfolio 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/banners/page-example.webp +0 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +7018 -0
- package/dist/notion-portfolio.css +1 -0
- package/dist/packages/core/@client/components/Breadcrumb.vue.d.ts +2 -0
- package/dist/packages/core/@client/components/Callout.vue.d.ts +17 -0
- package/dist/packages/core/@client/components/Column.vue.d.ts +24 -0
- package/dist/packages/core/@client/components/Database/Database.vue.d.ts +11 -0
- package/dist/packages/core/@client/components/Database/DatabaseGalleryLayout.vue.d.ts +10 -0
- package/dist/packages/core/@client/components/Database/DatabaseTableLayout.vue.d.ts +2 -0
- package/dist/packages/core/@client/components/Database/index.d.ts +1 -0
- package/dist/packages/core/@client/components/Divider.vue.d.ts +2 -0
- package/dist/packages/core/@client/components/Empty.vue.d.ts +2 -0
- package/dist/packages/core/@client/components/Heading.vue.d.ts +25 -0
- package/dist/packages/core/@client/components/Icon.vue.d.ts +6 -0
- package/dist/packages/core/@client/components/Image.vue.d.ts +5 -0
- package/dist/packages/core/@client/components/Link/Bookmark.vue.d.ts +7 -0
- package/dist/packages/core/@client/components/Link/LinkMention.vue.d.ts +22 -0
- package/dist/packages/core/@client/components/Link/index.d.ts +2 -0
- package/dist/packages/core/@client/components/List/Bullet/BulletItem.vue.d.ts +17 -0
- package/dist/packages/core/@client/components/List/Bullet/BulletList.vue.d.ts +20 -0
- package/dist/packages/core/@client/components/List/Bullet/index.d.ts +2 -0
- package/dist/packages/core/@client/components/List/ToDo/ToDoItem.vue.d.ts +24 -0
- package/dist/packages/core/@client/components/List/ToDo/ToDoList.vue.d.ts +23 -0
- package/dist/packages/core/@client/components/List/ToDo/index.d.ts +2 -0
- package/dist/packages/core/@client/components/List/index.d.ts +2 -0
- package/dist/packages/core/@client/components/Loader.vue.d.ts +2 -0
- package/dist/packages/core/@client/components/MainModalView.vue.d.ts +11 -0
- package/dist/packages/core/@client/components/Modal.vue.d.ts +31 -0
- package/dist/packages/core/@client/components/Text.vue.d.ts +17 -0
- package/dist/packages/core/@client/components/index.d.ts +14 -0
- package/dist/packages/core/assets/img/default-icons/index.d.ts +4 -0
- package/dist/packages/core/components/Aside.vue.d.ts +6 -0
- package/dist/packages/core/components/Header.vue.d.ts +2 -0
- package/dist/packages/core/components/NavLink/NavLink.vue.d.ts +6 -0
- package/dist/packages/core/components/NavLink/NestedLink.vue.d.ts +6 -0
- package/dist/packages/core/components/SelectList/OptionList.vue.d.ts +10 -0
- package/dist/packages/core/components/SelectList/SelectBtn.vue.d.ts +11 -0
- package/dist/packages/core/components/Tabs.vue.d.ts +6 -0
- package/dist/packages/core/components/Toggle/Toggle.vue.d.ts +29 -0
- package/dist/packages/core/components/Toggle/ToggleList.vue.d.ts +29 -0
- package/dist/packages/core/components/index.d.ts +3 -0
- package/dist/packages/core/constants/aside.d.ts +2 -0
- package/dist/packages/core/enum/icons.d.ts +27 -0
- package/dist/packages/core/enum/index.d.ts +3 -0
- package/dist/packages/core/enum/settings.d.ts +14 -0
- package/dist/packages/core/enum/theme.d.ts +7 -0
- package/dist/packages/core/hooks/index.d.ts +4 -0
- package/dist/packages/core/hooks/useAside.d.ts +14 -0
- package/dist/packages/core/hooks/useDisplay.d.ts +7 -0
- package/dist/packages/core/hooks/useModal.d.ts +7 -0
- package/dist/packages/core/hooks/useToggle.d.ts +8 -0
- package/dist/packages/core/index.d.ts +8 -0
- package/dist/packages/core/layouts/index.d.ts +1 -0
- package/dist/packages/core/layouts/main.vue.d.ts +6 -0
- package/dist/packages/core/pages/NotFound.vue.d.ts +6 -0
- package/dist/packages/core/pages/index.d.ts +1 -0
- package/dist/packages/core/store/index.d.ts +2 -0
- package/dist/packages/core/store/instance.d.ts +2 -0
- package/dist/packages/core/store/store.d.ts +275 -0
- package/dist/packages/core/util/createPage.d.ts +18 -0
- package/dist/packages/core/util/formatDate.d.ts +2 -0
- package/dist/packages/core/util/index.d.ts +2 -0
- package/dist/packages/core/util/isTouchDevice.d.ts +2 -0
- package/dist/packages/core/util/local-storage/active-tab/getActiveTab.d.ts +2 -0
- package/dist/packages/core/util/local-storage/active-tab/setActiveTab.d.ts +2 -0
- package/dist/packages/core/util/local-storage/aside/getAsideOpen.d.ts +2 -0
- package/dist/packages/core/util/local-storage/aside/setAsideOpen.d.ts +2 -0
- package/dist/packages/core/util/local-storage/constants.d.ts +5 -0
- package/dist/packages/core/util/local-storage/dynamic-page-info/getDynamicPageInfo.d.ts +3 -0
- package/dist/packages/core/util/local-storage/dynamic-page-info/setDynamicPageInfo.d.ts +3 -0
- package/dist/packages/core/util/local-storage/index.d.ts +10 -0
- package/dist/packages/core/util/local-storage/tabs/getTabs.d.ts +3 -0
- package/dist/packages/core/util/local-storage/tabs/setTabs.d.ts +3 -0
- package/dist/packages/core/util/local-storage/theme/getTheme.d.ts +3 -0
- package/dist/packages/core/util/local-storage/theme/setTheme.d.ts +3 -0
- package/dist/src/App.vue.d.ts +2 -0
- package/dist/src/main.d.ts +0 -0
- package/dist/src/metadata/index.d.ts +3 -0
- package/dist/src/pages/index.vue.d.ts +2 -0
- package/dist/src/pages/page-example-2.vue.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare enum Icons {
|
|
2
|
+
sandwich = "eva:menu-outline",
|
|
3
|
+
doubleArrowRight = "eva:arrowhead-right-outline",
|
|
4
|
+
doubleArrowLeft = "eva:arrowhead-left-outline",
|
|
5
|
+
settings = "eva:settings-fill",
|
|
6
|
+
gridView = "eva:grid-outline",
|
|
7
|
+
moreHorizontal = "eva:more-horizontal-outline",
|
|
8
|
+
arrowDown = "eva:arrow-ios-downward-outline",
|
|
9
|
+
arrowRight = "eva:arrow-ios-forward-outline",
|
|
10
|
+
arrowDownFilled = "eva:caret-down",
|
|
11
|
+
arrowRightFilled = "eva:caret-forward",
|
|
12
|
+
check = "eva:checkmark-outline",
|
|
13
|
+
circle = "famicons:ellipse",
|
|
14
|
+
forkCode = "eva:git-network-outline",
|
|
15
|
+
star = "eva:star-outline",
|
|
16
|
+
eye = "eva:eye-outline",
|
|
17
|
+
code = "eva:code-slash-outline",
|
|
18
|
+
link = "eva:link-outline",
|
|
19
|
+
add = "eva:plus-outline",
|
|
20
|
+
expand = "eva:expand-outline",
|
|
21
|
+
clock = "eva:time-outline",
|
|
22
|
+
list = "eva:list-outline",
|
|
23
|
+
close = "eva:close-outline",
|
|
24
|
+
search = "eva:search-outline",
|
|
25
|
+
arrowLink = "eva:diagonal-arrow-right-up-fill"
|
|
26
|
+
}
|
|
27
|
+
export default Icons;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare enum FontFamily {
|
|
2
|
+
"font-roboto" = "Default",
|
|
3
|
+
"font-roboto-serif" = "Serif",
|
|
4
|
+
"font-roboto-mono" = "Mono"
|
|
5
|
+
}
|
|
6
|
+
declare enum FontSize {
|
|
7
|
+
"font-size-default" = "font-size-default",
|
|
8
|
+
"font-size-small" = "font-size-small"
|
|
9
|
+
}
|
|
10
|
+
declare enum PageSize {
|
|
11
|
+
"page-default-width" = "page-default-width",
|
|
12
|
+
"page-full-width" = "page-full-width"
|
|
13
|
+
}
|
|
14
|
+
export { FontFamily, FontSize, PageSize };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default function useAside(): {
|
|
2
|
+
mainContainerClasses: import('vue').ComputedRef<{
|
|
3
|
+
"main-container-default": boolean;
|
|
4
|
+
"main-container-click": boolean;
|
|
5
|
+
}>;
|
|
6
|
+
mainContentClasses: import('vue').ComputedRef<{
|
|
7
|
+
"main-content-default": boolean;
|
|
8
|
+
"main-content-click": boolean;
|
|
9
|
+
}>;
|
|
10
|
+
ASIDE_MAIN_CONTAINER: string;
|
|
11
|
+
ASIDE_MAIN_CONTENT: string;
|
|
12
|
+
mainContainerDefault: import('vue').Ref<boolean, boolean>;
|
|
13
|
+
mainContentDefault: import('vue').Ref<boolean, boolean>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Aside, Header, Tabs } from './components';
|
|
2
|
+
export { Bookmark, Breadcrumb, BulletItem, BulletList, Callout, Column, Database, Divider, Empty, Heading, Image, LinkMention, Loader, MainModalView, Modal, Text, ToDoItem, ToDoList, } from './@client/components';
|
|
3
|
+
export { createPage, isTouchDevice } from './util';
|
|
4
|
+
export { MainLayout } from './layouts';
|
|
5
|
+
export { NotFoundPage } from './pages';
|
|
6
|
+
export { useStore, piniaInstance } from './store';
|
|
7
|
+
export { useAside, useDisplay, useModal, useToggle } from './hooks';
|
|
8
|
+
export type { PageInfo, IMetadata } from './@types';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as MainLayout } from './main.vue';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PageInfo } from '../@types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
activePage: PageInfo;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
previousRoute?: any;
|
|
3
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
4
|
+
previousRoute?: any;
|
|
5
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as NotFoundPage } from './NotFound.vue';
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import { PageInfo } from '../@types';
|
|
2
|
+
import { FontFamily, FontSize, PageSize, Theme } from '../enum';
|
|
3
|
+
import { DynamicPageInfo, Tab } from '../util/local-storage/types';
|
|
4
|
+
interface State {
|
|
5
|
+
dynamicPageInfo: DynamicPageInfo;
|
|
6
|
+
theme: keyof typeof Theme;
|
|
7
|
+
tabs: Tab[];
|
|
8
|
+
activeTab: number;
|
|
9
|
+
activePage: PageInfo;
|
|
10
|
+
isAsideOpen: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const useStore: import('pinia').Store<"global", State, {
|
|
13
|
+
getDynamicPageInfo: (state: {
|
|
14
|
+
dynamicPageInfo: DynamicPageInfo;
|
|
15
|
+
theme: keyof typeof Theme;
|
|
16
|
+
tabs: {
|
|
17
|
+
pageId: string;
|
|
18
|
+
pagePath: string;
|
|
19
|
+
pageName: string;
|
|
20
|
+
}[];
|
|
21
|
+
activeTab: number;
|
|
22
|
+
activePage: {
|
|
23
|
+
id: string;
|
|
24
|
+
path: string;
|
|
25
|
+
title: string;
|
|
26
|
+
pages?: /*elided*/ any[] | undefined;
|
|
27
|
+
parentPage?: /*elided*/ any | undefined;
|
|
28
|
+
isHomepage?: boolean | undefined;
|
|
29
|
+
component: DefineComponent;
|
|
30
|
+
banner: {
|
|
31
|
+
path: string;
|
|
32
|
+
author: string;
|
|
33
|
+
link: string;
|
|
34
|
+
};
|
|
35
|
+
icon: {
|
|
36
|
+
path: string;
|
|
37
|
+
author?: string | undefined;
|
|
38
|
+
link?: string | undefined;
|
|
39
|
+
};
|
|
40
|
+
tags?: string[] | undefined;
|
|
41
|
+
};
|
|
42
|
+
isAsideOpen: boolean;
|
|
43
|
+
} & import('pinia').PiniaCustomStateProperties<State>) => DynamicPageInfo;
|
|
44
|
+
getTheme: (state: {
|
|
45
|
+
dynamicPageInfo: DynamicPageInfo;
|
|
46
|
+
theme: keyof typeof Theme;
|
|
47
|
+
tabs: {
|
|
48
|
+
pageId: string;
|
|
49
|
+
pagePath: string;
|
|
50
|
+
pageName: string;
|
|
51
|
+
}[];
|
|
52
|
+
activeTab: number;
|
|
53
|
+
activePage: {
|
|
54
|
+
id: string;
|
|
55
|
+
path: string;
|
|
56
|
+
title: string;
|
|
57
|
+
pages?: /*elided*/ any[] | undefined;
|
|
58
|
+
parentPage?: /*elided*/ any | undefined;
|
|
59
|
+
isHomepage?: boolean | undefined;
|
|
60
|
+
component: DefineComponent;
|
|
61
|
+
banner: {
|
|
62
|
+
path: string;
|
|
63
|
+
author: string;
|
|
64
|
+
link: string;
|
|
65
|
+
};
|
|
66
|
+
icon: {
|
|
67
|
+
path: string;
|
|
68
|
+
author?: string | undefined;
|
|
69
|
+
link?: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
tags?: string[] | undefined;
|
|
72
|
+
};
|
|
73
|
+
isAsideOpen: boolean;
|
|
74
|
+
} & import('pinia').PiniaCustomStateProperties<State>) => "light-theme" | "dark-theme" | "cat-latte" | "cat-mocha";
|
|
75
|
+
getTabs: (state: {
|
|
76
|
+
dynamicPageInfo: DynamicPageInfo;
|
|
77
|
+
theme: keyof typeof Theme;
|
|
78
|
+
tabs: {
|
|
79
|
+
pageId: string;
|
|
80
|
+
pagePath: string;
|
|
81
|
+
pageName: string;
|
|
82
|
+
}[];
|
|
83
|
+
activeTab: number;
|
|
84
|
+
activePage: {
|
|
85
|
+
id: string;
|
|
86
|
+
path: string;
|
|
87
|
+
title: string;
|
|
88
|
+
pages?: /*elided*/ any[] | undefined;
|
|
89
|
+
parentPage?: /*elided*/ any | undefined;
|
|
90
|
+
isHomepage?: boolean | undefined;
|
|
91
|
+
component: DefineComponent;
|
|
92
|
+
banner: {
|
|
93
|
+
path: string;
|
|
94
|
+
author: string;
|
|
95
|
+
link: string;
|
|
96
|
+
};
|
|
97
|
+
icon: {
|
|
98
|
+
path: string;
|
|
99
|
+
author?: string | undefined;
|
|
100
|
+
link?: string | undefined;
|
|
101
|
+
};
|
|
102
|
+
tags?: string[] | undefined;
|
|
103
|
+
};
|
|
104
|
+
isAsideOpen: boolean;
|
|
105
|
+
} & import('pinia').PiniaCustomStateProperties<State>) => {
|
|
106
|
+
pageId: string;
|
|
107
|
+
pagePath: string;
|
|
108
|
+
pageName: string;
|
|
109
|
+
}[];
|
|
110
|
+
getActiveTab: (state: {
|
|
111
|
+
dynamicPageInfo: DynamicPageInfo;
|
|
112
|
+
theme: keyof typeof Theme;
|
|
113
|
+
tabs: {
|
|
114
|
+
pageId: string;
|
|
115
|
+
pagePath: string;
|
|
116
|
+
pageName: string;
|
|
117
|
+
}[];
|
|
118
|
+
activeTab: number;
|
|
119
|
+
activePage: {
|
|
120
|
+
id: string;
|
|
121
|
+
path: string;
|
|
122
|
+
title: string;
|
|
123
|
+
pages?: /*elided*/ any[] | undefined;
|
|
124
|
+
parentPage?: /*elided*/ any | undefined;
|
|
125
|
+
isHomepage?: boolean | undefined;
|
|
126
|
+
component: DefineComponent;
|
|
127
|
+
banner: {
|
|
128
|
+
path: string;
|
|
129
|
+
author: string;
|
|
130
|
+
link: string;
|
|
131
|
+
};
|
|
132
|
+
icon: {
|
|
133
|
+
path: string;
|
|
134
|
+
author?: string | undefined;
|
|
135
|
+
link?: string | undefined;
|
|
136
|
+
};
|
|
137
|
+
tags?: string[] | undefined;
|
|
138
|
+
};
|
|
139
|
+
isAsideOpen: boolean;
|
|
140
|
+
} & import('pinia').PiniaCustomStateProperties<State>) => number;
|
|
141
|
+
getDynamicCurrentPageInfo: (state: {
|
|
142
|
+
dynamicPageInfo: DynamicPageInfo;
|
|
143
|
+
theme: keyof typeof Theme;
|
|
144
|
+
tabs: {
|
|
145
|
+
pageId: string;
|
|
146
|
+
pagePath: string;
|
|
147
|
+
pageName: string;
|
|
148
|
+
}[];
|
|
149
|
+
activeTab: number;
|
|
150
|
+
activePage: {
|
|
151
|
+
id: string;
|
|
152
|
+
path: string;
|
|
153
|
+
title: string;
|
|
154
|
+
pages?: /*elided*/ any[] | undefined;
|
|
155
|
+
parentPage?: /*elided*/ any | undefined;
|
|
156
|
+
isHomepage?: boolean | undefined;
|
|
157
|
+
component: DefineComponent;
|
|
158
|
+
banner: {
|
|
159
|
+
path: string;
|
|
160
|
+
author: string;
|
|
161
|
+
link: string;
|
|
162
|
+
};
|
|
163
|
+
icon: {
|
|
164
|
+
path: string;
|
|
165
|
+
author?: string | undefined;
|
|
166
|
+
link?: string | undefined;
|
|
167
|
+
};
|
|
168
|
+
tags?: string[] | undefined;
|
|
169
|
+
};
|
|
170
|
+
isAsideOpen: boolean;
|
|
171
|
+
} & import('pinia').PiniaCustomStateProperties<State>) => {
|
|
172
|
+
settings: import('../util/local-storage/types').Settings;
|
|
173
|
+
created: Date | null;
|
|
174
|
+
} | {
|
|
175
|
+
settings: {
|
|
176
|
+
fontFamily: string;
|
|
177
|
+
fontSize: string;
|
|
178
|
+
pageSize: string;
|
|
179
|
+
};
|
|
180
|
+
} | undefined;
|
|
181
|
+
getActivePage: (state: {
|
|
182
|
+
dynamicPageInfo: DynamicPageInfo;
|
|
183
|
+
theme: keyof typeof Theme;
|
|
184
|
+
tabs: {
|
|
185
|
+
pageId: string;
|
|
186
|
+
pagePath: string;
|
|
187
|
+
pageName: string;
|
|
188
|
+
}[];
|
|
189
|
+
activeTab: number;
|
|
190
|
+
activePage: {
|
|
191
|
+
id: string;
|
|
192
|
+
path: string;
|
|
193
|
+
title: string;
|
|
194
|
+
pages?: /*elided*/ any[] | undefined;
|
|
195
|
+
parentPage?: /*elided*/ any | undefined;
|
|
196
|
+
isHomepage?: boolean | undefined;
|
|
197
|
+
component: DefineComponent;
|
|
198
|
+
banner: {
|
|
199
|
+
path: string;
|
|
200
|
+
author: string;
|
|
201
|
+
link: string;
|
|
202
|
+
};
|
|
203
|
+
icon: {
|
|
204
|
+
path: string;
|
|
205
|
+
author?: string | undefined;
|
|
206
|
+
link?: string | undefined;
|
|
207
|
+
};
|
|
208
|
+
tags?: string[] | undefined;
|
|
209
|
+
};
|
|
210
|
+
isAsideOpen: boolean;
|
|
211
|
+
} & import('pinia').PiniaCustomStateProperties<State>) => {
|
|
212
|
+
id: string;
|
|
213
|
+
path: string;
|
|
214
|
+
title: string;
|
|
215
|
+
pages?: /*elided*/ any[] | undefined;
|
|
216
|
+
parentPage?: /*elided*/ any | undefined;
|
|
217
|
+
isHomepage?: boolean | undefined;
|
|
218
|
+
component: DefineComponent;
|
|
219
|
+
banner: {
|
|
220
|
+
path: string;
|
|
221
|
+
author: string;
|
|
222
|
+
link: string;
|
|
223
|
+
};
|
|
224
|
+
icon: {
|
|
225
|
+
path: string;
|
|
226
|
+
author?: string | undefined;
|
|
227
|
+
link?: string | undefined;
|
|
228
|
+
};
|
|
229
|
+
tags?: string[] | undefined;
|
|
230
|
+
};
|
|
231
|
+
getIsAsideOpen: (state: {
|
|
232
|
+
dynamicPageInfo: DynamicPageInfo;
|
|
233
|
+
theme: keyof typeof Theme;
|
|
234
|
+
tabs: {
|
|
235
|
+
pageId: string;
|
|
236
|
+
pagePath: string;
|
|
237
|
+
pageName: string;
|
|
238
|
+
}[];
|
|
239
|
+
activeTab: number;
|
|
240
|
+
activePage: {
|
|
241
|
+
id: string;
|
|
242
|
+
path: string;
|
|
243
|
+
title: string;
|
|
244
|
+
pages?: /*elided*/ any[] | undefined;
|
|
245
|
+
parentPage?: /*elided*/ any | undefined;
|
|
246
|
+
isHomepage?: boolean | undefined;
|
|
247
|
+
component: DefineComponent;
|
|
248
|
+
banner: {
|
|
249
|
+
path: string;
|
|
250
|
+
author: string;
|
|
251
|
+
link: string;
|
|
252
|
+
};
|
|
253
|
+
icon: {
|
|
254
|
+
path: string;
|
|
255
|
+
author?: string | undefined;
|
|
256
|
+
link?: string | undefined;
|
|
257
|
+
};
|
|
258
|
+
tags?: string[] | undefined;
|
|
259
|
+
};
|
|
260
|
+
isAsideOpen: boolean;
|
|
261
|
+
} & import('pinia').PiniaCustomStateProperties<State>) => boolean;
|
|
262
|
+
}, {
|
|
263
|
+
storeTheme(theme: keyof typeof Theme): void;
|
|
264
|
+
storeActiveTab(activeTab: number): void;
|
|
265
|
+
storeTabs(tabs: Tab[]): void;
|
|
266
|
+
storeDynamicPageInfo({ fontFamily, fontSize, pageSize, }: {
|
|
267
|
+
fontFamily?: keyof typeof FontFamily;
|
|
268
|
+
fontSize?: keyof typeof FontSize;
|
|
269
|
+
pageSize?: keyof typeof PageSize;
|
|
270
|
+
}): void;
|
|
271
|
+
storeCreated(): void;
|
|
272
|
+
storeActivePage(activePage: PageInfo): void;
|
|
273
|
+
storeIsAsideOpen(isAsideOpen: boolean): void;
|
|
274
|
+
}>;
|
|
275
|
+
export default useStore;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
2
|
+
import { PageInfo } from '..';
|
|
3
|
+
interface Page {
|
|
4
|
+
id: string;
|
|
5
|
+
title: string;
|
|
6
|
+
parentPage?: PageInfo;
|
|
7
|
+
pages?: PageInfo[];
|
|
8
|
+
isHomepage?: boolean;
|
|
9
|
+
iconPath: string;
|
|
10
|
+
iconAuthor?: string;
|
|
11
|
+
iconLink?: string;
|
|
12
|
+
bannerAuthor: string;
|
|
13
|
+
bannerLink: string;
|
|
14
|
+
component: Component;
|
|
15
|
+
tags?: string[];
|
|
16
|
+
}
|
|
17
|
+
declare const createPage: ({ id, title, parentPage, pages, isHomepage, component, bannerAuthor, bannerLink, iconPath, iconAuthor, iconLink, tags, }: Page) => PageInfo;
|
|
18
|
+
export default createPage;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const LOCAL_STORAGE_DYNAMIC_PAGE_INFO = "notion-portfolio-dynamic-page-info";
|
|
2
|
+
export declare const LOCAL_STORAGE_ACTIVE_TAB = "notion-portfolio-active-tab";
|
|
3
|
+
export declare const LOCAL_STORAGE_TABS = "notion-portfolio-tabs";
|
|
4
|
+
export declare const LOCAL_STORAGE_THEME = "notion-portfolio-theme";
|
|
5
|
+
export declare const LOCAL_STORAGE_ASIDE = "notion-portfolio-aside";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as setActiveTab } from './active-tab/setActiveTab';
|
|
2
|
+
export { default as getActiveTab } from './active-tab/getActiveTab';
|
|
3
|
+
export { default as setDynamicPageInfo } from './dynamic-page-info/setDynamicPageInfo';
|
|
4
|
+
export { default as getDynamicPageInfo } from './dynamic-page-info/getDynamicPageInfo';
|
|
5
|
+
export { default as getTabs } from './tabs/getTabs';
|
|
6
|
+
export { default as setTabs } from './tabs/setTabs';
|
|
7
|
+
export { default as setTheme } from './theme/setTheme';
|
|
8
|
+
export { default as getTheme } from './theme/getTheme';
|
|
9
|
+
export { default as setAsideOpen } from './aside/setAsideOpen';
|
|
10
|
+
export { default as getAsideOpen } from './aside/getAsideOpen';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
File without changes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLSpanElement>;
|
|
2
|
+
export default _default;
|