@vuepress/theme-default 2.0.0-beta.59 → 2.0.0-beta.60
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.
|
@@ -31,7 +31,6 @@ const useNavbarSelectLanguage = (): ComputedRef<ResolvedNavbarItem[]> => {
|
|
|
31
31
|
}
|
|
32
32
|
const currentPath = router.currentRoute.value.path
|
|
33
33
|
const currentFullPath = router.currentRoute.value.fullPath
|
|
34
|
-
const currentHash = router.currentRoute.value.hash
|
|
35
34
|
|
|
36
35
|
const languageDropdown: ResolvedNavbarItem = {
|
|
37
36
|
text: themeLocale.value.selectLanguageText ?? 'unknown language',
|
|
@@ -65,8 +64,8 @@ const useNavbarSelectLanguage = (): ComputedRef<ResolvedNavbarItem[]> => {
|
|
|
65
64
|
if (
|
|
66
65
|
router.getRoutes().some((item) => item.path === targetLocalePage)
|
|
67
66
|
) {
|
|
68
|
-
// try to keep current hash across languages
|
|
69
|
-
link =
|
|
67
|
+
// try to keep current hash and params across languages
|
|
68
|
+
link = currentFullPath.replace(currentPath, targetLocalePage)
|
|
70
69
|
} else {
|
|
71
70
|
link = targetThemeLocale.home ?? targetLocalePath
|
|
72
71
|
}
|
|
@@ -62,6 +62,7 @@ blockquote {
|
|
|
62
62
|
border-left: 0.2rem solid var(--c-border-dark);
|
|
63
63
|
margin: 1rem 0;
|
|
64
64
|
padding: 0.25rem 0 0.25rem 1rem;
|
|
65
|
+
overflow-wrap: break-word;
|
|
65
66
|
|
|
66
67
|
& > p {
|
|
67
68
|
margin: 0;
|
|
@@ -85,6 +86,7 @@ h5,
|
|
|
85
86
|
h6 {
|
|
86
87
|
font-weight: 600;
|
|
87
88
|
line-height: 1.25;
|
|
89
|
+
overflow-wrap: break-word;
|
|
88
90
|
|
|
89
91
|
&:focus-visible {
|
|
90
92
|
outline: none;
|
|
@@ -160,6 +162,7 @@ p,
|
|
|
160
162
|
ul,
|
|
161
163
|
ol {
|
|
162
164
|
line-height: 1.7;
|
|
165
|
+
overflow-wrap: break-word;
|
|
163
166
|
}
|
|
164
167
|
|
|
165
168
|
hr {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/theme-default",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.60",
|
|
4
4
|
"description": "Default theme of VuePress",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-theme",
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
"templates"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@vueuse/core": "^9.
|
|
40
|
-
"sass": "^1.
|
|
39
|
+
"@vueuse/core": "^9.9.0",
|
|
40
|
+
"sass": "^1.57.1",
|
|
41
41
|
"vue": "^3.2.45",
|
|
42
42
|
"vue-router": "^4.1.6",
|
|
43
|
-
"@vuepress/client": "2.0.0-beta.
|
|
44
|
-
"@vuepress/core": "2.0.0-beta.
|
|
45
|
-
"@vuepress/plugin-
|
|
46
|
-
"@vuepress/plugin-
|
|
47
|
-
"@vuepress/plugin-
|
|
48
|
-
"@vuepress/plugin-external-link-icon": "2.0.0-beta.
|
|
49
|
-
"@vuepress/plugin-git": "2.0.0-beta.
|
|
50
|
-
"@vuepress/plugin-nprogress": "2.0.0-beta.
|
|
51
|
-
"@vuepress/plugin-
|
|
52
|
-
"@vuepress/plugin-
|
|
53
|
-
"@vuepress/
|
|
54
|
-
"@vuepress/plugin-
|
|
55
|
-
"@vuepress/
|
|
56
|
-
"@vuepress/
|
|
43
|
+
"@vuepress/client": "2.0.0-beta.60",
|
|
44
|
+
"@vuepress/core": "2.0.0-beta.60",
|
|
45
|
+
"@vuepress/plugin-back-to-top": "2.0.0-beta.60",
|
|
46
|
+
"@vuepress/plugin-container": "2.0.0-beta.60",
|
|
47
|
+
"@vuepress/plugin-active-header-links": "2.0.0-beta.60",
|
|
48
|
+
"@vuepress/plugin-external-link-icon": "2.0.0-beta.60",
|
|
49
|
+
"@vuepress/plugin-git": "2.0.0-beta.60",
|
|
50
|
+
"@vuepress/plugin-nprogress": "2.0.0-beta.60",
|
|
51
|
+
"@vuepress/plugin-medium-zoom": "2.0.0-beta.60",
|
|
52
|
+
"@vuepress/plugin-palette": "2.0.0-beta.60",
|
|
53
|
+
"@vuepress/plugin-prismjs": "2.0.0-beta.60",
|
|
54
|
+
"@vuepress/plugin-theme-data": "2.0.0-beta.60",
|
|
55
|
+
"@vuepress/shared": "2.0.0-beta.60",
|
|
56
|
+
"@vuepress/utils": "2.0.0-beta.60"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"sass-loader": "^13.2.0"
|