Code Monkey home page Code Monkey logo

openhackathon-web's Introduction

Open Hackathon - Web App

Open-source Hackathon Platform with Git-based Cloud Development Environment

CI & CD

Open in GitHub Codespaces Open in Gitpod

Key links

Technology stack

Getting Started

First, run the development server:

npm i
npm run dev
# or
npm i pnpm -g
pnpm i
pnpm dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

FOSSA Status

openhackathon-web's People

Contributors

codebyzack avatar darrenjoe avatar five-great avatar huoyueyuyuan avatar juniwang avatar papayahuang avatar scarqin avatar scluojie avatar shakalakab avatar soecka avatar stevending1st avatar techquery avatar wangrunlin avatar zaza32456 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

openhackathon-web's Issues

编辑黑客松导致时间字段推迟

问题:编辑黑客松时,每保存一次,各时间字段(报名开始时间、结束时间等)的值都会向后推8个小时。
原因:后端保存的是ISO时间,网页上显示的是本地时间。从后端获取到时间后会减去时区偏移显示,但提交时没有将时间偏移加上去。

node_modules/web-utility/source/date.ts

export function formatDate(
    time: TimeData = new Date(),
    template = 'YYYY-MM-DD HH:mm:ss'
) {
    time = time instanceof Date ? time : new Date(time);
    time = new Date(+time - time.getTimezoneOffset() * Minute);

解决:在web-utility中,通过formToJSON获取编辑好的时间时加上时区偏移

EasyWebApp/web-utility#1

            case 'datetime-local':
                value = new Date(value).toISOString();

参与者填写信息表单

在黑客松参与者报名了之后,提交基本信息给组织方
姓名,手机,邮箱,微信号,性别,所在地,学校/公司,职业,专业背景,擅长方向/兴趣爱好,期望做的项目,其他。等

7. 活动报名

基础需求:

  • 加入团队

进阶需求

  • 支持小组形式进行报名,包括输入小组名称、添加队员、队伍简介等

首页最新活动列表只显示一个活动

API(hackathons?listType=fresh&top=10)只返回了一条记录,fresh的标准是什么?建议不要规定多少天内,按时间排序,返回最新的指定条数记录就可以了。

5. 支持对已报名人员进行搜索、统计

报名-后台端界面

  • 支持搜索功能(时间、学校、人名、邮箱、手机号);
  • 报表统计,包括总人数统计、报名时间和人数分布图、国内和国外学员分布图等

新建黑客松活动并上传banner图片报错

新建黑客松活动时,在表单中上传banner图片,提交时报错“The name field is required.”

原因:在BasicForm中save时先调用addBanner方法,在addBanner中触发updateOne,但此时id字段为空,在updateOne方法中会触发检查名字可用性的逻辑,但因为只传了id和banners给updateOne,name字段不存在,因此报错。

    async addBanner(file: File) {
        const uri = await this.session.upload(file);
        const { name, banners } = this.current;

        const { banners: images } = await this.updateOne({
            id: name,
            banners: [...(banners || []), { uri }]
        });
        return images.slice(-1)[0];
    }

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet.
We recommend using:

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.