参考网站:hellogithub.comopen in new window

和前端有关的开源项目推荐

postwomanopen in new window

  • 一款基于Node.js的免费开源、便捷美观的API调试工具。看到这个名字大概立即就能想到postman了吧。 postwoman

rc-bulletsopen in new window

import React, { useEffect, useState } from 'react';
import BulletScreen, { StyledBullet } from 'rc-bullets';

const headUrl='https://zerosoul.github.io/rc-bullets/assets/img/heads/girl.jpg';
export default function Demo() {
  // 弹幕屏幕
  const [screen, setScreen] = useState(null);
  // 弹幕内容
  const [bullet, setBullet] = useState('');
  useEffect(() => {
    // 给页面中某个元素初始化弹幕屏幕,一般为一个大区块
    let s = new BulletScreen('.screen');
    // or
    // let s=new BulletScreen(document.querySelector('.screen));
    setScreen(s);
  }, []);
  const handleChange = ({ target: { value } }) => {
    setBullet(value);
  };

  const handleSend = () => {
    if (bullet) {
      screen.push(bullet);

      screen.push(
        <StyledBullet
          head={headUrl}
          msg={bullet}
        />
      );
      // or 还可以这样使用,效果等同使用 StyledBullet 组件
      screen.push({msg:bullet,head:headUrl,color:"#eee" bgColor:"rgba(2,2,2,.3)"})
    }
  };
  return (
    <main>
      <div className="screen" style={{ width: '100vw', height: '80vh' }}></div>
      <input value={bullet} onChange={handleChange} />
      <button onClick={handleSend}>发送</button>
    </main>
  );
}

react-loadingopen in new window

  • 一款轻量、开箱即用并且支持按需加载的 React 动画组件库。示例代码:
import React from 'react';
import {DisappearedLoading} from 'react-loading';
const Container = () => <DisappearedLoading ></DisappearedLoading>;
export default Container;  

演示地址

clean code javascriptopen in new window

  • 《Clean Code JavaScript》(JavaScript 代码整洁之道),这是根据《代码整洁之道》作者多年经验整理的 JS 代码优化建议,但也仅仅只是一份建议。
  • 中文浏览版open in new window

python版植物大战僵尸open in new window

  • PYTHON

fioraopen in new window

  • 一个功能丰富、支持多端的在线聊天室。它界面小清新,支持基本的聊天功能的同时还有好玩的消息朗读功能。
  • 基于 TypeScript + React 16.9 代码逻辑清晰、注释较为完善,适合用来学习 node.js、 TypeScript、React 等技术
  • 截图

fiora

icssopen in new window

  • 该项目围绕 CSS 话题,讲述了 CSS 相关的技巧、动画实现
  • 截图

icss

follow me [gtihub]