├── .eslintignore ├── .eslintrc ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── dependabot.yml └── wokflows │ └── main.yml ├── .gitignore ├── .husky └── pre-commit ├── .prettierignore ├── .prettierrc ├── LICENSE ├── README.md ├── example ├── .gitignore ├── index.html ├── package.json ├── public │ └── favicon.ico ├── src │ ├── App.tsx │ ├── EventsTable.tsx │ ├── Footer.tsx │ ├── Graph.tsx │ ├── ScrollListener.tsx │ ├── index.scss │ ├── main.tsx │ ├── utils.ts │ └── vite-env.d.ts ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts ├── package.json ├── pnpm-lock.yaml ├── rollup.config.mjs ├── src ├── codes.ts ├── index.ts ├── lethargy.ts ├── tests │ ├── helpers.ts │ ├── index.test.ts │ ├── lethargy.test.ts │ └── utils.test.ts ├── types.ts └── utils.ts ├── tsconfig.json └── vite.config.ts /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | **/lib/** -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/wokflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/.github/wokflows/main.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | npm run pre-commit 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | .github 2 | lib 3 | node_modules -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/README.md -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/.gitignore -------------------------------------------------------------------------------- /example/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/index.html -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/package.json -------------------------------------------------------------------------------- /example/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/public/favicon.ico -------------------------------------------------------------------------------- /example/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/src/App.tsx -------------------------------------------------------------------------------- /example/src/EventsTable.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/src/EventsTable.tsx -------------------------------------------------------------------------------- /example/src/Footer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/src/Footer.tsx -------------------------------------------------------------------------------- /example/src/Graph.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/src/Graph.tsx -------------------------------------------------------------------------------- /example/src/ScrollListener.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/src/ScrollListener.tsx -------------------------------------------------------------------------------- /example/src/index.scss: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/src/index.scss -------------------------------------------------------------------------------- /example/src/main.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/src/main.tsx -------------------------------------------------------------------------------- /example/src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/src/utils.ts -------------------------------------------------------------------------------- /example/src/vite-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /example/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/tsconfig.json -------------------------------------------------------------------------------- /example/tsconfig.node.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/tsconfig.node.json -------------------------------------------------------------------------------- /example/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/example/vite.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /rollup.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/rollup.config.mjs -------------------------------------------------------------------------------- /src/codes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/src/codes.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/lethargy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/src/lethargy.ts -------------------------------------------------------------------------------- /src/tests/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/src/tests/helpers.ts -------------------------------------------------------------------------------- /src/tests/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/src/tests/index.test.ts -------------------------------------------------------------------------------- /src/tests/lethargy.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/src/tests/lethargy.test.ts -------------------------------------------------------------------------------- /src/tests/utils.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/src/tests/utils.test.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/src/utils.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/snelsi/lethargy-ts/HEAD/vite.config.ts --------------------------------------------------------------------------------