Code Monkey home page Code Monkey logo

Comments (10)

AragonSnow avatar AragonSnow commented on August 16, 2024

@zasl
公开模板不需要注册admin。500的话上传日志看看。

from qd.

zasl avatar zasl commented on August 16, 2024

root@N1:~# docker logs qiandao
[I 200915 16:14:39 run:55] http server started on 0.0.0.0:80
[I 200915 16:14:43 web:2064] 302 GET / (172.31.0.1) 6.90ms
[I 200915 16:14:43 web:2064] 302 GET /my/ (172.31.0.1) 5.53ms
[I 200915 16:14:43 web:2064] 200 GET /login (172.31.0.1) 248.51ms
[I 200915 16:14:49 web:2064] 302 POST /register (172.31.0.1) 648.53ms
[I 200915 16:14:49 utils:177] no smtp
[I 200915 16:14:49 web:2064] 200 GET /my/ (172.31.0.1) 271.06ms
[E 200915 16:14:51 web:1591] Uncaught exception GET /subscribe/ (172.31.0.1)
HTTPServerRequest(protocol='http', host='192.168.2.1:18888', method='GET', uri='/subscribe/', version='HTTP/1.1', remote_ip='172.31.0.1', headers={'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en-GB;q=0.7,en-US;q=0.6,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.2.1:18888', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36', 'Dnt': '1', 'Connection': 'keep-alive', 'Referer': 'http://192.168.2.1:18888/my/', 'Cookie': '_xsrf=2|f801fa66|9aeba6c139d0a86ce0c651ef603423bf|1600157325; user="2|1:0|10:1600157689|4:user|68:hMQEcm9sZcDECG5pY2tuYW1lwMQCaWQBxAVlbWFpbLMyNTE3NTAzMzMzMzNAcXEuY29t|cfab8ddcb8107354de326574bca73a1c808db8a0a30a72f4b83a52af0450b93c"', 'Upgrade-Insecure-Requests': '1'})
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1510, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1768, in wrapper
return method(self, args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 2898, in wrapper
return method(self, args, **kwargs)
File "/usr/src/app/web/handlers/subscribe.py", line 42, in get
res = requests.get(url, verify=False)
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='gitee.com', port=443): Max retries exceeded with url: /api/v5/repos/qiandao-today/templates/readme (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff81c57310>: Failed to establish a new connection: [Errno 111] Connection refused',))
[E 200915 16:14:51 web:1591] Uncaught exception GET /subscribe/ (172.31.0.1)
HTTPServerRequest(protocol='http', host='192.168.2.1:18888', method='GET', uri='/subscribe/', version='HTTP/1.1', remote_ip='172.31.0.1', headers={'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en-GB;q=0.7,en-US;q=0.6,en;q=0.5', 'Accept-Encoding': 'gzip, deflate', 'Host': '192.168.2.1:18888', 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,
/
;q=0.8,application/signed-exchange;v=b3;q=0.9', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36', 'Dnt': '1', 'Connection': 'keep-alive', 'Referer': 'http://192.168.2.1:18888/my/', 'Cookie': '_xsrf=2|f801fa66|9aeba6c139d0a86ce0c651ef603423bf|1600157325; user="2|1:0|10:1600157689|4:user|68:hMQEcm9sZcDECG5pY2tuYW1lwMQCaWQBxAVlbWFpbLMyNTE3NTAzMzMzMzNAcXEuY29t|cfab8ddcb8107354de326574bca73a1c808db8a0a30a72f4b83a52af0450b93c"', 'Upgrade-Insecure-Requests': '1'})
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1510, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 1768, in wrapper
return method(self, *args, **kwargs)
File "/usr/local/lib/python2.7/site-packages/tornado/web.py", line 2898, in wrapper
return method(self, *args, **kwargs)
File "/usr/src/app/web/handlers/subscribe.py", line 42, in get
res = requests.get(url, verify=False)
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python2.7/site-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
ConnectionError: HTTPSConnectionPool(host='gitee.com', port=443): Max retries exceeded with url: /api/v5/repos/qiandao-today/templates/readme (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0xffff81c57310>: Failed to establish a new connection: [Errno 111] Connection refused',))
[E 200915 16:14:51 web:2064] 500 GET /subscribe/ (172.31.0.1) 42.82ms
[E 200915 16:14:51 web:2064] 500 GET /subscribe/ (172.31.0.1) 42.82ms
[I 200915 16:14:59 web:2064] 200 GET /pushs (172.31.0.1) 205.90ms

麻烦您看下,N1刷的openwrt

from qd.

AragonSnow avatar AragonSnow commented on August 16, 2024

@zasl
显示是打开不gitee, 你可以再openwrt中试试curl能不能正常打开 https://gitee.com/qiandao-today/templates。然后防火墙上要放行。

from qd.

zasl avatar zasl commented on August 16, 2024

好的,我尝试一下,我是从b站的教程中知道这里的,看到b站的回复有群晖跟我情况是一样的。我现在重新安装去。

from qd.

zasl avatar zasl commented on August 16, 2024

小白一个,您看下我这个是可以的吗?如果可以,请问如何防火墙放行?

root@N1:~# curl https://gitee.com/qiandao-today/templates

<title>qiandao-today/templates</title> <script> // </script> <script src="https://assets.gitee.com/assets/static/sentry-5.1.0-109ee3d8895a239331efcf947ba7f5d8.js"></script> <script src="https://assets.gitee.com/assets/application-8d83c53f15d6975246585d5511eb1300.js"></script> <script src="https://assets.gitee.com/assets/lib/jquery.timeago.zh-CN-9c36ca7c4899a28168320613879d208a.js"></script> <script src="https://assets.gitee.com/assets/projects/app-260a76a1a3758198520d2e861578dc8a.js"></script> <script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script> var title = document.title.replace(/( - Gitee| - 码云)$/, '') imgUrl = ''; document.addEventListener('DOMContentLoaded', function(event) { var imgUrlEl = document.querySelector('.readme-box .markdown-body > img, .readme-box .markdown-body :not(a) > img'); imgUrl = imgUrlEl && imgUrlEl.getAttribute('src'); if (!imgUrl) { imgUrlEl = document.querySelector('meta[itemprop=image]'); imgUrl = imgUrlEl && imgUrlEl.getAttribute('content'); imgUrl = imgUrl || "https://gitee.com/static/images/logo_themecolor.png"; } wx.config({ debug: false, appId: "wxff219d611a159737", timestamp: "1600158934", nonceStr: "ea30a58938b72b6187af6d0704031454", signature: "ac7e59ad1529845fbf6b4fb4c38c1870897371f4", jsApiList: [ 'onMenuShareTimeline', 'onMenuShareAppMessage' ] }); wx.ready(function () { wx.onMenuShareTimeline({ title: title, // 分享标题 link: "https://gitee.com/qiandao-today/templates", // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 imgUrl: imgUrl // 分享图标 }); wx.onMenuShareAppMessage({ title: title, // 分享标题 link: "https://gitee.com/qiandao-today/templates", // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致 desc: document.querySelector('meta[name=Description]').getAttribute('content'), imgUrl: imgUrl // 分享图标 }); }); wx.error(function(res){ console.error('err', res) }); }) </script> <script type='text/x-mathjax-config'> MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']], displayMath: [["$$","$$"],["\\[","\\]"]], processEscapes: true, skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code'], ignoreClass: "container|files", processClass: "markdown-body" } }); </script> <script src="https://assets.gitee.com/uploads/resources/MathJax-2.7.2/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> <script> (function () { var messages = { 'zh-CN': { addResult: '增加 {term}', count: '已选择 {count}', maxSelections: '最多 {maxCount} 个选择', noResults: '未找到结果', serverError: '连接服务器时发生错误' }, 'zh-TW': { addResult: '增加 {term}', count: '已選擇 {count}', maxSelections: '最多 {maxCount} 個選擇', noResults: '未找到結果', serverError: '連接服務器時發生錯誤' } } if (messages[gon.locale]) { $.fn.dropdown.settings.message = messages[gon.locale] } }()); </script> <script> var userAgent = navigator.userAgent; var isLessIE11 = userAgent.indexOf('compatible') > -1 && userAgent.indexOf('MSIE') > -1; if(isLessIE11){ var can_access = "" if (can_access != "true"){ window.location.href = "/incompatible.html"; } } </script>
开源软件 企业版 特惠 高校版 博客
<script> var can_search_in_repo = 1, repo = "VFZSRmVFMTZhelZQVkdSb1RucFplbHBuUFQxaE56WXpaZz09YTc2M2Y=", reponame = "qiandao-today/templates"; $(function() { var $search = $('#navbar-search-form .ui.search'); $search.search({ apiSettings: { url: '/search/relative_project?q={query}', onResponse: function (res) { if (res && res.status === 200 && res.data) { var query = htmlSafe($search.search('get value')); res.data.map(function (item) { item.path_ns = '/' + item.path_ns; item.icon = 'iconfont icon-project-public'; }); res.data.unshift({ name_ns: "在全站搜索 " + query +" 相关项目", path_ns: '/search?fork_filter=on&q=' + query, icon: 'iconfont icon-search' }); if(can_search_in_repo == 1) { res.data.unshift({ name_ns: "在当前仓库搜索 " + query +" 相关代码", path_ns: '/search?type=code&q=' + query + '&repo=' + repo + '&reponame=' + reponame, icon: 'iconfont icon-search' }); } return res; } else { return { data: [] }; } } }, fields: { results: 'data', description: 'name_ns', url: 'path_ns', icon: 'icon' }, minCharacters: 1, maxResults: 10, searchDelay: 250, showNoResults: false, transition: 'fade' }); }); </script>

登录
注册
<script>
$('.destroy-user-session').on('click', function() {
$.cookie('access_token', null, { path: '/' });
})
</script>

<script> Gitee.initNavbar() Gitee.initRepoRemoteWay() </script> <script> var userAgent = navigator.userAgent; var isLessIE11 = userAgent.indexOf('compatible') > -1 && userAgent.indexOf('MSIE') > -1; if(isLessIE11){ var can_access = "" if (can_access != "true"){ window.location.href = "/incompatible.html"; } } </script>
<script> (function() { $(function() { var $error_box, alertTip, notify_content, notify_options, template; template = '
' + '' + '{2}' + '
'; notify_content = null; notify_options = {}; alertTip = ''; $error_box = $(".flash_error.flash_error_box"); if (notify_options.type === 'error' && $error_box.length > 0 && !$.isEmptyObject(notify_content.message)) { if (notify_content.message === 'captcha_fail') { alertTip = "验证码不正确"; } else if (notify_content.message === 'captcha_expired') { alertTip = "验证码已过期,请点击刷新"; } else if (notify_content.message === 'not_found_in_database') { alertTip = "帐号或者密码错误"; } else if (notify_content.message === 'not_found_and_show_captcha') { alertTip = "帐号或者密码错误"; } else if (notify_content.message === 'phone_captcha_fail') { alertTip = "手机验证码不通过"; } else { alertTip = notify_content.message; } return $error_box.html(alertTip).show(); } else if (notify_content) { if ("show" === 'third_party_binding') { return $('#third_party_binding-message').html(notify_content.message).addClass('ui message red'); } notify_options.delay = 3000; notify_options.template = template; notify_options.offset = { x: 10, y: 30 }; notify_options.element = '#messages-container'; return $.notify(notify_content, notify_options); } });

}).call(this);
</script>

<script> (function() { $(function() { var setCookie; setCookie = function(name, value) { $.cookie(name, value, { path: '/', expires: 365 }); }; $('#remove-bulletin, #remove-bulletin-dashboard').on('click', function() { setCookie('remove_bulletin', "gitee-maintain-1599731492"); $('#git-bulletin').hide(); }); $('#remove-member-bulletin').on('click', function() { setCookie('remove_member_bulletin', "gitee_member_bulletin"); $(this).parent().hide(); }); return $('#remove-gift-bulletin').on('click', function() { setCookie('remove_gift_bulletin', "gitee-gift-bulletin"); $(this).parent().hide(); }); });

}).call(this);
</script>

<script> function closeMessageBanner(pthis, type, val) { var json = {} val = typeof val === 'undefined' ? null : val $(pthis).parent().remove() if (type === 'out_of_enterprise_member') { json = {type: type, data: val} } else if (type === 'enterprise_overdue') { json = {type: type, data: val} } $.post('/profile/close_flash_tip', json) } </script>
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消 前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch 1 Star 2 Fork 1

qiandao-today / templates<style> .gitee-modal { width: 500px !important; } </style>

<script> var title_import_url = "https://github.com/qiandao-today/templates.git"; var title_post_url = "/qiandao-today/templates/update_import"; var title_fork_url = "/qiandao-today/templates/sync_fork"; var title_project_path = "templates"; var title_p_name = "templates"; var title_p_id= "11139997"; var title_description = null; var title_form_authenticity_token = "2JffkW8i7qz8Dxzt0A/Gc268LSkj/2h6E0o85tY8vtw="; var watch_type = "unwatch";

$('.metrics-radar').dropdown({ action: 'nothing' });
$('.js-project-watch').dropdown('set selected', watch_type);
$('.checkbox.sync-wiki').checkbox();
</script>

<style> i.loading { -webkit-animation: icon-loading 1.2s linear infinite; animation: icon-loading 1.2s linear infinite; } .qrcode_cs { float: left; } .check-sync-wiki { float: left; height: 28px; line-height: 28px; } .sync-wiki-warn { color: #e28560; } </style> <script> $('.git-project-nav .ui.dropdown').dropdown({ action: 'nothing' }); </script> <style> .git-project-nav i.checkmark.icon { color: green; } #quiting-button { display: none; }

.git-project-nav .dropdown .menu.hidden:after {
visibility: hidden !important;
}
</style>

<script> isSignIn = false isClickGuide = false $('#git-versions.dropdown').dropdown(); $.ajax({ url:"/qiandao-today/templates/access/add_access_log", type:"GET" }); $('#quiting-button').on('click',function() { $('.git-project-service').click(); if (isSignIn) { $.post("/projects/set_service_guide") } $.cookie("Serve_State", true, { expires: 3650, path: '/'}) $('#quiting-button').hide(); }); if (!(isClickGuide || $.cookie("Serve_State") == 'true')) { $('.git-project-service').click() $('#quiting-button').show() } </script>
加入 Gitee
与超过 500 万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
该仓库未指定开源许可证,未经作者的许可,此代码仅用于学习,不能用于其他用途。
项目仓库所选许可证以仓库主分支所使用许可证为准
暂无描述 展开 收起

保存更改 取消
<script> $(function () { new ProjectInfoEditor({ el: '.git-project-desc-wrapper', homepage: null, description: null, url: "/qiandao-today/templates/update_description", modalHelper: Gitee.modalHelper }) })

if (false) {
gon.project_new_blob_path = "/qiandao-today/templates/new/master"
bindShowModal({
el: $('.no-license .project-license__create'),
complete: function(data, modal) {
if (!data.haveNoChoice && !data.data) {
Flash.show('请选择一项开源许可证')
} else {
location.href = gon.project_new_blob_path + '?license=' + data.data
}
},
skip: function () {
location.href = gon.project_new_blob_path + '?license'
}
})
}

$('i.help.circle.icon').popup({
popup: '.no-license .ui.popup',
position: 'right center'
})

$('#remove-no-license-message').on('click', function(){
$.cookie("skip_repo_no_license_message_11139997", 'hide', { expires: 365 })
$('#user-no-license-message').hide()
return
})
</script>

<script> $('.disabled-upload-readonly').popup({ content: "只读目录不允许上传文件", className: { popup: 'ui popup', }, position: 'bottom center', }) $('.disabled-create-folder').popup({ content: "只读目录不允许创建目录", className: { popup: 'ui popup', }, position: 'bottom center', }) $('.disabled-create-file').popup({ content: "只读目录不允许创建文件", className: { popup: 'ui popup', }, position: 'bottom center', }) $('.disabled-upload-readonly').click(() => { return false }) $('.disabled-create-folder').click(() => { return false }) $('.disabled-create-file').click(() => { return false }) </script> <style> .disabled-upload-readonly, .disabled-create-file, .disabled-create-folder { background-color: #dcddde !important; color: rgba(0, 0, 0, 0.4) !important; opacity: 0.3 !important; background-image: none !important; -webkit-box-shadow: none !important; box-shadow: none !important; } </style>
克隆/下载
HTTPS SSH SVN SVN+SSH
复制

下载ZIP
登录提示
该操作需登录码云帐号,请先登录后再操作。
立即登录
没有帐号,去注册
<script> var $elm = $('.download');

$elm.on('click', function() {
var modals = $("#unlanding-complaint-modal.download_repository_zip");
if (modals.length > 1) {
modals.eq(0).modal('show');
} else {
modals.modal('show');
}
})
$("#unlanding-complaint-modal.download_repository_zip").modal({
onDeny: function() {
window.location.href = "/signup?from=download_repository_zip";
},
onApprove: function() {
window.location.href = "/login?from=download_repository_zip";
}
})
</script>

<script> (function() { var $btnCopy, $input, $item, $panel, clipboard, dataUrl, remoteWay;
$input = $('#project_clone_url');

remoteWay = '';

clipboard = new Clipboard('#btn-copy-clone-url');

$panel = $('.git-project-download-panel');

$btnCopy = $('#btn-copy-clone-url');

$panel.find('.menu > .item').on('click', function() {
  var $item, dataUrl;
  $item = $(this).addClass('active');
  $item.siblings().removeClass('active');
  dataUrl = $item.attr('data-url');
  if (dataUrl) {
    $panel.find('.download-url-panel').show();
    $input.val(dataUrl);
    $panel.find('.forbid-warning-text').html('');
  } else {
    $panel.find('.download-url-panel').hide();
    $panel.find('.forbid-warning-text').html($item.attr('data-text') || '');
  }
  return $.cookie('remote_way', $item.attr('data-type'), {
    expires: 365,
    path: '/'
  });
});

$('body').on('click', '#btn-dl-or-clone', function(e) {
  e.stopImmediatePropagation();
  if ($(e.target)[0] === $panel[0] || $(e.target).closest($panel).length) {
    return;
  }
  return $panel.transition('fade up');
});

$('body').on('click', function() {
  if ($panel.transition('is visible')) {
    return $panel.transition('fade up');
  }
});

$item = $panel.find('.ui.menu .item').eq(0);

$item.addClass('active').siblings().removeClass('active');

dataUrl = $item.attr('data-url');

if (dataUrl) {
  $panel.find('.download-url-panel').show();
  $input.val(dataUrl);
  $panel.find('.forbid-warning-text').html('');
} else {
  $panel.find('.download-url-panel').hide();
  $panel.find('.forbid-warning-text').html($item.attr('data-text') || '');
}

clipboard.on('success', function() {
  $btnCopy.popup({
    content: '已复制',
    position: 'right center',
    onHidden: function() {
      return $btnCopy.popup('destroy');
    }
  });
  return $btnCopy.popup('show');
});

clipboard.on('error', function() {
  $btnCopy.popup({
    content: '复制失败,请手动复制',
    position: 'right center',
    onHidden: function() {
      return $btnCopy.popup('destroy');
    }
  });
  return $btnCopy.popup('show');
});

}).call(this);
</script>

master
分支 (1)
master
<style> .iconfont.icon-shieldlock { color: #8c92a4; } </style> <script> $(function () { Gitee.initTabsInDropdown($('#git-project-branch').dropdown({ fullTextSearch: true, selectOnKeydown: true, action: function (text,value,el) { var oItemOrInitObject = el[0] || el var isNotSelect = oItemOrInitObject.dataset.tab && oItemOrInitObject.dataset.tab === 'branches' if(isNotSelect){ console.warn("You didn't choose a branch") return } var path = $('#path').val(); var href = ['/qiandao-today/templates/tree', encodeURIComponent(value), path].join('/'); window.location.href = href; return true }, onNoResults: function (searchTerm) { //未找到结果 return true }, })); $('.protected-branch-popup').popup() }) </script>
<script> $('#git-project-file').dropdown({ action: 'hide' }); </script>
<style> .ui.dropdown .menu > .header { text-transform: none; } </style> <script> $(document).ready(function () { var $gitProjectSummary = $('#git-project-summary'); var $gitProjectLanguages = $gitProjectSummary.find('.summary-languages'); var $statsSwitcherWrapper = $gitProjectSummary.find('.viewer-wrapper'); var $contributorCount = $gitProjectSummary.find('.contributor-count'); var $contributorText = $gitProjectSummary.find('.contributor-text'); var contributorsCountUrl = $contributorCount.data('url'); $gitProjectLanguages.on('click', function() { $statsSwitcherWrapper.toggleClass('js-lang'); }); $.ajax({ url: contributorsCountUrl, method: 'GET', success: function(data) { if (data.status === 1) { $contributorCount.text(data.contributors_count); $contributorText.text('位贡献者') } else { $contributorText.text('获取失败') } } }); var $tip = $('#apk-download-tip'); if (!$tip.length) { return; } $tip.find('.btn-close').on('click', function () { $tip.slideUp(); }); }); (function(){ function pathAutoRender() { var $parent = $('#git-project-bread'), $child = $('#git-project-bread').children('.ui.horizontal.list'), mainWidth = 0; $child.each(function (i,item) { mainWidth += $(item).width() }); $('.breadcrumb.path.fork-path').remove(); if (mainWidth > 995) { $('#path-breadcrumb').hide(); $parent.append('
' + $('#path-breadcrumb').html() + '
') } else { $('#path-breadcrumb').show(); } } window.pathAutoRender = pathAutoRender; pathAutoRender(); })(); </script>
xiaoxiao 最后提交于 gitee
<script> var $treeContentHolder = $('#tree-content-holder'), $recentBuildState = $('#recent-build-state'); if($treeContentHolder.length && $recentBuildState.length){ var buildState = $treeContentHolder.data('build-state'); if(buildState){ $recentBuildState.removeClass('hidden').addClass('icon-ci-' + buildState); } } </script>
提交 取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
保存 取消
Loading...
README.md

整理qiandao.today可用的har

鸣谢

gxitm

AragonSnow

FellBan

Devil

github-h

liuqitech

呆贼

网站

Tips:

  1. 链接里最好使用raw.githubusercontent.com的模板地址,其他的链接没有测试过
  2. 修改日期格式 四位年-两位月-两位日 24小时:两位分:两位秒 ,例子:2020-05-15 07:03:47
网站 作者 链接 修改日期 备注/日志
联想签到延保 gxitm 联想签到延保(jointask).har 2020-05-15 04:37:17 account:账号,password:密码
参加连续10天签到任务
natfrp gxitm natfrp.har 2020-05-15 07:03:47 登录请求cookies:acw_tc,登录请求cookies:wordpress
url:https://openid.oxygen.moe/oauth/authorize/?response_type=code&client_id=ezEb7xY9ZHGwXMTtaUzdHcnKAGRnxUwphfMcIj9l
189天翼云盘 gxitm 189天翼云盘.har 2020-06-08 14:35:16 手机抓包,accessToken在链接里
url:http://api.cloud.189.cn/loginByOpen189AccessToken.action?accessToken=
国航APP AragonSnow airchina.har 2020-06-17 02:40:10 抓包,app杀台后不用输密码登录就行,这两个链接里有这个参数
前两个在
https://m.airchina.com.cn:9061/worklight/apps/services/api/AirChina/iphone/init
param在
https://m.airchina.com.cn:9061/worklight/apps/services/api/AirChina/iphone/query
paramters=到&结束
20200617更新:替换公共API地址,改用内置,需要配合aragonsonw/qiandao最新版使用
轻之国度 AragonSnow lightnovel 轻之国度.har 2020-05-20 15:43:45 cks 网页cookie
https://www.lightnovel.us/
summer-plus(原south-plus) AragonSnow
github-h
summer-plus(原south-plus).har 2020-08-10 16:00:00 pwd 密码
user 用户名
https://www.summer-plus.net/
精易论坛 FellBan 精易论坛.har 2020-05-21 09:23:54 cookie
https://bbs.125.la
腾讯视频VIP devil 腾讯视频VIP.har 2020-05-25 14:11:06 cookie
腾讯视频手机APP抓包cookie
WPS签到送会员 devil WPS.har 2020-05-25 14:06:23 WPS会员小程序抓包【sid】 https://zt.wps.cn/
柠檬PT签到 devil 柠檬PT签到.har 2020-05-25 14:06:23 cookie
https://leaguehd.com/attendance.php
ZodGame论坛 github-h ZodGame论坛.har 2020-06-25 19:20:44 cookie
https://zodgame.xyz
星空论坛seikuu github-h 星空论坛seikuu.har 2020-06-25 17:51:54 cookie
https://bbs2.seikuu.com/
网易云音乐-电脑 AND 手机 qiandao.today公共模板 网易云音乐-电脑 AND 手机.har 2020-06-25 21:12:03 cookie
https://music.163.com/
吾爱破解 github-h 吾爱破解.har 2020-06-09 10:59:44 cookie
https://www.52pojie.cn/
哥特动漫王国 github-h 哥特动漫王国.har 2020-07-27 13:20:16 cookie
https://www.gtloli.net/forum.php
萌出血动漫论坛 github-h 萌出血动漫论坛.har 2020-07-27 13:00:07 cookie
http://www.bbsmcx.com/forum.php
ArcTime字幕平台 github-h ArcTime字幕平台.har 2020-06-25 19:24:49 用户名+密码
http://m.arctime.cn/
柚坛社区 github-h 柚坛社区.har 2020-06-25 19:26:42 cookie
http://www.miuibbs.cn/
keylol(原SteamCN蒸汽论坛) github-h keylol(原SteamCN蒸汽论坛).har 2020-06-25 19:28:10 cookie
https://keylol.com/
机锋论坛 github-h 机锋论坛.har 2020-06-25 19:27:50 cookie
http://bbs.gfan.com/
HMOE俱乐部 github-h HMOE俱乐部.har 2020-07-27 15:00:21 用户名+密码
https://club.hmoe.club/
3DMGAME论坛 github-h 3DMGAME论坛.har 2020-06-25 20:58:13 cookie
https://bbs.3dmgame.com/
花火学院 github-h 花火学院.har 2020-06-25 19:19:35 cookie
https://www.say-huahuo.com/
QQNTR论坛 github-h QQNTR论坛.har 2020-06-25 19:28:02 cookie
https://iya.app/
CSDN-专业IT技术论坛 github-h CSDN-专业IT技术论坛.har 2020-06-25 19:24:22 用户名+cookie
此为签到模块,记得定期抽奖
https://www.csdn.net/
漫画补档 AragonSnow 漫画补档.har 2020-06-16 02:24:44 用户名+密码
此模板默认是没有设置安全问题,没测试过有安全问题的是否能登陆成功
https://www.manhuabudang.com/
华盟论坛 github-h 华盟论坛.har 2020-06-25 19:27:40 用户名+密码
https://bbs.77169.net/
什么值得买 liuqitech
呆贼
什么值得买.har 2020-06-28 14:12:00 网页版 cookie
https://www.smzdm.com/
Office-E5白嫖API调用 gxitm Office-E5白嫖API调用.har 2020-07-03 21:45:38 refresh_token+client_id+secret
根据相关教程获取到三个参数,并要保证被调用的10个API有权限
url:https://developer.microsoft.com/zh-CN/microsoft-365/dev-program
杉果游戏 github-h 杉果游戏.har 2020-07-04 15:00:21 用户名+密码
用户名为邮箱
https://ww.sonkwo.com/
天天爱阅读签到提醒 github-h 天天爱阅读签到提醒.har 2020-07-27 15:00:21 cookie+SCKEY(可选)
请导入后认真阅读模板说明
https://wap.cmread.com/
夏跡natsunokiseki github-h 夏跡natsunokiseki.har 2020-07-27 15:00:21 用户名+密码
每日登录
https://bbs.natsunokiseki.org/
联想智选app aragonsnow 联想智选app.har 2020-08-03 15:00:21 需要在京东智选APP 账号密码登录抓包
account 和 password 是app登录的账号密码, loginType,邮箱是email,手机号是msisdn
IMEI 和 baseinfo 在 抓包的 https://api.club.lenovo.cn/users/getSessionID 的header里
deviceId 在 抓包的 https://uss.lenovomm.com/authen/1.2/tgt/user/get 的post里
<script> "use strict"; if ($('.markdown-body').children("style").length != 0) { var i, array = $('.markdown-body').children("style"); array.first().attr('scoped',''); $.scoped(); }

toMathMlCode('','markdown-body')
</script>

<style> .txt-style { background: #FFF !important; padding: 0 !important; } </style>
 捐赠 
<script> (function() { var $btnLoad, $container, $list, $modal, $root, $tipLoading, checkLoad, href, isLoading, loadDonates, page, setDonates;
$root = $('html, body');

href = '#project-donate-overview';

$('a[href="' + href + '"]').click(function() {
  $root.animate({
    scrollTop: $(href).offset().top
  }, 500, function() {
    return window.location.hash = href;
  });
  return false;
});

page = 0;

isLoading = false;

$list = $('.project-donate-list');

$modal = $('.project-donate-modal');

$container = $('#project-donate-overview');

$tipLoading = $container.find('.tip-loading');

$container.find('.donate.button').on('click', function() {
  return $modal.modal('show');
});

if (0 > 0) {
  $btnLoad = $container.find('.btn-load-more').on('click', function() {
    return loadDonates();
  });
  setDonates = function(list) {
    var $item, html, i, item, len, results;
    results = [];
    for (i = 0, len = list.length; i < len; i++) {
      item = list[i];
      html = ['<div class="header">', item.donator_name, '<span class="ui yellow circular label money">¥', item.money, '</span></div><div class="content">', item.message, '</div>'].join('');
      if (item.donator_avatar_url.indexOf('no_portrait.png') === 0) {
        item.donator_avatar_url = LetterAvatar(item.donator_name);
      }
      $item = $(['<span class="donate-info"><img src="', item.donator_avatar_url, '" class="ui inline circular image"', 'alt="', item.donator_name, '"></span>'].join(''));
      $list.append($item);
      results.push($item.popup({
        inline: true,
        html: html,
        position: 'bottom center'
      }));
    }
    return results;
  };
  loadDonates = function() {
    if (isLoading) {
      return;
    }
    page += 1;
    isLoading = true;
    $btnLoad.hide();
    $tipLoading.show();
    return $.getJSON('/qiandao-today/templates/donates.json', {
      page: page
    }, function(list) {
      setDonates(list);
      isLoading = false;
      if (page * 12 < 0) {
        $btnLoad.show();
        return $tipLoading.hide();
      } else {
        $btnLoad.remove();
        return $tipLoading.remove();
      }
    });
  };
  checkLoad = function() {
    var listTop, top;
    top = $(window).scrollTop();
    listTop = $list.offset().top;
    if (listTop >= top && listTop < top + $(window).height()) {
      $(window).off('scroll', checkLoad);
      return loadDonates();
    }
  };
  $(window).on('scroll', checkLoad);
  checkLoad();
}

}).call(this);
</script>

<script id='tree-item-context-menu-template' type='text/plain'>
新标签打开 复制 重命名 删除
</script> <script> $(function() { var $createFolderForm = $('.create-folder-form'), $createFolderSubmitBtn = $('.create-folder-form .js-submit-btn') $folderPath = $('#new_folder_path'), $message = $('.create-folder-form .notice'), folders = [], folderReg = new RegExp(/\/+/); var INDEX_BEGIN_WITH_READONLY_DIR = 0 var gitGCModal = new GiteeModalHelper({ approveText: "确认", cancelText: "取消", okText: "确认", }) function checkFolder(folder) { var i, itemArr; if (folder == '') { return false; } for (i = 0; i< folders.length; i++) { itemArr = folders[i].split('/'); if (itemArr[0] == folder){ return true } } return false; } function createFolderShow () { $createFolderForm.show(); $folderPath.focus(); } $('.create-folder-form .cancel').click(function () { $createFolderForm.hide(); }) $folderPath.on('input', function (e) { if($(this).parent().hasClass('error')) { $message.removeClass('warn').html("提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件"); $(this).parent().removeClass('error'); } $createFolderSubmitBtn.removeClass('disabled'); }) $createFolderForm.submit(function (e) { var value = $folderPath.val(); if (!folderReg.test(value) && !checkFolder(value) && value) { $('#new_file_path').val(value + '/.keep'); } else { $message.addClass('warn').html("文件夹名不为空,不含有字符(/)且不能与当前目录文件夹同名"); $folderPath.parent().addClass('error'); e.preventDefault(); } $createFolderSubmitBtn.addClass('disabled'); }) $('#create-folder').click(createFolderShow); window.createFolderShow = createFolderShow; window.hasTreeContextMenu = false; var contextMenuTemplate = $('#tree-item-context-menu-template').html(); if ("true" == "false" || "true" == "false" || "false" == "false") { return; } function createContextMenu($item, x, y) { if (hasTreeContextMenu) { $('.tree-context').remove(); hasTreeContextMenu = false; return; } hasTreeContextMenu = true; var path = $item.parent().find('a').attr('href'); var $menu = $(contextMenuTemplate).appendTo('body'); let readonly = $item.attr('data-readonly') !== undefined if ($('.btn-readonly')[0]) { if (readonly) { $('.btn-readonly')[0].children[0].className = 'icon unlock' $('.btn-readonly')[0].lastChild.data = "取消只读" } else { $('.btn-readonly')[0].lastChild.data = "标记为只读" } } $menu.css({ left: x, top: y }); $menu.find('.btn-open-new-tab').attr({ href: path, target: '_blank' }); window.Clipboard && new Clipboard('.btn-copy', { text: function () { return $item.find('a').text(); } }); $menu.find('.btn-rename').on('click', function(event) { rename($item.parent().attr('file_hex')); }); $menu.find('.btn-delete').on('click', function(event) { removeFile($item.parent().next().find('.ui.form').attr('path').replace(/\+/g, '%20'), $item.find('a').text()); }) $menu.find('.btn-readonly').on('click', function(event) { var obj = $item.parent().next().find('.ui.form').attr('path').replace(/\+/g, '%20') let readonly = $item.attr('data-readonly') !== undefined if (readonly) { removeReadonlyMark(obj, $item) } else { addReadonlyMark(obj, $item) } }) $menu.find('.btn-readonly-is-uncharged-enterprise').popup({ content: "仅付费企业仓库可开启文件只读功能", className: { popup: 'ui popup', }, position: 'bottom center' }) $menu.find('.btn-readonly-is-open-svn').popup({ content: "仓库已开启 SVN 支持,无法标记只读文件/目录", className: { popup: 'ui popup', }, position: 'bottom center' }) } var editing = false $(document).on('click',function(event){ if (hasTreeContextMenu && event.button !== 2) { setTimeout(function () { $('.tree-context').remove(); hasTreeContextMenu = false; }, 200); } }) $('.tree-item').on('click',function(event){ if (hasTreeContextMenu) { event.preventDefault(); } }) function isReadonly(path) { if (!gon.readonlyItems) { return false } else { let item_path = getItemPath(path, 'folder') return isTreeItemReadonly(item_path, gon.readonlyItems) } } function isParentsReadonly(path) { let self_path = path.replace(/\/$/, '') let parentPathArray = self_path.split('/') if (parentPathArray.length < 2) { return false } parentPathArray.pop() let parentPath = parentPathArray.join('/') + '/' return isReadonly(parentPath) } // 删除只读标记 function removeReadonlyMark(path, $item) { var $icon = $($item.context.children[0]) var $parent = $item.parent('.tree-item') var type = $parent.data('type') var branch = $parent.data('branch') var readonly_item = $item.data('path') if (type !== 'file') { readonly_item += "/" } var confirmString = `

所属分支: ${htmlSafe(branch)}

\

文件路径: ${htmlSafe(readonly_item)}

\ 确认取消分支上这个路径的只读标记? ` gitGCModal.confirm("取消只读", confirmString, () => { let parentsReadonly = isParentsReadonly(readonly_item) if (parentsReadonly) { return gitGCModal.alert('提示', '只读记录不存在,或父级目录为只读', () => { location.reload() }) } $.ajax({ url: "/qiandao-today/templates/readonly", type: `DELETE`, data: { branch, path: readonly_item, }, success: function(res) { if (res.code !== 0) { gitGCModal.alert("提示", res.msg, () => { location.reload() }) } else { $parent.removeClass('readonly-item') if (gon.readonlyItems) { gon.readonlyItems.splice(gon.readonlyItems.indexOf(readonly_item), 1) } if (type === 'file') { $icon.removeClass('icon-file-readonly readonly-icon') $icon.addClass('icon-file') } else { $icon.removeClass('icon-folder-readonly readonly-icon') $icon.addClass('icon-folders') } $icon.popup('destroy') $item.removeAttr('data-readonly') } } }) }) } // 只读过滤 function isTreeItemReadonly(path, readonlyItems) { let item = readonlyItems.find((item) => { if (item.slice(-1) === '/') { return path.indexOf(item) === INDEX_BEGIN_WITH_READONLY_DIR } else { return path === item } }) return item !== undefined } function getItemPath(path, path_type='file') { return path_type === 'file' ? path : `${path}/` } // 启用异步只读差异化的次数 let is_can_readonly = false // 异步对文件树进行只读差异化显示 function markTree() { $.ajax({ url: "/qiandao-today/templates/readonly", method: 'get', data: { "branch": "master" }, success: (result) => { let readonlyItems = result.readonly_items gon.readonlyItems = readonlyItems $(".tree-list-item").each(function(){ $this = $(this) let path = $this.attr('data-path') let type = $this.attr('data-type') let item_path = getItemPath(path, type) let readonly = isTreeItemReadonly(item_path, readonlyItems) $icon = $this.find('i') $parent = $this.parent('.tree-item') if (readonly) { $parent.addClass('readonly-item') $this.attr('data-readonly', '') $icon.attr('class', `iconfont icon-${type}-readonly readonly-icon`) $icon.attr('data-readonly', '') $icon.popup({ content: "只读", className : { popup: 'ui popup dark', }, position: 'top center' }) } else { let className = type === 'file' ? 'file' : 'folders' $this.removeAttr('data-readonly') $icon.attr('class', `iconfont icon-${className}`) $icon.removeAttr('data-readonly') } }) } }) } // 若已开启只读功能,对目录进行只读差异化标记 if (is_can_readonly) { markTree() } // 添加只读标记 function addReadonlyMark(path, $item) { var $icon = $($item.context.children[0]) var $parent = $item.parent('.tree-item') var type = $parent.data('type') var branch = $parent.data('branch') var readonly_item = $item.data('path') if (type !== 'file') { readonly_item += "/" } var confirmString = `

所属分支: ${htmlSafe(branch)}

\

文件路径: ${htmlSafe(readonly_item)}

\ 确认将分支上的这个路径标记为只读? ` gitGCModal.confirm(`标记只读`, confirmString, () => { $.ajax({ url: "/qiandao-today/templates/readonly", type: `POST`, data: { branch, path: readonly_item, }, success: function(res) { if (res.code !== 0) { gitGCModal.alert("提示", res.msg, () => { location.reload() }) } else { // 之前未开启只读功能 if (!is_can_readonly) { is_can_readonly = true return markTree() } $parent.addClass('readonly-item') var existReadonlyItems = gon.readonlyItems || [] existReadonlyItems.push(readonly_item) gon.readonlyItems = existReadonlyItems $icon.popup({ content: "只读", className : { popup: 'ui popup dark', }, position: 'top center' }) if (type === 'file') { $icon.removeClass('icon-file') $icon.addClass('icon-file-readonly readonly-icon') } else { $icon.removeClass('icon-folders') $icon.addClass('icon-folder-readonly readonly-icon') } $item.attr('data-readonly', '') } } }) }) } function removeFile(path, file_name) { var file_name = file_name || path var content = "确定要删除 %{name} 吗?".replace('%{name}', htmlSafe(file_name)); gitGCModal.confirm("删除", content, () => { $.ajax({ type: "DELETE", dataType: "JSON", url: "/qiandao-today/templates/delete/" + path, success: function(res) { if (res.status != 1) { var alert_message = res.message || "删除失败" return gitGCModal.alert("提示", alert_message) } if ($('.tree-item-file-name').length == 2) { window.location.href = '/' + gon.user_project; } else { window.location.href = window.location.pathname; } } }); }) } function rename(file_hex) { $(".row.tree-item").show(); $(".tree-item-rename").hide(); if($("."+file_hex).is(':hidden') == true) return; $("."+file_hex).hide(); var _t = $(".rename-"+file_hex); src = _t.attr('src_text') if(src==undefined){ newName = _t.find("[name='new_filename']").val() _t.attr('src_text',newName) }else{ _t.find("[name='new_filename']").val(_t.attr('src_text')) } $(".rename-"+file_hex).css("display",""); } setTimeout(function(){ $(".popup-save").click(function(){ form = $(this).parents(".ui.form") file_hex = $(this).parents(".row.tree-item").attr("file_hex"); new_filename = $.trim(form.find("[name='new_filename']").val()) overwrite = false $('.tree-item-file-name').find('a').each(function(a){ title = $(this).attr('title'); if(title != undefined){ if (title.split('/')[0].toLowerCase() == new_filename.toLowerCase()){ overwrite = true; } } }); if(overwrite){ form.find("[name='new_filename']").focus(); gitGCModal.alert("提示", "存在相同的文件名,请修改后重试") return; } $.ajax({ type: 'POST', url: "/qiandao-today/templates/rename/"+ form.attr('path').replace(/\+/g, '%20'), data: { new_filename: new_filename }, success: function(o){ if(o.status == 1){ href = window.location.href.split('?')[0] window.location.href = href; }else { var alert_message = o.message || "重命名失败" gitGCModal.alert("提示", alert_message) } }, dataType: "json" }); }) $(".popup-close").click(function(){ $(".row.tree-item").show(); $(".tree-item-rename").hide(); }) $('.tree-item-file-name').each(function(){ var $this = $(this); if (typeof $this.parent().attr('file_hex') === 'undefined') { return; } $this.contextmenu(function(event) { event.preventDefault(); createContextMenu($this, event.pageX, event.pageY); }) }) },1000) }) </script> <style> .readonly-item { background-color: #FBFBFB !important; } .readonly-path,.readonly-branch { display: block; white-space: normal; word-break: break-word; line-height: 1.8; margin-top: 1em; } .btn-readonly-is-uncharged-enterprise, .btn-readonly-is-open-svn { background-color: #f5f5f5 !important; color: #757575 !important; } </style>

点评 ( 0 )

正在加载...
<script> "use strict"; $(function(){ var page = 1 var commentsCount = 0 var $container = $('.tree-comments') var $comments = $container.find('.ui.comments') var $tipLoading = $container.find('.tip-loading') var $btnLoad = $container.find('.btn-load-more') var noteAnchor = new Gitee.NoteAnchor({ defaultAnchor: '#tree_comm_title' })
if (commentsCount < 1) {
  return;
}

var path;
if ($('#comment_path').val() === '') {
  path = '/';
} else {
  path = $('#comment_path').val();
}

function loadComments () {
  $btnLoad.hide();
  $tipLoading.show();
  $.ajax({
    url: '/qiandao-today/templates/comment_list',
    data: {
      page: page,
      path: path
    },
    success: function(data) {
      var err;
      try {
        $tipLoading.hide();
        $btnLoad.show();
        if (data.status !== 0) {
          $btnLoad.text('无更多评论')
          return $btnLoad.prop('disabled', true).addClass('disabled');
        } else {
          TreeComment.CommentListHandler(data);
          page += 1;
          if (data.comments_count < 10) {
            $('#ajax_add_note_id').val('');
            $btnLoad.text('无更多评论')
            $btnLoad.prop('disabled', true).addClass('disabled');
          }
          // osctree can not load script
          $comments.find('.timeago').timeago();
          $comments.find('.commenter-role-label').popup();
          noteAnchor.locate();
          toMathMlCode('', 'comments');
          return $('.markdown-body pre code').each(function(i, block) {
            return hljs.highlightBlock(block);
          });
        }
      } catch (error) {
        err = error;
        return console.log('loadComments error:' + err);
      }
    }
  });
};


function checkLoad () {
  var listTop, top;
  top = $(window).scrollTop();
  listTop = $container.offset().top;
  if (listTop >= top && listTop < top + $(window).height()) {
    $(window).off('scroll', checkLoad);
    return loadComments();
  }
};

$btnLoad.on('click', loadComments);
loadComments()

})
</script>

你可以在登录后,发表评论

举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
举报类型
请选择举报类型
举报原因 <textarea class='appeal-reason' id='appeal-comment-reason' name='msg' placeholder='请说明举报原因' rows='3'></textarea>
取消
发送
<script> var $complaintCommentsModal = $('#landing-comments-complaint-modal'), $complainCommentType = $complaintCommentsModal.find('#appeal-comments-types'), $complaintModalTip = $complaintCommentsModal.find('.callback-msg'), $complaintCommentsContent = $complaintCommentsModal.find('.appeal-reason'), $complaintCommentBtn = $complaintCommentsModal.find('#complaint-comment-confirm'), complaintSending = false, initedCommentsType = false;

function initCommentsTypeList() {
if (!initedCommentsType) {
$.ajax({
url: "/appeals/fetch_types",
method: 'get',
data: {'type': 'comment'},
success: function (data) {
var result = '';
for (var i = 0; i < data.length; i++) {
result = result + "

" + data[i].name + "
";
}
$complainCommentType.find('.menu').html(result);
}
});
$complainCommentType.dropdown({showOnFocus: false});
initedCommentsType = true;
}
}
$complainCommentType.on('click', function() {
$complaintCommentsModal.modal({
autofocus: false,
onApprove: function() {
return false;
},
onHidden: function() {
restoreCommonentDefault();
}
}).modal('show');
});

$complaintCommentsContent.on('change keyup', function(e) {
var content = $(this).val();
if ($.trim(content).length > 0 && $complainCommentType.dropdown('get value').length > 0 ) {
$complaintCommentBtn.removeClass('disabled');
return;
}
$complaintCommentBtn.addClass('disabled');
});

$complainCommentType.dropdown({
showOnFocus: false,
onChange: function(value, text, $selectedItem) {
if (value.length > 0 && $.trim($complaintCommentsContent.val()).length > 0) {
$complaintCommentBtn.removeClass('disabled');
return
}
$complaintCommentBtn.addClass('disabled');
}
});

function restoreCommonentDefault() {
$complainCommentType.dropdown('restore defaults');
$complaintCommentsContent.val('');
$('.exceeded-size-tip').text('').hide();
$complaintModalTip.text('').hide();
setTimeout(function() {
setCommentSendTip(false);
}, 1500);
}

$complaintCommentBtn.on('click',function(e){
var reason = $complaintCommentsContent.val();
var appealableId = $('#landing-comments-complaint-modal').attr('data-id');
if (complaintSending) {
return;
}
var appealType = $complainCommentType.dropdown('get value');
var formData = new FormData();
formData.append('appeal_type_id', appealType);
formData.append('reason', reason);
formData.append('appeal_type','Note');
formData.append('target_id',appealableId);
$.ajax({
type: 'POST',
url: "/appeals",
cache: false,
contentType: false,
processData: false,
data: formData,
beforeSend: function() {
setCommentSendStatus(true);
},
success: function(res) {
if (res.status == 200) {
setCommentSendTip(true);
setTimeout(function() {
$complaintCommentsModal.modal('hide');
restoreCommonentDefault();
}, 3000);
}
setCommentSendStatus(false);
},
error: function(err) {
showCommonTips(err.responseJSON.message, 'error');
setCommentSendStatus(false);
}
})
});

function showCommonTips(text, type) {
$complaintModalTip.text(text).show();
if (type == 'error') {
$complaintModalTip.removeClass('success').addClass('error');
} else {
$complaintModalTip.removeClass('error').addClass('success');
}
}

function setCommentSendStatus(value) {
complaintSending = value;
if (complaintSending) {
$complaintCommentBtn.addClass('loading');
$complaintCommentsContent.attr('readonly', true);
$complainCommentType.attr('readonly', true);
} else {
$complaintCommentBtn.removeClass('loading');
$complaintCommentsContent.attr('readonly', false);
$complainCommentType.attr('readonly', false);
}
}

function setCommentSendTip(value) {
if (value) {
$('.appeal-success-tip').removeClass('hide');
$('.appeal-tip').addClass('hide');
$('.appeal-form').addClass('hide');
$('#landing-comments-complaint-modal .actions').addClass('hide');
} else {
$('.appeal-success-tip').addClass('hide');
$('.appeal-tip').removeClass('hide');
$('.appeal-form').removeClass('hide');
$('#landing-comments-complaint-modal .actions').removeClass('hide');
}
}
</script>

<script> "use strict"; $('.js-check-star').checkbox('set unchecked') </script>
<script> (function() { $(function() { Tree.init(); return TreeCommentActions.init(); });

}).call(this);
</script>

<style> .team-member-checkbox .ui.radio.checkbox.checked label:after { top: 7px !important; } </style>
<script> (function() { var donateModal;
Gitee.modalHelper = new GiteeModalHelper({
  alertText: '提示',
  okText: '确定'
});

donateModal = new ProjectDonateModal({
  el: '#project-donate-modal',
  alipayUrl: '/qiandao-today/templates/alipay',
  wepayUrl: '/qiandao-today/templates/wepay',
  nameIsBlank: '名称不能为空',
  nameTooLong: '名称过长(最多为 36 个字符)',
  modalHelper: Gitee.modalHelper
});

if (null === 'true') {
  donateModal.show();
}

$('#project-donate').on('click', function() {
  return donateModal.show();
});

}).call(this);
</script>

<script> Tree.initHighlightTheme('white') </script>
1
https://gitee.com/qiandao-today/templates.git
[email protected]:qiandao-today/templates.git
qiandao-today
templates
templates
master
<script> $(function() { GitLab.GfmAutoComplete.dataSource = "/qiandao-today/templates/autocomplete_sources" GitLab.GfmAutoComplete.Emoji.assetBase = '/assets/emoji' GitLab.GfmAutoComplete.setup(); }); </script> <script> var officialEmail = $('#git-footer-email').text() $('#git-footer-main .icon-popup').popup({ position: 'bottom center' }) $('#git-footer-email').text(officialEmail.replace('#', '@')) window.gon.popover_card_locale = { follow:"关注", unfollow:"取消关注", gvp_title: "GVP - 码云最有价值开源项目", project: "项目", org: "开源组织", member: "", author: "作者", user_blocked: "该用户已被屏蔽或已注销", net_error: "网络错误", unknown_exception: "未知异常" } </script> <script src="https://assets.gitee.com/webpacks/popover_card-f8f6dbb28615dcff05a9.bundle.js"></script>
点此查找更多帮助
<script> var opt = { position: 'left center'}; var $helpSideToolbar = $('.button.toolbar-help'); var $toolbarRoll = $('.toolbar-roll');

$(function() {
if (false) {
$helpSideToolbar.popup(opt).popup({lastResort:'left center'})
} else {
$helpSideToolbar.popup({lastResort:'left center'}).popup('show', opt);
setTimeout(function() {
$helpSideToolbar.popup('hide', opt);
}, 3000);
}

if ($toolbarRoll.length) {
  setInterval(function() {
    var $nextActiveLink = $toolbarRoll.find('a.active').next();
    if (!$nextActiveLink.length) {
      $nextActiveLink = $toolbarRoll.find('a:first-child');
    }
    $nextActiveLink.attr('class', 'active').siblings().removeClass('active init');
  }, 5000);
}

})
</script>

分享到
评论
仓库举报
<script> $('.toolbar-appeal').popup({ position: 'left center' }); </script>
回到顶部
登录提示
该操作需登录码云帐号,请先登录后再操作。
立即登录
没有帐号,去注册
<script> var $elm = $('.toolbar-appeal');

$elm.on('click', function() {
var modals = $("#unlanding-complaint-modal.normal-modal");
if (modals.length > 1) {
modals.eq(0).modal('show');
} else {
modals.modal('show');
}
})
$("#unlanding-complaint-modal.normal-modal").modal({
onDeny: function() {
window.location.href = "/signup?from=";
},
onApprove: function() {
window.location.href = "/login?from=";
}
})
</script>

<style> .side-toolbar .bdsharebuttonbox a { font-size: 24px; color: white !important; opacity: 0.9; margin: 6px 6px 0px 6px; background-image: none; text-indent: 0; height: auto; width: auto; } </style> <script> (function() { $('#project-user-message').popup({ position: 'left center' }); }).call(this); </script> <script> Gitee.initSideToolbar({ hasComment: true, commentUrl: '/qiandao-today/templates#tree_comm_title' }) </script> <script> window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": document.title, "bdMini": "1", "bdMiniList": ["bdxc","tqf","douban","bdhome","sqq","thx","ibaidu","meilishuo","mogujie","diandian","huaban","duitang","hx","fx","youdao","sdo","qingbiji","people","xinhua","mail","isohu","yaolan","wealink","ty","iguba","fbook","twi","linkedin","h163","evernotecn","copy","print"], "bdPic": "", "bdStyle": "1", "bdSize": "32" }, "share": {} } </script> <script src="/bd_share/static/api/js/share.js"></script> <style> .gitee-stars-main-widget { display: none; position: fixed; left: 0; bottom: 0; z-index: 106; } .gitee-stars-main-widget .close-icon { position: absolute; top: 5px; cursor: pointer; } .gitee-stars-main-widget .people-image { width: 200px; padding: 0 10px; } .gitee-stars-main-widget.pendan-widget .close-icon { right: 20px; } .gitee-stars-main-widget.gitee-stars-widget .close-icon { left: 20px; } </style> <script> $(function () { var $giteeStarsWidget = $('.gitee-stars-main-widget') var cookieKey = "visit-gitee--2020-09-14 13:15:12 +0800"
if ($.cookie(cookieKey) == 1) {
  $giteeStarsWidget.hide()
} else {
  $giteeStarsWidget.show()
}

$giteeStarsWidget.on('click', '.close-icon', function (e) {
  e.preventDefault()
  $.cookie(cookieKey, 1, {path: '/', expires: 60})
  $giteeStarsWidget.hide()
})

})
</script>

<script> (function() { this.__gac = { domain: 'www.oschina.net' }; }).call(this); </script> <script defer src='//www.oschina.net/public/javascripts/cjl/ga.js?t=20160926' type='text/javascript'></script>

from qd.

AragonSnow avatar AragonSnow commented on August 16, 2024

@zasl
coolsnowwolf/lede#1760
参考这个最下面的试试,我没有你所说的设备,网络问题我无法帮你解决

from qd.

zasl avatar zasl commented on August 16, 2024

@zasl
coolsnowwolf/lede#1760
参考这个最下面的试试,我没有你所说的设备,网络问题我无法帮你解决

谢谢您
但是按照那个方法没有解决。

from qd.

zasl avatar zasl commented on August 16, 2024

解决了解决了,谢谢您,按照那个方法解决了,我接受转发的选项选错了。

from qd.

dz515704201 avatar dz515704201 commented on August 16, 2024

解决了解决了,谢谢您,按照那个方法解决了,我接受转发的选项选错了。

我也遇到了同样的问题。点击公共模板就弹500。N1的docker环境,想详细了解你是怎么解决的,我是个小白

from qd.

youzhadanke avatar youzhadanke commented on August 16, 2024

求助 N1 armbian5.77+docker 签到6.24 下载安装还是好的, 今天重装了下, 安装签到就报错了,已经重装2遍了。
Traceback (most recent call last):
File "/usr/src/app/web/handlers/subscribe.py", line 66, in get self.db.pubtpl.add(har)
File "/usr/src/app/db/pubtpl.py", line 31, in add return self._insert(**insert)
File "/usr/src/app/db/basedb.py", line 102, in _insert dbcur = self._execute(sql_query, values.values())
File "/usr/src/app/db/basedb.py", line 40, in _execute dbcur.execute(sql_query, values)
OperationalError: table pubtpl has no column named commenturl
只要一打开公共模板就报这个错。

from qd.

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.