├── .github └── workflows │ └── test.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .prettierignore ├── .prettierrc ├── LICENSE ├── README.md ├── commitlint.config.js ├── data ├── areas.json ├── cities.json ├── data-map.json ├── data.json ├── pc.json ├── pca.json └── provinces.json ├── eslint.config.mjs ├── jest.config.js ├── package.json ├── rollup.config.mjs ├── scripts ├── createData.js ├── extend.js ├── index.js └── util.js ├── src ├── data.ts ├── index.ts └── util.ts ├── tests ├── __snapshots__ │ └── index.test.ts.snap ├── data │ ├── areas.test.ts │ ├── cities.test.ts │ ├── data-map.test.ts │ ├── data.test.ts │ ├── pc.test.ts │ ├── pca.test.ts │ └── provinces.test.ts ├── index.test.ts └── shared │ ├── areasTest.ts │ ├── citiesTest.ts │ ├── dataTest.ts │ ├── definedTest.ts │ ├── inlandFormTest.ts │ ├── inlandTest.ts │ ├── pcFormTest.ts │ ├── pcTest.ts │ ├── pcaFormTest.ts │ ├── pcaTest.ts │ └── provincesTest.ts ├── tsconfig.build.json └── tsconfig.json /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | npx --no-install lint-staged 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/README.md -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = {extends: ['@commitlint/config-conventional']} 2 | -------------------------------------------------------------------------------- /data/areas.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/data/areas.json -------------------------------------------------------------------------------- /data/cities.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/data/cities.json -------------------------------------------------------------------------------- /data/data-map.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/data/data-map.json -------------------------------------------------------------------------------- /data/data.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/data/data.json -------------------------------------------------------------------------------- /data/pc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/data/pc.json -------------------------------------------------------------------------------- /data/pca.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/data/pca.json -------------------------------------------------------------------------------- /data/provinces.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/data/provinces.json -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/package.json -------------------------------------------------------------------------------- /rollup.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/rollup.config.mjs -------------------------------------------------------------------------------- /scripts/createData.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/scripts/createData.js -------------------------------------------------------------------------------- /scripts/extend.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/scripts/extend.js -------------------------------------------------------------------------------- /scripts/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/scripts/index.js -------------------------------------------------------------------------------- /scripts/util.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/scripts/util.js -------------------------------------------------------------------------------- /src/data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/src/data.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/src/util.ts -------------------------------------------------------------------------------- /tests/__snapshots__/index.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/__snapshots__/index.test.ts.snap -------------------------------------------------------------------------------- /tests/data/areas.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/data/areas.test.ts -------------------------------------------------------------------------------- /tests/data/cities.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/data/cities.test.ts -------------------------------------------------------------------------------- /tests/data/data-map.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/data/data-map.test.ts -------------------------------------------------------------------------------- /tests/data/data.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/data/data.test.ts -------------------------------------------------------------------------------- /tests/data/pc.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/data/pc.test.ts -------------------------------------------------------------------------------- /tests/data/pca.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/data/pca.test.ts -------------------------------------------------------------------------------- /tests/data/provinces.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/data/provinces.test.ts -------------------------------------------------------------------------------- /tests/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/index.test.ts -------------------------------------------------------------------------------- /tests/shared/areasTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/areasTest.ts -------------------------------------------------------------------------------- /tests/shared/citiesTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/citiesTest.ts -------------------------------------------------------------------------------- /tests/shared/dataTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/dataTest.ts -------------------------------------------------------------------------------- /tests/shared/definedTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/definedTest.ts -------------------------------------------------------------------------------- /tests/shared/inlandFormTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/inlandFormTest.ts -------------------------------------------------------------------------------- /tests/shared/inlandTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/inlandTest.ts -------------------------------------------------------------------------------- /tests/shared/pcFormTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/pcFormTest.ts -------------------------------------------------------------------------------- /tests/shared/pcTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/pcTest.ts -------------------------------------------------------------------------------- /tests/shared/pcaFormTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/pcaFormTest.ts -------------------------------------------------------------------------------- /tests/shared/pcaTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/pcaTest.ts -------------------------------------------------------------------------------- /tests/shared/provincesTest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tests/shared/provincesTest.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caijf/lcn/HEAD/tsconfig.json --------------------------------------------------------------------------------