GithubHelp home page GithubHelp logo

admin-frontend's Introduction

简介

本项目基于 Vue3.0ViteNaive UITypeScript 开发,使用了最新的前端技术栈,并提炼了典型的业务模型,页面,包括二次封装组件、动态菜单、权限校验、粒子化权限控制等功能。

开发环境准备

  • 安装nodejs

nodejs获取地址:node

  • 安装yarn
npm install -g yarn

项目运行

  • 安装依赖
yarn install
  • 运行
yarn dev

项目部署

  1. 打包:进入项目根目录,执行如下命令
yarn build
  1. 将打包好的dist文件夹压缩成dist.zip包
  2. 通过ssh登录到服务器,使用sudo su切换到root用户
  3. 进入部署目录(/usr/local/var/html),通过命令 rz -y 将dist.zip上传到部署目录 通过unzip dist.zip解压压缩包,部署完成。

开发依赖文档

项目目录

├── build # 打包脚本相关

│   ├── script # 脚本

│   └── vite # vite配置

├── public # 公共静态资源目录

├── src # 主目录

│   ├── api # 接口文件

│   ├── assets # 资源文件

│   │   ├── icons # icon sprite 图标文件夹

│   │   ├── images # 项目存放图片的文件夹

│   ├── components # 公共组件

│   ├── directives # 指令

│   ├── enums # 枚举/常量

│   ├── hooks # hook

│   │   ├── core # 基础hook

│   │   ├── event # 事件相关hook

│   │   ├── setting # 配置相关hook

│   │   └── web # web相关hook

│   ├── layouts # 布局文件

│   ├── main.ts # 主入口

│   ├── router # 路由配置

│   ├── settings # 项目配置

│   │   ├── animateSetting.ts # 动画配置

│   │   ├── componentSetting.ts # 组件配置

│   │   ├── designSetting.ts # 样式配置

│   │   ├── projectSetting.ts # 项目配置

│   ├── store # 数据仓库

│   ├── utils # 工具类

│   └── views # 页面

├── types # 类型文件

├── vite.config.ts # vite配置文件

浏览器支持

本地开发推荐使用Chrome 80+ 浏览器

支持现代浏览器, 不支持 IE

 Edge
IE
 Edge
Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
not support last 2 versions last 2 versions last 2 versions last 2 versions

admin-frontend's People

Contributors

willwan92 avatar shengpeixiang avatar

Watchers

James Cloos avatar  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.