Skip to content

Commit

Permalink
Merge pull request #34 from OrdinaryRoad-Project/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
1962247851 authored Aug 30, 2023
2 parents 89bc2e4 + 00c1c71 commit 9e5047c
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion ordinaryroad-blog-quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<parent>
<groupId>tech.ordinaryroad.quarkus</groupId>
<artifactId>ordinaryroad-blog</artifactId>
<version>0.0.11</version>
<version>0.0.12</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
1 change: 1 addition & 0 deletions ordinaryroad-blog-ui/components/or/MdVditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export default {
}
},
created () {
this.mediumZoomOptions.options.background = this.dark ? 'rgba(0,0,0,0.65)' : 'rgba(255,255,255,0.65)'
},
// 相当于created中的nextTick,此时dom元素已经渲染完成
mounted () {
Expand Down
4 changes: 2 additions & 2 deletions ordinaryroad-blog-ui/components/or/blog/article/Detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1207,11 +1207,11 @@ export default {
</script>
<style>
.or-article-cover-img{
.or-article-cover-img {
height: 100%;
}
.or-article-cover-img .v-skeleton-loader__image{
.or-article-cover-img .v-skeleton-loader__image {
height: 100% !important;
}
</style>
6 changes: 6 additions & 0 deletions ordinaryroad-blog-ui/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ export default {
},

proxy: {
'/api/indexnow/Bing': {
target: 'https://www.bing.com',
pathRewrite: {
'^/api/indexnow/Bing': '/indexnow'
}
},
'/api/blog': {
target: process.env.BLOG_BASE_URL,
pathRewrite: {
Expand Down
2 changes: 1 addition & 1 deletion ordinaryroad-blog-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ordinaryroad-blog-ui",
"version": "0.0.11",
"version": "0.0.12",
"private": true,
"config": {
"nuxt": {
Expand Down
12 changes: 6 additions & 6 deletions ordinaryroad-blog-ui/plugins/indexnow/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export default function ({
})

Vue.prototype.$indexnow = {
updateUrls: (urlList) => {
searchEnginesEnabled.forEach((searchEngine) => {
$axios({
updateUrls: async (urlList) => {
for (const searchEngine of searchEnginesEnabled) {
await $axios({
method: 'post',
url: `${searchEngine.url}/indexnow`,
url: `/indexnow/${searchEngine.name}`,
data: {
host,
key: $config.INDEX_NOW.KEY,
Expand All @@ -55,10 +55,10 @@ export default function ({
})
}
})
})
}
},
updateArticle (article) {
this.updateUrls([`/${article.creatorUid || article.user.uid}/article/${article.firstId}`])
return this.updateUrls([`/${article.creatorUid || article.user.uid}/article/${article.firstId}`])
}
}
inject('indexnow', Vue.prototype.$indexnow)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<packaging>pom</packaging>

<artifactId>ordinaryroad-blog</artifactId>
<version>0.0.11</version>
<version>0.0.12</version>
<description>OrdinaryRoad Blog</description>

<modules>
Expand Down

0 comments on commit 9e5047c

Please sign in to comment.