gpt
This commit is contained in:
parent
c0f31bc9cc
commit
3837ff57a0
|
@ -2,39 +2,11 @@
|
|||
|
||||
<div class="uk-width-small-1-1 uk-width-medium-1-1 uk-width-large-1-3 uk-text-small uk-text-muted"
|
||||
style="padding-left:10px; padding-top: 10px;float:left;">
|
||||
{% if page.url contains "/pages/" or page.url contains "/rank/" %}
|
||||
{% else %}
|
||||
<input id="shy-footer-checkbox" class="uk-hidden" type="checkbox">
|
||||
<label class="uk-label" for="shy-footer-checkbox" style="float: right;margin-right: 20px;"
|
||||
data-uk-tooltip
|
||||
title="害羞的Footer一般不会被看到,相当于去广告,页面更干净<br/><br/>翻翻网页源代码,你会知道怎么让Footer害羞起来。">
|
||||
害羞的Footer:
|
||||
<span id="shy-footer-on" style="display: none;">√</span>
|
||||
<span id="shy-footer-off" style="display: none;">未生效</span>
|
||||
</label>
|
||||
{% endif %}
|
||||
<span>最新构建于: {{ site.time | date: "%Y-%m-%d %H:%M" }}</span><br><br>
|
||||
<span>最新构建于: {{ site.time | date: "%Y-%m-%d %H:%M" }}</span>
|
||||
<span>, <a href="https://www.aliyun.com/product/ecs?userCode=b6wzfjp8" rel="nofollow" target="_blank">阿里云服务器</a> </span><br><br>
|
||||
<span>
|
||||
<a href="http://beian.miit.gov.cn" rel="nofollow">闽ICP备17033777号</a>
|
||||
</span><br><br>
|
||||
<span>开源地址: <a href="https://git.apihub.net/APIHUB/feling.net" target="_blank">https://git.apihub.net/APIHUB/feling.net</a></span>
|
||||
</div>
|
||||
{% if page.url contains "/pages/" or page.url contains "/rank/" %}
|
||||
<script>
|
||||
// (adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
{% else %}
|
||||
<script>
|
||||
if (localStorage.shyFooter == 'true') {
|
||||
$('#content').css('min-height', 'calc(100% - 40px - 10px - 10px)')
|
||||
$('footer').hide()
|
||||
$('#shy-footer-on').show()
|
||||
$('#shy-footer-off').hide()
|
||||
} else {
|
||||
// (adsbygoogle = window.adsbygoogle || []).push({});
|
||||
$('#shy-footer-on').hide()
|
||||
$('#shy-footer-off').show()
|
||||
}
|
||||
</script>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<div>
|
||||
<div class="uk-visible-large uk-width-large-2-3" style="float:right;">
|
||||
<div class="uk-visible-large uk-width-large-7-10" style="float:right;">
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3779740765441924"
|
||||
crossorigin="anonymous"></script>
|
||||
{% if page.url contains "/json/" %}
|
||||
|
@ -50,7 +50,7 @@
|
|||
data-ad-slot="9143227856"></ins>
|
||||
{% endif %}
|
||||
{% if page.url contains "/pages/" %}
|
||||
<!-- feling-footer-redis -->
|
||||
<!-- feling-footer-pages -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:728px;height:90px"
|
||||
data-ad-client="ca-pub-3779740765441924"
|
||||
|
@ -63,23 +63,21 @@
|
|||
data-ad-client="ca-pub-3779740765441924"
|
||||
data-ad-slot="5510290248"></ins>
|
||||
{% endif %}
|
||||
{% if page.url contains "/gpt/" %}
|
||||
<a href="https://openai-hk.com/?i=22279" target="_blank"
|
||||
style="vertical-align: top;">>> 搭建你自己的AI助手 </a>
|
||||
<!-- feling-footer-gpt -->
|
||||
<ins class="adsbygoogle"
|
||||
style="display:inline-block;width:728px;height:90px;"
|
||||
data-ad-client="ca-pub-3779740765441924"
|
||||
data-ad-slot="6965542561"></ins>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<div class="uk-width-small-1-1 uk-width-medium-1-1 uk-width-large-1-3 uk-text-small uk-text-muted"
|
||||
<div class="uk-width-small-1-1 uk-width-medium-1-1 uk-width-large-3-10 uk-text-small uk-text-muted"
|
||||
style="padding-left:10px; padding-top: 10px;float:left;">
|
||||
{% if page.url contains "/pages/" or page.url contains "/rank/" %}
|
||||
{% else %}
|
||||
<input id="shy-footer-checkbox" class="uk-hidden" type="checkbox">
|
||||
<label class="uk-label" for="shy-footer-checkbox" style="float: right;margin-right: 20px;"
|
||||
data-uk-tooltip
|
||||
title="害羞的Footer一般不会被看到,相当于去广告,页面更干净<br/><br/>翻翻网页源代码,你会知道怎么让Footer害羞起来。">
|
||||
害羞的Footer:
|
||||
<span id="shy-footer-on" style="display: none;">√</span>
|
||||
<span id="shy-footer-off" style="display: none;">未生效</span>
|
||||
</label>
|
||||
{% endif %}
|
||||
<span>最新构建于: {{ site.time | date: "%Y-%m-%d %H:%M" }} </span>
|
||||
<span> <a href="https://www.aliyun.com/product/ecs?userCode=b6wzfjp8" rel="nofollow" target="_blank">阿里云服务器</a> </span><br><br>
|
||||
<span>, <a href="https://www.aliyun.com/product/ecs?userCode=b6wzfjp8" rel="nofollow" target="_blank">阿里云服务器</a> </span><br><br>
|
||||
<span>
|
||||
<a href="http://beian.miit.gov.cn" rel="nofollow">闽ICP备17033777号</a>
|
||||
</span><br><br>
|
||||
|
@ -94,12 +92,9 @@
|
|||
if (localStorage.shyFooter == 'true') {
|
||||
$('#content').css('min-height', 'calc(100% - 40px - 10px - 10px)')
|
||||
$('footer').hide()
|
||||
$('#shy-footer-on').show()
|
||||
$('#shy-footer-off').hide()
|
||||
window.dispatchEvent(new Event('resize'))
|
||||
} else {
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
$('#shy-footer-on').hide()
|
||||
$('#shy-footer-off').show()
|
||||
}
|
||||
</script>
|
||||
{% endif %}
|
||||
|
|
|
@ -17,19 +17,16 @@
|
|||
{% if page.url contains "/timestamp/" %}class="uk-active"{% endif %}
|
||||
><a href="/">开发小工具</a></li>
|
||||
<li {% if page.url contains "/pages/" %}class="uk-active"{% endif %}><a href="/pages/">笔记</a></li>
|
||||
<li id="GPT" class="uk-hidden-small uk-button-dropdown" data-uk-dropdown="{pos:'bottom-center', mode: 'click'}">
|
||||
<a class="uk-button">GPT</a>
|
||||
<div class="uk-dropdown uk-dropdown-small">
|
||||
<iframe src="https://gpt.feling.net" width="360" height="720"></iframe><br/>
|
||||
<a class="uk-text-small" target="_blank" href="https://openai-hk.com/?i=22279">>> 搭建你自己的AI助手</a>
|
||||
</div>
|
||||
</li>
|
||||
<li {% if page.url contains "/gpt/" %}class="uk-active"{% endif %}><a href="/gpt/">GPT</a></li>
|
||||
</ul>
|
||||
<div id="offcanvas-nav" class="uk-offcanvas">
|
||||
<div class="uk-offcanvas-bar">
|
||||
<ul class="uk-nav uk-nav-offcanvas" style="padding-top:10px" data-uk-nav>
|
||||
<li><a href="/pages/">笔记</a></li>
|
||||
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li><a href="/gpt/">GPT</a></li>
|
||||
|
||||
<li class="uk-nav-divider"></li>
|
||||
<li><a href="/redis/">网页版 redis 客户端</a></li>
|
||||
|
||||
|
|
|
@ -33,11 +33,11 @@ layout: default
|
|||
border-width: 0 0px 0 0;
|
||||
|
||||
padding: 0 5px 0 5px;
|
||||
cursor: w-resize;
|
||||
cursor: pointer;
|
||||
z-index: 9999999;
|
||||
}
|
||||
.x-center-when-hide-left {
|
||||
cursor: e-resize;
|
||||
cursor: pointer;
|
||||
background-color: #eee;
|
||||
}
|
||||
#markdown-toc {
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
title: NextChat
|
||||
layout: default_tool
|
||||
keywords: [NextChat, ChatGPT-Next-Web, ChatGPT]
|
||||
description: ChatGPT 你的AI助手
|
||||
---
|
||||
|
||||
|
||||
<div id="content" class="uk-flex">
|
||||
<iframe id="iframe" src="https://gpt.feling.net"></iframe></div>
|
||||
</div>
|
||||
|
||||
|
||||
<script>
|
||||
const parent = document.getElementById('content');
|
||||
const iframe = document.getElementById('iframe');
|
||||
|
||||
function setIframeSize() {
|
||||
const computedStyle = getComputedStyle(parent);
|
||||
const parentWidth = parent.clientWidth - parseFloat(computedStyle.paddingLeft) - parseFloat(computedStyle.paddingRight);
|
||||
const parentHeight = parent.clientHeight - parseFloat(computedStyle.paddingTop) - parseFloat(computedStyle.paddingBottom);
|
||||
|
||||
iframe.style.width = parentWidth + 'px';
|
||||
iframe.style.height = parentHeight + 'px';
|
||||
}
|
||||
window.addEventListener('resize', setIframeSize);
|
||||
setIframeSize();
|
||||
</script>
|
|
@ -81,7 +81,7 @@
|
|||
</ul>
|
||||
<ul id="tab-gpt" class="uk-switcher uk-margin">
|
||||
<li>
|
||||
<a class="uk-button" style="margin: 0px 0px 10px 10px;" href="https://gpt.feling.net" target="_blank">
|
||||
<a class="uk-button" style="margin: 0px 0px 10px 10px;" href="/gpt/">
|
||||
<div style="text-align:left;font-size:18px">NextChat</div>
|
||||
<hr style="margin:0">
|
||||
<p style="text-align:left;font-size:11px;margin:0px;">Powered by ChatGPT-Next-Web</p>
|
||||
|
@ -90,6 +90,7 @@
|
|||
<li style="margin: 10px 50px;">
|
||||
<pre style="text-align:left;font-size:11px;">
|
||||
docker run --name chatgpt-next-web -d -p 9999:3000 \
|
||||
-e ENABLE_BALANCE_QUERY=1 \
|
||||
-e OPENAI_API_KEY=hk-xxx \
|
||||
-e CODE=xxx \
|
||||
-e BASE_URL=https://api.openai-hk.com yidadaa/chatgpt-next-web</pre>
|
||||
|
|
|
@ -39,6 +39,7 @@ function FindProxyForURL(url, host) {
|
|||
|| shExpMatch(host,"*open-hk.com")
|
||||
|| shExpMatch(host,"*vimeo*")
|
||||
|| shExpMatch(host,"*docker*")
|
||||
|| shExpMatch(host,"*apache.org")
|
||||
) {
|
||||
return proxy;
|
||||
}
|
||||
|
|
|
@ -5,37 +5,37 @@ keywords: [时间戳转换]
|
|||
description: 把 时间毫秒数 转换成 人类友好的字符串
|
||||
---
|
||||
<div id="content">
|
||||
<p>时间戳格式化</p>
|
||||
|
||||
<div id="main" class="uk-form">
|
||||
<span>一组: </span>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" autofocus v-model.number="timestamp" placeholder="毫秒数" v-on:input="onChangeTimestamp"/>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model="date" v-on:input="onChangeDate"/>
|
||||
</div>
|
||||
|
||||
<div id="main1" class="uk-form">
|
||||
<span>二组: </span>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model.number="timestamp" placeholder="毫秒数" v-on:input="onChangeTimestamp"/>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model="date" v-on:input="onChangeDate"/>
|
||||
</div>
|
||||
|
||||
<div id="main2" class="uk-form">
|
||||
<span>三组: </span>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model.number="timestamp" placeholder="毫秒数" v-on:input="onChangeTimestamp"/>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model="date" v-on:input="onChangeDate"/>
|
||||
</div>
|
||||
|
||||
<div id="main3" class="uk-form">
|
||||
<span>四组: </span>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model.number="timestamp" placeholder="毫秒数" v-on:input="onChangeTimestamp"/>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model="date" v-on:input="onChangeDate"/>
|
||||
</div>
|
||||
|
||||
<div id="main4" class="uk-form">
|
||||
<span>五组: </span>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model.number="timestamp" placeholder="毫秒数" v-on:input="onChangeTimestamp"/>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model="date" v-on:input="onChangeDate"/>
|
||||
</div>
|
||||
|
||||
<div id="main5" class="uk-form">
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model.number="timestamp" placeholder="毫秒数" v-on:input="onChangeTimestamp"/>
|
||||
<input class="uk-form-width-medium" style="margin-bottom: 10px;" type="text" v-model="date" v-on:input="onChangeDate"/>
|
||||
</div>
|
||||
<script>
|
||||
var DateFormat={};!function(a){var b=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e=["January","February","March","April","May","June","July","August","September","October","November","December"],f={Jan:"01",Feb:"02",Mar:"03",Apr:"04",May:"05",Jun:"06",Jul:"07",Aug:"08",Sep:"09",Oct:"10",Nov:"11",Dec:"12"},g=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.?\d{0,3}[Z\-+]?(\d{2}:?\d{2})?/;a.format=function(){function a(a){return b[parseInt(a,10)]||a}function h(a){return c[parseInt(a,10)]||a}function i(a){var b=parseInt(a,10)-1;return d[b]||a}function j(a){var b=parseInt(a,10)-1;return e[b]||a}function k(a){return f[a]||a}function l(a){var b,c,d,e,f,g=a,h="";return-1!==g.indexOf(".")&&(e=g.split("."),g=e[0],h=e[e.length-1]),f=g.split(":"),3===f.length?(b=f[0],c=f[1],d=f[2].replace(/\s.+/,"").replace(/[a-z]/gi,""),g=g.replace(/\s.+/,"").replace(/[a-z]/gi,""),{time:g,hour:b,minute:c,second:d,millis:h}):{time:"",hour:"",minute:"",second:"",millis:""}}function m(a,b){for(var c=b-String(a).length,d=0;c>d;d++)a="0"+a;return a}return{parseDate:function(a){var b,c,d={date:null,year:null,month:null,dayOfMonth:null,dayOfWeek:null,time:null};if("number"==typeof a)return this.parseDate(new Date(a));if("function"==typeof a.getFullYear)d.year=String(a.getFullYear()),d.month=String(a.getMonth()+1),d.dayOfMonth=String(a.getDate()),d.time=l(a.toTimeString()+"."+a.getMilliseconds());else if(-1!=a.search(g))b=a.split(/[T\+-]/),d.year=b[0],d.month=b[1],d.dayOfMonth=b[2],d.time=l(b[3].split(".")[0]);else switch(b=a.split(" "),6===b.length&&isNaN(b[5])&&(b[b.length]="()"),b.length){case 6:d.year=b[5],d.month=k(b[1]),d.dayOfMonth=b[2],d.time=l(b[3]);break;case 2:c=b[0].split("-"),d.year=c[0],d.month=c[1],d.dayOfMonth=c[2],d.time=l(b[1]);break;case 7:case 9:case 10:d.year=b[3],d.month=k(b[1]),d.dayOfMonth=b[2],d.time=l(b[4]);break;case 1:c=b[0].split(""),d.year=c[0]+c[1]+c[2]+c[3],d.month=c[5]+c[6],d.dayOfMonth=c[8]+c[9],d.time=l(c[13]+c[14]+c[15]+c[16]+c[17]+c[18]+c[19]+c[20]);break;default:return null}return d.date=d.time?new Date(d.year,d.month-1,d.dayOfMonth,d.time.hour,d.time.minute,d.time.second,d.time.millis):new Date(d.year,d.month-1,d.dayOfMonth),d.dayOfWeek=String(d.date.getDay()),d},date:function(b,c){try{var d=this.parseDate(b);if(null===d)return b;for(var e,f=d.year,g=d.month,k=d.dayOfMonth,l=d.dayOfWeek,n=d.time,o="",p="",q="",r=!1,s=0;s<c.length;s++){var t=c.charAt(s),u=c.charAt(s+1);if(r)"'"==t?(p+=""===o?"'":o,o="",r=!1):o+=t;else switch(o+=t,q="",o){case"ddd":p+=a(l),o="";break;case"dd":if("d"===u)break;p+=m(k,2),o="";break;case"d":if("d"===u)break;p+=parseInt(k,10),o="";break;case"D":k=1==k||21==k||31==k?parseInt(k,10)+"st":2==k||22==k?parseInt(k,10)+"nd":3==k||23==k?parseInt(k,10)+"rd":parseInt(k,10)+"th",p+=k,o="";break;case"MMMM":p+=j(g),o="";break;case"MMM":if("M"===u)break;p+=i(g),o="";break;case"MM":if("M"===u)break;p+=m(g,2),o="";break;case"M":if("M"===u)break;p+=parseInt(g,10),o="";break;case"y":case"yyy":if("y"===u)break;p+=o,o="";break;case"yy":if("y"===u)break;p+=String(f).slice(-2),o="";break;case"yyyy":p+=f,o="";break;case"HH":p+=m(n.hour,2),o="";break;case"H":if("H"===u)break;p+=parseInt(n.hour,10),o="";break;case"hh":e=0===parseInt(n.hour,10)?12:n.hour<13?n.hour:n.hour-12,p+=m(e,2),o="";break;case"h":if("h"===u)break;e=0===parseInt(n.hour,10)?12:n.hour<13?n.hour:n.hour-12,p+=parseInt(e,10),o="";break;case"mm":p+=m(n.minute,2),o="";break;case"m":if("m"===u)break;p+=n.minute,o="";break;case"ss":p+=m(n.second.substring(0,2),2),o="";break;case"s":if("s"===u)break;p+=n.second,o="";break;case"S":case"SS":if("S"===u)break;p+=o,o="";break;case"SSS":var v="000"+n.millis.substring(0,3);p+=v.substring(v.length-3),o="";break;case"a":p+=n.hour>=12?"PM":"AM",o="";break;case"p":p+=n.hour>=12?"p.m.":"a.m.",o="";break;case"E":p+=h(l),o="";break;case"'":o="",r=!0;break;default:p+=t,o=""}}return p+=q}catch(w){return console&&console.log&&console.log(w),b}},prettyDate:function(a){var b,c,d;return("string"==typeof a||"number"==typeof a)&&(b=new Date(a)),"object"==typeof a&&(b=new Date(a.toString())),c=((new Date).getTime()-b.getTime())/1e3,d=Math.floor(c/86400),isNaN(d)||0>d?void 0:60>c?"just now":120>c?"1 minute ago":3600>c?Math.floor(c/60)+" minutes ago":7200>c?"1 hour ago":86400>c?Math.floor(c/3600)+" hours ago":1===d?"Yesterday":7>d?d+" days ago":31>d?Math.ceil(d/7)+" weeks ago":d>=31?"more than 5 weeks ago":void 0},toBrowserTimeZone:function(a,b){return this.date(new Date(a),b||"MM/dd/yyyy HH:mm:ss")}}}()}(DateFormat);
|
||||
</script>
|
||||
|
@ -43,7 +43,7 @@ var DateFormat={};!function(a){var b=["Sunday","Monday","Tuesday","Wednesday","T
|
|||
var vm = new Vue({
|
||||
el: "#main",
|
||||
data: {
|
||||
timestamp: new Date().getTime(),
|
||||
timestamp: new Date(new Date().getFullYear(), new Date().getMonth(), 1, 0, 0, 0, 0).getTime(),
|
||||
date: ''
|
||||
},
|
||||
mounted: function () {
|
||||
|
@ -65,7 +65,7 @@ var DateFormat={};!function(a){var b=["Sunday","Monday","Tuesday","Wednesday","T
|
|||
var vm = new Vue({
|
||||
el: "#main1",
|
||||
data: {
|
||||
timestamp: new Date().getTime(),
|
||||
timestamp: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate(), 0, 0, 0, 0).getTime(),
|
||||
date: ''
|
||||
},
|
||||
mounted: function () {
|
||||
|
@ -86,7 +86,7 @@ var DateFormat={};!function(a){var b=["Sunday","Monday","Tuesday","Wednesday","T
|
|||
var vm = new Vue({
|
||||
el: "#main2",
|
||||
data: {
|
||||
timestamp: new Date().getTime(),
|
||||
timestamp: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate(), new Date().getHours(), 0, 0, 0).getTime(),
|
||||
date: ''
|
||||
},
|
||||
mounted: function () {
|
||||
|
@ -107,7 +107,7 @@ var DateFormat={};!function(a){var b=["Sunday","Monday","Tuesday","Wednesday","T
|
|||
var vm = new Vue({
|
||||
el: "#main3",
|
||||
data: {
|
||||
timestamp: new Date().getTime(),
|
||||
timestamp: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate(), new Date().getHours(), new Date().getMinutes(), 0, 0).getTime(),
|
||||
date: ''
|
||||
},
|
||||
mounted: function () {
|
||||
|
@ -127,6 +127,27 @@ var DateFormat={};!function(a){var b=["Sunday","Monday","Tuesday","Wednesday","T
|
|||
<script>
|
||||
var vm = new Vue({
|
||||
el: "#main4",
|
||||
data: {
|
||||
timestamp: new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate(), new Date().getHours(), new Date().getMinutes(), new Date().getSeconds(), 0).getTime(),
|
||||
date: ''
|
||||
},
|
||||
mounted: function () {
|
||||
this.onChangeTimestamp()
|
||||
},
|
||||
methods: {
|
||||
onChangeTimestamp: function() {
|
||||
this.date = DateFormat.format.date(new Date(this.timestamp), "yyyy-MM-dd HH:mm:ss.SSS")
|
||||
},
|
||||
onChangeDate: function() {
|
||||
this.timestamp = new Date(this.date).getTime()
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<script>
|
||||
var vm = new Vue({
|
||||
el: "#main5",
|
||||
data: {
|
||||
timestamp: new Date().getTime(),
|
||||
date: ''
|
||||
|
|
Loading…
Reference in New Issue