@webx-ui/module-seo 0.1.0 → 0.2.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/SeoAliasesPage.d.ts +20 -0
- package/dist/SeoCard.d.ts +1 -1
- package/dist/SeoLayout.d.ts +4 -4
- package/dist/SeoUrlsPage.d.ts +1 -1
- package/dist/api.d.ts +3 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +934 -753
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +47 -0
- package/package.json +4 -4
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The redirects nobody wrote.
|
|
3
|
+
*
|
|
4
|
+
* Renaming a page or moving a branch leaves its old address behind, answering 301 — which is
|
|
5
|
+
* the only reason an external link, a bookmark or a search result survives an edit in the panel.
|
|
6
|
+
* They are shown here because a reader who lands on a dead address does not care which half of
|
|
7
|
+
* the system made the redirect, and an editor chasing one should not have to.
|
|
8
|
+
*
|
|
9
|
+
* Nothing on this screen writes. These rows belong to the entity that moved: it makes them, and
|
|
10
|
+
* deleting it takes them with it. An editor who wants a different answer for an old address
|
|
11
|
+
* writes a rule of their own on the next tab — those are tried first, and this one stops
|
|
12
|
+
* mattering.
|
|
13
|
+
*/
|
|
14
|
+
type __VLS_Props = {
|
|
15
|
+
base?: string;
|
|
16
|
+
};
|
|
17
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
18
|
+
base: string;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
export default _default;
|
package/dist/SeoCard.d.ts
CHANGED
|
@@ -28,8 +28,8 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {},
|
|
|
28
28
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
29
|
"onUpdate:modelValue"?: ((value: Partial<import('./types').SeoFields> | null) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
|
-
mediaField: Component;
|
|
32
31
|
disabled: boolean;
|
|
32
|
+
mediaField: Component;
|
|
33
33
|
titleLimit: number;
|
|
34
34
|
descriptionLimit: number;
|
|
35
35
|
site: string;
|
package/dist/SeoLayout.d.ts
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* The head of the section: its name, the switch between what it holds, and the one tool that
|
|
3
3
|
* belongs to the whole of it.
|
|
4
4
|
*
|
|
5
|
-
* Rules and
|
|
6
|
-
* with their own paging and their own search — and a tab that
|
|
7
|
-
* back to it is worse than a second address.
|
|
5
|
+
* Rules, redirects and the trail of renames are three screens rather than three tabs of one,
|
|
6
|
+
* because they are three tables with their own paging and their own search — and a tab that
|
|
7
|
+
* quietly resets both when you come back to it is worse than a second address.
|
|
8
8
|
*/
|
|
9
9
|
type __VLS_Props = {
|
|
10
10
|
base: string;
|
|
11
|
-
current: 'rules' | 'redirects';
|
|
11
|
+
current: 'rules' | 'redirects' | 'aliases';
|
|
12
12
|
};
|
|
13
13
|
declare function __VLS_template(): {
|
|
14
14
|
attrs: Partial<{}>;
|
package/dist/SeoUrlsPage.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ type __VLS_Props = {
|
|
|
11
11
|
mediaField?: Component;
|
|
12
12
|
};
|
|
13
13
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
-
mediaField: Component;
|
|
15
14
|
base: string;
|
|
15
|
+
mediaField: Component;
|
|
16
16
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
17
|
export default _default;
|
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AdminContext } from '@webx-ui/module-admin';
|
|
2
|
-
import { SeoPage, SeoRedirect, SeoRedirectInput, SeoRedirectQuery, SeoTestResult, SeoUrlInput, SeoUrlQuery, SeoUrlRule } from './types';
|
|
2
|
+
import { SeoAlias, SeoAliasQuery, SeoPage, SeoRedirect, SeoRedirectInput, SeoRedirectQuery, SeoTestResult, SeoUrlInput, SeoUrlQuery, SeoUrlRule } from './types';
|
|
3
3
|
export interface SeoApi {
|
|
4
4
|
/** The rules, in the order the site tries them. */
|
|
5
5
|
urls(query?: SeoUrlQuery): Promise<SeoPage<SeoUrlRule>>;
|
|
@@ -11,6 +11,8 @@ export interface SeoApi {
|
|
|
11
11
|
createRedirect(input: SeoRedirectInput): Promise<SeoRedirect>;
|
|
12
12
|
updateRedirect(id: number, input: SeoRedirectInput): Promise<SeoRedirect>;
|
|
13
13
|
removeRedirect(id: number): Promise<void>;
|
|
14
|
+
/** The redirects nobody wrote: what the address registry kept after a rename. Read only. */
|
|
15
|
+
aliases(query?: SeoAliasQuery): Promise<SeoPage<SeoAlias>>;
|
|
14
16
|
/** What an address ends up saying, and where every part of it came from. */
|
|
15
17
|
test(url: string, locale?: string | null): Promise<SeoTestResult>;
|
|
16
18
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -5,5 +5,6 @@ export { ruleInput, ruleTitle, seoOf } from './rule';
|
|
|
5
5
|
export { default as WxSeo } from './SeoCard';
|
|
6
6
|
export { default as WxSeoUrlsPage } from './SeoUrlsPage';
|
|
7
7
|
export { default as WxSeoRedirectsPage } from './SeoRedirectsPage';
|
|
8
|
-
export
|
|
8
|
+
export { default as WxSeoAliasesPage } from './SeoAliasesPage';
|
|
9
|
+
export type { MatchType, RobotsDirective, SeoAlias, SeoAliasQuery, SeoChainStep, SeoFields, SeoImage, SeoPage, SeoRedirect, SeoRedirectInput, SeoRedirectQuery, SeoResolved, SeoRoute, SeoTestResult, SeoUrlInput, SeoUrlQuery, SeoUrlRule, SeoValue, } from './types';
|
|
9
10
|
export { robotsDirectives } from './types';
|