182 Commits
Author SHA1 Message Date
sookie 1df613493b Merge pull request 'CSS计数器' (#13) from master into publish
Reviewed-on: #13
2022-12-30 08:03:05 +00:00
sookie 643ee785d9 CSS计数器 2022-12-30 16:00:19 +08:00
sookie 66c864c9e8 Merge pull request '发布删掉Valine' (#12) from master into publish
Reviewed-on: #12
2022-12-27 06:10:31 +00:00
sookie e2a739fd0b Valine废了 删掉评论功能 2022-12-27 14:07:10 +08:00
sookieandGitHub 60a02d6878 Merge pull request #53 from colorfulsweet/dependabot/npm_and_yarn/themes/yilia/loader-utils-1.4.2
Bump loader-utils from 1.4.0 to 1.4.2 in /themes/yilia
2022-11-18 15:56:31 +08:00
dependabot[bot]andGitHub 13af7b9bc2 Bump loader-utils from 1.4.0 to 1.4.2 in /themes/yilia
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 1.4.0 to 1.4.2.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v1.4.2/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v1.4.0...v1.4.2)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-17 04:50:10 +00:00
sookie 708d817f67 Merge pull request '博客内容发布' (#11) from master into publish
Reviewed-on: #11
2022-11-03 02:46:53 +00:00
sookie 87dc3221cf 更新github地址 2022-11-03 10:33:10 +08:00
zjl e4190e2e91 Merge branch 'master' 2022-10-21 16:09:59 +08:00
sookieandGitHub 062f292296 Merge pull request #51 from sookie2010/dependabot/npm_and_yarn/themes/yilia/minimist-1.2.7
Bump minimist from 1.2.5 to 1.2.7 in /themes/yilia
2022-10-21 16:05:06 +08:00
dependabot[bot]andGitHub cec30cc040 Bump minimist from 1.2.5 to 1.2.7 in /themes/yilia
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.7.
- [Release notes](https://github.com/minimistjs/minimist/releases)
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.7)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-10-21 08:03:40 +00:00
sookieandGitHub 3e2116803c Merge pull request #50 from sookie2010/dependabot/npm_and_yarn/moment-timezone-0.5.37
Bump moment-timezone from 0.5.23 to 0.5.37
2022-10-21 16:03:25 +08:00
sookieandGitHub 7e27b2320c Merge pull request #49 from sookie2010/dependabot/npm_and_yarn/themes/yilia/terser-5.14.2
Bump terser from 5.12.0 to 5.14.2 in /themes/yilia
2022-10-21 16:03:08 +08:00
dependabot[bot]andGitHub 1c3ad4d69e Bump moment-timezone from 0.5.23 to 0.5.37
Bumps [moment-timezone](https://github.com/moment/moment-timezone) from 0.5.23 to 0.5.37.
- [Release notes](https://github.com/moment/moment-timezone/releases)
- [Changelog](https://github.com/moment/moment-timezone/blob/develop/changelog.md)
- [Commits](https://github.com/moment/moment-timezone/compare/0.5.23...0.5.37)

---
updated-dependencies:
- dependency-name: moment-timezone
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-30 22:33:13 +00:00
dependabot[bot]andGitHub 3f0a3c2fcc Bump terser from 5.12.0 to 5.14.2 in /themes/yilia
Bumps [terser](https://github.com/terser/terser) from 5.12.0 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 22:09:28 +00:00
sookie 66950e5aad 自定义几何体 2022-05-03 11:58:10 +08:00
sookie 26d89e7ed1 Three.js初见(2) 2022-04-10 23:53:45 +08:00
sookie f5d84965b6 文章路径修改 2022-04-10 22:05:57 +08:00
sookie 81fc1c2c40 解决图标乱码 2022-04-04 00:11:30 +08:00
sookie 5ae33946d2 渐变背景色 2022-04-03 23:43:14 +08:00
sookie b3b2d16ca5 Three.js初见(1) 2022-04-03 23:39:22 +08:00
sookie 3f43208997 发布添加copyImage步骤 2022-04-03 20:05:32 +08:00
zjl b48ba9dd97 left-col 2022-03-14 20:02:00 +08:00
zjl 780298648a 深色模式侧边栏 2022-03-14 19:58:57 +08:00
zjl 17dcfc223a 左侧栏样式修改 2022-03-14 19:33:05 +08:00
zjl b9751f6d6f filter.js 2022-03-14 16:26:12 +08:00
zjl ad97d0ee80 script setup 2022-03-14 15:48:14 +08:00
sookie cd3b2634a4 Vue3新特性总结 2022-03-14 00:34:03 +08:00
sookie f4bd1a9bd4 Vue3新特性总结 2022-03-13 15:44:35 +08:00
sookie 05a3b66599 node-sass换为dart-sass 2022-03-13 00:35:25 +08:00
zjl 185a812d92 Merge branch 'master' of github.com:sookie2010/blog-web 2022-03-09 13:52:17 +08:00
sookieandGitHub 57cc1f64f5 Merge pull request #46 from sookie2010/dependabot/npm_and_yarn/copy-props-2.0.5
Bump copy-props from 2.0.4 to 2.0.5
2022-03-09 13:51:09 +08:00
sookieandGitHub 41e7f1ea7c Merge pull request #41 from sookie2010/dependabot/npm_and_yarn/tar-4.4.19
Bump tar from 4.4.8 to 4.4.19
2022-03-09 13:50:58 +08:00
sookieandGitHub 8f2afff210 Merge pull request #39 from sookie2010/dependabot/npm_and_yarn/path-parse-1.0.7
Bump path-parse from 1.0.6 to 1.0.7
2022-03-09 13:50:43 +08:00
sookieandGitHub 29a1c15418 Merge pull request #34 from sookie2010/dependabot/npm_and_yarn/hosted-git-info-2.8.9
Bump hosted-git-info from 2.7.1 to 2.8.9
2022-03-09 13:50:33 +08:00
sookieandGitHub bf6fb37dc5 Merge pull request #45 from sookie2010/dependabot/npm_and_yarn/prismjs-1.27.0
Bump prismjs from 1.23.0 to 1.27.0
2022-03-09 13:50:18 +08:00
zjl 6ddd284d96 gulpfile 2022-03-08 15:07:12 +08:00
dependabot[bot]andGitHub 59024a87f4 Bump tar from 4.4.8 to 4.4.19
Bumps [tar](https://github.com/npm/node-tar) from 4.4.8 to 4.4.19.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Changelog](https://github.com/npm/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/npm/node-tar/compare/v4.4.8...v4.4.19)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 05:55:21 +00:00
dependabot[bot]andGitHub 70627d22ee Bump hosted-git-info from 2.7.1 to 2.8.9
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.7.1 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.7.1...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 05:55:15 +00:00
dependabot[bot]andGitHub 0866b382dc Bump prismjs from 1.23.0 to 1.27.0
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.23.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.23.0...v1.27.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 05:55:15 +00:00
dependabot[bot]andGitHub b40367c6f0 Bump path-parse from 1.0.6 to 1.0.7
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-08 05:54:53 +00:00
zjl 802bec24b5 升级hexo相关依赖包 2022-03-08 13:53:54 +08:00
dependabot[bot]andGitHub 405be8b671 Bump copy-props from 2.0.4 to 2.0.5
Bumps [copy-props](https://github.com/gulpjs/copy-props) from 2.0.4 to 2.0.5.
- [Release notes](https://github.com/gulpjs/copy-props/releases)
- [Changelog](https://github.com/gulpjs/copy-props/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/copy-props/compare/2.0.4...2.0.5)

---
updated-dependencies:
- dependency-name: copy-props
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 11:52:02 +00:00
zjl 4d01aa2f10 修改vue引入方式 2022-03-07 16:38:21 +08:00
zjl d75c41ebae 修改vue引入方式 2022-03-07 16:30:07 +08:00
zjl 30904edfa1 webpack 打包配置修改 2022-03-07 16:11:31 +08:00
zjl 913f9f6c62 主题webpack升级到5 2022-03-07 15:17:11 +08:00
sookie ab7b714461 修改接口路径 2022-02-02 03:18:22 +08:00
zjl 061fde4eaf ts实用工具 2021-07-07 18:59:42 +08:00
zjl 367b76c246 原生CSS变量 补充 2021-04-26 14:45:26 +08:00
sookieandGitHub 41e0e8317c Merge pull request #30 from sookie2010/dependabot/npm_and_yarn/themes/yilia/dot-prop-4.2.1
Bump dot-prop from 4.2.0 to 4.2.1 in /themes/yilia
2021-04-20 09:52:39 +08:00
sookieandGitHub d94afaea47 Merge pull request #31 from sookie2010/dependabot/npm_and_yarn/dot-prop-4.2.1
Bump dot-prop from 4.2.0 to 4.2.1
2021-04-20 09:52:24 +08:00
sookieandGitHub 4a0528c9b6 Merge pull request #28 from sookie2010/dependabot/npm_and_yarn/yargs-parser-5.0.1
Bump yargs-parser from 5.0.0 to 5.0.1
2021-04-20 09:52:12 +08:00
dependabot[bot]andGitHub be7dc86d7e Bump yargs-parser from 5.0.0 to 5.0.1
Bumps [yargs-parser](https://github.com/yargs/yargs-parser) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/yargs/yargs-parser/releases)
- [Changelog](https://github.com/yargs/yargs-parser/blob/v5.0.1/CHANGELOG.md)
- [Commits](https://github.com/yargs/yargs-parser/compare/v5.0.0...v5.0.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 01:51:31 +00:00
sookieandGitHub 4e2f2d2484 Merge pull request #26 from sookie2010/dependabot/npm_and_yarn/themes/yilia/lodash-4.17.21
Bump lodash from 4.17.14 to 4.17.21 in /themes/yilia
2021-04-20 09:51:19 +08:00
sookieandGitHub 1fc759392d Merge pull request #25 from sookie2010/dependabot/npm_and_yarn/lodash-4.17.21
Bump lodash from 4.17.11 to 4.17.21
2021-04-20 09:50:56 +08:00
dependabot[bot]andGitHub 668d2a7f01 Bump lodash from 4.17.14 to 4.17.21 in /themes/yilia
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.14 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.14...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 01:50:47 +00:00
dependabot[bot]andGitHub 96ce935dcd Bump lodash from 4.17.11 to 4.17.21
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.21)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 01:50:47 +00:00
dependabot[bot]andGitHub 64757b48a0 Bump dot-prop from 4.2.0 to 4.2.1
Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/sindresorhus/dot-prop/releases)
- [Commits](https://github.com/sindresorhus/dot-prop/compare/v4.2.0...v4.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 01:50:40 +00:00
sookieandGitHub 425097a087 Merge pull request #23 from sookie2010/dependabot/npm_and_yarn/themes/yilia/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8 in /themes/yilia
2021-04-20 09:50:40 +08:00
dependabot[bot]andGitHub 7750d81338 Bump dot-prop from 4.2.0 to 4.2.1 in /themes/yilia
Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/sindresorhus/dot-prop/releases)
- [Commits](https://github.com/sindresorhus/dot-prop/compare/v4.2.0...v4.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 01:50:31 +00:00
sookieandGitHub c96a169b7c Merge pull request #22 from sookie2010/dependabot/npm_and_yarn/ini-1.3.8
Bump ini from 1.3.5 to 1.3.8
2021-04-20 09:50:25 +08:00
sookieandGitHub 6e53faffc5 Merge pull request #18 from sookie2010/dependabot/npm_and_yarn/themes/yilia/elliptic-6.5.4
Bump elliptic from 6.4.1 to 6.5.4 in /themes/yilia
2021-04-20 09:50:10 +08:00
sookieandGitHub 036268bb71 Merge pull request #12 from sookie2010/dependabot/npm_and_yarn/themes/yilia/node-sass-4.13.1
Bump node-sass from 4.12.0 to 4.13.1 in /themes/yilia
2021-04-20 09:49:56 +08:00
dependabot[bot]andGitHub 720e70defb Bump ini from 1.3.5 to 1.3.8 in /themes/yilia
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 01:49:51 +00:00
sookieandGitHub bbd55797e6 Merge pull request #24 from sookie2010/dependabot/npm_and_yarn/prismjs-1.23.0
Bump prismjs from 1.22.0 to 1.23.0
2021-04-20 09:49:33 +08:00
sookieandGitHub 5b59ae3a93 Merge pull request #19 from sookie2010/dependabot/npm_and_yarn/themes/yilia/y18n-3.2.2
Bump y18n from 3.2.1 to 3.2.2 in /themes/yilia
2021-04-20 09:49:16 +08:00
sookieandGitHub 74d577b82c Merge pull request #20 from sookie2010/dependabot/npm_and_yarn/y18n-3.2.2
Bump y18n from 3.2.1 to 3.2.2
2021-04-20 09:49:01 +08:00
sookieandGitHub 0f0342f9cd Merge pull request #13 from sookie2010/dependabot/npm_and_yarn/node-fetch-2.6.1
Bump node-fetch from 2.5.0 to 2.6.1
2021-04-20 09:48:04 +08:00
sookieandGitHub f084a92287 Merge pull request #8 from sookie2010/dependabot/npm_and_yarn/themes/yilia/acorn-6.4.1
Bump acorn from 6.1.1 to 6.4.1 in /themes/yilia
2021-04-20 09:47:40 +08:00
dependabot[bot]andGitHub aae82af0c8 Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 01:47:31 +00:00
sookieandGitHub 4e8d9615f0 Merge pull request #17 from sookie2010/dependabot/npm_and_yarn/themes/yilia/axios-0.21.1
Bump axios from 0.19.0 to 0.21.1 in /themes/yilia
2021-04-20 09:47:25 +08:00
dependabot[bot]andGitHub 9375705c6e Bump y18n from 3.2.1 to 3.2.2
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 01:46:43 +00:00
dependabot[bot]andGitHub 09a0eddf03 Bump node-fetch from 2.5.0 to 2.6.1
Bumps [node-fetch](https://github.com/bitinn/node-fetch) from 2.5.0 to 2.6.1.
- [Release notes](https://github.com/bitinn/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/master/docs/CHANGELOG.md)
- [Commits](https://github.com/bitinn/node-fetch/compare/v2.5.0...v2.6.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 01:45:35 +00:00
dependabot[bot]andGitHub 344a8695b3 Bump prismjs from 1.22.0 to 1.23.0
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.22.0 to 1.23.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.22.0...v1.23.0)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 01:45:29 +00:00
sookieandGitHub 08730fc8f0 Merge pull request #14 from sookie2010/dependabot/npm_and_yarn/highlight.js-9.18.5
Bump highlight.js from 9.15.6 to 9.18.5
2021-04-20 09:44:48 +08:00
sookieandGitHub 5da9aa3f72 Merge pull request #21 from sookie2010/dependabot/npm_and_yarn/themes/yilia/ssri-6.0.2
Bump ssri from 6.0.1 to 6.0.2 in /themes/yilia
2021-04-20 09:33:51 +08:00
dependabot[bot]andGitHub e7656d7ddf Bump ssri from 6.0.1 to 6.0.2 in /themes/yilia
Bumps [ssri](https://github.com/npm/ssri) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/npm/ssri/releases)
- [Changelog](https://github.com/npm/ssri/blob/v6.0.2/CHANGELOG.md)
- [Commits](https://github.com/npm/ssri/compare/v6.0.1...v6.0.2)

Signed-off-by: dependabot[bot] <support@github.com>
2021-04-20 00:20:31 +00:00
zjl 37a743cd01 parcel+react+tsx 2021-04-15 10:37:57 +08:00
zjl 8db5f8207a TensorFlow.js初见(1) 2021-04-01 20:30:07 +08:00
dependabot[bot]andGitHub 878f01eb81 Bump y18n from 3.2.1 to 3.2.2 in /themes/yilia
Bumps [y18n](https://github.com/yargs/y18n) from 3.2.1 to 3.2.2.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-30 16:47:17 +00:00
dependabot[bot]andGitHub 9cf7cb5811 Bump elliptic from 6.4.1 to 6.5.4 in /themes/yilia
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.4.1 to 6.5.4.
- [Release notes](https://github.com/indutny/elliptic/releases)
- [Commits](https://github.com/indutny/elliptic/compare/v6.4.1...v6.5.4)

Signed-off-by: dependabot[bot] <support@github.com>
2021-03-09 01:25:03 +00:00
dependabot[bot]andGitHub c969c343a7 Bump axios from 0.19.0 to 0.21.1 in /themes/yilia
Bumps [axios](https://github.com/axios/axios) from 0.19.0 to 0.21.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v0.21.1/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.19.0...v0.21.1)

Signed-off-by: dependabot[bot] <support@github.com>
2021-01-05 07:29:10 +00:00
dependabot[bot]andGitHub 3c646d498d Bump highlight.js from 9.15.6 to 9.18.5
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 9.15.6 to 9.18.5.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/9.18.5/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/compare/9.15.6...9.18.5)

Signed-off-by: dependabot[bot] <support@github.com>
2020-11-24 23:45:59 +00:00
zjl 37d1c03678 Web Components 2020-11-03 20:49:20 +08:00
zjl 7c16433182 图片加载失败处理 2020-10-29 15:03:20 +08:00
zjl 643cd5bb8f 原生CSS变量 2020-10-23 18:23:29 +08:00
dependabot[bot]andGitHub df8fd44f72 Bump node-sass from 4.12.0 to 4.13.1 in /themes/yilia
Bumps [node-sass](https://github.com/sass/node-sass) from 4.12.0 to 4.13.1.
- [Release notes](https://github.com/sass/node-sass/releases)
- [Changelog](https://github.com/sass/node-sass/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sass/node-sass/compare/v4.12.0...v4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-04 09:36:18 +00:00
zjl 921c90d09b 修改文章标题 2020-07-04 15:50:32 +08:00
zjl eb7978b586 文章图片引用路径忘记改...淦! 2020-07-04 15:43:10 +08:00
zjl f30a81349a 修改图片路径 2020-07-04 15:38:13 +08:00
zjl 7737bbad7d CSS属性sharp-outside 2020-07-04 15:35:07 +08:00
zjl 1f2482bf4f Vue项目改造Typescript 2020-04-21 10:18:39 +08:00
结发受长生 5910ee3733 Merge branch 'master' of gitee.com:_init_/hexo_blog 2020-03-15 08:51:22 +08:00
结发受长生 e94887687a 修改分页导航字符 2020-03-15 08:51:08 +08:00
dependabot[bot]andGitHub 306be25e48 Bump acorn from 6.1.1 to 6.4.1 in /themes/yilia
Bumps [acorn](https://github.com/acornjs/acorn) from 6.1.1 to 6.4.1.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.1.1...6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>
2020-03-14 04:32:00 +00:00
结发受长生 da6a1e78ec 修改获取base64代码错误 2020-01-30 18:00:05 +08:00
结发受长生 887b74dbcf 升级hexo 2020-01-16 14:30:51 +08:00
结发受长生 79bdef1e9d 文章xml添加markdown内容 2020-01-16 13:29:07 +08:00
结发受长生 a1e7c3dc07 linux守护进程 2020-01-13 01:55:30 +08:00
结发受长生 2f7d5a2c3c 修复路径格式变更导致的全文搜索链接错误 2019-12-29 16:01:33 +08:00
结发受长生 2272a37add 重新认识JSON.stringify 2019-12-12 22:38:25 +08:00
结发受长生 415dc71da7 Flutter踩坑记录 2019-12-05 22:19:30 +08:00
结发受长生 a41c1173a7 Flutter路由 2019-11-11 22:34:59 +08:00
结发受长生 d3205166c2 Flutter动态列表 2019-11-10 00:42:47 +08:00
结发受长生 ba3d655ccc flutter初见 over 2019-10-29 22:06:08 +08:00
结发受长生 7627681b1e container 2019-10-26 19:07:17 +08:00
结发受长生 6e0600c30c 修复win环境下的图片同步路径错误 2019-10-25 08:49:08 +08:00
结发受长生 4a81506aec flutter初见 2019-10-22 01:10:27 +08:00
结发受长生 e90194314c flutter初见 2019-10-22 01:08:52 +08:00
结发受长生 065883b1cb dart 2019-10-06 21:16:37 +08:00
结发受长生 32acd76e27 webpack中使用web worker 2019-09-22 01:15:33 +08:00
结发受长生 3bfac6eede web worker 2019-09-21 23:42:10 +08:00
结发受长生 89258be2db 醉酒写代码 2019-09-07 23:21:18 +08:00
结发受长生 8665aa0ad4 showMessage上下文问题 2019-09-07 23:14:16 +08:00
结发受长生 deaa767902 随机背景图 2019-09-07 23:06:38 +08:00
结发受长生 dedd49116e Merge branch 'master' of gitlab.com:sookie/hexo_blog 2019-09-07 20:40:31 +08:00
结发受长生 74b5b07498 api接口修改 2019-09-07 20:39:35 +08:00
结发受长生 c448abc367 添加article-outer 2019-08-31 09:43:19 +08:00
夏夜梦星辰andGitHub a8f51e2e00 Merge pull request #7 from sookie2010/dependabot/npm_and_yarn/themes/yilia/mixin-deep-1.3.2
Bump mixin-deep from 1.3.1 to 1.3.2 in /themes/yilia
2019-08-29 21:33:53 +08:00
夏夜梦星辰andGitHub 5601c79dff Merge pull request #6 from sookie2010/dependabot/npm_and_yarn/mixin-deep-1.3.2
Bump mixin-deep from 1.3.1 to 1.3.2
2019-08-29 21:33:40 +08:00
结发受长生 476ae437b0 rgba兼容IE 2019-08-29 15:34:30 +08:00
结发受长生 bb08f3d7c3 压缩背景图 2019-08-29 12:35:41 +08:00
结发受长生 b273d66640 优化页面流畅度 2019-08-29 11:40:30 +08:00
dependabot[bot]andGitHub 605d26782e Bump mixin-deep from 1.3.1 to 1.3.2 in /themes/yilia
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-29 01:14:47 +00:00
dependabot[bot]andGitHub b2ee25bdc7 Bump mixin-deep from 1.3.1 to 1.3.2
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-29 01:14:35 +00:00
结发受长生 d42e02e75d 评论配置接口获取 2019-08-25 21:27:14 +08:00
结发受长生 eb5625c3ae 效果美化及若干效果bug修复 2019-08-25 14:22:31 +08:00
结发受长生 66a69b1100 移动端效果修正 2019-08-24 21:12:46 +08:00
结发受长生 62eb074a57 首页列表添加动画效果 2019-08-24 20:52:28 +08:00
结发受长生 7c165816f4 xargs命令 2019-08-24 01:28:38 +08:00
结发受长生 48e5da6876 洗牌算法 2019-07-22 17:35:12 +08:00
结发受长生 255a693ea6 Merge branch 'master' of gitee.com:_init_/hexo_blog 2019-07-21 21:52:14 +08:00
结发受长生 638d19096a Jest单元测试 2019-07-21 21:49:21 +08:00
结发受长生 88cdf96334 图片路径转码 2019-07-17 09:27:24 +08:00
结发受长生 34c8be0035 修改图片扫描目录 2019-07-16 22:59:36 +08:00
结发受长生 5394ba5657 数据库索引原理浅析 2019-07-16 22:38:51 +08:00
结发受长生 95b2d33639 TypeScript泛型 2019-07-14 17:06:52 +08:00
夏夜梦星辰andGitHub 2d4a67120d Merge pull request #5 from sookie2010/dependabot/npm_and_yarn/themes/yilia/lodash-4.17.14
Bump lodash from 4.17.11 to 4.17.14 in /themes/yilia
2019-07-13 14:34:06 +08:00
夏夜梦星辰andGitHub ffdd1653d6 Merge pull request #3 from sookie2010/dependabot/npm_and_yarn/lodash.merge-4.6.2
Bump lodash.merge from 4.6.1 to 4.6.2
2019-07-13 14:33:46 +08:00
dependabot[bot]andGitHub 9766814e87 Bump lodash from 4.17.11 to 4.17.14 in /themes/yilia
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.11 to 4.17.14.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.11...4.17.14)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-12 20:51:06 +00:00
dependabot[bot]andGitHub 7930d0bb91 Bump lodash.merge from 4.6.1 to 4.6.2
Bumps [lodash.merge](https://github.com/lodash/lodash) from 4.6.1 to 4.6.2.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/commits)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-10 23:11:59 +00:00
结发受长生 9d04847325 搜索结果分页 2019-07-10 23:49:47 +08:00
结发受长生 22aa1b322e 全文检索入口调整 2019-07-10 23:42:33 +08:00
结发受长生 3439b8d34b 博客全文检索施工记录 2019-07-09 13:09:17 +08:00
结发受长生 699e807bf1 修改URL 2019-07-08 21:19:00 +08:00
结发受长生 0e94c2d863 全文检索移动端适配 2019-07-08 21:14:40 +08:00
结发受长生 0917a4c8ed 隐藏模态框事件绑定 2019-07-08 15:15:26 +08:00
结发受长生 78039c46d5 全文检索UI调整 2019-07-08 15:11:34 +08:00
结发受长生 4d4d47cb09 全文检索调整 2019-07-08 14:54:21 +08:00
结发受长生 0ef8644966 整合全文检索接口 2019-07-08 14:28:32 +08:00
结发受长生 6689e4d5c1 主题页面精简 2019-07-08 09:45:27 +08:00
结发受长生 d230b5a85d 网易云存储的接口跪了吗 2019-07-01 16:51:43 +08:00
结发受长生 1c59f4fd29 图片重命名 2019-07-01 16:47:03 +08:00
结发受长生 da0530d37a 定制文章内容xml模板 2019-07-01 14:48:12 +08:00
结发受长生 2b635d6783 优雅写异步与循环 2019-07-01 00:12:32 +08:00
结发受长生 c287a3e94e 文章分词数据同步 2019-06-29 12:12:11 +08:00
结发受长生 40d2b564a3 algolia-search你个废物,不能传全文执行检索要你何用 2019-06-28 20:23:34 +08:00
结发受长生 7a08585b17 cleanOnceBeforeBuildPatterns 2019-06-28 17:05:01 +08:00
结发受长生 402ab0d495 升级clean-webpack-plugin 2019-06-28 16:55:23 +08:00
结发受长生 d2987e3a14 添加Algolia 2019-06-27 17:37:55 +08:00
结发受长生 dd9897df49 TS初见 补完 2019-06-27 00:25:25 +08:00
结发受长生 5a61993958 ts类型 2019-06-26 22:04:27 +08:00
结发受长生 8f96698853 typescript初见 2019-06-23 23:43:26 +08:00
结发受长生 a8c44a4709 Merge branch 'master' of gitlab.com:sookie/hexo_blog 2019-06-23 00:10:26 +08:00
结发受长生 7eaf32df0a 添加管理后台入口 2019-06-23 00:08:49 +08:00
结发受长生 67430e3c19 更换API路径 2019-06-18 21:19:58 +08:00
结发受长生 44e79f3b55 gulp-htmlmin处理空格简直奇葩 2019-06-14 09:56:59 +08:00
结发受长生 4f5f3c2b2d 布局优化替换CDN 2019-06-13 23:08:29 +08:00
结发受长生 46d2216d53 添加ICP备案号 2019-06-10 17:39:29 +08:00
结发受长生 d92492c108 通用解压函数 2019-06-10 15:18:11 +08:00
结发受长生 9c85d05c50 修改一言访问路径 2019-06-06 10:36:50 +08:00
结发受长生 8b1e6645ee js对文件和二进制的操作 补完 2019-06-05 17:36:54 +08:00
sookieandGitHub 4356cce797 Merge pull request #2 from sookie2010/dependabot/npm_and_yarn/themes/yilia/fstream-1.0.12
Bump fstream from 1.0.11 to 1.0.12 in /themes/yilia
2019-05-31 22:58:37 +08:00
dependabot[bot]andGitHub 66c300abd8 Bump fstream from 1.0.11 to 1.0.12 in /themes/yilia
Bumps [fstream](https://github.com/npm/fstream) from 1.0.11 to 1.0.12.
- [Release notes](https://github.com/npm/fstream/releases)
- [Commits](https://github.com/npm/fstream/compare/v1.0.11...v1.0.12)
2019-05-31 08:00:38 +00:00
结发受长生 6b782b5f73 调整html标签结构 2019-05-27 10:46:57 +08:00
结发受长生 ffc1454d04 打包调整兼容IE 2019-05-27 10:18:18 +08:00
结发受长生 91f0315240 照片墙换用api 2019-05-26 23:18:15 +08:00
结发受长生 c30aed06c7 滚动丝般顺滑 2019-05-26 20:00:40 +08:00
sookieandGitHub 46f5556257 Merge pull request #1 from sookie2010/dependabot/npm_and_yarn/themes/yilia/tar-2.2.2
Bump tar from 2.2.1 to 2.2.2 in /themes/yilia
2019-05-26 11:26:00 +08:00
dependabot[bot]andGitHub 94747c1072 Bump tar from 2.2.1 to 2.2.2 in /themes/yilia
Bumps [tar](https://github.com/npm/node-tar) from 2.2.1 to 2.2.2.
- [Release notes](https://github.com/npm/node-tar/releases)
- [Commits](https://github.com/npm/node-tar/compare/v2.2.1...v2.2.2)
2019-05-25 03:05:33 +00:00
结发受长生 195d807808 图标调整+iOS平滑滚动 2019-05-24 10:03:54 +08:00
352 changed files with 16120 additions and 27138 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
</p>
<p style="text-align:center">
<img src="https://img.shields.io/github/repo-size/sookie2010/hexo_blog.svg" alt="Size" />
<img src=https://img.shields.io/github/package-json/v/sookie2010/hexo_blog.svg alt="Version" />
<img src="https://img.shields.io/github/repo-size/colorfulsweet/blog-web.svg" alt="Size" />
<img src="https://img.shields.io/github/package-json/v/colorfulsweet/blog-web.svg" alt="Version" />
<a target="_blank" href="https://www.colorfulsweet.site">
<img src="https://img.shields.io/badge/blog-colorfulsweet-green.svg" alt="我的博客" />
</a>
+7 -3
View File
@@ -36,7 +36,8 @@ skip_render:
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
external_link:
enable: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
@@ -93,12 +94,15 @@ pagination_dir: page
theme: yilia
# 图片存储仓库地址
picture_cdn: https://blog-cdn.nos-eastchina1.126.net
picture_cdn: https://cdn.colorfulsweet.site
# ICP备案号
ICP: 鲁ICP备19028444号
# 站点地图
sitemap:
path: sitemap.xml
template: ./sitemap_template.xml
template: ./templates/sitemap.xml
baidusitemap:
path: baidusitemap.xml
+18 -11
View File
@@ -1,22 +1,25 @@
const fs = require('fs')
const path = require('path')
module.exports = {
class Deploy {
/**
* 发布静态化的站点
* @param {String} source 源位置
* @param {String} target 目标位置
* @param {Boolean} copyRoot 是否拷贝根目录
* @param {Boolean} isRemove 是否先进行删除
*/
async exec(source, target, copyRoot) {
async exec(source, target, isRemove = false) {
if(isRemove) {
await new Promise((resolve, reject) => {
console.log(`删除${target}目录中的文件`)
this._deleteFolderRecursive(target, true)
resolve()
})
}
console.log(`拷贝${source}所有文件 -> ${target}`)
this._copyFolderRecursive(source, target, copyRoot)
},
this._checkDirectory(target)
this._copyFolderRecursive(source, target)
}
/**
* 递归删除目录以及子目录中的所有文件
@@ -35,7 +38,7 @@ module.exports = {
if(!retainRoot) { // 根目录保留
fs.rmdirSync(curPath)
}
},
}
/**
* 递归拷贝目录
* @param {String} source 源位置
@@ -53,24 +56,28 @@ module.exports = {
let writable = fs.createWriteStream(_target) //创建写入流
readable.pipe(writable);
} else if (stats.isDirectory()) { //是目录则 递归
this._checkDirectory(_src, _target, this._copyFolderRecursive)
this._checkDirectory(_target, this._copyFolderRecursive, _src, _target)
}
})
})
},
}
/**
* 校验目标目录是否存在
* @param {String} src 源目录
* @param {String} target 目标目录
* @param {Function} callback 回调函数
* @param {Array} args 回调函数入参
*/
_checkDirectory (src,target,callback) {
_checkDirectory (target, callback, ...args) {
fs.access(target, fs.constants.F_OK, err => {
if (err) {
fs.mkdirSync(target)
}
callback.call(this, src, target)
if (typeof callback === 'function') {
callback.apply(this, args)
}
})
}
}
module.exports = new Deploy()
-136
View File
@@ -1,136 +0,0 @@
const fs = require('fs'),
path = require('path'),
nos = require('@xgheaven/nos-node-sdk')
class ImageSynchronizer {
/**
* 构造方法
* @param {Object} setting NosClient的设置项
* @param {Array} imagesList 本地图片的列表
* @param {String} rootPath 本地文件根路径
*/
constructor(setting, imagesList, rootPath) {
// 网易云对象存储调用接口client
this.client = new nos.NosClient(setting)
this.imagesList = imagesList
this.rootPath = rootPath
}
/**
* 执行文件同步
* @param {String} prefix 图片目录前缀
*/
synchronize(prefix) {
return this._queryObjects({limit: this.imagesList.length+1, prefix}, function(pendingUploadFiles){
this._uploadObject(pendingUploadFiles)
}, function(pendingDeleteFiles){
this._deleteObjects(pendingDeleteFiles)
})
}
/**
* 查询所有对象存储库已存在的文件
* @param {Object} params 查询的参数
* @param {Function} uploadCallback 处理待上传文件的回调函数
* @param {Function} deleteCallback 处理待删除文件的回调函数
*/
async _queryObjects(params, uploadCallback, deleteCallback) {
// 列出所有已存储的对象
const ret = await this.client.listObject(params)
// ret 包括 items(元素)limit(请求的数量)nextMarker(下一个标记)
let storageItems = ret.items.filter(item => {
return /^images.+?\.(png|jpe?g|gif)$/.test(item.key)
}).sort((item1, item2) => {
if (item1.key > item2.key) {
return 1
}
else if (item1.key < item2.key) {
return -1
}
return 0
});
// 待上传的文件列表
let pendingUploadFiles = this.imagesList.filter(item => {
let index = this._binarySearch(storageItems, item.name, 'key', 0, storageItems.length - 1)
if (index === -1) {
// 文件名不存在, 代表是新文件
item.type = 'new'
return true
}
else if (storageItems[index].eTag !== item.md5) {
// 文件名存在, 但是hash值不同, 代表有变化
item.type = 'change'
return true
}
return false
});
// 处理待上传的文件
uploadCallback.call(this, pendingUploadFiles);
// 待删除的文件列表( 仓库中存在, 本地不存在 )
let pendingDeleteFiles = storageItems.filter(item => {
return this._binarySearch(this.imagesList, item.key, 'name', 0, this.imagesList.length - 1) === -1;
})
// 处理待删除的文件
deleteCallback.call(this, pendingDeleteFiles.map(item => item.key))
}
/**
* 上传文件对象
* @param {Array} filesList 待上传的文件列表
* @param {Number} index 索引值
*/
_uploadObject(filesList, index=0) {
if(index >= filesList.length) return
this.client.putObject({
objectKey: filesList[index].name,
body: fs.createReadStream(path.resolve(this.rootPath, filesList[index].name)), // 支持 Buffer/Readable/string
}).then(result => {
// eTag是上传后远端校验的md5值, 用于和本地进行比对
let eTag = result.eTag.replace(/"/g,'')
if(filesList[index].md5 === eTag) {
console.log(`${filesList[index].name} 上传成功, md5:${eTag} 类型: ${filesList[index].type}`)
} else {
console.warn(`${filesList[index].name} 上传出错, md5值不一致`)
console.warn(`===> 本地文件: ${filesList[index].md5}, 接口返回: ${eTag}`)
}
this._uploadObject(filesList, ++index)
})
}
/**
* 批量删除文件
* @param {Array} fileNamesList 文件名数组
*/
_deleteObjects(fileNamesList) {
if(!Array.isArray(fileNamesList) || !fileNamesList.length) return
this.client.deleteMultiObject({
objectKeys: fileNamesList
}).then(err => {
console.log('===> 文件删除成功')
fileNamesList.forEach(item => console.log(item))
})
}
/**
* 二分法查找
* @param {Array} arr 执行查找的数组
* @param {Object} target 要找到的目标元素
* @param {String} key 数组元素上的键
* @param {Number} start 查找的范围 起点
* @param {Number} end 查找的范围 终点
*/
_binarySearch(arr, target, key, start, end) {
if(!Array.isArray(arr) || !arr.length) {
return -1
}
if(start >= end) {
return arr[start][key] === target ? start : -1
}
let index = Math.ceil((start + end)/2)
if(arr[index][key] === target) {
return index
} else if(arr[index][key] > target) {
return this._binarySearch(arr, target, key, start, index-1)
} else {
return this._binarySearch(arr, target, key, index+1, end)
}
}
}
module.exports = ImageSynchronizer
-52
View File
@@ -1,52 +0,0 @@
const fs = require('fs')
const path = require('path')
const crypto = require('crypto')
function sortName(item1, item2) {
if(item1.name > item2.name) {
return 1
} else if(item1.name < item2.name) {
return -1
}
return 0
}
/**
* 递归遍历目录中的所有文件
* @param {String} imageFolderPath 文件夹路径
* @param {Array} images 图片列表
* @param {String} rootPath 根路径
*/
function readDirSync(imageFolderPath, images, rootPath, callback, count={fileCount:0, finishCount:0}){
var files = fs.readdirSync(imageFolderPath);
files.forEach(item => {
var fileInfo = fs.statSync(`${imageFolderPath}/${item}`)
if(fileInfo.isDirectory()){
// 该文件是一个目录, 则遍历该目录内容
readDirSync(`${imageFolderPath}/${item}`, images, rootPath, callback, count)
} else {
count.fileCount ++
var stream = fs.createReadStream(`${imageFolderPath}/${item}`)
var fsHash = crypto.createHash('md5')
stream.on('data', data => {
fsHash.update(data)
})
stream.on('end', () => {
count.finishCount ++
images.push({
name: `${imageFolderPath}/${item}`.replace(rootPath, ''),
md5: fsHash.digest('hex')
})
if(count.fileCount === count.finishCount && typeof callback === 'function') {
callback(images.sort(sortName))
}
})
}
})
}
module.exports = function (rootPath, imageFloder, callback) {
readDirSync(path.resolve(rootPath, imageFloder), [], rootPath, callback)
}
+16 -32
View File
@@ -1,14 +1,12 @@
const gulp = require('gulp'),
htmlmin = require('gulp-htmlmin'), //html压缩组件
htmlclean = require('gulp-htmlclean'), //html清理组件
plumber = require('gulp-plumber'), //容错组件(发生错误不跳出任务,并报出错误内容)
Hexo = require('hexo')
htmlmin = require('gulp-htmlmin'), // html压缩组件
htmlclean = require('gulp-htmlclean'), // html清理组件
plumber = require('gulp-plumber'), // 容错组件(发生错误不跳出任务,并报出错误内容)
Hexo = require('hexo'),
log = require('fancy-log') // gulp的日志输出
// 程序执行的传参
const argv = require('optimist')
// .demand(['accessKey', 'accessSecret', 'deployPath'])
.describe('accessKey', '网易云对象存储key')
.describe('accessSecret', '网易云对象存储secret')
.describe('deployPath', '静态化后发布的目录')
.argv
@@ -33,7 +31,8 @@ gulp.task('compressHtml', () => {
unprotect: /<script [^>]*\btype="text\/x-handlebars-template"[\s\S]+?<\/script>/ig //特殊处理
}
const minOption = {
collapseWhitespace: true, //压缩HTML
collapseWhitespace: true, //删除html中的空白
conservativeCollapse: false, //将多个空白折叠为1空白(永远不要完全移除), 必须与 collapseWhitespace=true 一起使用
collapseBooleanAttributes: true, //省略布尔属性的值 <input checked="true"/> ==> <input />
removeEmptyAttributes: true, //删除所有空属性值 <input id="" /> ==> <input />
removeScriptTypeAttributes: true, //删除<script>的type="text/javascript"
@@ -41,7 +40,7 @@ gulp.task('compressHtml', () => {
removeComments: true, //清除HTML注释
minifyJS: true, //压缩页面JS
minifyCSS: true, //压缩页面CSS
minifyURLs: true //替换页面URL
minifyURLs: false //替换页面URL
}
return gulp.src('./public/**/*.html')
.pipe(plumber())
@@ -50,37 +49,22 @@ gulp.task('compressHtml', () => {
.pipe(gulp.dest('./public'))
})
// 同步图片到对象存储仓库
gulp.task('syncImages', () => {
const listImages = require('./deploy_utils/list_images')
if(!argv.accessKey || !argv.accessSecret) {
return Promise.resolve('未获得accessKey以及accessSecret, 跳过图片同步').then(console.log)
}
// 同步当前本地存在的所有图片
return new Promise(resolve => {
listImages(`${process.cwd()}/source/`, 'images/', resolve)
}).then(imagesList => {
const ImageSynchronizer = require('./deploy_utils/image_synchronize')
const nosSetting = {
defaultBucket: 'blog-cdn',
endpoint: 'http://nos-eastchina1.126.net',
accessKey: argv.accessKey,
accessSecret: argv.accessSecret
}
const imageSynchronizer = new ImageSynchronizer(nosSetting, imagesList, `${process.cwd()}/source/`)
return imageSynchronizer.synchronize('images/')
})
// 拷贝图片
gulp.task('copyImage', () => {
const deploy = require('./deploy_utils/deploy')
return deploy.exec('./images', './public/images')
})
// 发布
gulp.task('deploy', () => {
if(!argv.deployPath) {
return Promise.resolve('未获得deployPath, 跳过发布').then(console.log)
return Promise.resolve('未获得deployPath, 跳过发布').then(log)
}
const deploy = require('./deploy_utils/deploy')
return deploy.exec('./public', argv.deployPath, false)
return deploy.exec('./public', argv.deployPath, true)
})
// 默认任务
gulp.task('default',
gulp.series('generate', 'compressHtml', 'syncImages', 'deploy') // 串行执行任务
gulp.series('generate', 'compressHtml', 'copyImage', 'deploy') // 串行执行任务
)

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before

Width:  |  Height:  |  Size: 45 KiB

After

Width:  |  Height:  |  Size: 45 KiB

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before

Width:  |  Height:  |  Size: 212 KiB

After

Width:  |  Height:  |  Size: 212 KiB

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 76 KiB

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Before

Width:  |  Height:  |  Size: 169 KiB

After

Width:  |  Height:  |  Size: 169 KiB

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

Before

Width:  |  Height:  |  Size: 69 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Before

Width:  |  Height:  |  Size: 62 KiB

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Before

Width:  |  Height:  |  Size: 88 KiB

After

Width:  |  Height:  |  Size: 88 KiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 7.4 KiB

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Before

Width:  |  Height:  |  Size: 124 KiB

After

Width:  |  Height:  |  Size: 124 KiB

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.9 KiB

Before

Width:  |  Height:  |  Size: 6.8 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 22 KiB

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 36 KiB

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Before

Width:  |  Height:  |  Size: 104 KiB

After

Width:  |  Height:  |  Size: 104 KiB

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before

Width:  |  Height:  |  Size: 4.8 KiB

After

Width:  |  Height:  |  Size: 4.8 KiB

Before

Width:  |  Height:  |  Size: 78 KiB

After

Width:  |  Height:  |  Size: 78 KiB

Before

Width:  |  Height:  |  Size: 67 KiB

After

Width:  |  Height:  |  Size: 67 KiB

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Before

Width:  |  Height:  |  Size: 1.0 MiB

After

Width:  |  Height:  |  Size: 1.0 MiB

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Before

Width:  |  Height:  |  Size: 163 KiB

After

Width:  |  Height:  |  Size: 163 KiB

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 96 KiB

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 115 KiB

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Before

Width:  |  Height:  |  Size: 160 KiB

After

Width:  |  Height:  |  Size: 160 KiB

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

Some files were not shown because too many files have changed in this diff Show More