Skip to content

Commit

Permalink
Site updated: 2023-10-07 15:15:46
Browse files Browse the repository at this point in the history
  • Loading branch information
gglss committed Oct 7, 2023
1 parent 1d80f65 commit a111cb6
Show file tree
Hide file tree
Showing 191 changed files with 43,975 additions and 0 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

181 changes: 181 additions & 0 deletions 2022/08/26/docker/2022-08-25-_dockerfile/index.html

Large diffs are not rendered by default.

201 changes: 201 additions & 0 deletions 2022/08/26/docker/2022-08-25-_mysql主从复制docker版/index.html

Large diffs are not rendered by default.

204 changes: 204 additions & 0 deletions 2022/08/26/docker/2022-08-25-_主从容错切换迁移/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

198 changes: 198 additions & 0 deletions 2022/08/26/docker/2022-08-25-docker 镜像(一)/index.html

Large diffs are not rendered by default.

188 changes: 188 additions & 0 deletions 2022/08/26/docker/2022-08-25-docker 镜像(二)/index.html

Large diffs are not rendered by default.

220 changes: 220 additions & 0 deletions 2022/08/26/docker/2022-08-25-redis3主3从扩容/index.html

Large diffs are not rendered by default.

213 changes: 213 additions & 0 deletions 2022/08/26/docker/2022-08-25-redis的4主4从缩容/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

197 changes: 197 additions & 0 deletions 2022/08/26/docker/2022-08-25-容器数据卷/index.html

Large diffs are not rendered by default.

199 changes: 199 additions & 0 deletions 2022/08/26/docker/2022-08-25-容器(一)/index.html

Large diffs are not rendered by default.

214 changes: 214 additions & 0 deletions 2022/08/26/docker/2022-08-25-容器(三)(重要)/index.html

Large diffs are not rendered by default.

190 changes: 190 additions & 0 deletions 2022/08/26/docker/2022-08-25-容器(二)/index.html

Large diffs are not rendered by default.

221 changes: 221 additions & 0 deletions 2022/08/26/docker/2022-08-25-本地镜像发布到私有库/index.html

Large diffs are not rendered by default.

195 changes: 195 additions & 0 deletions 2022/08/26/docker/2022-08-25-本地镜像发布到阿里云/index.html

Large diffs are not rendered by default.

191 changes: 191 additions & 0 deletions 2022/08/26/docker/2022-08-25-镜像/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

225 changes: 225 additions & 0 deletions 2022/08/26/jmeter/2022-10-30-第一次使用jmeter压测/index.html

Large diffs are not rendered by default.

187 changes: 187 additions & 0 deletions 2022/08/26/other/2020-08-26-Yaml使用/index.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions 2022/08/26/other/2022-10-22-性能测试主要关注点/index.html

Large diffs are not rendered by default.

177 changes: 177 additions & 0 deletions 2022/08/30/shell/2022-08-29-shell脚本初探/index.html

Large diffs are not rendered by default.

194 changes: 194 additions & 0 deletions 2022/08/30/shell/2022-08-30-shell变量/index.html

Large diffs are not rendered by default.

179 changes: 179 additions & 0 deletions 2022/08/30/shell/2022-08-30-shell脚本入门/index.html

Large diffs are not rendered by default.

193 changes: 193 additions & 0 deletions 2022/08/31/python/2022-09-01-pyyaml获取yaml数据/index.html

Large diffs are not rendered by default.

180 changes: 180 additions & 0 deletions 2022/08/31/shell/2022-08-31-shell函数/index.html

Large diffs are not rendered by default.

264 changes: 264 additions & 0 deletions 2022/08/31/shell/2022-08-31-shell工具(一)/index.html

Large diffs are not rendered by default.

182 changes: 182 additions & 0 deletions 2022/08/31/shell/2022-08-31-shell条件判断/index.html

Large diffs are not rendered by default.

198 changes: 198 additions & 0 deletions 2022/08/31/shell/2022-08-31-shell流程控制/index.html

Large diffs are not rendered by default.

180 changes: 180 additions & 0 deletions 2022/08/31/shell/2022-08-31-shell运算符/index.html

Large diffs are not rendered by default.

272 changes: 272 additions & 0 deletions 2022/08/31/shell/2022-09-01-shell工具(二)/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

193 changes: 193 additions & 0 deletions 2022/09/02/python/2022-09-02-解析Excel用于数据驱动/index.html

Large diffs are not rendered by default.

221 changes: 221 additions & 0 deletions 2022/09/02/python/2022-09-21-python解析ini文件/index.html

Large diffs are not rendered by default.

237 changes: 237 additions & 0 deletions 2022/09/05/other/自动化基础之Xpath定位/index.html

Large diffs are not rendered by default.

204 changes: 204 additions & 0 deletions 2022/09/21/java/2022-09-21-使用Java解析Properties文件/index.html

Large diffs are not rendered by default.

229 changes: 229 additions & 0 deletions 2022/09/21/java/2022-12-06-方法和函数/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

468 changes: 468 additions & 0 deletions 2022/10/20/project/2022-11-24-搭建性能监控平台/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

176 changes: 176 additions & 0 deletions 2022/10/21/springboot/2022-10-21-接口开发环境部署/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

301 changes: 301 additions & 0 deletions 2022/10/22/other/2022-10-22-SQL语言的基本操作/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

217 changes: 217 additions & 0 deletions 2022/11/16/jmeter/2022-11-16-Jmeter之断言/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

174 changes: 174 additions & 0 deletions 2022/11/19/jmeter/2022-11-14-jmeter自动化压力测试/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

173 changes: 173 additions & 0 deletions 2022/11/28/moko/2022-11-28-moko/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

172 changes: 172 additions & 0 deletions 2022/11/29/jmeter/2022-11-29-Constant Timer定时器/index.html

Large diffs are not rendered by default.

174 changes: 174 additions & 0 deletions 2022/11/29/jmeter/2022-11-29-Loop Controller控制器/index.html

Large diffs are not rendered by default.

169 changes: 169 additions & 0 deletions 2022/11/29/jmeter/2022-11-29-Modeule Controller/index.html

Large diffs are not rendered by default.

176 changes: 176 additions & 0 deletions 2022/11/29/jmeter/2022-11-29-Random Controller控制器/index.html

Large diffs are not rendered by default.

170 changes: 170 additions & 0 deletions 2022/11/29/jmeter/2022-11-29-Simple Controller控制器/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

169 changes: 169 additions & 0 deletions 2022/11/29/jmeter/2022-11-29-if Controller控制器/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

175 changes: 175 additions & 0 deletions 2022/11/30/jmeter/2022-11-30-Gaussian Random Timer定时器/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

189 changes: 189 additions & 0 deletions 2022/11/30/jmeter/2022-12-1-Groovy编写方法/index.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

195 changes: 195 additions & 0 deletions 2022/12/01/project/2022-12-1-搭建硬件性能监控平台/index.html

Large diffs are not rendered by default.

265 changes: 265 additions & 0 deletions 2022/12/07/java/2022-12-07-包装类/index.html

Large diffs are not rendered by default.

215 changes: 215 additions & 0 deletions 2022/12/07/java/2022-12-07-字符串/index.html

Large diffs are not rendered by default.

183 changes: 183 additions & 0 deletions 2022/12/07/java/2022-12-07-抽象类与接口/index.html

Large diffs are not rendered by default.

208 changes: 208 additions & 0 deletions 2022/12/07/java/2022-12-07-继承、重写与重载/index.html

Large diffs are not rendered by default.

169 changes: 169 additions & 0 deletions 2023/09/11/English/english-1/index.html

Large diffs are not rendered by default.

177 changes: 177 additions & 0 deletions 2023/09/11/目标&优化/2023目标/index.html

Large diffs are not rendered by default.

177 changes: 177 additions & 0 deletions 2023/10/07/hello-world/index.html

Large diffs are not rendered by default.

193 changes: 193 additions & 0 deletions about/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/08/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/08/page/2/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/08/page/3/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/08/page/4/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/09/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/10/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/11/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/11/page/2/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/11/page/3/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/12/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/page/2/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/page/3/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/page/4/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/page/5/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/page/6/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/page/7/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/page/8/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2022/page/9/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2023/09/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2023/10/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/2023/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/page/2/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/page/3/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/page/4/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/page/5/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/page/6/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/page/7/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/page/8/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions archives/page/9/index.html

Large diffs are not rendered by default.

173 changes: 173 additions & 0 deletions categories/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/学习日常/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/工具教程/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/工具教程/page/2/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/工具教程/page/3/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/生活日常/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/经验分享/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/经验分享/page/2/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/经验分享/page/3/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/经验分享/page/4/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/经验分享/page/5/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/经验分享/page/6/index.html

Large diffs are not rendered by default.

171 changes: 171 additions & 0 deletions categories/经验分享/page/7/index.html

Large diffs are not rendered by default.

6,172 changes: 6,172 additions & 0 deletions css/index.css

Large diffs are not rendered by default.

File renamed without changes.
Binary file added img/404.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/friend_404.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
374 changes: 374 additions & 0 deletions index.html

Large diffs are not rendered by default.

829 changes: 829 additions & 0 deletions js/main.js

Large diffs are not rendered by default.

177 changes: 177 additions & 0 deletions js/search/algolia.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
window.addEventListener('load', () => {
const $searchMask = document.getElementById('search-mask')
const $searchDialog = document.querySelector('#algolia-search .search-dialog')

const openSearch = () => {
const bodyStyle = document.body.style
bodyStyle.width = '100%'
bodyStyle.overflow = 'hidden'
btf.animateIn($searchMask, 'to_show 0.5s')
btf.animateIn($searchDialog, 'titleScale 0.5s')
setTimeout(() => { document.querySelector('#algolia-search .ais-SearchBox-input').focus() }, 100)

// shortcut: ESC
document.addEventListener('keydown', function f (event) {
if (event.code === 'Escape') {
closeSearch()
document.removeEventListener('keydown', f)
}
})

fixSafariHeight()
window.addEventListener('resize', fixSafariHeight)
}

const closeSearch = () => {
const bodyStyle = document.body.style
bodyStyle.width = ''
bodyStyle.overflow = ''
btf.animateOut($searchDialog, 'search_close .5s')
btf.animateOut($searchMask, 'to_hide 0.5s')
window.removeEventListener('resize', fixSafariHeight)
}

// fix safari
const fixSafariHeight = () => {
if (window.innerWidth < 768) {
$searchDialog.style.setProperty('--search-height', window.innerHeight + 'px')
}
}

const searchClickFn = () => {
document.querySelector('#search-button > .search').addEventListener('click', openSearch)
}

const searchFnOnce = () => {
$searchMask.addEventListener('click', closeSearch)
document.querySelector('#algolia-search .search-close-button').addEventListener('click', closeSearch)
}

const cutContent = content => {
if (content === '') return ''

const firstOccur = content.indexOf('<mark>')

let start = firstOccur - 30
let end = firstOccur + 120
let pre = ''
let post = ''

if (start <= 0) {
start = 0
end = 140
} else {
pre = '...'
}

if (end > content.length) {
end = content.length
} else {
post = '...'
}

const matchContent = pre + content.substring(start, end) + post
return matchContent
}

const algolia = GLOBAL_CONFIG.algolia
const isAlgoliaValid = algolia.appId && algolia.apiKey && algolia.indexName
if (!isAlgoliaValid) {
return console.error('Algolia setting is invalid!')
}

const search = instantsearch({
indexName: algolia.indexName,
/* global algoliasearch */
searchClient: algoliasearch(algolia.appId, algolia.apiKey),
searchFunction (helper) {
helper.state.query && helper.search()
}
})

const configure = instantsearch.widgets.configure({
hitsPerPage: 5
})

const searchBox = instantsearch.widgets.searchBox({
container: '#algolia-search-input',
showReset: false,
showSubmit: false,
placeholder: GLOBAL_CONFIG.algolia.languages.input_placeholder,
showLoadingIndicator: true
})

const hits = instantsearch.widgets.hits({
container: '#algolia-hits',
templates: {
item (data) {
const link = data.permalink ? data.permalink : (GLOBAL_CONFIG.root + data.path)
const result = data._highlightResult
const content = result.contentStripTruncate
? cutContent(result.contentStripTruncate.value)
: result.contentStrip
? cutContent(result.contentStrip.value)
: result.content
? cutContent(result.content.value)
: ''
return `
<a href="${link}" class="algolia-hit-item-link">
<span class="algolia-hits-item-title">${result.title.value || 'no-title'}</span>
<p class="algolia-hit-item-content">${content}</p>
</a>`
},
empty: function (data) {
return (
'<div id="algolia-hits-empty">' +
GLOBAL_CONFIG.algolia.languages.hits_empty.replace(/\$\{query}/, data.query) +
'</div>'
)
}
}
})

const stats = instantsearch.widgets.stats({
container: '#algolia-info > .algolia-stats',
templates: {
text: function (data) {
const stats = GLOBAL_CONFIG.algolia.languages.hits_stats
.replace(/\$\{hits}/, data.nbHits)
.replace(/\$\{time}/, data.processingTimeMS)
return (
`<hr>${stats}`
)
}
}
})

const powerBy = instantsearch.widgets.poweredBy({
container: '#algolia-info > .algolia-poweredBy'
})

const pagination = instantsearch.widgets.pagination({
container: '#algolia-pagination',
totalPages: 5,
templates: {
first: '<i class="fas fa-angle-double-left"></i>',
last: '<i class="fas fa-angle-double-right"></i>',
previous: '<i class="fas fa-angle-left"></i>',
next: '<i class="fas fa-angle-right"></i>'
}
})

search.addWidgets([configure, searchBox, hits, stats, powerBy, pagination]) // add the widgets to the instantsearch instance

search.start()

searchClickFn()
searchFnOnce()

window.addEventListener('pjax:complete', () => {
!btf.isHidden($searchMask) && closeSearch()
searchClickFn()
})

window.pjax && search.on('render', () => {
window.pjax.refresh(document.getElementById('algolia-hits'))
})
})
Loading

0 comments on commit a111cb6

Please sign in to comment.