@vuepress/plugin-redirect 2.0.0-rc.8 → 2.0.0-rc.9
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.
|
@@ -1 +1,57 @@
|
|
|
1
|
-
.lang-modal-fade-enter-active
|
|
1
|
+
.lang-modal-fade-enter-active,
|
|
2
|
+
.lang-modal-fade-leave-active {
|
|
3
|
+
transition: opacity 0.5s;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.lang-modal-fade-enter,
|
|
7
|
+
.lang-modal-fade-leave-to {
|
|
8
|
+
opacity: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.lang-modal-mask {
|
|
12
|
+
position: fixed;
|
|
13
|
+
inset: 0;
|
|
14
|
+
z-index: 1499;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
backdrop-filter: blur(10px);
|
|
19
|
+
}
|
|
20
|
+
@media print {
|
|
21
|
+
.lang-modal-mask {
|
|
22
|
+
display: none;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.lang-modal-wrapper {
|
|
27
|
+
position: relative;
|
|
28
|
+
z-index: 1500;
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
max-width: 80vw;
|
|
31
|
+
padding: 1rem 2rem;
|
|
32
|
+
border-radius: 8px;
|
|
33
|
+
background: var(--vp-bg);
|
|
34
|
+
box-shadow: 0 2px 6px 0 var(--card-shadow);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.lang-modal-action {
|
|
38
|
+
display: block;
|
|
39
|
+
width: 100%;
|
|
40
|
+
margin: 1rem 0;
|
|
41
|
+
padding: 0.5rem 0.75rem;
|
|
42
|
+
border: none;
|
|
43
|
+
border-radius: 8px;
|
|
44
|
+
background-color: var(--vp-bglt);
|
|
45
|
+
color: var(--vp-c);
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
}
|
|
48
|
+
.lang-modal-action:hover {
|
|
49
|
+
background-color: var(--vp-bgl);
|
|
50
|
+
}
|
|
51
|
+
.lang-modal-action.primary {
|
|
52
|
+
background-color: var(--vp-tc);
|
|
53
|
+
color: var(--white);
|
|
54
|
+
}
|
|
55
|
+
.lang-modal-action.primary:hover {
|
|
56
|
+
background-color: var(--vp-tcl);
|
|
57
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { App } from 'vuepress/core';
|
|
2
2
|
import type { RedirectLocaleConfig } from '../shared/index.js';
|
|
3
|
-
import type {
|
|
4
|
-
export declare const getRedirectLocaleConfig: (app: App, options:
|
|
3
|
+
import type { RedirectPluginOptions } from './options.js';
|
|
4
|
+
export declare const getRedirectLocaleConfig: (app: App, options: RedirectPluginOptions) => RedirectLocaleConfig;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { App } from 'vuepress/core';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const getRedirectMap: (app: App, options:
|
|
2
|
+
import type { RedirectPluginOptions } from './options.js';
|
|
3
|
+
export declare const getRedirectMap: (app: App, options: RedirectPluginOptions) => Record<string, string>;
|
package/lib/node/options.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { App, LocaleConfig } from 'vuepress/core';
|
|
2
2
|
import type { RedirectLocaleConfig, RedirectPluginLocaleData } from '../shared/index.js';
|
|
3
|
-
export interface
|
|
3
|
+
export interface RedirectPluginOptions extends Partial<Omit<RedirectLocaleConfig, 'localeConfig'>> {
|
|
4
4
|
/**
|
|
5
5
|
* Redirect mapping
|
|
6
6
|
*
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { PluginFunction } from 'vuepress/core';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const redirectPlugin: (options?:
|
|
2
|
+
import type { RedirectPluginOptions } from './options.js';
|
|
3
|
+
export declare const redirectPlugin: (options?: RedirectPluginOptions) => PluginFunction;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/plugin-redirect",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.9",
|
|
4
4
|
"description": "VuePress plugin - redirect",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-plugin",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "tsc -b tsconfig.build.json",
|
|
41
41
|
"clean": "rimraf --glob ./lib ./*.tsbuildinfo",
|
|
42
|
-
"style": "sass src:lib --
|
|
42
|
+
"style": "sass src:lib --no-source-map"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
45
|
+
"@vuepress/helper": "2.0.0-rc.9",
|
|
46
46
|
"@vueuse/core": "^10.7.2",
|
|
47
47
|
"cac": "^6.7.14",
|
|
48
48
|
"vue": "^3.4.15",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "12c12dadd0758df4ad5256851fc3cb3c949873e8"
|
|
58
58
|
}
|