@lauravivan/notion-portfolio 1.0.4 → 1.1.0
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/icons/page-example.png +0 -0
- package/dist/index.es.js +1467 -1462
- package/dist/notion-portfolio.css +1 -1
- package/dist/packages/core/@client/components/Breadcrumb.vue.d.ts +5 -1
- package/dist/packages/core/@client/components/Callout.vue.d.ts +4 -1
- package/dist/packages/core/@client/components/Column/Column.vue.d.ts +17 -0
- package/dist/packages/core/@client/components/Column/Columns.vue.d.ts +30 -0
- package/dist/packages/core/@client/components/Column/index.d.ts +2 -0
- package/dist/packages/core/@client/components/Heading.vue.d.ts +1 -3
- package/dist/packages/core/@client/components/{Column.vue.d.ts → Link/Link.vue.d.ts} +4 -8
- package/dist/packages/core/@client/components/Link/index.d.ts +1 -0
- package/dist/packages/core/@client/components/List/ToDo/ToDoItem.vue.d.ts +1 -1
- package/dist/packages/core/@client/components/Text.vue.d.ts +2 -2
- package/dist/packages/core/@client/components/TextHighlight.vue.d.ts +17 -0
- package/dist/packages/core/@client/components/index.d.ts +3 -2
- package/dist/packages/core/components/Header.vue.d.ts +5 -1
- package/dist/packages/core/components/{NavLink/NavLink.vue.d.ts → NavLink.vue.d.ts} +4 -3
- package/dist/packages/core/components/{NavLink/NestedLink.vue.d.ts → NestedLink.vue.d.ts} +3 -2
- package/dist/packages/core/enum/icons.d.ts +2 -2
- package/dist/packages/core/index.d.ts +2 -2
- package/dist/packages/core/store/store.d.ts +121 -81
- package/dist/packages/core/util/index.d.ts +0 -1
- package/dist/src/pages/page-example-2.vue.d.ts +1 -1
- package/package.json +2 -2
- package/dist/packages/core/util/createPage.d.ts +0 -17
- /package/dist/packages/core/{components/Toggle → @client/components}/ToggleList.vue.d.ts +0 -0
- /package/dist/packages/core/components/{Toggle/Toggle.vue.d.ts → ToggleBtn.vue.d.ts} +0 -0
|
@@ -14,11 +14,11 @@ declare enum Icons {
|
|
|
14
14
|
forkCode = "eva:git-network-outline",
|
|
15
15
|
star = "eva:star-outline",
|
|
16
16
|
eye = "eva:eye-outline",
|
|
17
|
-
code = "eva:code-
|
|
17
|
+
code = "eva:code-outline",
|
|
18
18
|
link = "eva:link-outline",
|
|
19
19
|
add = "eva:plus-outline",
|
|
20
20
|
expand = "eva:expand-outline",
|
|
21
|
-
clock = "eva:
|
|
21
|
+
clock = "eva:clock-fill",
|
|
22
22
|
list = "eva:list-outline",
|
|
23
23
|
close = "eva:close-outline",
|
|
24
24
|
search = "eva:search-outline",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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 {
|
|
2
|
+
export { Bookmark, Breadcrumb, BulletItem, BulletList, Callout, Column, Database, Divider, Empty, Heading, Image, LinkMention, Loader, MainModalView, Modal, Text, ToDoItem, ToDoList, TextHighlight, Link, Columns, } from './@client/components';
|
|
3
|
+
export { isTouchDevice } from './util';
|
|
4
4
|
export { MainLayout } from './layouts';
|
|
5
5
|
export { NotFoundPage } from './pages';
|
|
6
6
|
export { useStore, piniaInstance } from './store';
|
|
@@ -23,21 +23,26 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
23
23
|
id: string;
|
|
24
24
|
path: string;
|
|
25
25
|
title: string;
|
|
26
|
-
pages?:
|
|
27
|
-
parentPage?:
|
|
26
|
+
pages?: string[] | undefined;
|
|
27
|
+
parentPage?: string | undefined;
|
|
28
28
|
isHomepage?: boolean | undefined;
|
|
29
|
-
component:
|
|
30
|
-
banner
|
|
29
|
+
component: Component;
|
|
30
|
+
banner?: {
|
|
31
31
|
path: string;
|
|
32
|
-
author
|
|
33
|
-
link
|
|
34
|
-
};
|
|
35
|
-
icon
|
|
32
|
+
author?: string | undefined;
|
|
33
|
+
link?: string | undefined;
|
|
34
|
+
} | undefined;
|
|
35
|
+
icon?: {
|
|
36
36
|
path: string;
|
|
37
37
|
author?: string | undefined;
|
|
38
38
|
link?: string | undefined;
|
|
39
|
-
};
|
|
40
|
-
|
|
39
|
+
} | undefined;
|
|
40
|
+
databaseInfo?: {
|
|
41
|
+
[key: string]: {
|
|
42
|
+
icon: "clock" | "check" | "code";
|
|
43
|
+
value: string | string[];
|
|
44
|
+
};
|
|
45
|
+
} | undefined;
|
|
41
46
|
};
|
|
42
47
|
isAsideOpen: boolean;
|
|
43
48
|
} & import('pinia').PiniaCustomStateProperties<State>) => DynamicPageInfo;
|
|
@@ -54,21 +59,26 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
54
59
|
id: string;
|
|
55
60
|
path: string;
|
|
56
61
|
title: string;
|
|
57
|
-
pages?:
|
|
58
|
-
parentPage?:
|
|
62
|
+
pages?: string[] | undefined;
|
|
63
|
+
parentPage?: string | undefined;
|
|
59
64
|
isHomepage?: boolean | undefined;
|
|
60
|
-
component:
|
|
61
|
-
banner
|
|
65
|
+
component: Component;
|
|
66
|
+
banner?: {
|
|
62
67
|
path: string;
|
|
63
|
-
author
|
|
64
|
-
link
|
|
65
|
-
};
|
|
66
|
-
icon
|
|
68
|
+
author?: string | undefined;
|
|
69
|
+
link?: string | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
icon?: {
|
|
67
72
|
path: string;
|
|
68
73
|
author?: string | undefined;
|
|
69
74
|
link?: string | undefined;
|
|
70
|
-
};
|
|
71
|
-
|
|
75
|
+
} | undefined;
|
|
76
|
+
databaseInfo?: {
|
|
77
|
+
[key: string]: {
|
|
78
|
+
icon: "clock" | "check" | "code";
|
|
79
|
+
value: string | string[];
|
|
80
|
+
};
|
|
81
|
+
} | undefined;
|
|
72
82
|
};
|
|
73
83
|
isAsideOpen: boolean;
|
|
74
84
|
} & import('pinia').PiniaCustomStateProperties<State>) => "light-theme" | "dark-theme" | "cat-latte" | "cat-mocha";
|
|
@@ -85,21 +95,26 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
85
95
|
id: string;
|
|
86
96
|
path: string;
|
|
87
97
|
title: string;
|
|
88
|
-
pages?:
|
|
89
|
-
parentPage?:
|
|
98
|
+
pages?: string[] | undefined;
|
|
99
|
+
parentPage?: string | undefined;
|
|
90
100
|
isHomepage?: boolean | undefined;
|
|
91
|
-
component:
|
|
92
|
-
banner
|
|
101
|
+
component: Component;
|
|
102
|
+
banner?: {
|
|
93
103
|
path: string;
|
|
94
|
-
author
|
|
95
|
-
link
|
|
96
|
-
};
|
|
97
|
-
icon
|
|
104
|
+
author?: string | undefined;
|
|
105
|
+
link?: string | undefined;
|
|
106
|
+
} | undefined;
|
|
107
|
+
icon?: {
|
|
98
108
|
path: string;
|
|
99
109
|
author?: string | undefined;
|
|
100
110
|
link?: string | undefined;
|
|
101
|
-
};
|
|
102
|
-
|
|
111
|
+
} | undefined;
|
|
112
|
+
databaseInfo?: {
|
|
113
|
+
[key: string]: {
|
|
114
|
+
icon: "clock" | "check" | "code";
|
|
115
|
+
value: string | string[];
|
|
116
|
+
};
|
|
117
|
+
} | undefined;
|
|
103
118
|
};
|
|
104
119
|
isAsideOpen: boolean;
|
|
105
120
|
} & import('pinia').PiniaCustomStateProperties<State>) => {
|
|
@@ -120,21 +135,26 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
120
135
|
id: string;
|
|
121
136
|
path: string;
|
|
122
137
|
title: string;
|
|
123
|
-
pages?:
|
|
124
|
-
parentPage?:
|
|
138
|
+
pages?: string[] | undefined;
|
|
139
|
+
parentPage?: string | undefined;
|
|
125
140
|
isHomepage?: boolean | undefined;
|
|
126
|
-
component:
|
|
127
|
-
banner
|
|
141
|
+
component: Component;
|
|
142
|
+
banner?: {
|
|
128
143
|
path: string;
|
|
129
|
-
author
|
|
130
|
-
link
|
|
131
|
-
};
|
|
132
|
-
icon
|
|
144
|
+
author?: string | undefined;
|
|
145
|
+
link?: string | undefined;
|
|
146
|
+
} | undefined;
|
|
147
|
+
icon?: {
|
|
133
148
|
path: string;
|
|
134
149
|
author?: string | undefined;
|
|
135
150
|
link?: string | undefined;
|
|
136
|
-
};
|
|
137
|
-
|
|
151
|
+
} | undefined;
|
|
152
|
+
databaseInfo?: {
|
|
153
|
+
[key: string]: {
|
|
154
|
+
icon: "clock" | "check" | "code";
|
|
155
|
+
value: string | string[];
|
|
156
|
+
};
|
|
157
|
+
} | undefined;
|
|
138
158
|
};
|
|
139
159
|
isAsideOpen: boolean;
|
|
140
160
|
} & import('pinia').PiniaCustomStateProperties<State>) => number;
|
|
@@ -151,21 +171,26 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
151
171
|
id: string;
|
|
152
172
|
path: string;
|
|
153
173
|
title: string;
|
|
154
|
-
pages?:
|
|
155
|
-
parentPage?:
|
|
174
|
+
pages?: string[] | undefined;
|
|
175
|
+
parentPage?: string | undefined;
|
|
156
176
|
isHomepage?: boolean | undefined;
|
|
157
|
-
component:
|
|
158
|
-
banner
|
|
177
|
+
component: Component;
|
|
178
|
+
banner?: {
|
|
159
179
|
path: string;
|
|
160
|
-
author
|
|
161
|
-
link
|
|
162
|
-
};
|
|
163
|
-
icon
|
|
180
|
+
author?: string | undefined;
|
|
181
|
+
link?: string | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
icon?: {
|
|
164
184
|
path: string;
|
|
165
185
|
author?: string | undefined;
|
|
166
186
|
link?: string | undefined;
|
|
167
|
-
};
|
|
168
|
-
|
|
187
|
+
} | undefined;
|
|
188
|
+
databaseInfo?: {
|
|
189
|
+
[key: string]: {
|
|
190
|
+
icon: "clock" | "check" | "code";
|
|
191
|
+
value: string | string[];
|
|
192
|
+
};
|
|
193
|
+
} | undefined;
|
|
169
194
|
};
|
|
170
195
|
isAsideOpen: boolean;
|
|
171
196
|
} & import('pinia').PiniaCustomStateProperties<State>) => {
|
|
@@ -191,42 +216,52 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
191
216
|
id: string;
|
|
192
217
|
path: string;
|
|
193
218
|
title: string;
|
|
194
|
-
pages?:
|
|
195
|
-
parentPage?:
|
|
219
|
+
pages?: string[] | undefined;
|
|
220
|
+
parentPage?: string | undefined;
|
|
196
221
|
isHomepage?: boolean | undefined;
|
|
197
|
-
component:
|
|
198
|
-
banner
|
|
222
|
+
component: Component;
|
|
223
|
+
banner?: {
|
|
199
224
|
path: string;
|
|
200
|
-
author
|
|
201
|
-
link
|
|
202
|
-
};
|
|
203
|
-
icon
|
|
225
|
+
author?: string | undefined;
|
|
226
|
+
link?: string | undefined;
|
|
227
|
+
} | undefined;
|
|
228
|
+
icon?: {
|
|
204
229
|
path: string;
|
|
205
230
|
author?: string | undefined;
|
|
206
231
|
link?: string | undefined;
|
|
207
|
-
};
|
|
208
|
-
|
|
232
|
+
} | undefined;
|
|
233
|
+
databaseInfo?: {
|
|
234
|
+
[key: string]: {
|
|
235
|
+
icon: "clock" | "check" | "code";
|
|
236
|
+
value: string | string[];
|
|
237
|
+
};
|
|
238
|
+
} | undefined;
|
|
209
239
|
};
|
|
210
240
|
isAsideOpen: boolean;
|
|
211
241
|
} & import('pinia').PiniaCustomStateProperties<State>) => {
|
|
212
242
|
id: string;
|
|
213
243
|
path: string;
|
|
214
244
|
title: string;
|
|
215
|
-
pages?:
|
|
216
|
-
parentPage?:
|
|
245
|
+
pages?: string[] | undefined;
|
|
246
|
+
parentPage?: string | undefined;
|
|
217
247
|
isHomepage?: boolean | undefined;
|
|
218
|
-
component:
|
|
219
|
-
banner
|
|
248
|
+
component: Component;
|
|
249
|
+
banner?: {
|
|
220
250
|
path: string;
|
|
221
|
-
author
|
|
222
|
-
link
|
|
223
|
-
};
|
|
224
|
-
icon
|
|
251
|
+
author?: string | undefined;
|
|
252
|
+
link?: string | undefined;
|
|
253
|
+
} | undefined;
|
|
254
|
+
icon?: {
|
|
225
255
|
path: string;
|
|
226
256
|
author?: string | undefined;
|
|
227
257
|
link?: string | undefined;
|
|
228
|
-
};
|
|
229
|
-
|
|
258
|
+
} | undefined;
|
|
259
|
+
databaseInfo?: {
|
|
260
|
+
[key: string]: {
|
|
261
|
+
icon: "clock" | "check" | "code";
|
|
262
|
+
value: string | string[];
|
|
263
|
+
};
|
|
264
|
+
} | undefined;
|
|
230
265
|
};
|
|
231
266
|
getIsAsideOpen: (state: {
|
|
232
267
|
dynamicPageInfo: DynamicPageInfo;
|
|
@@ -241,21 +276,26 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
241
276
|
id: string;
|
|
242
277
|
path: string;
|
|
243
278
|
title: string;
|
|
244
|
-
pages?:
|
|
245
|
-
parentPage?:
|
|
279
|
+
pages?: string[] | undefined;
|
|
280
|
+
parentPage?: string | undefined;
|
|
246
281
|
isHomepage?: boolean | undefined;
|
|
247
|
-
component:
|
|
248
|
-
banner
|
|
282
|
+
component: Component;
|
|
283
|
+
banner?: {
|
|
249
284
|
path: string;
|
|
250
|
-
author
|
|
251
|
-
link
|
|
252
|
-
};
|
|
253
|
-
icon
|
|
285
|
+
author?: string | undefined;
|
|
286
|
+
link?: string | undefined;
|
|
287
|
+
} | undefined;
|
|
288
|
+
icon?: {
|
|
254
289
|
path: string;
|
|
255
290
|
author?: string | undefined;
|
|
256
291
|
link?: string | undefined;
|
|
257
|
-
};
|
|
258
|
-
|
|
292
|
+
} | undefined;
|
|
293
|
+
databaseInfo?: {
|
|
294
|
+
[key: string]: {
|
|
295
|
+
icon: "clock" | "check" | "code";
|
|
296
|
+
value: string | string[];
|
|
297
|
+
};
|
|
298
|
+
} | undefined;
|
|
259
299
|
};
|
|
260
300
|
isAsideOpen: boolean;
|
|
261
301
|
} & import('pinia').PiniaCustomStateProperties<State>) => boolean;
|
|
@@ -268,8 +308,8 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
268
308
|
fontSize?: keyof typeof FontSize;
|
|
269
309
|
pageSize?: keyof typeof PageSize;
|
|
270
310
|
}): void;
|
|
271
|
-
storeCreated(): void;
|
|
272
311
|
storeActivePage(activePage: PageInfo): void;
|
|
273
312
|
storeIsAsideOpen(isAsideOpen: boolean): void;
|
|
313
|
+
storeUpdateTabs(page: PageInfo): void;
|
|
274
314
|
}>;
|
|
275
315
|
export default useStore;
|
|
@@ -1,2 +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, {},
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLParagraphElement>;
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lauravivan/notion-portfolio",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "A Notion-based portfolio",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.es.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"build:pkg": "vue-tsc -b && vite build --config vite.config.package.ts",
|
|
25
25
|
"preview": "vite preview",
|
|
26
26
|
"sass": "sass src/assets/scss/main.scss:src/assets/css/main.css",
|
|
27
|
-
"watch-sass": "sass
|
|
27
|
+
"watch-sass": "sass packages/core/assets/scss/main.scss:packages/core/assets/css/main.css --watch",
|
|
28
28
|
"test:cli": "node ./bin/cli.js",
|
|
29
29
|
"format": "npx prettier --write .",
|
|
30
30
|
"lint": "npx eslint .",
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
iconAuthor?: string;
|
|
10
|
-
iconLink?: string;
|
|
11
|
-
bannerAuthor: string;
|
|
12
|
-
bannerLink: string;
|
|
13
|
-
component: Component;
|
|
14
|
-
tags?: string[];
|
|
15
|
-
}
|
|
16
|
-
declare const createPage: ({ id, title, parentPage, pages, isHomepage, component, bannerAuthor, bannerLink, iconAuthor, iconLink, tags, }: Page) => PageInfo;
|
|
17
|
-
export default createPage;
|
|
File without changes
|
|
File without changes
|