-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update the implementation * Improve code quality * Remove deprecated property access * Configure Codebeat * Make some cosmetic updates Co-authored-by: alpanayotov <alexander.panayotov@gmail.com>
- Loading branch information
1 parent
14bbc13
commit 9bcc30e
Showing
23 changed files
with
2,194 additions
and
2,108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"TYPESCRIPT": { | ||
"ABC": [ | ||
20, | ||
40, | ||
80, | ||
120 | ||
], | ||
"LOC": [ | ||
50, | ||
80, | ||
120, | ||
160 | ||
], | ||
"TOTAL_LOC": [ | ||
400, | ||
500, | ||
640, | ||
900 | ||
], | ||
"BLOCK_NESTING": [ | ||
6, | ||
8, | ||
10, | ||
12 | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"env": { | ||
"node": true, | ||
"browser": true | ||
}, | ||
"extends": ["prettier", "plugin:@typescript-eslint/recommended"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"project": "tsconfig.json", | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"ignorePatterns": ["*.js", "*.mjs"], | ||
"rules": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,5 @@ node_modules/ | |
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ node_js: | |
install: | ||
- yarn | ||
script: | ||
- yarn lint | ||
- yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"checkRunSettings": { | ||
"vulnerableCheckRunConclusionLevel": "success" | ||
}, | ||
"issueSettings": { | ||
"minSeverityLevel": "LOW" | ||
} | ||
"generalSettings": { | ||
"shouldScanRepo": true | ||
}, | ||
"checkRunSettings": { | ||
"vulnerableCheckRunConclusionLevel": "success" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
plugins: | ||
- jekyll-relative-links | ||
relative_links: | ||
enabled: true | ||
collections: true | ||
include: | ||
- CONTRIBUTING.md | ||
- README.md | ||
- LICENSE.md | ||
- COPYING.md | ||
- CODE_OF_CONDUCT.md | ||
- CONTRIBUTING.md | ||
- ISSUE_TEMPLATE.md | ||
- PULL_REQUEST_TEMPLATE.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
theme: jekyll-theme-slate | ||
theme: jekyll-theme-slate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Infinite Scroll Demo</title> | ||
|
||
<link | ||
href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" | ||
rel="stylesheet" | ||
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" | ||
crossorigin="anonymous" | ||
/> | ||
|
||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css" /> | ||
</head> | ||
<body> | ||
<nav class="navbar navbar-expand-lg bg-light" aria-label="Menu"> | ||
<div class="container"> | ||
<a class="navbar-brand" href="index.html">Infinite Scroll</a> | ||
|
||
<button | ||
class="navbar-toggler" | ||
type="button" | ||
data-bs-toggle="collapse" | ||
data-bs-target="#navbarSupportedContent" | ||
aria-controls="navbarSupportedContent" | ||
aria-expanded="false" | ||
aria-label="Toggle navigation" | ||
> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
|
||
<div class="collapse navbar-collapse" id="navbarSupportedContent"> | ||
<ul class="navbar-nav ms-auto mb-2 mb-lg-0"> | ||
<li class="nav-item"> | ||
<a class="nav-link active" href="docs.html">Documentation</a> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<a class="nav-link" aria-current="page" href="https://github.com/three11/infinite-scroll"> | ||
Github | ||
</a> | ||
</li> | ||
|
||
<li class="nav-item"> | ||
<a class="nav-link" href="https://www.npmjs.com/package/@three11/infinite-scroll">NPM</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</nav> | ||
|
||
<section class="bg-secondary py-5 text-center text-light"> | ||
<div class="container"> | ||
<h1 class="display-5 fw-bold"> | ||
<span class="bi bi-mouse"></span> | ||
<br /> | ||
Infinite scroll | ||
</h1> | ||
|
||
<h2 class="display-7 fw-bold">Load more items as you scroll down the page</h2> | ||
|
||
<div class="col-lg-6 mx-auto"> | ||
<p class="lead mb-4">Usage:</p> | ||
|
||
<p><code class="text-light bg-dark px-2 py-2">npm i @three11/infinite-scroll</code></p> | ||
|
||
<p>or</p> | ||
|
||
<p><code class="text-light bg-dark px-2 py-2">yarn add @three11/infinite-scroll</code></p> | ||
|
||
<p>then</p> | ||
|
||
<p> | ||
<code class="text-light bg-dark px-2 py-2"> | ||
import InfiniteScroll from '@three11/infinite-scroll'; | ||
</code> | ||
</p> | ||
|
||
<p>and then</p> | ||
|
||
<p> | ||
<code class="text-light bg-dark px-2 py-2">const infiniteScroll = new InfiniteScroll();</code> | ||
</p> | ||
|
||
<p>or use custom settings</p> | ||
|
||
<p> | ||
<code> | ||
<!-- prettier-ignore --> | ||
<pre class="text-light text-start bg-dark px-2 py-2"> | ||
const infiniteScroll = new InfiniteScroll({ | ||
element: '.infinite-scroll-container', | ||
next: '.infinite-scroll-next-page', | ||
item: '.infinite-scroll-item', | ||
disabledClass: 'is--disabled', | ||
hiddenClass: 'is--hidden', | ||
responseType: 'text/html', | ||
viewportTriggerPoint: win.innerHeight - 200, | ||
debounceTime: 100, | ||
onComplete(container) { | ||
console.log(container) | ||
}, | ||
});</pre> | ||
</code> | ||
</p> | ||
</div> | ||
</div> | ||
</section> | ||
|
||
<div class="container"> | ||
<footer class="d-flex flex-wrap justify-content-center align-items-center py-3 my-4 border-top"> | ||
<a href="/" class="mb-3 me-2 mb-md-0 text-muted text-decoration-none lh-1"> | ||
<svg class="bi" width="30" height="24"><use xlink:href="#bootstrap"></use></svg> | ||
</a> | ||
|
||
<span class="mb-3 mb-md-0 text-muted">© 2022 Three 11</span> | ||
</footer> | ||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.