diff --git a/package-lock.json b/package-lock.json index 7d3b289..8d8a536 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "hexo-site", "version": "0.0.0", "dependencies": { + "flickr-justified-gallery": "^2.2.0", "hexo": "^7.0.0", "hexo-abbrlink": "^2.2.1", "hexo-baidu-url-submit": "^0.0.6", @@ -1546,6 +1547,11 @@ "node": ">= 0.8" } }, + "node_modules/better-justified-layout": { + "version": "1.0.0", + "resolved": "https://registry.npmmirror.com/better-justified-layout/-/better-justified-layout-1.0.0.tgz", + "integrity": "sha512-eCzIMu6/55BJ7B/N37LYOZ2O5q3UkQx273pihu9TyfcuKyj/VDYHh1FCmPBksY6wbOFPMZYlFbTYDpb6MKGLYQ==" + }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -3430,6 +3436,16 @@ "node": ">= 0.6" } }, + "node_modules/flickr-justified-gallery": { + "version": "2.2.0", + "resolved": "https://registry.npmmirror.com/flickr-justified-gallery/-/flickr-justified-gallery-2.2.0.tgz", + "integrity": "sha512-UVLbIeQfY7v7fFFwj8ORna/7eP/+Srb/60IRYN23mjRZzaAXONp/29f3oTuKAzCezfWJblfzDHEG/Cyj22b61Q==", + "dependencies": { + "better-justified-layout": "^1.0.0", + "raf-schd": "^4.0.3", + "throttle-debounce": "^5.0.0" + } + }, "node_modules/follow-redirects": { "version": "1.5.10", "resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.5.10.tgz", @@ -3666,6 +3682,21 @@ "node": ">=0.10.0" } }, + "node_modules/gitalk/node_modules/react-dom": { + "version": "15.7.0", + "resolved": "https://registry.npmmirror.com/react-dom/-/react-dom-15.7.0.tgz", + "integrity": "sha512-mpjXqC2t1FuYsILOLCj0kg6pbg460byZkVA/80VtDmKU/pYmoTdHOtaMcTRIDiyXLz4sIur0cQ04nOC6iGndJg==", + "peer": true, + "dependencies": { + "fbjs": "^0.8.9", + "loose-envify": "^1.1.0", + "object-assign": "^4.1.0", + "prop-types": "^15.5.10" + }, + "peerDependencies": { + "react": "^15.7.0" + } + }, "node_modules/gitalk/node_modules/react-flip-move": { "version": "2.9.14", "resolved": "https://registry.npmmirror.com/react-flip-move/-/react-flip-move-2.9.14.tgz", @@ -7870,6 +7901,11 @@ "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", "license": "MIT" }, + "node_modules/raf-schd": { + "version": "4.0.3", + "resolved": "https://registry.npmmirror.com/raf-schd/-/raf-schd-4.0.3.tgz", + "integrity": "sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ==" + }, "node_modules/range-parser": { "version": "1.2.1", "resolved": "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz", @@ -7900,18 +7936,17 @@ } }, "node_modules/react-dom": { - "version": "15.7.0", - "resolved": "https://registry.npmmirror.com/react-dom/-/react-dom-15.7.0.tgz", - "integrity": "sha512-mpjXqC2t1FuYsILOLCj0kg6pbg460byZkVA/80VtDmKU/pYmoTdHOtaMcTRIDiyXLz4sIur0cQ04nOC6iGndJg==", + "version": "18.2.0", + "resolved": "https://registry.npmmirror.com/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "optional": true, "peer": true, "dependencies": { - "fbjs": "^0.8.9", "loose-envify": "^1.1.0", - "object-assign": "^4.1.0", - "prop-types": "^15.5.10" + "scheduler": "^0.23.0" }, "peerDependencies": { - "react": "^15.7.0" + "react": "^18.2.0" } }, "node_modules/react-is": { @@ -8231,6 +8266,16 @@ "node": ">=v12.22.7" } }, + "node_modules/scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmmirror.com/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "optional": true, + "peer": true, + "dependencies": { + "loose-envify": "^1.1.0" + } + }, "node_modules/sdk-base": { "version": "2.0.1", "resolved": "https://registry.npmmirror.com/sdk-base/-/sdk-base-2.0.1.tgz", @@ -8985,6 +9030,14 @@ "node": ">=0.8" } }, + "node_modules/throttle-debounce": { + "version": "5.0.0", + "resolved": "https://registry.npmmirror.com/throttle-debounce/-/throttle-debounce-5.0.0.tgz", + "integrity": "sha512-2iQTSgkkc1Zyk0MeVrt/3BvuOXYPl/R8Z0U2xxo9rjwNciaHDG3R+Lm6dh4EeUci49DanvBnuqI6jshoQQRGEg==", + "engines": { + "node": ">=12.22" + } + }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmmirror.com/through/-/through-2.3.8.tgz", diff --git a/package.json b/package.json index 391d4e1..b67b969 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "version": "7.1.1" }, "dependencies": { + "flickr-justified-gallery": "^2.2.0", "hexo": "^7.0.0", "hexo-abbrlink": "^2.2.1", "hexo-baidu-url-submit": "^0.0.6", diff --git a/yarn.lock b/yarn.lock index a3fb256..5c2f8a1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -987,6 +987,11 @@ basic-auth@~2.0.1: dependencies: safe-buffer "5.1.2" +better-justified-layout@^1.0.0: + version "1.0.0" + resolved "https://registry.npmmirror.com/better-justified-layout/-/better-justified-layout-1.0.0.tgz" + integrity sha512-eCzIMu6/55BJ7B/N37LYOZ2O5q3UkQx273pihu9TyfcuKyj/VDYHh1FCmPBksY6wbOFPMZYlFbTYDpb6MKGLYQ== + binary-extensions@^1.0.0: version "1.13.1" resolved "https://registry.npmmirror.com/binary-extensions/-/binary-extensions-1.13.1.tgz" @@ -2469,6 +2474,15 @@ finalhandler@1.1.2: statuses "~1.5.0" unpipe "~1.0.0" +flickr-justified-gallery@^2.2.0: + version "2.2.0" + resolved "https://registry.npmmirror.com/flickr-justified-gallery/-/flickr-justified-gallery-2.2.0.tgz" + integrity sha512-UVLbIeQfY7v7fFFwj8ORna/7eP/+Srb/60IRYN23mjRZzaAXONp/29f3oTuKAzCezfWJblfzDHEG/Cyj22b61Q== + dependencies: + better-justified-layout "^1.0.0" + raf-schd "^4.0.3" + throttle-debounce "^5.0.0" + follow-redirects@1.5.10: version "1.5.10" resolved "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.5.10.tgz" @@ -5216,6 +5230,11 @@ querystringify@^2.1.1: resolved "https://registry.npmmirror.com/querystringify/-/querystringify-2.2.0.tgz" integrity sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ== +raf-schd@^4.0.3: + version "4.0.3" + resolved "https://registry.npmmirror.com/raf-schd/-/raf-schd-4.0.3.tgz" + integrity sha512-tQkJl2GRWh83ui2DiPTJz9wEiMN20syf+5oKfB03yYP7ioZcJwsIK8FjrtLwH1m7C7e+Tt2yYBlrOpdT+dyeIQ== + range-parser@~1.2.1: version "1.2.1" resolved "https://registry.npmmirror.com/range-parser/-/range-parser-1.2.1.tgz" @@ -5228,7 +5247,15 @@ rd@^2.0.1: dependencies: "@types/node" "^10.3.6" -"react-dom@>= 16.8.0 < 19.0.0", "react-dom@0.13.x || 0.14.x || 15.x.x": +"react-dom@>= 16.8.0 < 19.0.0": + version "18.2.0" + resolved "https://registry.npmmirror.com/react-dom/-/react-dom-18.2.0.tgz" + integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g== + dependencies: + loose-envify "^1.1.0" + scheduler "^0.23.0" + +"react-dom@0.13.x || 0.14.x || 15.x.x": version "15.7.0" resolved "https://registry.npmmirror.com/react-dom/-/react-dom-15.7.0.tgz" integrity sha512-mpjXqC2t1FuYsILOLCj0kg6pbg460byZkVA/80VtDmKU/pYmoTdHOtaMcTRIDiyXLz4sIur0cQ04nOC6iGndJg== @@ -5248,14 +5275,7 @@ react-is@^16.13.1: resolved "https://registry.npmmirror.com/react-is/-/react-is-16.13.1.tgz" integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ== -react@^15.7.0, "react@^16.11.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", "react@>= 16.8.0 < 19.0.0", react@>=16.8: - version "18.2.0" - resolved "https://registry.npmmirror.com/react/-/react-18.2.0.tgz" - integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== - dependencies: - loose-envify "^1.1.0" - -"react@0.13.x || 0.14.x || 15.x.x": +react@^15.7.0, "react@0.13.x || 0.14.x || 15.x.x": version "15.7.0" resolved "https://registry.npmmirror.com/react/-/react-15.7.0.tgz" integrity sha512-5/MMRYmpmM0sMTHGLossnJCrmXQIiJilD6y3YN3TzAwGFj6zdnMtFv6xmi65PHKRV+pehIHpT7oy67Sr6s9AHA== @@ -5266,6 +5286,13 @@ react@^15.7.0, "react@^16.11.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 object-assign "^4.1.0" prop-types "^15.5.10" +"react@^16.11.0 || ^17.0.0 || ^18.0.0", "react@^16.8.0 || ^17.0.0 || ^18.0.0", react@^18.2.0, "react@>= 16.8.0 < 19.0.0", react@>=16.8: + version "18.2.0" + resolved "https://registry.npmmirror.com/react/-/react-18.2.0.tgz" + integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== + dependencies: + loose-envify "^1.1.0" + readable-stream@^2.0.2: version "2.3.8" resolved "https://registry.npmmirror.com/readable-stream/-/readable-stream-2.3.8.tgz" @@ -5500,6 +5527,13 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" +scheduler@^0.23.0: + version "0.23.0" + resolved "https://registry.npmmirror.com/scheduler/-/scheduler-0.23.0.tgz" + integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw== + dependencies: + loose-envify "^1.1.0" + sdk-base@^2.0.1: version "2.0.1" resolved "https://registry.npmmirror.com/sdk-base/-/sdk-base-2.0.1.tgz" @@ -5992,6 +6026,11 @@ thenify-all@^1.0.0: dependencies: any-promise "^1.0.0" +throttle-debounce@^5.0.0: + version "5.0.0" + resolved "https://registry.npmmirror.com/throttle-debounce/-/throttle-debounce-5.0.0.tgz" + integrity sha512-2iQTSgkkc1Zyk0MeVrt/3BvuOXYPl/R8Z0U2xxo9rjwNciaHDG3R+Lm6dh4EeUci49DanvBnuqI6jshoQQRGEg== + "through@>=2.2.7 <3", through@~2.3, through@~2.3.1, through@2: version "2.3.8" resolved "https://registry.npmmirror.com/through/-/through-2.3.8.tgz"