瀏覽代碼

🐎 ci(page): 清理pages信息

陈雪 4 周之前
父節點
當前提交
b36b01bcfa
共有 3 個文件被更改,包括 2 次插入147 次删除
  1. 2 0
      .gitignore
  2. 0 119
      src/pages.json
  3. 0 28
      src/types/uni-pages.d.ts

+ 2 - 0
.gitignore

@@ -27,6 +27,8 @@ dist
 docs/.vitepress/dist
 docs/.vitepress/cache
 
+src/pages.json
+src/types/uni-pages.d.ts
 # lock 文件还是不要了,我主要的版本写死就好了
 # pnpm-lock.yaml
 # package-lock.json

+ 0 - 119
src/pages.json

@@ -1,119 +0,0 @@
-{
-  "globalStyle": {
-    "navigationStyle": "default",
-    "navigationBarTitleText": "unibest",
-    "navigationBarBackgroundColor": "#f8f8f8",
-    "navigationBarTextStyle": "black",
-    "backgroundColor": "#FFFFFF"
-  },
-  "easycom": {
-    "autoscan": true,
-    "custom": {
-      "^wd-(.*)": "wot-design-uni/components/wd-$1/wd-$1.vue",
-      "^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue"
-    }
-  },
-  "tabBar": {
-    "custom": true,
-    "color": "#999999",
-    "selectedColor": "#018d71",
-    "backgroundColor": "#F8F8F8",
-    "borderStyle": "black",
-    "height": "50px",
-    "fontSize": "10px",
-    "iconWidth": "24px",
-    "spacing": "3px",
-    "list": [
-      {
-        "icon": "/static/tabbar/home.png",
-        "pagePath": "pages/index/index",
-        "text": "tabbar.home",
-        "iconType": "local"
-      },
-      {
-        "icon": "/static/tabbar/category.png",
-        "pagePath": "pages/category/category",
-        "text": "tabbar.category",
-        "iconType": "local"
-      },
-      {
-        "icon": "/static/tabbar/cart.png",
-        "pagePath": "pages/cart/cart",
-        "text": "tabbar.cart",
-        "iconType": "local"
-      },
-      {
-        "icon": "/static/tabbar/community.png",
-        "pagePath": "pages/community/community",
-        "text": "tabbar.community",
-        "iconType": "local"
-      },
-      {
-        "icon": "/static/tabbar/person.png",
-        "pagePath": "pages/person/person",
-        "text": "tabbar.person",
-        "iconType": "local"
-      }
-    ]
-  },
-  "pages": [
-    {
-      "path": "pages/index/index",
-      "type": "home",
-      "layout": "tabbar",
-      "style": {
-        "navigationStyle": "custom",
-        "navigationBarTitleText": "%tabbar.home%"
-      }
-    },
-    {
-      "path": "pages/about/about",
-      "type": "page",
-      "style": {
-        "navigationBarTitleText": "%app.name%"
-      }
-    },
-    {
-      "path": "pages/cart/cart",
-      "type": "page",
-      "layout": "tabbar",
-      "style": {
-        "navigationStyle": "custom",
-        "navigationBarTitleText": "%tabbar.cart%"
-      }
-    },
-    {
-      "path": "pages/category/category",
-      "type": "page",
-      "layout": "tabbar",
-      "style": {
-        "navigationBarTitleText": "%tabbar.category%"
-      }
-    },
-    {
-      "path": "pages/community/community",
-      "type": "page",
-      "layout": "tabbar",
-      "style": {
-        "navigationBarTitleText": "%tabbar.community%"
-      }
-    },
-    {
-      "path": "pages/person/person",
-      "type": "page",
-      "layout": "tabbar",
-      "style": {
-        "navigationBarTitleText": "%tabbar.person%"
-      }
-    },
-    {
-      "path": "pages/user/login",
-      "type": "page",
-      "style": {
-        "navigationStyle": "custom",
-        "navigationBarTitleText": "登录"
-      }
-    }
-  ],
-  "subPackages": []
-}

+ 0 - 28
src/types/uni-pages.d.ts

@@ -1,28 +0,0 @@
-/* eslint-disable */
-/* prettier-ignore */
-// @ts-nocheck
-// Generated by vite-plugin-uni-pages
-
-interface NavigateToOptions {
-  url: "/pages/index/index" |
-       "/pages/about/about" |
-       "/pages/cart/cart" |
-       "/pages/category/category" |
-       "/pages/community/community" |
-       "/pages/person/person" |
-       "/pages/user/login";
-}
-interface RedirectToOptions extends NavigateToOptions {}
-
-interface SwitchTabOptions {
-  url: "/pages/index/index" | "/pages/category/category" | "/pages/cart/cart" | "/pages/community/community" | "/pages/person/person"
-}
-
-type ReLaunchOptions = NavigateToOptions | SwitchTabOptions;
-
-declare interface Uni {
-  navigateTo(options: UniNamespace.NavigateToOptions & NavigateToOptions): void;
-  redirectTo(options: UniNamespace.RedirectToOptions & RedirectToOptions): void;
-  switchTab(options: UniNamespace.SwitchTabOptions & SwitchTabOptions): void;
-  reLaunch(options: UniNamespace.ReLaunchOptions & ReLaunchOptions): void;
-}