Git Product home page Git Product logo

Comments (5)

 avatar commented on June 8, 2024

🤨 因为你贴的示例代码格式乱了,所以我这边大概按照以下页脚内容测试了下:

<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

无论首页还是后台每次刷新网页时 API 请求看起来都是正常的,响应内容也可以正常变化呀。

from docker-flare.

wanrenbuwanxin avatar wanrenbuwanxin commented on June 8, 2024

代码.txt
已文件形式发你了。
https://flare.wscsmile.cn:8888 这个是站点实例,大佬帮忙看看

from docker-flare.

wanrenbuwanxin avatar wanrenbuwanxin commented on June 8, 2024

https://flare.wscsmile.cn:8888/settings/application
后台

from docker-flare.

 avatar commented on June 8, 2024

代码.txt 已文件形式发你了。

你没有为 flare 禁用 CSP。你可以设置环境变量 FLARE_DISABLE_CSP 值为 true 或者使用启动命令 -c

from docker-flare.

wanrenbuwanxin avatar wanrenbuwanxin commented on June 8, 2024

谢谢大佬,已经弄好了

from docker-flare.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.