From 71f816215a6a87f4fcd5d99ec0c5d38788a244e8 Mon Sep 17 00:00:00 2001 From: nicksxs Date: Sun, 19 Apr 2020 17:30:02 +0800 Subject: [PATCH] Site updated: 2020-04-19 17:30:01 --- 2014/12/24/MFC 模态对话框/index.html | 6 +- 2014/12/30/Clone-Graph-Part-I/index.html | 14 +- 2015/01/04/Path-Sum/index.html | 6 +- 2015/01/14/Two-Sum/index.html | 4 +- .../index.html | 8 +- 2015/03/11/Number-Of-1-Bits/index.html | 6 +- 2015/03/11/Reverse-Bits/index.html | 6 +- 2015/03/13/Reverse-Integer/index.html | 6 +- 2015/04/14/Add-Two-Number/index.html | 4 +- 2015/04/15/Leetcode-No-3/index.html | 4 +- 2015/06/22/invert-binary-tree/index.html | 6 +- 2016/08/14/34-Search-for-a-Range/index.html | 8 +- 2016/09/29/binary-watch/index.html | 4 +- .../minimum-size-subarray-sum-209/index.html | 6 +- 2016/10/12/summary-ranges-228/index.html | 6 +- 2019/12/07/JVM-G1-Part-1/index.html | 4 +- 2019/12/18/1Q84读后感/index.html | 4 +- 2019/12/26/redis数据结构介绍/index.html | 14 +- .../04/redis数据结构介绍二/index.html | 16 +- .../10/redis数据结构介绍三/index.html | 16 +- .../19/redis数据结构介绍四/index.html | 14 +- .../20/redis数据结构介绍五/index.html | 10 +- .../22/redis数据结构介绍六/index.html | 14 +- 2020/02/09/G1收集器概述/index.html | 4 +- 2020/04/05/Comparator使用小记/index.html | 4 +- 2020/04/12/redis系列介绍七/index.html | 14 +- 2020/04/18/redis系列介绍八/index.html | 37 +- atom.xml | 60 ++-- baidusitemap.xml | 30 +- categories/Java/index.html | 201 +++++------ categories/docker/index.html | 172 +++++---- css/main.css | 2 +- index.html | 35 +- leancloud.memo | 1 + leancloud_counter_security_urls.json | 2 +- page/2/index.html | 56 +-- page/3/index.html | 4 +- sitemap.xml | 10 +- tags/c/index.html | 329 +++++++++--------- tags/docker/index.html | 172 +++++---- tags/java/index.html | 165 ++++----- 41 files changed, 763 insertions(+), 721 deletions(-) diff --git a/2014/12/24/MFC 模态对话框/index.html b/2014/12/24/MFC 模态对话框/index.html index 3cb589a71b..b12af3021f 100644 --- a/2014/12/24/MFC 模态对话框/index.html +++ b/2014/12/24/MFC 模态对话框/index.html @@ -294,16 +294,16 @@ diff --git a/2014/12/30/Clone-Graph-Part-I/index.html b/2014/12/30/Clone-Graph-Part-I/index.html index 55889ab476..a9af4b79af 100644 --- a/2014/12/30/Clone-Graph-Part-I/index.html +++ b/2014/12/30/Clone-Graph-Part-I/index.html @@ -35,8 +35,8 @@ - + @@ -293,19 +293,19 @@ @@ -349,8 +349,8 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Category: Docker | Nicksxs's Blog + Category: docker | Nicksxs's Blog + + + + + + +id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`; + + if (api_server) { + fetchData(api_server); + } else { + fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id) + .then(response => response.json()) + .then(({ api_server }) => { + fetchData('https://' + api_server); + }); + } + })(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Tag: c++ | Nicksxs's Blog + Tag: C++ | Nicksxs's Blog + + + + + + +ecurity` option to `false`.'); + + } + }) + .catch(error => { + console.error('LeanCloud Counter Error', error); + }); + } + + function showTime(Counter) { + var visitors = document.querySelectorAll('.leancloud_visitors'); + var entries = [...visitors].map(element => { + return decodeURI(element.id); + }); + + Counter('get', '/classes/Counter?where=' + encodeURIComponent(JSON.stringify({ url: { '$in': entries } }))) + .then(response => response.json()) + .then(({ results }) => { + for (let url of entries) { + let target = results.find(item => item.url === url); + leancloudSelector(url).innerText = target ? target.time : 0; + } + }) + .catch(error => { + console.error('LeanCloud Counter Error', error); + }); + } + + let { app_id, app_key, server_url } = {"enable":true,"app_id":"ysza182Vghlqjdt7QiwGLLJy-gzGzoHsz","app_key":"s9GDqbn7gnGGkusf66YRVccw","server_url":"https://leancloud.cn","security":true}; + function fetchData(api_server) { + var Counter = (method, url, data) => { + return fetch(`${api_server}/1.1${url}`, { + method, + headers: { + 'X-LC-Id' : app_id, + 'X-LC-Key' : app_key, + 'Content-Type': 'application/json', + }, + body: JSON.stringify(data) + }); + }; + if (CONFIG.page.isPost) { + if (CONFIG.hostname !== location.hostname) return; + addCount(Counter); + } else if (document.querySelectorAll('.post-title-link').length >= 1) { + showTime(Counter); + } + } + + let api_server = app_id.slice(-9) !== '-MdYXbMMI' ? server_url : `https://${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`; + + if (api_server) { + fetchData(api_server); + } else { + fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id) + .then(response => response.json()) + .then(({ api_server }) => { + fetchData('https://' + api_server); + }); + } + })(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Tag: Docker | Nicksxs's Blog + Tag: docker | Nicksxs's Blog + + + + + + +${app_id.slice(0, 8).toLowerCase()}.api.lncldglobal.com`; + + if (api_server) { + fetchData(api_server); + } else { + fetch('https://app-router.leancloud.cn/2/route?appId=' + app_id) + .then(response => response.json()) + .then(({ api_server }) => { + fetchData('https://' + api_server); + }); + } + })(); + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Tag: java | Nicksxs's Blog + Tag: Java | Nicksxs's Blog - - - - - - -tchData('https://' + api_server); - }); - } - })(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -