virtua-github-repo-list GitHub仓库展示组件

展示 GitHub 仓库的 Web 组件,配合主题过滤,体验还挺顺滑的。virtua-github-repo-list就是这么个小巧的工具,封装得干净,适合用来做演示或是快速集成到项目里。

用了Web 组件LitElement,写法挺现代的。结构清晰,逻辑不绕,挺适合熟悉一下现代组件化开发的感觉。

核心功能就是通过 Web 组件展示 GitHub 的仓库列表,可以按主题过滤。比如你想只看TypeScript相关的项目,它就能帮你筛出来。界面不花哨,但挺实用。

项目是用TypeScript写的,结构上比较标准。上手建议先全局装个 TypeScript:npm install -g typescript,跑一遍npm install装依赖。

开发过程中可以用tsc -w开启监听,改代码时立即编译,效率还蛮高的。代码主要在src里,看起来比较直白,注释也清晰。

想快速构建自己组件的,可以搭配create-lit-element用起来,初始化项目方便。

如果你平时喜欢折腾 GitHub 相关工具,顺带看看GitHub Explorer这种 React + TypeScript 的项目也挺有意思。

virtua-github-repo-list适合做学习和二次开发。如果你正好在搞前端组件或者 Web 组件演示,它是个不错的参考。

zip
github-repo-list-master.zip 预估大小:38个文件
folder
github-repo-list-master 文件夹
file
.gitignore 54B
file
package.json 627B
file
package-lock.json 141KB
folder
src 文件夹
folder
1-basic 文件夹
file
github-repo-list.ts 2KB
file
index.html 330B
file
github-model.ts 3KB
folder
examples 文件夹
file
my-ts-lit-element.ts 666B
file
my-web-component.html 227B
file
my-lit-element-js.html 217B
file
index.html 363B
file
my-lit-element-ts.html 223B
folder
4-slots 文件夹
file
styles.ts 475B
file
github-repo-list.ts 3KB
file
index.html 448B
file
repo-filter.ts 2KB
file
repo-card.ts 2KB
file
github-model.ts 3KB
file
index.html 586B
folder
5-css-custom-properties 文件夹
file
styles.ts 475B
file
github-repo-list.ts 3KB
file
index.html 940B
file
repo-filter.ts 2KB
file
repo-card.ts 2KB
file
github-model.ts 3KB
folder
3-filter 文件夹
file
styles.ts 475B
file
github-repo-list.ts 3KB
file
index.html 529B
file
repo-filter.ts 2KB
file
repo-card.ts 2KB
file
github-model.ts 3KB
folder
2-cards 文件夹
file
styles.ts 475B
file
github-repo-list.ts 2KB
file
index.html 330B
file
repo-card.ts 2KB
file
github-model.ts 3KB
file
tsconfig.json 6KB
file
README.md 2KB
file
demo.gif 1.08MB
zip 文件大小:1.05MB