valaxy-theme-yun 0.20.0-beta.5 → 0.20.0-beta.6
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.
@@ -45,17 +45,18 @@ onContentUpdated(() => {
|
|
45
45
|
}" flex="~ col grow"
|
46
46
|
p="lt-md:0"
|
47
47
|
>
|
48
|
-
<YunCard :cover="frontmatter.cover" m="0" class="relative
|
49
|
-
<
|
50
|
-
<
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
48
|
+
<YunCard :cover="frontmatter.cover" m="0" class="relative" :style="styles as StyleValue">
|
49
|
+
<div class="mt-8 mb-4">
|
50
|
+
<slot name="main-header">
|
51
|
+
<YunPageHeader
|
52
|
+
:title="title"
|
53
|
+
:icon="frontmatter.icon || icon"
|
54
|
+
:color="frontmatter.color || color"
|
55
|
+
:cover="frontmatter.cover"
|
56
|
+
:page-title-class="frontmatter.pageTitleClass"
|
57
|
+
/>
|
58
|
+
</slot>
|
59
|
+
</div>
|
59
60
|
<slot name="main-header-after" />
|
60
61
|
|
61
62
|
<div p="x-4 b-8" class="sm:px-6 lg:px-12 xl:px-16" w="full">
|
@@ -97,14 +98,6 @@ onContentUpdated(() => {
|
|
97
98
|
<style lang="scss">
|
98
99
|
@use 'valaxy/client/styles/mixins/index.scss' as *;
|
99
100
|
|
100
|
-
@include screen('md') {
|
101
|
-
.yun-main {
|
102
|
-
&.has-sidebar {
|
103
|
-
padding-left: var(--va-sidebar-width);
|
104
|
-
}
|
105
|
-
}
|
106
|
-
}
|
107
|
-
|
108
101
|
@include screen('xl') {
|
109
102
|
.content{
|
110
103
|
// 8px scrollbar width
|
@@ -1,16 +1,12 @@
|
|
1
1
|
<script setup lang="ts">
|
2
|
-
|
3
|
-
|
4
|
-
const yun = useYunAppStore()
|
2
|
+
// common layout
|
5
3
|
</script>
|
6
4
|
|
7
5
|
<template>
|
8
6
|
<div
|
9
7
|
flex="~"
|
10
|
-
|
11
|
-
|
12
|
-
'flex-col': yun.size.isXs,
|
13
|
-
}"
|
8
|
+
m="t-24 md:t-36"
|
9
|
+
class="w-full max-w-screen-2xl m-auto justify-center items-start gap-4"
|
14
10
|
>
|
15
11
|
<slot />
|
16
12
|
</div>
|
package/layouts/home.vue
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
<script lang="ts" setup>
|
2
2
|
import { computed } from 'vue'
|
3
3
|
import { useRoute } from 'vue-router'
|
4
|
-
import { useYunAppStore } from '../stores'
|
5
4
|
import { useThemeConfig } from '../composables'
|
6
5
|
|
7
|
-
const yunStore = useYunAppStore()
|
8
6
|
const route = useRoute()
|
9
7
|
const themeConfig = useThemeConfig()
|
10
8
|
|
@@ -17,16 +15,7 @@ const showNotice = computed(() => {
|
|
17
15
|
</script>
|
18
16
|
|
19
17
|
<template>
|
20
|
-
<
|
21
|
-
class="yun-main flex-center"
|
22
|
-
:class="{
|
23
|
-
'pl-0': !yunStore.leftSidebar.isOpen,
|
24
|
-
'md:pl-$va-sidebar-width': yunStore.leftSidebar.isOpen,
|
25
|
-
'pt-36': isPage,
|
26
|
-
}" flex="~ col" w="full"
|
27
|
-
>
|
28
|
-
<YunSidebar :show-hamburger="true" />
|
29
|
-
|
18
|
+
<YunLayoutWrapper class="items-center mt-0! flex-col">
|
30
19
|
<template v-if="!isPage">
|
31
20
|
<YunBanner />
|
32
21
|
<YunSay v-if="themeConfig.say.enable" w="full" />
|
@@ -49,5 +38,5 @@ const showNotice = computed(() => {
|
|
49
38
|
</slot>
|
50
39
|
|
51
40
|
<YunFooter />
|
52
|
-
</
|
41
|
+
</YunLayoutWrapper>
|
53
42
|
</template>
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "valaxy-theme-yun",
|
3
|
-
"version": "0.20.0-beta.
|
3
|
+
"version": "0.20.0-beta.6",
|
4
4
|
"author": {
|
5
5
|
"email": "me@yunyoujun.cn",
|
6
6
|
"name": "YunYouJun",
|
@@ -19,6 +19,9 @@
|
|
19
19
|
},
|
20
20
|
"main": "index.ts",
|
21
21
|
"module": "index.ts",
|
22
|
+
"scripts": {
|
23
|
+
"release": "bumpp && npm publish"
|
24
|
+
},
|
22
25
|
"dependencies": {
|
23
26
|
"@ctrl/tinycolor": "^4.1.0",
|
24
27
|
"@explosions/fireworks": "^0.1.0",
|
@@ -32,10 +35,7 @@
|
|
32
35
|
},
|
33
36
|
"devDependencies": {
|
34
37
|
"@types/animejs": "^3.1.12",
|
35
|
-
"valaxy
|
36
|
-
"valaxy": "
|
37
|
-
},
|
38
|
-
"scripts": {
|
39
|
-
"release": "bumpp && npm publish"
|
38
|
+
"valaxy": "workspace:*",
|
39
|
+
"valaxy-addon-waline": "workspace:*"
|
40
40
|
}
|
41
|
-
}
|
41
|
+
}
|
package/styles/layout/index.scss
CHANGED