mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 13:57:10 +00:00
为图片添加外部页面保存 (#167)
* 修复引用转发,默认bing模式并发 * 开启stream增加稳定性 * fix: remove queue element only in non-bing mode * 使用chatgpt-api自带的超时逻辑,文字过多时启动切换到图片输出防止被吞 * Update chat.js * 添加Bing专用的图片输出样式 * 添加chatgpt的新图片模式,临时处理切换api导致的对话异常 * 修改bing样式表 * 为图片添加外部页面缓存 * 为图片模式添加MathJax * feat: add switch for qrcode --------- Co-authored-by: ikechan8370 <geyinchibuaa@gmail.com>
This commit is contained in:
parent
de4a6c8f41
commit
a4f12eaf09
8 changed files with 132 additions and 7 deletions
|
|
@ -18,7 +18,7 @@
|
|||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-4 my-auto">
|
||||
<a href="index.html" class="site-logo">
|
||||
<a href="#" class="site-logo">
|
||||
<img src="{{pluResPath}}content/Bing/static/picture/bing.png" alt="LOGO">
|
||||
</a>
|
||||
</div>
|
||||
|
|
@ -31,6 +31,9 @@
|
|||
<div class="col-xl-5 col-lg-5 text-right">
|
||||
<div class="section-heading">
|
||||
<h2>New Bing</h2>
|
||||
{{if cache != ''}}
|
||||
<p> {{cache}} </p>
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -56,6 +59,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{if quote.length > 0}}
|
||||
<div class="row">
|
||||
<div class="col-xl-12">
|
||||
<div class="hero-content">
|
||||
|
|
@ -69,13 +73,19 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if cache != ''}}
|
||||
<div id="qrcode" class="row justify-content-end"></div>
|
||||
{{/if}}
|
||||
</div>
|
||||
</section>
|
||||
<!-- footer start -->
|
||||
<footer class="site-footer mt-175">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-12 my-auto text-right">
|
||||
<div class="col-md-2">
|
||||
</div>
|
||||
<div class="col-md-10 my-auto text-right">
|
||||
<div class="copyright-text">
|
||||
<p>Response to {{senderName}} Created By Yunzai-Bot and ChatGPT-Plugin</a></p>
|
||||
</div>
|
||||
|
|
@ -87,8 +97,10 @@
|
|||
|
||||
<!--========= JS Here =========-->
|
||||
<script src="{{pluResPath}}content/Bing/static/js/jquery-2.2.4.min.js"></script>
|
||||
<script src="{{pluResPath}}content/Bing/static/js/jquery.qrcode.min.js"></script>
|
||||
<script src="{{pluResPath}}content/Bing/static/js/highlight.min.js"></script>
|
||||
<script src="{{pluResPath}}content/Bing/static/js/marked.min.js"></script>
|
||||
<script src="{{pluResPath}}content/Bing/static/js/tex-mml-chtml.js"></script>
|
||||
<script src="{{pluResPath}}content/Bing/static/js/main.js"></script>
|
||||
|
||||
<script>
|
||||
|
|
@ -108,6 +120,7 @@
|
|||
|
||||
let text = marked.parse($(".markdown").text());
|
||||
$(".markdown").html(text);
|
||||
jQuery('#qrcode').qrcode({width: 128,height: 128,text: "http://content.alcedogroup.com/{{cache}}"});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue