@lauravivan/notion-portfolio 1.0.5 → 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/index.es.js +1468 -1487
- 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 +65 -25
- 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 -19
- /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,8 +23,8 @@ 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
29
|
component: Component;
|
|
30
30
|
banner?: {
|
|
@@ -37,7 +37,12 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
37
37
|
author?: string | undefined;
|
|
38
38
|
link?: string | undefined;
|
|
39
39
|
} | undefined;
|
|
40
|
-
|
|
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,8 +59,8 @@ 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
65
|
component: Component;
|
|
61
66
|
banner?: {
|
|
@@ -68,7 +73,12 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
68
73
|
author?: string | undefined;
|
|
69
74
|
link?: string | undefined;
|
|
70
75
|
} | undefined;
|
|
71
|
-
|
|
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,8 +95,8 @@ 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
101
|
component: Component;
|
|
92
102
|
banner?: {
|
|
@@ -99,7 +109,12 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
99
109
|
author?: string | undefined;
|
|
100
110
|
link?: string | undefined;
|
|
101
111
|
} | undefined;
|
|
102
|
-
|
|
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,8 +135,8 @@ 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
141
|
component: Component;
|
|
127
142
|
banner?: {
|
|
@@ -134,7 +149,12 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
134
149
|
author?: string | undefined;
|
|
135
150
|
link?: string | undefined;
|
|
136
151
|
} | undefined;
|
|
137
|
-
|
|
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,8 +171,8 @@ 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
177
|
component: Component;
|
|
158
178
|
banner?: {
|
|
@@ -165,7 +185,12 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
165
185
|
author?: string | undefined;
|
|
166
186
|
link?: string | undefined;
|
|
167
187
|
} | undefined;
|
|
168
|
-
|
|
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,8 +216,8 @@ 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
222
|
component: Component;
|
|
198
223
|
banner?: {
|
|
@@ -205,15 +230,20 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
205
230
|
author?: string | undefined;
|
|
206
231
|
link?: string | undefined;
|
|
207
232
|
} | undefined;
|
|
208
|
-
|
|
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
248
|
component: Component;
|
|
219
249
|
banner?: {
|
|
@@ -226,7 +256,12 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
226
256
|
author?: string | undefined;
|
|
227
257
|
link?: string | undefined;
|
|
228
258
|
} | undefined;
|
|
229
|
-
|
|
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,8 +276,8 @@ 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
282
|
component: Component;
|
|
248
283
|
banner?: {
|
|
@@ -255,7 +290,12 @@ declare const useStore: import('pinia').Store<"global", State, {
|
|
|
255
290
|
author?: string | undefined;
|
|
256
291
|
link?: string | undefined;
|
|
257
292
|
} | undefined;
|
|
258
|
-
|
|
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,19 +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
|
-
hasIcon?: boolean;
|
|
16
|
-
hasBanner?: boolean;
|
|
17
|
-
}
|
|
18
|
-
declare const createPage: ({ id, title, parentPage, pages, isHomepage, component, bannerAuthor, bannerLink, iconAuthor, iconLink, tags, hasIcon, hasBanner, }: Page) => PageInfo;
|
|
19
|
-
export default createPage;
|
|
File without changes
|
|
File without changes
|