Git Product home page Git Product logo

periodic-table-pro's Introduction

元素周期表Pro

元素周期表PRO

高颜值的化学元素周期表工具,提供全面的元素属性、图片和百科知识等



简介

元素周期表 Pro 是由欢洋精心打造的原创化学元素周期表工具,采用全新的设计风格,支持Web(H5)、微信小程序、QQ 小程序和支付宝小程序等多种平台,适配不同尺寸的屏幕设备。



网站

Nextjs 构建的网站,项目目录 periodic-table-pro/website

元素周期表PRO - 高颜值化学必备小工具

小程序

Tarojs 构建的多端兼容小程序,项目目录 periodic-table-pro/weapp

微信小程序
QQ小程序
支付宝小程序


环境变量

  • PLATFORM —— 代替 process.env.TARO_ENV, 在 Nextjs 项目中值为 next
  • BUCKET_HOST —— 云服务静态资源存储桶地址,例如 https://xxx.cos.ap-shanghai.myqcloud.com

小程序与 Web 端的兼容方案简介

该项目网站采用 Nextjs, 小程序端采用 Tarojs + React, 并在网站和小程序之间复用了大量的组件。

在 Taro 项目中使用 @tarojs/plugin-html 插件将 html 标签转译为对应小程序的模版。

periodic-table-pro/packages/components/compact 目录中实现了一些根据环境变量同时兼容 Nextjs 与 Tarojs 环境的组件和 API。例如ImageNavigatorpreviewImagenavigatorTo 等。

最后在需要复用的组件中使用这些兼容版的组件和 API。

periodic-table-pro's People

Contributors

baotlake avatar

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.