Procházet zdrojové kódy

feat: 合并依赖迁移1

zhangyuhan před 5 měsíci
rodič
revize
5a4c1a39f7

+ 3 - 3
.npmrc

@@ -1,3 +1,3 @@
-registry=http://192.168.3.71:4873/
-@jianyu:registry=http://192.168.3.71:4873/
-element-ui:registry=http://192.168.3.71:4873/
+registry=http://172.20.100.235:14873/
+@jianyu:registry=http://172.20.100.235:14873/
+element-ui:registry=http://172.20.100.235:14873/

+ 12 - 5
README.md

@@ -1,14 +1,16 @@
 # web
+
 > 剑鱼产品整体前端应用,基于 vite、pnpm 构建 monorepo 体系。
 
 该项目目前聚合了:
 
-* `jy-mobile` => `apps/mobile`
-* `page_bigmember_pc` => `apps/bigmember_pc`
-* `page_workDesktop` => `apps/work-bench`
-* `jy-pc` => `apps/jy-pc`
+- `jy-mobile` => `apps/mobile`
+- `page_bigmember_pc` => `apps/bigmember_pc`
+- `page_workDesktop` => `apps/work-bench`
+- `jy-pc` => `apps/jy-pc`
 
 ## 目录结构导航
+
 ```
 ├── apps
 │   ├── bigmember_pc
@@ -35,20 +37,24 @@
 ```
 
 ## 开发
+
 环境要求:
+
 1. node v16.20.1 +
 2. pnpm
 
 ```shell
-pnpm set registry http://192.168.3.71:4873/
+pnpm set registry http://172.20.100.235:14873/
 ```
 
 ### 启动
+
 ```shell
 pnpm run dev:doc
 ```
 
 ### 编译
+
 ```shell
 pnpm run build:doc
 ```
@@ -56,6 +62,7 @@ pnpm run build:doc
 ## 更多
 
 ### 从MultiRepo 到MonoRepo
+
 MonoRepo 其实不是一个新的概念,在软件工程领域,它已经有着十多年的历史了。
 
 概念上很好理解,就是把多个项目放在一个仓库里面,相对立的是传统的 MultiRepo 模式,即每个项目对应一个单独的仓库来分散管理。

+ 1 - 1
apps/bigmember_pc/.npmrc

@@ -1,2 +1,2 @@
 registry=https://registry.npmmirror.com/
-@jianyu:registry=http://192.168.3.71:4873/
+@jianyu:registry=http://172.20.100.235:14873/

+ 3 - 3
apps/mobile/.npmrc

@@ -1,5 +1,5 @@
 always-auth=true
 registry=https://registry.npmmirror.com/
-@jianyu:registry=http://192.168.3.71:4873/
-@jy:registry=http://192.168.3.71:4873/
-element-ui:registry=http://192.168.3.71:4873/
+@jianyu:registry=http://172.20.100.235:14873/
+@jy:registry=http://172.20.100.235:14873/
+element-ui:registry=http://172.20.100.235:14873/

+ 1 - 1
apps/work-bench/.npmrc

@@ -1,2 +1,2 @@
 registry=https://registry.npmmirror.com/
-@jianyu:registry=http://192.168.3.71:4873/
+@jianyu:registry=http://172.20.100.235:14873/

+ 143 - 51
docs/.vitepress/layout/component/Footer.vue

@@ -4,42 +4,110 @@ const { page } = useData()
 
 const footerGroups = [
   {
-    mainLink: { text: '品牌', url: 'https://www.jianyu360.cn/brand/index', target: '_blank' },
+    mainLink: {
+      text: '品牌',
+      url: 'https://www.jianyu360.cn/brand/index',
+      target: '_blank'
+    },
     links: [
-      { text: '公司介绍', url: 'https://www.jianyu360.cn/brand/index', target: '_blank' },
-      { text: '发展历程', url: 'https://www.jianyu360.cn/brand/index#history', target: '_blank' },
-      { text: '公司动态', url: 'https://www.jianyu360.cn/brand/index#Company_Dynamic', target: '_blank' },
-      { text: '加入我们', url: 'https://www.jianyu360.cn/brand/index#join_us', target: '_blank' },
-      { text: '联系我们', url: 'https://www.jianyu360.cn/brand/index#contact_us', target: '_blank' }
+      {
+        text: '公司介绍',
+        url: 'https://www.jianyu360.cn/brand/index',
+        target: '_blank'
+      },
+      {
+        text: '发展历程',
+        url: 'https://www.jianyu360.cn/brand/index#history',
+        target: '_blank'
+      },
+      {
+        text: '公司动态',
+        url: 'https://www.jianyu360.cn/brand/index#Company_Dynamic',
+        target: '_blank'
+      },
+      {
+        text: '加入我们',
+        url: 'https://www.jianyu360.cn/brand/index#join_us',
+        target: '_blank'
+      },
+      {
+        text: '联系我们',
+        url: 'https://www.jianyu360.cn/brand/index#contact_us',
+        target: '_blank'
+      }
     ]
   },
   {
     mainLink: { text: '业界团队', url: 'javascript:;' },
     links: [
-      { text: '拓普前端技术文档', url: 'http://192.168.3.42/doc/home/', target: '_blank' },
-      { text: '凹凸实验室', url: 'https://o2team.github.io/', target: '_blank' },
-      { text: '淘系前端团队', url: 'https://fed.taobao.org/', target: '_blank' },
-      { text: '百度 FEX', url: 'https://fex-team.github.io/', target: '_blank' },
+      {
+        text: '拓普前端技术文档',
+        url: 'http://192.168.3.42/doc/home/',
+        target: '_blank'
+      },
+      {
+        text: '凹凸实验室',
+        url: 'https://o2team.github.io/',
+        target: '_blank'
+      },
+      {
+        text: '淘系前端团队',
+        url: 'https://fed.taobao.org/',
+        target: '_blank'
+      },
+      {
+        text: '百度 FEX',
+        url: 'https://fex-team.github.io/',
+        target: '_blank'
+      },
       { text: 'AlloyTeam', url: 'https://www.alloyteam.com/', target: '_blank' }
     ]
   },
   {
     mainLink: { text: '内网相关', url: 'javascript:;' },
     links: [
-      { text: 'OA 办公', url: 'http://1.192.217.143:8985/seeyon/main.do', target: '_blank' },
-      { text: 'KB 看板', url: 'https://jykb.jydev.jianyu360.com/dashboard', target: '_blank' },
-      { text: 'Verdaccio', url: 'http://192.168.3.71:4873/', target: '_blank' },
-      { text: 'Sentry 监控', url: 'https://jysentry.jydev.jianyu360.cn/', target: '_blank' },
+      {
+        text: 'OA 办公',
+        url: 'http://1.192.217.143:8985/seeyon/main.do',
+        target: '_blank'
+      },
+      {
+        text: 'KB 看板',
+        url: 'https://jykb.jydev.jianyu360.com/dashboard',
+        target: '_blank'
+      },
+      {
+        text: 'Verdaccio',
+        url: 'http://172.20.100.235:14873/',
+        target: '_blank'
+      },
+      {
+        text: 'Sentry 监控',
+        url: 'https://jysentry.jydev.jianyu360.cn/',
+        target: '_blank'
+      },
       { text: 'YAPI 文档', url: 'http://192.168.3.71:4000/', target: '_blank' }
     ]
   },
   {
     mainLink: { text: '快捷链接', url: 'javascript:;' },
     links: [
-      { text: 'MDN', url: 'https://developer.mozilla.org/zh-CN/', target: '_blank' },
-      { text: 'BrowsersList', url: 'https://browserslist.dev/', target: '_blank' },
+      {
+        text: 'MDN',
+        url: 'https://developer.mozilla.org/zh-CN/',
+        target: '_blank'
+      },
+      {
+        text: 'BrowsersList',
+        url: 'https://browserslist.dev/',
+        target: '_blank'
+      },
       { text: 'Can I use', url: 'https://caniuse.com/', target: '_blank' },
-      { text: '可视化正则工具', url: 'https://jex.im/regulex/', target: '_blank' },
+      {
+        text: '可视化正则工具',
+        url: 'https://jex.im/regulex/',
+        target: '_blank'
+      },
       { text: '可视化 AST', url: 'https://astexplorer.net/', target: '_blank' }
     ]
   }
@@ -47,43 +115,68 @@ const footerGroups = [
 </script>
 
 <template>
-  <section class='common-footer-container'>
-    <div class='footer-links'>
-      <div class='footer-links-content w'>
-        <div class='footer-service-links'>
-          <div class='service-links-left'>
-            <dl v-for='(group, index) in footerGroups' :key='index' class='service-links-item'>
-              <dt class='service-links-name'>
-                <a :href='group.mainLink.url' :target='group.mainLink.target'
-                   class='service-link cms-link'>{{ group.mainLink.text }}</a>
+  <section class="common-footer-container">
+    <div class="footer-links">
+      <div class="footer-links-content w">
+        <div class="footer-service-links">
+          <div class="service-links-left">
+            <dl
+              v-for="(group, index) in footerGroups"
+              :key="index"
+              class="service-links-item"
+            >
+              <dt class="service-links-name">
+                <a
+                  :href="group.mainLink.url"
+                  :target="group.mainLink.target"
+                  class="service-link cms-link"
+                  >{{ group.mainLink.text }}</a
+                >
               </dt>
-              <dd v-for='(link, linkIndex) in group.links' :key='linkIndex' class='service-links-children'>
-                <a :href='link.url' :target='link.target' class='service-link cms-link'>{{ link.text }}</a>
+              <dd
+                v-for="(link, linkIndex) in group.links"
+                :key="linkIndex"
+                class="service-links-children"
+              >
+                <a
+                  :href="link.url"
+                  :target="link.target"
+                  class="service-link cms-link"
+                  >{{ link.text }}</a
+                >
               </dd>
             </dl>
           </div>
-          <div class='service-links-right'>
-            <div class='service-links-right-content'>
+          <div class="service-links-right">
+            <div class="service-links-right-content">
               <!-- 右侧内容 -->
-              <div class='service-links-right-module logo'>
-                <div class='logo-large'>
-                  <img alt='logo-large' src='https://cdn-ali2.jianyu360.com/images/pc/logo.png?v=24487'>
+              <div class="service-links-right-module logo">
+                <div class="logo-large">
+                  <img
+                    alt="logo-large"
+                    src="https://cdn-ali2.jianyu360.com/images/pc/logo.png?v=24487"
+                  />
                 </div>
               </div>
-              <div class='service-links-right-module customer-phone'></div>
-              <div class='service-links-right-module qr-list'>
-                <div class='qr-box'>
-                  <div class='qr-img'>
-                    <img alt='download-app'
-                         src='https://www.jianyu360.cn/front/downloadJyApp/qr?page=pc_bottom&amp;source=pc_scan'>
+              <div class="service-links-right-module customer-phone"></div>
+              <div class="service-links-right-module qr-list">
+                <div class="qr-box">
+                  <div class="qr-img">
+                    <img
+                      alt="download-app"
+                      src="https://www.jianyu360.cn/front/downloadJyApp/qr?page=pc_bottom&amp;source=pc_scan"
+                    />
                   </div>
-                  <p class='qr-text'>扫码下载</p>
+                  <p class="qr-text">扫码下载</p>
                 </div>
-                <div class='qr-box'>
-                  <div class='qr-img'>
-                    <img alt='follow-me' src='https://www.jianyu360.cn/front/share/NQMKDCRFBAgGA0xXSF5XQAQEBABEDgIn'>
+                <div class="qr-box">
+                  <div class="qr-img">
+                    <img
+                      alt="follow-me"
+                      src="https://www.jianyu360.cn/front/share/NQMKDCRFBAgGA0xXSF5XQAQEBABEDgIn"
+                    />
                   </div>
-                  <p class='qr-text'>扫码关注</p>
+                  <p class="qr-text">扫码关注</p>
                 </div>
               </div>
             </div>
@@ -91,8 +184,8 @@ const footerGroups = [
         </div>
       </div>
     </div>
-    <div class='footer-copyright'>
-      <p class='copyright w'><span>©2015至今 jianyu360.cn 版权所有 </span></p>
+    <div class="footer-copyright">
+      <p class="copyright w"><span>©2015至今 jianyu360.cn 版权所有 </span></p>
     </div>
   </section>
 </template>
@@ -104,8 +197,8 @@ const footerGroups = [
 }
 .footer-links {
   padding: 16px 48px;
-  background-color: #2B2D30;
-  color: rgba(255, 255, 255, .8);
+  background-color: #2b2d30;
+  color: rgba(255, 255, 255, 0.8);
   text-align: center;
   font-weight: normal;
 }
@@ -146,7 +239,7 @@ a.service-link:hover {
 .service-links-name a {
   white-space: nowrap;
   font-size: inherit;
-  color: rgba(255, 255, 255, .8);
+  color: rgba(255, 255, 255, 0.8);
 }
 
 .service-links-children {
@@ -156,7 +249,7 @@ a.service-link:hover {
 .service-links-children a {
   display: inline-block;
   font-size: 12px;
-  color: rgba(255, 255, 255, .6);
+  color: rgba(255, 255, 255, 0.6);
   line-height: 20px;
   white-space: nowrap;
 }
@@ -250,5 +343,4 @@ a.service-link:hover {
     border-left-color: transparent;
   }
 }
-
 </style>

+ 18 - 13
docs/guide/development.md

@@ -4,11 +4,11 @@
 
 ## IDE
 
-* [vs code](https://code.visualstudio.com/)
+- [vs code](https://code.visualstudio.com/)
 
   微软出品,开源,基于Electron开发,体积小,扩展多。
 
-* [WebStorm Eap](https://www.jetbrains.com/webstorm/eap/)
+- [WebStorm Eap](https://www.jetbrains.com/webstorm/eap/)
 
   有强大的智能补全和提示,写起来比 vs code 舒服很多。
   但是是一款收费软件,这里建议使用免费的 WebStorm Eap 版,是预发布版本,每月更新体验测试。
@@ -17,19 +17,21 @@
 
 目前项目主要分为有 `后端渲染网站类` `前后端分离应用类`。
 
-* 后端渲染网站类:采用 go 语言开发,需要安装对应环境或使用编译后的可执行文件。
-* 前后端分离应用类:需要安装 Node 环境。
+- 后端渲染网站类:采用 go 语言开发,需要安装对应环境或使用编译后的可执行文件。
+- 前后端分离应用类:需要安装 Node 环境。
 
 ## 后端渲染网站类
 
 核心项目 `jy` 项目采用后端渲染网站类,所以这里主要介绍如何配置开发环境。
 
 ## 使用可执行文件运行
+
 > 注意:如果用了测试环境接口,则要修改本地可执行文件下配置,让登录状态保持一致
 
 如果临时处理任务,可获取可执行文件运行项目。
 
 以Windows为例,执行下面两个可执行文件,来启动项目
+
 ```
 ./src/main.exe
 ./src/jfw/modules/app/src/app.exe
@@ -41,7 +43,6 @@
 
 根据自己操作系统下载对应的安装包:[安装包下载地址](https://go.dev/dl/)
 
-
 ## 安装nginx
 
 根据自己操作系统下载不同的平台(Windows/MAC)的安装包:[安装包下载地址](https://nginx.org/en/download.html)
@@ -49,14 +50,17 @@
 ## nginx配置
 
 拉取配置文件
+
 ```
 git clone http://192.168.3.207:8080/cuiyalong/nginx-conf.git
 ```
+
 将本地 nginx.conf 配置文件替换掉,并将`/servers`目录下文件复制到 nginx.conf同级
 
 在根据自己代码位置,对`/servers/localhost.conf`进行修改
 
 ### 使用测试环境接口
+
 ```
 location /bigmember {
     # 兼容本地http与测试环境的https
@@ -77,20 +81,21 @@ Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。
 
 推荐使用 `nvm`。
 
-* [node](https://nodejs.org/en/) 官网下载最新稳定版
+- [node](https://nodejs.org/en/) 官网下载最新稳定版
 
-* [nvm](https://github.com/coreybutler/nvm-windows) 使用nvm管理和切换Node版本
+- [nvm](https://github.com/coreybutler/nvm-windows) 使用nvm管理和切换Node版本
 
-* [npx](https://juejin.im/entry/59658035f265da6c360a19dd) 使用npx也可以用来切换Node版本
+- [npx](https://juejin.im/entry/59658035f265da6c360a19dd) 使用npx也可以用来切换Node版本
   ```
   npx node@4 -e "console.log(process.version)"
   npx node@6 -e "console.log(process.version)"
   ```
 
 ## 包管理
-推荐使用 `pnpm`,优先采用[内网包管理](http://192.168.3.71:4873/), 如果网络不好,可以切换到外网。
 
-* [pnpm](https://pnpm.js.org/)
+推荐使用 `pnpm`,优先采用[内网包管理](http://172.20.100.235:14873/), 如果网络不好,可以切换到外网。
+
+- [pnpm](https://pnpm.js.org/)
   ```shell
   npm install -g pnpm
   ```
@@ -98,11 +103,11 @@ Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境。
 ::: code-group
 
 ```shell [pnpm]
-pnpm set registry http://192.168.3.71:4873/
+pnpm set registry http://172.20.100.235:14873/
 ```
 
 ```shell [yarn]
-yarn config set registry http://192.168.3.71:4873/
+yarn config set registry http://172.20.100.235:14873/
 ```
-:::
 
+:::

+ 1 - 1
docs/resource.md

@@ -101,7 +101,7 @@ const NavItems = [
         icon: '/icon/logo-npm.png',
         title: '内网 NPM',
         desc: '用于内网的 npm 代理注册表',
-        href: 'http://192.168.3.71:4873/'
+        href: 'http://172.20.100.235:14873/'
       },
       {
         icon: 'http://jygit.jydev.jianyu360.cn/img/favicon.png',

+ 3 - 3
packages/pc-ui/.npmrc

@@ -1,3 +1,3 @@
-registry=http://192.168.3.71:4873/
-@jianyu:registry=http://192.168.3.71:4873/
-element-ui:registry=http://192.168.3.71:4873/
+registry=http://172.20.100.235:14873/
+@jianyu:registry=http://172.20.100.235:14873/
+element-ui:registry=http://172.20.100.235:14873/