Update dependencies

Closes #4
This commit is contained in:
John O'Nolan 2019-10-20 15:07:59 +07:00
parent 7ebed13214
commit cfd48ad337
7 changed files with 756 additions and 671 deletions

View File

@ -1,2 +1,2 @@
$(function(t){var o=1,r=window.location.pathname,a=t(document),s=t(".post-feed"),c=300,l=!1,w=!1,d=window.scrollY,v=window.innerHeight,u=a.height();function f(){d=window.scrollY,e()}function g(){v=window.innerHeight,u=a.height(),e()}function e(){l||requestAnimationFrame(n),l=!0}function n(){var e,n;if(n=/(?:page\/)(\d)(?:\/)$/i,(e=(e=r).replace(/#(.*)$/g,"").replace("////g","/")).match(n)&&(o=parseInt(e.match(n)[1]),e=e.replace(n,"")),r=e,!w)if(d+v<=u-c)l=!1;else{if(o>=maxPages)return window.removeEventListener("scroll",f,{passive:!0}),void window.removeEventListener("resize",g);w=!0;var i=r+"page/"+(o+=1)+"/";t.get(i,function(e){var n=document.createRange().createContextualFragment(e).querySelectorAll(".post");n.length&&[].forEach.call(n,function(e){s[0].appendChild(e)})}).fail(function(e){404===e.status&&(window.removeEventListener("scroll",f,{passive:!0}),window.removeEventListener("resize",g))}).always(function(){u=a.height(),l=w=!1})}}window.addEventListener("scroll",f,{passive:!0}),window.addEventListener("resize",g),n()}); $(function(n){var i=1,t=window.location.pathname,o=n(document),r=n(".post-feed"),a=300,s=!1,c=!1,l=window.scrollY,w=window.innerHeight,d=o.height();function u(){l=window.scrollY,e()}function v(){w=window.innerHeight,d=o.height(),e()}function e(){s||requestAnimationFrame(f),s=!0}function f(){if(t=function(e){var n=/(?:page\/)(\d)(?:\/)$/i;return(e=e.replace(/#(.*)$/g,"").replace("////g","/")).match(n)&&(i=parseInt(e.match(n)[1]),e=e.replace(n,"")),e}(t),!c)if(l+w<=d-a)s=!1;else{if(i>=maxPages)return window.removeEventListener("scroll",u,{passive:!0}),void window.removeEventListener("resize",v);c=!0;var e=t+"page/"+(i+=1)+"/";n.get(e,function(e){var n=document.createRange().createContextualFragment(e).querySelectorAll(".post");n.length&&[].forEach.call(n,function(e){r[0].appendChild(e)})}).fail(function(e){404===e.status&&(window.removeEventListener("scroll",u,{passive:!0}),window.removeEventListener("resize",v))}).always(function(){d=o.height(),s=c=!1})}}window.addEventListener("scroll",u,{passive:!0}),window.addEventListener("resize",v),f()});
//# sourceMappingURL=infinitescroll.js.map //# sourceMappingURL=infinitescroll.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -41,7 +41,7 @@ function css(done) {
easyimport, easyimport,
customProperties({preserve: false}), customProperties({preserve: false}),
colorFunction(), colorFunction(),
autoprefixer({browsers: ['last 2 versions']}), autoprefixer(),
cssnano() cssnano()
]; ];

View File

@ -2,10 +2,10 @@
"name": "starter", "name": "starter",
"description": "A starter theme for Ghost.", "description": "A starter theme for Ghost.",
"demo": "https://starter.ghost.io", "demo": "https://starter.ghost.io",
"version": "1.0.0", "version": "3.0.0",
"engines": { "engines": {
"ghost": ">=2.0.0", "ghost": ">=3.0.0",
"ghost-api": "v2" "ghost-api": "v3"
}, },
"license": "MIT", "license": "MIT",
"screenshots": { "screenshots": {
@ -43,21 +43,24 @@
"bugs": "https://github.com/TryGhost/Starter/issues", "bugs": "https://github.com/TryGhost/Starter/issues",
"contributors": "https://github.com/TryGhost/Starter/graphs/contributors", "contributors": "https://github.com/TryGhost/Starter/graphs/contributors",
"devDependencies": { "devDependencies": {
"autoprefixer": "9.4.10", "autoprefixer": "9.6.1",
"cssnano": "4.1.10", "cssnano": "4.1.10",
"gscan": "^2.0.0", "gscan": "^2.7.0",
"gulp": "4.0.0", "gulp": "4.0.2",
"gulp-livereload": "4.0.1", "gulp-livereload": "4.0.1",
"gulp-postcss": "8.0.0", "gulp-postcss": "8.0.0",
"gulp-sourcemaps": "2.6.5", "gulp-sourcemaps": "2.6.5",
"gulp-uglify": "3.0.2", "gulp-uglify": "3.0.2",
"gulp-util": "3.0.8", "gulp-util": "3.0.8",
"gulp-watch": "5.0.1", "gulp-watch": "5.0.1",
"gulp-zip": "4.2.0", "gulp-zip": "5.0.0",
"postcss-color-function": "4.0.1", "postcss-color-function": "4.1.0",
"postcss-custom-properties": "8.0.9", "postcss-custom-properties": "9.0.2",
"postcss-easy-import": "3.0.0" "postcss-easy-import": "3.0.0"
}, },
"browserslist": [
"defaults"
],
"config": { "config": {
"posts_per_page": 15, "posts_per_page": 15,
"image_sizes": { "image_sizes": {

1396
yarn.lock

File diff suppressed because it is too large Load Diff