@geckou/ui-vue 0.3.0 → 0.4.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/README.md +8 -1
- package/dist/components/ArticleList/Card/Artistic.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Entertainment.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Gallery.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Grid.vue.d.ts +11 -0
- package/dist/components/ArticleList/Card/News.vue.d.ts +9 -0
- package/dist/components/ArticleList/Card/Rounded.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Row.vue.d.ts +9 -0
- package/dist/components/ArticleList/Card/Simple.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Standard.vue.d.ts +10 -0
- package/dist/components/ArticleList/Card/Tile.vue.d.ts +10 -0
- package/dist/components/ArticleList/GenericArticleList.vue.d.ts +11 -0
- package/dist/components/ArticleList/List/Artistic.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Entertainment.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Gallery.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Grid.vue.d.ts +11 -0
- package/dist/components/ArticleList/List/News.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Rounded.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Row.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Simple.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Standard.vue.d.ts +8 -0
- package/dist/components/ArticleList/List/Tile.vue.d.ts +8 -0
- package/dist/components/ArticleList/Parts/AuthorInfo.vue.d.ts +31 -0
- package/dist/components/ArticleList/Parts/CardContainer.vue.d.ts +20 -0
- package/dist/components/ArticleList/Parts/CardHeading.vue.d.ts +12 -0
- package/dist/components/ArticleList/Parts/CategoryList.vue.d.ts +19 -0
- package/dist/components/ArticleList/Parts/ExcerptText.vue.d.ts +12 -0
- package/dist/components/ArticleList/Parts/MetadataList.vue.d.ts +32 -0
- package/dist/components/ArticleList/Parts/NoImage.vue.d.ts +2 -0
- package/dist/components/ArticleList/Parts/PostedDate.vue.d.ts +14 -0
- package/dist/components/ArticleList/Parts/TagList.vue.d.ts +18 -0
- package/dist/components/ArticleList/Parts/ThumbnailImage.vue.d.ts +17 -0
- package/dist/components/BasicButton.vue.d.ts +26 -0
- package/dist/components/CheckBox.vue.d.ts +34 -0
- package/dist/components/CheckBoxes.vue.d.ts +18 -0
- package/dist/components/CheckButton.vue.d.ts +31 -0
- package/dist/components/DatePicker.vue.d.ts +27 -0
- package/dist/components/DateRangePicker.vue.d.ts +31 -0
- package/dist/components/DateSelector.vue.d.ts +17 -0
- package/dist/components/DropdownUi.vue.d.ts +37 -0
- package/dist/components/ErrorMessage.vue.d.ts +9 -0
- package/dist/components/Icon/CalendarIcon.vue.d.ts +2 -0
- package/dist/components/Icon/CheckIcon.vue.d.ts +2 -0
- package/dist/components/Icon/CloseIcon.vue.d.ts +2 -0
- package/dist/components/Icon/Folder.vue.d.ts +2 -0
- package/dist/components/Icon/Image.vue.d.ts +2 -0
- package/dist/components/Icon/KeyboardArrowDownIcon.vue.d.ts +2 -0
- package/dist/components/Icon/Tag.vue.d.ts +2 -0
- package/dist/components/InputBox.vue.d.ts +27 -0
- package/dist/components/InputGroup.vue.d.ts +17 -0
- package/dist/components/LabeledCheckbox.vue.d.ts +20 -0
- package/dist/components/LabeledFieldset.vue.d.ts +21 -0
- package/dist/components/LoadingSpinner.vue.d.ts +2 -0
- package/dist/components/ModalBox.vue.d.ts +27 -0
- package/dist/components/PopupBox.vue.d.ts +30 -0
- package/dist/components/RadioButtons.vue.d.ts +20 -0
- package/dist/components/SelectBox.vue.d.ts +37 -0
- package/dist/components/SlideDownUi.vue.d.ts +37 -0
- package/dist/components/TabUI.vue.d.ts +54 -0
- package/dist/components/TextArea.vue.d.ts +33 -0
- package/dist/components/TextBox.vue.d.ts +44 -0
- package/dist/components/TextButton.vue.d.ts +10 -0
- package/dist/components/ToggleButton.vue.d.ts +23 -0
- package/dist/const/index.d.ts +1 -0
- package/dist/const/list-theme.d.ts +62 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.js +3519 -0
- package/dist/scripts/form-validation-manager.d.ts +30 -0
- package/dist/scripts/unique-id.d.ts +1 -0
- package/dist/scripts/use-click-outside.d.ts +13 -0
- package/dist/scripts/utils.d.ts +15 -0
- package/dist/style.css +1 -0
- package/dist/types/index.d.ts +48 -77
- package/package.json +16 -8
- package/dist/assets/scss/functions.scss +0 -6
- package/dist/assets/scss/mixin.scss +0 -33
- package/dist/components/ArticleList/Card/Artistic.vue +0 -310
- package/dist/components/ArticleList/Card/Entertainment.vue +0 -244
- package/dist/components/ArticleList/Card/Gallery.vue +0 -254
- package/dist/components/ArticleList/Card/Grid.vue +0 -247
- package/dist/components/ArticleList/Card/News.vue +0 -150
- package/dist/components/ArticleList/Card/Rounded.vue +0 -154
- package/dist/components/ArticleList/Card/Row.vue +0 -167
- package/dist/components/ArticleList/Card/Simple.vue +0 -232
- package/dist/components/ArticleList/Card/Standard.vue +0 -187
- package/dist/components/ArticleList/Card/Tile.vue +0 -171
- package/dist/components/ArticleList/GenericArticleList.vue +0 -143
- package/dist/components/ArticleList/List/Artistic.vue +0 -24
- package/dist/components/ArticleList/List/Entertainment.vue +0 -24
- package/dist/components/ArticleList/List/Gallery.vue +0 -24
- package/dist/components/ArticleList/List/Grid.vue +0 -216
- package/dist/components/ArticleList/List/News.vue +0 -24
- package/dist/components/ArticleList/List/Rounded.vue +0 -24
- package/dist/components/ArticleList/List/Row.vue +0 -24
- package/dist/components/ArticleList/List/Simple.vue +0 -24
- package/dist/components/ArticleList/List/Standard.vue +0 -24
- package/dist/components/ArticleList/List/Tile.vue +0 -24
- package/dist/components/ArticleList/Parts/AuthorInfo.vue +0 -100
- package/dist/components/ArticleList/Parts/CardContainer.vue +0 -23
- package/dist/components/ArticleList/Parts/CardHeading.vue +0 -43
- package/dist/components/ArticleList/Parts/CategoryList.vue +0 -41
- package/dist/components/ArticleList/Parts/ExcerptText.vue +0 -43
- package/dist/components/ArticleList/Parts/MetadataList.vue +0 -120
- package/dist/components/ArticleList/Parts/NoImage.vue +0 -36
- package/dist/components/ArticleList/Parts/PostedDate.vue +0 -41
- package/dist/components/ArticleList/Parts/TagList.vue +0 -41
- package/dist/components/ArticleList/Parts/ThumbnailImage.vue +0 -85
- package/dist/components/BasicButton.vue +0 -143
- package/dist/components/CheckBox.vue +0 -140
- package/dist/components/CheckBoxes.vue +0 -100
- package/dist/components/CheckButton.vue +0 -127
- package/dist/components/DatePicker.vue +0 -234
- package/dist/components/DateRangePicker.vue +0 -85
- package/dist/components/DateSelector.vue +0 -273
- package/dist/components/DropdownUi.vue +0 -118
- package/dist/components/ErrorMessage.vue +0 -61
- package/dist/components/Icon/CalendarIcon.vue +0 -8
- package/dist/components/Icon/CheckIcon.vue +0 -8
- package/dist/components/Icon/CloseIcon.vue +0 -8
- package/dist/components/Icon/Folder.vue +0 -8
- package/dist/components/Icon/Image.vue +0 -14
- package/dist/components/Icon/KeyboardArrowDownIcon.vue +0 -8
- package/dist/components/Icon/Tag.vue +0 -8
- package/dist/components/InputBox.vue +0 -134
- package/dist/components/InputGroup.vue +0 -41
- package/dist/components/LabeledCheckbox.vue +0 -82
- package/dist/components/LabeledFieldset.vue +0 -41
- package/dist/components/LoadingSpinner.vue +0 -56
- package/dist/components/ModalBox.vue +0 -192
- package/dist/components/PopupBox.vue +0 -93
- package/dist/components/RadioButtons.vue +0 -163
- package/dist/components/SelectBox.vue +0 -166
- package/dist/components/SlideDownUi.vue +0 -123
- package/dist/components/TabUI.vue +0 -123
- package/dist/components/TextArea.vue +0 -115
- package/dist/components/TextBox.vue +0 -111
- package/dist/components/TextButton.vue +0 -47
- package/dist/components/ToggleButton.vue +0 -179
- package/dist/const/index.ts +0 -2
- package/dist/const/list-theme.ts +0 -62
- package/dist/index.ts +0 -126
- package/dist/scripts/form-validation-manager.ts +0 -63
- package/dist/scripts/utils.ts +0 -36
- package/dist/types/custom.d.ts +0 -1
- package/dist/types/vue-shim.d.ts +0 -5
package/dist/const/list-theme.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export const LIST_THEME = {
|
|
2
|
-
standard: {
|
|
3
|
-
jaName : 'スタンダード',
|
|
4
|
-
enName : 'Standard',
|
|
5
|
-
columnNumber: 3,
|
|
6
|
-
name : 'Standard',
|
|
7
|
-
},
|
|
8
|
-
rounded: {
|
|
9
|
-
jaName : 'ポップ',
|
|
10
|
-
enName : 'Rounded',
|
|
11
|
-
columnNumber: 3,
|
|
12
|
-
name : 'Rounded',
|
|
13
|
-
},
|
|
14
|
-
artistic: {
|
|
15
|
-
jaName : 'アート',
|
|
16
|
-
enName : 'Artistic',
|
|
17
|
-
columnNumber: 3,
|
|
18
|
-
name : 'Artistic',
|
|
19
|
-
},
|
|
20
|
-
tile: {
|
|
21
|
-
jaName : 'タイル',
|
|
22
|
-
enName : 'Tile',
|
|
23
|
-
columnNumber: 3,
|
|
24
|
-
name : 'Tile',
|
|
25
|
-
},
|
|
26
|
-
simple: {
|
|
27
|
-
jaName : 'シンプル',
|
|
28
|
-
enName : 'Simple',
|
|
29
|
-
columnNumber: 3,
|
|
30
|
-
name : 'Simple',
|
|
31
|
-
},
|
|
32
|
-
row: {
|
|
33
|
-
jaName : 'ワイド',
|
|
34
|
-
enName : 'Row',
|
|
35
|
-
columnNumber: 1,
|
|
36
|
-
name : 'Row',
|
|
37
|
-
},
|
|
38
|
-
news: {
|
|
39
|
-
jaName : 'ニュース',
|
|
40
|
-
enName : 'News',
|
|
41
|
-
columnNumber: 1,
|
|
42
|
-
name : 'News',
|
|
43
|
-
},
|
|
44
|
-
grid: {
|
|
45
|
-
jaName : 'グリッド',
|
|
46
|
-
enName : 'Grid',
|
|
47
|
-
columnNumber: 4,
|
|
48
|
-
name : 'Grid',
|
|
49
|
-
},
|
|
50
|
-
gallery: {
|
|
51
|
-
jaName : 'ギャラリー',
|
|
52
|
-
enName : 'Gallery',
|
|
53
|
-
columnNumber: 3,
|
|
54
|
-
name : 'Gallery',
|
|
55
|
-
},
|
|
56
|
-
entertainment: {
|
|
57
|
-
jaName : 'エンタテインメント',
|
|
58
|
-
enName : 'Entertainment',
|
|
59
|
-
columnNumber: 3,
|
|
60
|
-
name : 'Entertainment',
|
|
61
|
-
},
|
|
62
|
-
}
|
package/dist/index.ts
DELETED
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
2
|
-
|
|
3
|
-
// Form / UI components
|
|
4
|
-
import TextBox from './components/TextBox.vue'
|
|
5
|
-
import TextArea from './components/TextArea.vue'
|
|
6
|
-
import BasicButton from './components/BasicButton.vue'
|
|
7
|
-
import SelectBox from './components/SelectBox.vue'
|
|
8
|
-
import CheckBox from './components/CheckBox.vue'
|
|
9
|
-
import CheckBoxes from './components/CheckBoxes.vue'
|
|
10
|
-
import CheckButton from './components/CheckButton.vue'
|
|
11
|
-
import LabeledCheckbox from './components/LabeledCheckbox.vue'
|
|
12
|
-
import LabeledFieldset from './components/LabeledFieldset.vue'
|
|
13
|
-
import RadioButtons from './components/RadioButtons.vue'
|
|
14
|
-
import ToggleButton from './components/ToggleButton.vue'
|
|
15
|
-
import InputBox from './components/InputBox.vue'
|
|
16
|
-
import InputGroup from './components/InputGroup.vue'
|
|
17
|
-
import TextButton from './components/TextButton.vue'
|
|
18
|
-
import DatePicker from './components/DatePicker.vue'
|
|
19
|
-
import DateRangePicker from './components/DateRangePicker.vue'
|
|
20
|
-
import DateSelector from './components/DateSelector.vue'
|
|
21
|
-
import DropdownUi from './components/DropdownUi.vue'
|
|
22
|
-
import ModalBox from './components/ModalBox.vue'
|
|
23
|
-
import PopupBox from './components/PopupBox.vue'
|
|
24
|
-
import SlideDownUi from './components/SlideDownUi.vue'
|
|
25
|
-
import TabUI from './components/TabUI.vue'
|
|
26
|
-
import LoadingSpinner from './components/LoadingSpinner.vue'
|
|
27
|
-
import ErrorMessage from './components/ErrorMessage.vue'
|
|
28
|
-
|
|
29
|
-
// ArticleList components
|
|
30
|
-
import StandardList from './components/ArticleList/List/Standard.vue'
|
|
31
|
-
import RoundedList from './components/ArticleList/List/Rounded.vue'
|
|
32
|
-
import ArtisticList from './components/ArticleList/List/Artistic.vue'
|
|
33
|
-
import TileList from './components/ArticleList/List/Tile.vue'
|
|
34
|
-
import SimpleList from './components/ArticleList/List/Simple.vue'
|
|
35
|
-
import RowList from './components/ArticleList/List/Row.vue'
|
|
36
|
-
import NewsList from './components/ArticleList/List/News.vue'
|
|
37
|
-
import EntertainmentList from './components/ArticleList/List/Entertainment.vue'
|
|
38
|
-
import GalleryList from './components/ArticleList/List/Gallery.vue'
|
|
39
|
-
import GridList from './components/ArticleList/List/Grid.vue'
|
|
40
|
-
|
|
41
|
-
const components = {
|
|
42
|
-
TextBox,
|
|
43
|
-
TextArea,
|
|
44
|
-
BasicButton,
|
|
45
|
-
SelectBox,
|
|
46
|
-
CheckBox,
|
|
47
|
-
CheckBoxes,
|
|
48
|
-
CheckButton,
|
|
49
|
-
LabeledCheckbox,
|
|
50
|
-
LabeledFieldset,
|
|
51
|
-
RadioButtons,
|
|
52
|
-
ToggleButton,
|
|
53
|
-
InputBox,
|
|
54
|
-
InputGroup,
|
|
55
|
-
TextButton,
|
|
56
|
-
DatePicker,
|
|
57
|
-
DateRangePicker,
|
|
58
|
-
DateSelector,
|
|
59
|
-
DropdownUi,
|
|
60
|
-
ModalBox,
|
|
61
|
-
PopupBox,
|
|
62
|
-
SlideDownUi,
|
|
63
|
-
TabUI,
|
|
64
|
-
LoadingSpinner,
|
|
65
|
-
ErrorMessage,
|
|
66
|
-
|
|
67
|
-
StandardList,
|
|
68
|
-
RoundedList,
|
|
69
|
-
ArtisticList,
|
|
70
|
-
TileList,
|
|
71
|
-
SimpleList,
|
|
72
|
-
RowList,
|
|
73
|
-
NewsList,
|
|
74
|
-
EntertainmentList,
|
|
75
|
-
GalleryList,
|
|
76
|
-
GridList,
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
export default {
|
|
80
|
-
install(app: App) {
|
|
81
|
-
Object.entries(components).forEach(([name, component]) => {
|
|
82
|
-
app.component(name, component)
|
|
83
|
-
})
|
|
84
|
-
},
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export {
|
|
88
|
-
TextBox,
|
|
89
|
-
TextArea,
|
|
90
|
-
BasicButton,
|
|
91
|
-
SelectBox,
|
|
92
|
-
CheckBox,
|
|
93
|
-
CheckBoxes,
|
|
94
|
-
CheckButton,
|
|
95
|
-
LabeledCheckbox,
|
|
96
|
-
LabeledFieldset,
|
|
97
|
-
RadioButtons,
|
|
98
|
-
ToggleButton,
|
|
99
|
-
InputBox,
|
|
100
|
-
InputGroup,
|
|
101
|
-
TextButton,
|
|
102
|
-
DatePicker,
|
|
103
|
-
DateRangePicker,
|
|
104
|
-
DateSelector,
|
|
105
|
-
DropdownUi,
|
|
106
|
-
ModalBox,
|
|
107
|
-
PopupBox,
|
|
108
|
-
SlideDownUi,
|
|
109
|
-
TabUI,
|
|
110
|
-
LoadingSpinner,
|
|
111
|
-
ErrorMessage,
|
|
112
|
-
|
|
113
|
-
StandardList,
|
|
114
|
-
RoundedList,
|
|
115
|
-
ArtisticList,
|
|
116
|
-
TileList,
|
|
117
|
-
SimpleList,
|
|
118
|
-
RowList,
|
|
119
|
-
NewsList,
|
|
120
|
-
EntertainmentList,
|
|
121
|
-
GalleryList,
|
|
122
|
-
GridList,
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
export { LIST_THEME } from './const/list-theme'
|
|
126
|
-
export { FormValidationManager } from './scripts/form-validation-manager'
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { computed, onScopeDispose, shallowRef } from 'vue'
|
|
2
|
-
import type { ComputedRef } from 'vue'
|
|
3
|
-
import { createFormValidationStore } from '@geckou/ui-core'
|
|
4
|
-
import type { FormValidationStore } from '@geckou/ui-core'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* フォーム内の各入力コンポーネントのバリデーション状態をまとめて管理する。
|
|
8
|
-
*
|
|
9
|
-
* 状態そのものは @geckou/ui-core の createFormValidationStore が持つ。
|
|
10
|
-
* このクラスは Vue のリアクティビティへ繋ぐ薄いラッパーで、
|
|
11
|
-
* 判定ロジックは React 実装(@geckou/ui-react)と共有される。
|
|
12
|
-
*
|
|
13
|
-
* ```ts
|
|
14
|
-
* const manager = new FormValidationManager()
|
|
15
|
-
* // <DatePicker name="startedOn" :formValidationManager="manager" />
|
|
16
|
-
* const canSubmit = manager.isAllValid
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export class FormValidationManager {
|
|
20
|
-
private readonly store: FormValidationStore
|
|
21
|
-
|
|
22
|
-
/** 登録済みの入力がすべて有効かどうか */
|
|
23
|
-
readonly isAllValid: ComputedRef<boolean>
|
|
24
|
-
|
|
25
|
-
/** 無効になっている入力の name 一覧 */
|
|
26
|
-
readonly invalidNames: ComputedRef<string[]>
|
|
27
|
-
|
|
28
|
-
constructor() {
|
|
29
|
-
this.store = createFormValidationStore()
|
|
30
|
-
|
|
31
|
-
const snapshot = shallowRef(this.store.getSnapshot())
|
|
32
|
-
const unsubscribe = this.store.subscribe(() => {
|
|
33
|
-
snapshot.value = this.store.getSnapshot()
|
|
34
|
-
})
|
|
35
|
-
|
|
36
|
-
// インスタンスを生成した effect scope の破棄時に購読を解除する
|
|
37
|
-
// (scope の外で生成された場合は何もしない)
|
|
38
|
-
onScopeDispose(unsubscribe, true)
|
|
39
|
-
|
|
40
|
-
this.isAllValid = computed(() => snapshot.value.isAllValid)
|
|
41
|
-
this.invalidNames = computed(() => snapshot.value.invalidNames)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/** 入力の状態を登録・更新する */
|
|
45
|
-
setValid(name: string, isValid: boolean): void {
|
|
46
|
-
this.store.setValid(name, isValid)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** 個別の入力が有効かどうか(未登録なら true) */
|
|
50
|
-
isValid(name: string): boolean {
|
|
51
|
-
return this.store.isValid(name)
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/** 管理対象から外す(コンポーネントのアンマウント時など) */
|
|
55
|
-
remove(name: string): void {
|
|
56
|
-
this.store.remove(name)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/** すべての状態を破棄する */
|
|
60
|
-
reset(): void {
|
|
61
|
-
this.store.reset()
|
|
62
|
-
}
|
|
63
|
-
}
|
package/dist/scripts/utils.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import type { Article, PostConfig, WpTerm } from '../types'
|
|
2
|
-
|
|
3
|
-
export const generateQueryObject = (url: string): Record<string, string> => {
|
|
4
|
-
const regex = /[?&]([^=#]+)=([^&#]*)/g
|
|
5
|
-
const queryObject: Record<string, string> = {}
|
|
6
|
-
|
|
7
|
-
for (let match; (match = regex.exec(url)) !== null; ) {
|
|
8
|
-
queryObject[match[1]] = match[2]
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return queryObject
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const returnTagList = (articleObject: Article): string[] => {
|
|
15
|
-
const terms = articleObject?.['_embedded']?.['wp:term']?.[1] ?? []
|
|
16
|
-
return terms.map((tag: WpTerm) => tag.name)
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export const returnArticlePath = (postConfig: PostConfig, domain: string, articleId: string) => {
|
|
20
|
-
// ドメイン末尾とパス先頭のスラッシュが重ならないようにする
|
|
21
|
-
const base = String(domain).replace(/\/+$/, '')
|
|
22
|
-
const path = String(postConfig.article_page_path ?? '').replace(/^\/+/, '')
|
|
23
|
-
|
|
24
|
-
return `https://${base}/${path}?${postConfig.query_key_name}=${articleId}`
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* 各カードは postConfig.author / category / tag を参照するが、
|
|
29
|
-
* 設定側では useAuthor / useCategory / useTag で渡すこともできるため両対応させる
|
|
30
|
-
*/
|
|
31
|
-
export const normalizePostConfig = (postConfig: PostConfig): PostConfig => ({
|
|
32
|
-
...postConfig,
|
|
33
|
-
author : postConfig?.author ?? postConfig?.useAuthor ?? false,
|
|
34
|
-
category: postConfig?.category ?? postConfig?.useCategory ?? false,
|
|
35
|
-
tag : postConfig?.tag ?? postConfig?.useTag ?? false,
|
|
36
|
-
})
|
package/dist/types/custom.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
declare module '../*'
|