3 Star 0 Fork 0

linyz/culture-detection-web

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Vite + Vue 3 + typescript + tailwindcss

VSCode

  • 推荐安装插件
    1. dbaeumer.vscode-eslint
    2. lokalise.i18n-ally
    3. esbenp.prettier-vscode
    4. bradlc.vscode-tailwindcss
    5. johnsoncodehk.volar
  • 配置 File -> Preferences -> Settings -> Extensions -> Edit in settings.json -> 扩展 settings 加入以下配置
    "settings": {
      "editor.tabSize": 2,
      "prettier.requireConfig": true,
      "editor.formatOnSave": false,
      "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
      },
      "eslint.format.enable": true,
      "eslint.validate": ["javascript", "vue", "html"],
      "eslint.codeAction.showDocumentation": {
        "enable": true
      },
      "i18n-ally.localesPaths": ["src/locales/lang"],
      "i18n-ally.keystyle": "nested",
      "i18n-ally.sortKeys": true,
      "i18n-ally.namespace": true,
      "i18n-ally.pathMatcher": "{locale}/{namespaces}.{ext}",
      "i18n-ally.enabledParsers": ["ts"],
      "i18n-ally.sourceLanguage": "en",
      "i18n-ally.enabledFrameworks": [
        "vue",
        "react"
      ],
      "tailwindCSS.rootFontSize": 14
    }

主要项目结构说明

  • build
  • src
    • api
      • aiot aiot应用所有接口定义
      • req axios 封装
      • account.ts 平台账号相关操作接口
      • curd.ts 增删查改接口统一封装
      • models.ts 接口共用类型定义
    • base
      • env.ts 所有环境变量
    • components
      • common 通用的跟业务无关的组件定义在此文件夹下
      • 根目录 公共业务组件
    • hooks 公共 hook
    • locales 国际化配置
    • router 路由配置
    • stores pinia 配置
    • style
      • common.less 公共样式
      • sl.less 根据申菱 UI 样式 重写对应 antd 组件的样式
    • types
      • antd.ts antdv 类型补充
      • common.ts 公共类型定义
      • components.ts 公共组件的部分类型定义
    • utils
    • views 页面定义

记录

  • ant-design-vue 更新后,需要重新安装 dayjs,不然出现国际化问题
  • components 目录下的组件不需额外引入,直接使用,但注意文件名字要唯一

其它

admin ggggggggggg 15916060098 13494609359

192.1.5.252 sl.aiot.com 192.1.5.252 sl.aiot.web.com 192.1.5.252 sl.argocd.com

2022-05-18

空文件

简介

culture-detection-web 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/weeksun23/culture-detection-web.git
git@gitee.com:weeksun23/culture-detection-web.git
weeksun23
culture-detection-web
culture-detection-web
master

搜索帮助

Cb406eda 1850385 E526c682 1850385