友联随机访问地址
This commit is contained in:
parent
3f0474dc36
commit
fc21164ec0
|
@ -977,6 +977,11 @@ spec:
|
||||||
name: bigTitle
|
name: bigTitle
|
||||||
label: 大标题
|
label: 大标题
|
||||||
value: 我和我的小伙伴们
|
value: 我和我的小伙伴们
|
||||||
|
- $formkit: url
|
||||||
|
name: randomfriendurl
|
||||||
|
value: "https://moments.0206.ink/randomfriend"
|
||||||
|
label: 随机访问地址
|
||||||
|
help: 注意格式 (你的鱼塘token地址 + randomfriend)
|
||||||
|
|
||||||
- group: fcircle
|
- group: fcircle
|
||||||
label: 友链鱼塘
|
label: 友链鱼塘
|
||||||
|
@ -1011,10 +1016,10 @@ spec:
|
||||||
placeholder: 请输入跳转 url
|
placeholder: 请输入跳转 url
|
||||||
- $formkit: url
|
- $formkit: url
|
||||||
name: apiurl
|
name: apiurl
|
||||||
value: "https://moments.0206.ink/"
|
value: "`https://moments.0206.ink/`"
|
||||||
label: token地址
|
label: token地址
|
||||||
placeholder: 请输入token地址
|
placeholder: 请输入token地址
|
||||||
help: 注意格式 (https://moments.0206.ink/)
|
help: 注意格式 (`token地址`)
|
||||||
- $formkit: radio
|
- $formkit: radio
|
||||||
name: fcircleRandomFriendsEnable
|
name: fcircleRandomFriendsEnable
|
||||||
label: 友链鱼塘页面(钓鱼)
|
label: 友链鱼塘页面(钓鱼)
|
||||||
|
|
|
@ -358,7 +358,7 @@ document.addEventListener('scroll', btf.throttle(function () {
|
||||||
|
|
||||||
//友链随机传送
|
//友链随机传送
|
||||||
function travelling() {
|
function travelling() {
|
||||||
var fetchUrl = GLOBAL_CONFIG.source.fcircleApiurl +"randomfriend"
|
var fetchUrl = GLOBAL_CONFIG.source.links.randomfriendurl
|
||||||
fetch(fetchUrl)
|
fetch(fetchUrl)
|
||||||
.then(res => res.json())
|
.then(res => res.json())
|
||||||
.then(json => {
|
.then(json => {
|
||||||
|
|
|
@ -41,7 +41,7 @@
|
||||||
<div id="random-post"></div>
|
<div id="random-post"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var fdataUser = {
|
var fdataUser = {
|
||||||
apiurl: GLOBAL_CONFIG.source.fcircleApiurl,
|
apiurl: [[${theme.config.fcircle.apiurl}]],
|
||||||
defaultFish: 500,
|
defaultFish: 500,
|
||||||
hungryFish: 500,
|
hungryFish: 500,
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@
|
||||||
<script>
|
<script>
|
||||||
let UserConfig = {
|
let UserConfig = {
|
||||||
// 填写你的api地址
|
// 填写你的api地址
|
||||||
private_api_url: GLOBAL_CONFIG.source.fcircleApiurl,
|
private_api_url: [[${theme.config.fcircle.apiurl}]],
|
||||||
// 点击加载更多时,一次最多加载几篇文章,默认10
|
// 点击加载更多时,一次最多加载几篇文章,默认10
|
||||||
page_turning_number: 12,
|
page_turning_number: 12,
|
||||||
// 头像加载失败时,默认头像地址
|
// 头像加载失败时,默认头像地址
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
<div id="random-post"></div>
|
<div id="random-post"></div>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var fdataUser = {
|
var fdataUser = {
|
||||||
apiurl: GLOBAL_CONFIG.source.fcircleApiurl,
|
apiurl: [[${theme.config.fcircle.apiurl}]],
|
||||||
defaultFish: 500,
|
defaultFish: 500,
|
||||||
hungryFish: 500,
|
hungryFish: 500,
|
||||||
}
|
}
|
||||||
|
|
|
@ -184,7 +184,9 @@
|
||||||
helloText: [[${#strings.listSplit(theme.config.sidebar.profile.helloText, ',')}]],
|
helloText: [[${#strings.listSplit(theme.config.sidebar.profile.helloText, ',')}]],
|
||||||
assetsLink: [[${assets_link}]],
|
assetsLink: [[${assets_link}]],
|
||||||
source: {
|
source: {
|
||||||
fcircleApiurl: [[${theme.config.fcircle.apiurl}]],
|
links:{
|
||||||
|
randomfriendurl: [[${theme.config.link.randomfriendurl}]],
|
||||||
|
},
|
||||||
jQuery: 'https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js',
|
jQuery: 'https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js',
|
||||||
justifiedGallery: {
|
justifiedGallery: {
|
||||||
js: 'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js',
|
js: 'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js',
|
||||||
|
|
Loading…
Reference in New Issue