Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ant-design-dtinsight-theme

Package Overview
Dependencies
Maintainers
4
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ant-design-dtinsight-theme

This is a document of dtinsight-theme based on Ant Design.

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
4
Weekly downloads
 
Created
Source

DT Theme

本项目为数栈 UI4.0 规范样式

项目预览地址:http://172.16.8.108:8989/docs/react/getting-started-cn (内网访问)

目录结构



├── .
├── .gitignore         // git 忽略
├── README.md          // 文档说明
├── bisheng.config.js  // 全局配置文件
├── components         // 组件功能
├── dist               // 打包后静态文件输出目录
├── docs               // markdown 文件
├── default.conf       // docker nignx 配置文件
├── package.json       // 项目依赖
└── theme              // 基于 Ant Desgin 的主题(子目录中的dt-theme为UI4.0定制样式)


项目启动&打包


  • npm install // 安装项目依赖

  • npm run dev // 启动项目

  • npm run clean // 清除 dist 目录下的静态文件

  • npm run release // 版本发布

  • npm run changelog // 生成changelog

  • npm run build // 打包项目、静态文件生成目录为当前目录的 dist


Nginx 配置



server {
    listen 80;

    server_name api.domain.com;

    root /www/antd-bisheng-docs/dist;

    location / {
        index index.html;
        rewrite ^/$ /docs/react/getting-started.html redirect;
    }

    error_page  500 502 503 504 404 http://api.domain.com/docs/react/getting-started.html;

}


注意事项


  • 模板文件路径 ./theme/static/template.html

  • 首页为空白页,需用 nginx rewrite 至指定页面

  • 目前仅支持中文,如需使用其他语言请自行解决

FAQs

Package last updated on 19 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc