Skip to content

Commit

Permalink
release: v0.22.11
Browse files Browse the repository at this point in the history
  • Loading branch information
YunYouJun committed Feb 23, 2025
1 parent c6f88b4 commit 3e73751
Show file tree
Hide file tree
Showing 12 changed files with 47 additions and 31 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@valaxyjs/monorepo",
"type": "module",
"version": "0.22.10",
"version": "0.22.11",
"private": true,
"packageManager": "[email protected]",
"description": "📄 Vite & Vue powered static blog generator.",
Expand Down
2 changes: 1 addition & 1 deletion packages/@valaxyjs/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@valaxyjs/utils",
"type": "module",
"version": "0.22.10",
"version": "0.22.11",
"description": "A utility library for Valaxy",
"author": {
"name": "Valaxy",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-valaxy/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-valaxy",
"type": "module",
"version": "0.22.10",
"version": "0.22.11",
"description": "Create Starter Template for Valaxy",
"author": {
"email": "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions packages/create-valaxy/template-blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"serve": "vite preview"
},
"dependencies": {
"valaxy": "0.22.10",
"valaxy-theme-yun": "0.22.10"
"valaxy": "0.22.11",
"valaxy-theme-yun": "0.22.11"
},
"devDependencies": {
"typescript": "^5.7.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@valaxyjs/devtools",
"type": "module",
"version": "0.22.10",
"version": "0.22.11",
"repository": {
"url": "https://github.com/YunYouJun/valaxy"
},
Expand Down
15 changes: 14 additions & 1 deletion packages/devtools/src/client/components/VDPageFrontmatter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ const updated = ref(dayjs(clientPageData.value?.frontmatter.updated).toDate())
<template>
<div p-2>
<ul v-if="frontmatter" class="flex flex-col gap-2">
<li
class="flex gap-2 text-sm min-h-8"
>
<div class="w-32 flex items-center h-8">
<strong>{{ t('pageData.path') }}</strong>
</div>
<div class="inline-flex items-center w-full min-h-8">
<code class="px-2 py-1 bg-gray-1 rounded text-xs">
{{ activePath }}
</code>
</div>
</li>

<li
v-for="(value, key) in frontmatter"
:key="key"
Expand Down Expand Up @@ -111,7 +124,7 @@ const updated = ref(dayjs(clientPageData.value?.frontmatter.updated).toDate())
class="w-full my-3"
@click="saveNewFm"
>
Save Frontmatter
{{ t('button.save_frontmatter') }}
</Button>
</div>
</template>
4 changes: 4 additions & 0 deletions packages/devtools/src/client/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ button:
home: Home
toggle_dark: Toggle dark mode
toggle_langs: Change languages
save_frontmatter: Save Frontmatter

pageData:
path: Path
4 changes: 4 additions & 0 deletions packages/devtools/src/client/locales/zh-CN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ button:
home: 首页
toggle_dark: 切换深色模式
toggle_langs: 切换语言
save_frontmatter: 保存 Frontmatter

pageData:
path: 路径

frontmatter:
title: 标题
Expand Down
37 changes: 16 additions & 21 deletions packages/devtools/src/client/pages/migration.vue
Original file line number Diff line number Diff line change
@@ -1,28 +1,21 @@
<script lang="ts" setup>
import axios from 'axios'
import Button from 'primevue/button'
import { Pane, Splitpanes } from 'splitpanes'
import { onMounted, ref } from 'vue'
import { getGlobalValaxyProperty } from '../utils'
import { ref } from 'vue'
import { postList } from '../stores/app'
interface frontmatter {
[key: string]: string
}
const postList = ref<frontmatter[]>([])
const mapper = ref<frontmatter>({})
onMounted(() => {
postList.value = getGlobalValaxyProperty('postList').value
postList.value.forEach((element) => {
const keys = Object.keys(element)
for (const key of keys)
mapper.value[key] = ''
})
})
const checkedPosts = ref<string[]>([])
function clearPosts(select: boolean) {
checkedPosts.value.length = 0
if (select)
checkedPosts.value = checkedPosts.value.concat(postList.value.map(i => i.path))
checkedPosts.value = checkedPosts.value.concat(postList.value.posts.map(i => i.filePath))
}
async function migration() {
Expand All @@ -44,16 +37,18 @@ async function migration() {
<template>
<Splitpanes class="h-full">
<Pane>
<button @click="clearPosts(true)">
全选
</button>
<button @click="clearPosts(false)">
清空
</button>
<div flex="~ gap-2" class="items-center justify-center">
<Button @click="clearPosts(true)">
全选
</Button>
<Button @click="clearPosts(false)">
清空
</Button>
</div>
<ul class="h-full" overflow="auto" pl="12" pr="4" py="4">
<li v-for="post in postList" :key="post.path" class="list-decimal">
<input v-model="checkedPosts" type="checkbox" :name="post.path" :value="post.path">
<label :for="post.path">{{ post.title }}</label>
<li v-for="post in postList.posts" :key="post.filePath" class="list-decimal">
<input v-model="checkedPosts" type="checkbox" :name="post.filePath" :value="post.filePath">
<label :for="post.filePath">{{ post.frontmatter.title }}</label>
</li>
</ul>
</Pane>
Expand Down
2 changes: 1 addition & 1 deletion packages/valaxy-theme-press/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "valaxy-theme-press",
"version": "0.22.10",
"version": "0.22.11",
"description": "Docs Theme for Valaxy",
"author": {
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion packages/valaxy-theme-yun/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "valaxy-theme-yun",
"type": "module",
"version": "0.22.10",
"version": "0.22.11",
"author": {
"email": "[email protected]",
"name": "YunYouJun",
Expand Down
2 changes: 1 addition & 1 deletion packages/valaxy/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "valaxy",
"type": "module",
"version": "0.22.10",
"version": "0.22.11",
"description": "📄 Vite & Vue powered static blog generator.",
"author": {
"email": "[email protected]",
Expand Down

1 comment on commit 3e73751

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 Published on https://yun.valaxy.site as production
🚀 Deployed on https://67bb4f09e5cc5b0440373edc--valaxy.netlify.app

Please sign in to comment.