08-27-周三_17-09-29

This commit is contained in:
2025-08-27 17:10:05 +08:00
commit 86df397d8f
12735 changed files with 1145479 additions and 0 deletions

9
node_modules/gitbook-plugin-pageview-count/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,9 @@
MIT License
Copyright (c) Sindre Sorhus <dongyajie@ke.com> (ke.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

26
node_modules/gitbook-plugin-pageview-count/README.md generated vendored Normal file
View File

@@ -0,0 +1,26 @@
# GitBook Page View Count
[![Build Status](https://travis-ci.org/todvora/gitbook-plugin-pageview-count.svg?branch=master)](https://travis-ci.org/todvora/gitbook-plugin-image-captions)
[![Dependencies Status](https://david-dm.org/todvora/gitbook-plugin-pageview-count/status.svg)](https://david-dm.org/todvora/gitbook-plugin-image-captions/)
[![DevDependencies Status](https://david-dm.org/todvora/gitbook-plugin-pageview-count/dev-status.svg)](https://david-dm.org/todvora/gitbook-plugin-image-captions/#info=devDependencies)
[![npm version](https://badge.fury.io/js/gitbook-plugin-pageview-count.svg)](https://badge.fury.io/js/gitbook-plugin-image-captions)
文档页面阅读数插件
## Installation
In your book.json add the plugin:
```json
{
"plugins": [
"pageview-count"
]
}
```
### Changes
#### 1.0.0
- 初始化系统

View File

@@ -0,0 +1,8 @@
.page-view-wrapper .btn{
display: inline-block;
}
.page-view-counter{
margin-left: -14px;
font-size: 15px;
display:inline-block;
}

View File

@@ -0,0 +1,45 @@
var gitbook = window.gitbook;
/*
<!-- Start of CuterCounter Code -->
<a href="http://www.cutercounter.com/" target="_blank"><img src="http://www.cutercounter.com/hit.php?id=gmvufxqck&nd=1&style=116" border="0" alt="visitor counter"></a>
<!-- End of CuterCounter Code -->
*/
var iconSVg = '<svg t="1543310294340" \
class="icon" style="" viewBox="0 0 1024 1024" version="1.1" \
xmlns="http://www.w3.org/2000/svg" p-id="1104" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14"><defs><style type="text/css"></style></defs>\
<path d="M512 416a96 96 0 1 0 0 192 96 96 0 0 0 0-192z m511.952 102.064c-0.016-0.448-0.064-0.864-0.096-1.296a8.16 8.16 0 0 0-0.08-0.656c0-0.32-0.064-0.624-0.128-0.928-0.032-0.368-0.064-0.736-0.128-1.088-0.032-0.048-0.032-0.096-0.032-0.144a39.488 39.488 0 0 0-10.704-21.536c-32.672-39.616-71.536-74.88-111.04-107.072-85.088-69.392-182.432-127.424-289.856-150.8-62.112-13.504-124.576-14.064-187.008-2.64-56.784 10.384-111.504 32-162.72 58.784-80.176 41.92-153.392 99.696-217.184 164.48-11.808 11.984-23.552 24.224-34.288 37.248-14.288 17.328-14.288 37.872 0 55.216 32.672 39.616 71.52 74.848 111.04 107.056 85.12 69.392 182.448 127.408 289.888 150.784 62.096 13.504 124.608 14.096 187.008 2.656 56.768-10.4 111.488-32 162.736-58.768 80.176-41.936 153.376-99.696 217.184-164.48 11.792-12 23.536-24.224 34.288-37.248 5.712-5.872 9.456-13.44 10.704-21.568l0.032-0.128a12.592 12.592 0 0 0 0.128-1.088c0.064-0.304 0.096-0.624 0.128-0.928l0.08-0.656 0.096-1.28c0.032-0.656 0.048-1.296 0.048-1.952l-0.096-1.968zM512 704c-106.032 0-192-85.952-192-192s85.952-192 192-192 192 85.968 192 192c0 106.048-85.968 192-192 192z"\
fill="#CCC" p-id="1105"></path></svg>'
function requestCount(targetUrl) {
return $.ajax('https://hitcounter.pythonanywhere.com/count',{
data:{url:encodeURIComponent(targetUrl)},
})
}
require(["gitbook", "jQuery"], function (gitbook, $) {
function resetViewCount() {
var bookHeader = $('.book-header')
var lastChild = bookHeader.children().last()
var renderWrapper = $('<div class="page-view-wrapper dropdown pull-left">\
<span class="btn toggle-dropdown">'+ iconSVg + '</span>\
<span class="page-view-counter" title="阅读数">-</span>\
</div>')
if(lastChild.length){
renderWrapper.insertBefore(lastChild)
}else{
bookHeader.append(renderWrapper)
}
requestCount(location.href).then(function(data){
renderWrapper.find('.page-view-counter').html(data)
})
}
gitbook.events.bind("page.change", resetViewCount)
});

11
node_modules/gitbook-plugin-pageview-count/index.js generated vendored Normal file
View File

@@ -0,0 +1,11 @@
module.exports = {
website: {
assets: './assets',
js: [
'plugin.js'
],
css: [
'plugin.css'
]
}
};

View File

@@ -0,0 +1,59 @@
{
"_from": "gitbook-plugin-pageview-count",
"_id": "gitbook-plugin-pageview-count@1.0.1",
"_inBundle": false,
"_integrity": "sha512-5lb2tSTTxvt7Su8dhPlKCO8sYwIA15MJPmlVTa/WcH3SEphlGLb4Z0DzvfHxfzn33ilbJTljwk28yOzw/tpFhA==",
"_location": "/gitbook-plugin-pageview-count",
"_phantomChildren": {},
"_requested": {
"escapedName": "gitbook-plugin-pageview-count",
"fetchSpec": "latest",
"name": "gitbook-plugin-pageview-count",
"raw": "gitbook-plugin-pageview-count",
"rawSpec": "",
"registry": true,
"saveSpec": null,
"type": "tag"
},
"_requiredBy": [
"#USER"
],
"_resolved": "https://registry.npmjs.org/gitbook-plugin-pageview-count/-/gitbook-plugin-pageview-count-1.0.1.tgz",
"_shasum": "dfc5b4bb9290f503005f28559d0711425d6f94c1",
"_spec": "gitbook-plugin-pageview-count",
"_where": "F:\\tmp\\gitbook",
"author": {
"name": "dongyajie@ke.com"
},
"bugs": {
"url": "https://github.com/tinys/gitbook-plugin-pageview-count/issues"
},
"bundleDependencies": false,
"dependencies": {},
"deprecated": false,
"description": "gitbook page view count plugin",
"devDependencies": {},
"engines": {
"gitbook": ">=3.1.1"
},
"homepage": "https://github.com/tinys/gitbook-plugin-pageview-count#readme",
"keywords": [
"gitbook",
"plugin",
"pageview"
],
"license": "MIT",
"main": "index.js",
"name": "gitbook-plugin-pageview-count",
"optionalDependencies": {},
"readme": "# GitBook Page View Count\n\n[![Build Status](https://travis-ci.org/todvora/gitbook-plugin-pageview-count.svg?branch=master)](https://travis-ci.org/todvora/gitbook-plugin-image-captions)\n[![Dependencies Status](https://david-dm.org/todvora/gitbook-plugin-pageview-count/status.svg)](https://david-dm.org/todvora/gitbook-plugin-image-captions/)\n[![DevDependencies Status](https://david-dm.org/todvora/gitbook-plugin-pageview-count/dev-status.svg)](https://david-dm.org/todvora/gitbook-plugin-image-captions/#info=devDependencies)\n[![npm version](https://badge.fury.io/js/gitbook-plugin-pageview-count.svg)](https://badge.fury.io/js/gitbook-plugin-image-captions)\n\n\n文档页面阅读数插件\n\n\n## Installation\nIn your book.json add the plugin:\n```json\n{\n \"plugins\": [\n \"pageview-count\"\n ]\n}\n```\n\n### Changes\n\n\n#### 1.0.0\n- 初始化系统",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/tinys/gitbook-plugin-pageview-count.git"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"version": "1.0.1"
}