Comments (5)
🤨 因为你贴的示例代码格式乱了,所以我这边大概按照以下页脚内容测试了下:
<a id="hitokoto"></a>
<br />
</span>
<span class="nav-item">
<a class="nav-link" href="https://flare.wscsmile.cn:8888/" target="_blank">
<i class="fas fa-edit" style="color:#409EFF" aria-hidden="true">
</i>
主页 |
</a>
</span>
<span class="nav-item">
<a class="nav-link" href="http://wscsmile.cn:8090/" target="_blank">
<i class="fas fa-edit" style="color:#409EFF" aria-hidden="true">
</i>
博客 |
</a>
</span>
<span class="nav-item">
<a class="nav-link" href="http://wscsmile.cn:8090/message" target="_blank">
<i class="fas fa-comment-lines" style="color:#409EFF;" aria-hidden="true">
</i>
留言 |
</a>
</span>
<!--后台入口-->
<span class="nav-item">
<a class="nav-link" href="/@manage" target="_blank">
<i class="fa-solid fa-folder-gear" style="color:#409EFF;" aria-hidden="true">
</i>
管理
<!--一言API-->
<script src="https://v1.hitokoto.cn/?encode=js&select=%23hitokoto" defer></script>
<script type="text/javascript">
! function (e, t, a) { function r() { for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x + "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999"); requestAnimationFrame(r) } function n() { var t = "function" == typeof e.onclick && e.onclick; e.onclick = function (e) { t && t(), o(e) } } function o(e) { var a = t.createElement("div"); a.className = "heart", s.push({ el: a, x: e.clientX - 5, y: e.clientY - 5, scale: 1, alpha: 1, color: c() }), t.body.appendChild(a) } function i(e) { var a = t.createElement("style"); a.type = "text/css"; try { a.appendChild(t.createTextNode(e)) } catch (t) { a.styleSheet.cssText = e } t.getElementsByTagName("head")[0].appendChild(a) } function c() { return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")" } var s = []; e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) { setTimeout(e, 1e3 / 60) }, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r() }(window, document);
</script>
</a>
</span>
无论首页还是后台每次刷新网页时 API 请求看起来都是正常的,响应内容也可以正常变化呀。
from docker-flare.
代码.txt
已文件形式发你了。
https://flare.wscsmile.cn:8888 这个是站点实例,大佬帮忙看看
from docker-flare.
https://flare.wscsmile.cn:8888/settings/application
后台
from docker-flare.
代码.txt 已文件形式发你了。
你没有为 flare 禁用 CSP。你可以设置环境变量 FLARE_DISABLE_CSP
值为 true
或者使用启动命令 -c
。
from docker-flare.
谢谢大佬,已经弄好了
from docker-flare.
Related Issues (20)
- 希望能增加一个死链检查功能
- 建议新增内外网切换功能 HOT 6
- 建议可以自主设置favicon
- 天气组件不可用 HOT 3
- 想要一个可以自由编辑主题颜色的功能
- 能否自定义书签排版数量 HOT 1
- 书签的排版方式有问题 HOT 2
- 请求新增多用户能力
- 登陆页面隐藏程序版本信息
- 请求添加在线编辑时以省略号减少长文本显示长度功能
- 可以把WAP页面改的美观一些吗? HOT 2
- [开箱即用] 书签批量导入 HOT 1
- logo小问题
- 增加部署到Vercel的功能
- 树莓派5 bookworm 64位系统docker'内无法运行 HOT 2
- 请求一个truenas的安装源
- 【单文件版本取消了?】 HOT 1
- 请问是不是不支持浏览器插件快捷添加? HOT 1
- 可以自定义网站图标/书签图标
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-flare.