chore: blog proxy
This commit is contained in:
@@ -34,7 +34,7 @@ wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.32.tar.xz
|
|||||||
tar -xJf coreutils-8.32.tar.xz
|
tar -xJf coreutils-8.32.tar.xz
|
||||||
cd coreutils-8.32/
|
cd coreutils-8.32/
|
||||||
# Download patch
|
# Download patch
|
||||||
wget https://raw.githubusercontent.com/jarun/advcpmv/master/advcpmv-0.8-8.32.patch
|
wget https://ghproxy.com/https://raw.githubusercontent.com/jarun/advcpmv/master/advcpmv-0.8-8.32.patch
|
||||||
# Patching display with process bar
|
# Patching display with process bar
|
||||||
patch -p1 -i advcpmv-0.8-8.32.patch
|
patch -p1 -i advcpmv-0.8-8.32.patch
|
||||||
# Compile then install
|
# Compile then install
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
---
|
---
|
||||||
title: Blogs
|
title: Blogs
|
||||||
|
footer: false
|
||||||
editLink: false
|
editLink: false
|
||||||
aside: false
|
aside: false
|
||||||
next: false
|
next: false
|
||||||
@@ -11,9 +12,12 @@ sidebar: false
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import PostList from '../components/PostList.vue'
|
import PostList from '../components/PostList.vue'
|
||||||
import Blogger from '../components/Blogger.vue'
|
import Blogger from '../components/Blogger.vue'
|
||||||
|
const goUrl = (url) => {
|
||||||
|
window.open(url, "_blank")
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
# Friends <Badge type="warning" text="beta" />
|
# Friends <Badge type="tip" text="join us" @click="goUrl('https://github.com/NX-Official/friends-link-plus/edit/main/input/friends.json')" />
|
||||||
|
|
||||||
<Suspense><Blogger ></Blogger></Suspense>
|
<Suspense><Blogger ></Blogger></Suspense>
|
||||||
|
|
||||||
@@ -22,3 +26,5 @@ import Blogger from '../components/Blogger.vue'
|
|||||||
# Recent Posts <Badge type="warning" text="beta" />
|
# Recent Posts <Badge type="warning" text="beta" />
|
||||||
|
|
||||||
<Suspense><PostList ></PostList></Suspense>
|
<Suspense><PostList ></PostList></Suspense>
|
||||||
|
|
||||||
|
<a href="https://github.com/NX-Official/friends-link-plus/edit/main/input/friends.json" target="_blank" style="font-size: 0.5rem; color: #666;">在GitHub上修改关注列表</a>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import VPTeamMembersItem from './BloggerItem.vue'
|
import VPTeamMembersItem from './BloggerItem.vue'
|
||||||
const size = 'small'
|
const size = 'small'
|
||||||
const props= {friends:(await (await fetch("https://raw.githubusercontent.com/NX-Official/friends-link-plus/main/output/friends.json")).json()).friends}
|
const props= {friends:(await (await fetch("https://ghproxy.com/https://raw.githubusercontent.com/NX-Official/friends-link-plus/main/output/friends.json")).json()).friends}
|
||||||
const members = props.friends
|
const members = props.friends
|
||||||
const classes = computed(() => [
|
const classes = computed(() => [
|
||||||
size ?? 'medium',
|
size ?? 'medium',
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { ref, computed } from 'vue';
|
import { ref, computed } from 'vue';
|
||||||
import Pagination from './Pagination.vue';
|
import Pagination from './Pagination.vue';
|
||||||
import PostItem from './PostItem.vue';
|
import PostItem from './PostItem.vue';
|
||||||
const props= {data:(await (await fetch("https://raw.githubusercontent.com/NX-Official/friends-link-plus/main/output/friends.json")).json()).posts}
|
const props= {data:(await (await fetch("https://ghproxy.com/https://raw.githubusercontent.com/NX-Official/friends-link-plus/main/output/friends.json")).json()).posts}
|
||||||
const pageSize = 10
|
const pageSize = 10
|
||||||
// const Date = ref('')
|
// const Date = ref('')
|
||||||
const pageTotal = ref(Math.ceil(props.data.length / pageSize))
|
const pageTotal = ref(Math.ceil(props.data.length / pageSize))
|
||||||
|
|||||||
Reference in New Issue
Block a user