@webx-ui/module-blog 0.3.0 → 0.4.1
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/{ArticleAddress.d.ts → ArticleSlug.d.ts} +1 -1
- package/dist/ArticleUnpublish.d.ts +2 -0
- package/dist/RubricDialog.d.ts +34 -0
- package/dist/RubricsPage.d.ts +6 -5
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1598 -1586
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +5 -5
- package/dist/RubricForm.d.ts +0 -39
|
@@ -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, {}, any>;
|
|
2
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, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { RubricRow } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* One rubric, in a panel over the list (§10).
|
|
4
|
+
*
|
|
5
|
+
* A dialog and not a pane beside the list, because the two are not the same job. The list is
|
|
6
|
+
* dragged — its order *is* the order of the menu on the site — and dragging is a thing done to
|
|
7
|
+
* the whole list at once, with all of it in view. Editing one rubric is the opposite: four
|
|
8
|
+
* tabs' worth of a single record, and the list behind it is context rather than something to
|
|
9
|
+
* keep half a screen for.
|
|
10
|
+
*
|
|
11
|
+
* Three tabs. The words — the name, the address, whether it is on the site, the introduction
|
|
12
|
+
* above its list — are one thing somebody sits down to write, so they are one tab. The picture
|
|
13
|
+
* is not a field but a frame, and beside a column of inputs it either dwarfs them or leaves
|
|
14
|
+
* half a line empty, so it takes a tab. The SEO card is written once and then left to the
|
|
15
|
+
* rules for a year, so it takes the last one.
|
|
16
|
+
*
|
|
17
|
+
* Nothing here is described (§12): nothing patches a rubric, so there is no screen to extend
|
|
18
|
+
* and no registry to go through. What it does borrow are the two fields it has no business
|
|
19
|
+
* drawing itself — the library picker and the SEO card, both looked up in the panel's own type
|
|
20
|
+
* registry. A panel without `module-media` has one tab fewer and edits everything else.
|
|
21
|
+
*/
|
|
22
|
+
type __VLS_Props = {
|
|
23
|
+
/** `null` while a new one is being made: the form of a row that is not in the list yet. */
|
|
24
|
+
rubric?: RubricRow | null;
|
|
25
|
+
/** The first segment of every blog address, for the line under the slug (§4). */
|
|
26
|
+
prefix?: string;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
};
|
|
29
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
30
|
+
rubric: RubricRow | null;
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
prefix: string;
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
export default _default;
|
package/dist/RubricsPage.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The sections of the blog: the menu
|
|
2
|
+
* The sections of the blog: the whole menu of the site, in the order it has on it (§6, §10).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* One list and nothing beside it. The order here *is* the order on the site, so the screen the
|
|
5
|
+
* section needs most is the one where every rubric is visible at once and can be dragged past
|
|
6
|
+
* the others — and a form taking two thirds of the width is two thirds of that view gone. What
|
|
7
|
+
* a rubric is edited in is a dialog over this list ({@link RubricDialog}), which is also what
|
|
8
|
+
* makes reordering safe: nothing here is half-typed, so a row that moves loses nothing.
|
|
8
9
|
*
|
|
9
10
|
* There is no paginator and no search: a rubric is a section, a site has eight of them, and a
|
|
10
11
|
* menu you have to search is a menu that is already wrong.
|
package/dist/index.d.ts
CHANGED
|
@@ -4,16 +4,17 @@ export { blogMessages } from './messages';
|
|
|
4
4
|
export { articleEditorKey, provideArticleEditor, useArticleEditor, type ArticleEditorContext, } from './editor';
|
|
5
5
|
export { default as WxArticlesPage } from './ArticlesPage';
|
|
6
6
|
export { default as WxRubricsPage } from './RubricsPage';
|
|
7
|
-
export { default as
|
|
7
|
+
export { default as WxRubricDialog } from './RubricDialog';
|
|
8
8
|
export { default as WxTagsPage } from './TagsPage';
|
|
9
9
|
export { default as WxTagCreateDialog } from './TagCreateDialog';
|
|
10
10
|
export { default as WxTagMergeDialog } from './TagMergeDialog';
|
|
11
11
|
export { default as WxArticleCreateDialog } from './ArticleCreateDialog';
|
|
12
12
|
export { default as WxArticleEditorPage } from './ArticleEditorPage';
|
|
13
|
-
export { default as
|
|
13
|
+
export { default as WxArticleSlug } from './ArticleSlug';
|
|
14
14
|
export { default as WxArticleAuthorField } from './ArticleAuthor';
|
|
15
15
|
export { default as WxArticleRubrics } from './ArticleRubrics';
|
|
16
16
|
export { default as WxArticleTags } from './ArticleTags';
|
|
17
17
|
export { default as WxArticleRelated } from './ArticleRelated';
|
|
18
|
+
export { default as WxArticleUnpublish } from './ArticleUnpublish';
|
|
18
19
|
export { default as WxArticleHistory } from './ArticleHistory';
|
|
19
20
|
export type { ArticleAuthor, ArticleConflict, ArticleCover, ArticleDetail, ArticleFilters, ArticleInput, ArticleOption, ArticleQuery, ArticleRow, ArticleSave, ArticleStatus, ArticleVersion, ArticlesPage, BlogNamed, BlogTag, RubricInput, RubricRow, RubricsPayload, TagCounts, TagIndexing, TagInput, TagMassAction, TagMerged, TagQuery, TagRow, TagsPage, } from './types';
|