Giter Club home page Giter Club logo

theresa-wiki's Introduction

Theresa.wiki

This repo is the frontend of https://theresa.wiki. An arknights wiki.

这是 Theresa.wiki 的前端。一个明日方舟的维基。目前,最重要的功能是查看明日方舟地图场景(大声)

这个 wiki 的定位不是完整(完整维基请去prts),更重要的是通过 杂技 获得 快乐

License

  1. MIT License
    • For all codes (not including ./src/arts/**), the license is MIT License, see LICENSE
  2. CC-BY-SA 4.0 License

Development and Contributing

PR is always welcome on dev branch.

You can use yarn dev to start your development environment.

ENV

.env.local is not loaded in docker, use .env.production.local instead

REDIS_URL is redis:// URL or rediss:// URL. You can leave it blank if not using redis cache. Use redis://redis/0 to specify database.

THERESA_STATIC: default value is https://static.theresa.wiki for production, and http://static.theresa.localhost for local testing

THERESA_S3: You can use https://raw.githubusercontent.com/Kengxxiao/ArknightsGameData/master/zh_CN/gamedata/ for testing. The limitation for s3.theresa.wiki is that it only provides the latest version of the data.

docker

docker build args

THERESA_WIKI_NO_BUILD_DYNAMIC_ROUTES=True to not build dynamic routes like /map/[stageId]. Building these dynamic routes need to fetch data while building. You can specify this with --build-arg THERESA_WIKI_NO_BUILD_DYNAMIC_ROUTES=true when using docker build.

Why removing data files?

In Dockerfile, there is one line RUN rm .next/standalone/.next/server/pages/zh/map.json. This is intend to ask nextjs to refetch data when startup, i.e. fetch data and server with latest data when accessing /map page.

Folder structure

src/arts Arts, including SVGs, used in this project
src/components common components
src/configurations configs
src/models models, including gamedata and react context
src/pages pages

Release process

For merging dev into master

  1. git checkout master
  2. git merge dev --no-ff
  3. git commit --amend Message: Release: x.x.x
  4. git tag x.x.x
  5. git checkout dev
  6. change changelog to next version
  7. git push --tags
  8. git push --all

theresa-wiki's People

Contributors

guansss avatar martinwang2002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

guansss relaxws

theresa-wiki's Issues

扩展地图预览功能以嵌入作业站?

image

如果能把地图嵌入作业站的编辑器的话,选择坐标会变得很方便,而 prts map 那边的 3D 渲染太重量级了,像这种 2D 渲染就正好

嵌入方式是把预览界面抽离成一个轻量级的页面,然后在作业站通过 iframe 引用

交互方式是通过 postMessage 发送事件,比如选中的坐标

win-win 哒!

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.