build: init

master
xing 2 years ago
parent fbc1b7a9a8
commit 3a803cabef
  1. 8
      .idea/.gitignore
  2. 9
      .idea/admin.iml
  3. 7
      .idea/inspectionProfiles/Project_Default.xml
  4. 6
      .idea/misc.xml
  5. 8
      .idea/modules.xml
  6. 6
      .idea/vcs.xml
  7. 129
      components.d.ts
  8. 13
      config/vite.config.build.ts
  9. 5
      index.html
  10. 8
      package.json
  11. 1
      src/store/modules/user/types.ts

8
.idea/.gitignore vendored

@ -0,0 +1,8 @@
# 默认忽略的文件
/shelf/
/workspace.xml
# 基于编辑器的 HTTP 客户端请求
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

@ -0,0 +1,7 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="Stylelint" enabled="true" level="ERROR" enabled_by_default="true" />
</profile>
</component>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/admin.iml" filepath="$PROJECT_DIR$/.idea/admin.iml" />
</modules>
</component>
</project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

129
components.d.ts vendored

@ -1,81 +1,66 @@
// generated by unplugin-vue-components // generated by unplugin-vue-components
// We suggest you to commit this file into source control // We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/core/pull/3399 // Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core' import '@vue/runtime-core';
export {} export {};
declare module '@vue/runtime-core' { declare module '@vue/runtime-core' {
export interface GlobalComponents { export interface GlobalComponents {
AAffix: typeof import('@arco-design/web-vue')['Affix'] AAffix: typeof import('@arco-design/web-vue')['Affix'];
AAlert: typeof import('@arco-design/web-vue')['Alert'] AAlert: typeof import('@arco-design/web-vue')['Alert'];
AAvatar: typeof import('@arco-design/web-vue')['Avatar'] AAvatar: typeof import('@arco-design/web-vue')['Avatar'];
AAvatarGroup: typeof import('@arco-design/web-vue')['AvatarGroup'] ABadge: typeof import('@arco-design/web-vue')['Badge'];
ABadge: typeof import('@arco-design/web-vue')['Badge'] ABreadcrumb: typeof import('@arco-design/web-vue')['Breadcrumb'];
ABreadcrumb: typeof import('@arco-design/web-vue')['Breadcrumb'] ABreadcrumbItem: typeof import('@arco-design/web-vue')['BreadcrumbItem'];
ABreadcrumbItem: typeof import('@arco-design/web-vue')['BreadcrumbItem'] AButton: typeof import('@arco-design/web-vue')['Button'];
AButton: typeof import('@arco-design/web-vue')['Button'] ACard: typeof import('@arco-design/web-vue')['Card'];
ACard: typeof import('@arco-design/web-vue')['Card'] ACarousel: typeof import('@arco-design/web-vue')['Carousel'];
ACardMeta: typeof import('@arco-design/web-vue')['CardMeta'] ACarouselItem: typeof import('@arco-design/web-vue')['CarouselItem'];
ACarousel: typeof import('@arco-design/web-vue')['Carousel'] ACheckbox: typeof import('@arco-design/web-vue')['Checkbox'];
ACarouselItem: typeof import('@arco-design/web-vue')['CarouselItem'] ACol: typeof import('@arco-design/web-vue')['Col'];
ACascader: typeof import('@arco-design/web-vue')['Cascader'] AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider'];
ACheckbox: typeof import('@arco-design/web-vue')['Checkbox'] ADivider: typeof import('@arco-design/web-vue')['Divider'];
ACol: typeof import('@arco-design/web-vue')['Col'] ADoption: typeof import('@arco-design/web-vue')['Doption'];
AConfigProvider: typeof import('@arco-design/web-vue')['ConfigProvider'] ADrawer: typeof import('@arco-design/web-vue')['Drawer'];
ADescriptions: typeof import('@arco-design/web-vue')['Descriptions'] ADropdown: typeof import('@arco-design/web-vue')['Dropdown'];
ADivider: typeof import('@arco-design/web-vue')['Divider'] AForm: typeof import('@arco-design/web-vue')['Form'];
ADoption: typeof import('@arco-design/web-vue')['Doption'] AFormItem: typeof import('@arco-design/web-vue')['FormItem'];
ADrawer: typeof import('@arco-design/web-vue')['Drawer'] AGrid: typeof import('@arco-design/web-vue')['Grid'];
ADropdown: typeof import('@arco-design/web-vue')['Dropdown'] AGridItem: typeof import('@arco-design/web-vue')['GridItem'];
AForm: typeof import('@arco-design/web-vue')['Form'] AInput: typeof import('@arco-design/web-vue')['Input'];
AFormItem: typeof import('@arco-design/web-vue')['FormItem'] AInputNumber: typeof import('@arco-design/web-vue')['InputNumber'];
AGrid: typeof import('@arco-design/web-vue')['Grid'] AInputPassword: typeof import('@arco-design/web-vue')['InputPassword'];
AGridItem: typeof import('@arco-design/web-vue')['GridItem'] ALayout: typeof import('@arco-design/web-vue')['Layout'];
AInput: typeof import('@arco-design/web-vue')['Input'] ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent'];
AInputNumber: typeof import('@arco-design/web-vue')['InputNumber'] ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter'];
AInputPassword: typeof import('@arco-design/web-vue')['InputPassword'] ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider'];
AInputSearch: typeof import('@arco-design/web-vue')['InputSearch'] ALink: typeof import('@arco-design/web-vue')['Link'];
ALayout: typeof import('@arco-design/web-vue')['Layout'] AList: typeof import('@arco-design/web-vue')['List'];
ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent'] AListItem: typeof import('@arco-design/web-vue')['ListItem'];
ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter'] AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta'];
ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider'] AMenu: typeof import('@arco-design/web-vue')['Menu'];
ALink: typeof import('@arco-design/web-vue')['Link'] AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'];
AList: typeof import('@arco-design/web-vue')['List'] APopover: typeof import('@arco-design/web-vue')['Popover'];
AListItem: typeof import('@arco-design/web-vue')['ListItem'] ARadio: typeof import('@arco-design/web-vue')['Radio'];
AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta'] ARadioGroup: typeof import('@arco-design/web-vue')['RadioGroup'];
AMenu: typeof import('@arco-design/web-vue')['Menu'] AResult: typeof import('@arco-design/web-vue')['Result'];
AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'] ARow: typeof import('@arco-design/web-vue')['Row'];
AOption: typeof import('@arco-design/web-vue')['Option'] ASpace: typeof import('@arco-design/web-vue')['Space'];
APopover: typeof import('@arco-design/web-vue')['Popover'] ASpin: typeof import('@arco-design/web-vue')['Spin'];
ARadio: typeof import('@arco-design/web-vue')['Radio'] AStatistic: typeof import('@arco-design/web-vue')['Statistic'];
ARadioGroup: typeof import('@arco-design/web-vue')['RadioGroup'] ASubMenu: typeof import('@arco-design/web-vue')['SubMenu'];
ARangePicker: typeof import('@arco-design/web-vue')['RangePicker'] ASwitch: typeof import('@arco-design/web-vue')['Switch'];
AResult: typeof import('@arco-design/web-vue')['Result'] ATable: typeof import('@arco-design/web-vue')['Table'];
ARow: typeof import('@arco-design/web-vue')['Row'] ATableColumn: typeof import('@arco-design/web-vue')['TableColumn'];
ASelect: typeof import('@arco-design/web-vue')['Select'] ATabPane: typeof import('@arco-design/web-vue')['TabPane'];
ASkeleton: typeof import('@arco-design/web-vue')['Skeleton'] ATabs: typeof import('@arco-design/web-vue')['Tabs'];
ASkeletonLine: typeof import('@arco-design/web-vue')['SkeletonLine'] ATag: typeof import('@arco-design/web-vue')['Tag'];
ASkeletonShape: typeof import('@arco-design/web-vue')['SkeletonShape'] ATooltip: typeof import('@arco-design/web-vue')['Tooltip'];
ASpace: typeof import('@arco-design/web-vue')['Space'] ATypographyParagraph: typeof import('@arco-design/web-vue')['TypographyParagraph'];
ASpin: typeof import('@arco-design/web-vue')['Spin'] ATypographyText: typeof import('@arco-design/web-vue')['TypographyText'];
AStatistic: typeof import('@arco-design/web-vue')['Statistic'] ATypographyTitle: typeof import('@arco-design/web-vue')['TypographyTitle'];
AStep: typeof import('@arco-design/web-vue')['Step'] RouterLink: typeof import('vue-router')['RouterLink'];
ASteps: typeof import('@arco-design/web-vue')['Steps'] RouterView: typeof import('vue-router')['RouterView'];
ASubMenu: typeof import('@arco-design/web-vue')['SubMenu']
ASwitch: typeof import('@arco-design/web-vue')['Switch']
ATable: typeof import('@arco-design/web-vue')['Table']
ATableColumn: typeof import('@arco-design/web-vue')['TableColumn']
ATabPane: typeof import('@arco-design/web-vue')['TabPane']
ATabs: typeof import('@arco-design/web-vue')['Tabs']
ATag: typeof import('@arco-design/web-vue')['Tag']
ATextarea: typeof import('@arco-design/web-vue')['Textarea']
ATooltip: typeof import('@arco-design/web-vue')['Tooltip']
ATypographyParagraph: typeof import('@arco-design/web-vue')['TypographyParagraph']
ATypographyText: typeof import('@arco-design/web-vue')['TypographyText']
ATypographyTitle: typeof import('@arco-design/web-vue')['TypographyTitle']
AUpload: typeof import('@arco-design/web-vue')['Upload']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
} }
} }

@ -0,0 +1,13 @@
import { defineConfig } from 'vite';
export default defineConfig({
mode: 'production',
resolve: {
alias: [
{
find: 'vue',
replacement: 'vue/dist/vue.esm-bundler.js', // 需要编译tmp
},
],
},
});

@ -2,9 +2,10 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8"/> <meta charset="UTF-8"/>
<link rel="shortcut icon" type="image/x-icon" href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico"> <link rel="shortcut icon" type="image/x-icon"
href="https://unpkg.byted-static.com/latest/byted/arco-config/assets/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Arco Design Pro - 开箱即用的中台前端/设计解决方案</title> <title>后台管理</title>
</head> </head>
<body> <body>
<div id="app"></div> <div id="app"></div>

@ -1,12 +1,12 @@
{ {
"name": "arco-design-pro-vue", "name": "admin",
"description": "Arco Design Pro for Vue", "description": "后台管理",
"version": "1.0.0", "version": "1.0.0",
"private": true, "private": true,
"author": "ArcoDesign Team", "author": "xiaoxing",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"dev": "vite --config ./config/vite.config.dev.ts", "dev": "vite --host --config ./config/vite.config.dev.ts",
"build": "vue-tsc --noEmit && vite build --config ./config/vite.config.prod.ts", "build": "vue-tsc --noEmit && vite build --config ./config/vite.config.prod.ts",
"report": "cross-env REPORT=true npm run build", "report": "cross-env REPORT=true npm run build",
"preview": "npm run build && vite preview --host", "preview": "npm run build && vite preview --host",

@ -1,4 +1,5 @@
export type RoleType = '' | '*' | 'admin' | 'user'; export type RoleType = '' | '*' | 'admin' | 'user';
export interface UserState { export interface UserState {
name?: string; name?: string;
avatar?: string; avatar?: string;

Loading…
Cancel
Save