Parcourir la source

将关键字 tf 替换为 tnb

reghao il y a 3 mois
Parent
commit
0830401b36

+ 2 - 2
README.md

@@ -1,7 +1,7 @@
-# tfapp
+# tnbapp
 ElementUI 的模板框架来自[这个项目](https://github.com/phk422/videoproject-vue) master 分支的 c93506a7 版本
 
-tfapp 模块
+tnbapp 模块
 - /
 > 主站
 - /my

+ 2 - 2
build.sh

@@ -2,6 +2,6 @@
 
 commit_id=`git rev-parse HEAD | cut -c 1-8`
 npm run build
-docker build -t docker.reghao.cn/tf/tfapp:${commit_id} .
-docker push docker.reghao.cn/tf/tfapp:${commit_id}
+docker build -t docker.reghao.cn/tnb/tnbapp:${commit_id} .
+docker push docker.reghao.cn/tnb/tnbapp:${commit_id}
 rm -rf dist

+ 1 - 1
package.json

@@ -1,5 +1,5 @@
 {
-  "name": "tfapp",
+  "name": "tnbapp",
   "version": "0.1.0",
   "private": true,
   "scripts": {

+ 1 - 1
public/index.html

@@ -6,7 +6,7 @@
     <meta name="viewport" content="width=device-width,initial-scale=1.0">
     <link rel="shortcut icon" type="image/png" href="favicon.png"/>
 <!--    <title><%= htmlWebpackPlugin.options.title %></title>-->
-    <title>tfapp</title>
+    <title>tnbapp</title>
 <!--    <script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script>-->
   </head>
   <body>

+ 6 - 6
src/api/tf.js → src/api/tnb.js

@@ -1,12 +1,12 @@
 import { get, post } from '@/utils/request'
 
 const tfApi = {
-  getZkApi: '/api/admin/tf/zk',
-  getZkServiceApi: '/api/admin/tf/zookeeper',
-  getDubboApi: '/api/admin/tf/zk/dubbo',
-  getSpringCloudApi: '/api/admin/tf/eureka/springcloud',
-  getSpringcloudApi: '/api/admin/tf/eureka/springcloud',
-  gatewayRouteApi: '/api/admin/tf/gw/route',
+  getZkApi: '/api/admin/tnb/zk',
+  getZkServiceApi: '/api/admin/tnb/zookeeper',
+  getDubboApi: '/api/admin/tnb/zk/dubbo',
+  getSpringCloudApi: '/api/admin/tnb/eureka/springcloud',
+  getSpringcloudApi: '/api/admin/tnb/eureka/springcloud',
+  gatewayRouteApi: '/api/admin/tnb/gw/route',
   getArticlesApi: '/api/content/admin/video/all'
 }
 

+ 1 - 1
src/components/layout/LoginBar.vue

@@ -5,7 +5,7 @@
         <li role="menuitem" class="el-menu-item">
           <a href="/" style="color: #007bff;text-decoration-line: none">
             <img src="@/assets/img/logo.png" class="logo" alt="img">
-            tfapp
+            tnbapp
           </a>
         </li>
       </ul>

+ 1 - 1
src/components/layout/NavBar.vue

@@ -5,7 +5,7 @@
         <li role="menuitem" class="el-menu-item">
           <a href="/vod" style="color: #007bff;text-decoration-line: none">
             <img src="@/assets/img/logo.png" class="logo" alt="img">
-            tfapp
+            tnbapp
           </a>
         </li>
       </ul>

+ 1 - 1
src/components/layout/NavBarNoSearch.vue

@@ -5,7 +5,7 @@
         <li role="menuitem" class="el-menu-item">
           <a href="/" style="color: #007bff;text-decoration-line: none">
             <img src="@/assets/img/logo.png" class="logo" alt="img">
-            tfapp
+            tnbapp
           </a>
         </li>
       </ul>

+ 1 - 1
src/utils/auth.js

@@ -3,7 +3,7 @@ import FingerprintJS from '@fingerprintjs/fingerprintjs'
 
 const USER_ACCESS_TOKEN = 'ACCESS-TOKEN'
 const USER_REFRESH_TOKEN = 'REFRESH-TOKEN'
-const USER_INFO = 'TFAPP-USERINFO'
+const USER_INFO = 'TNBAPP-USERINFO'
 
 /**
  * 设置已登入用户的 token

+ 1 - 1
src/views/Index.vue

@@ -50,7 +50,7 @@ export default {
     }
   },
   created() {
-    document.title = 'tfapp'
+    document.title = 'tnbapp'
     this.getData()
   },
   methods: {

+ 2 - 2
src/views/admin/backend/AdminBackendLog.vue

@@ -85,8 +85,8 @@ export default {
     },
     initWebSocket() {
       if ('WebSocket' in window) {
-        const wsUrl = 'ws://localhost:6007/logws/pull/runtime?app=tf&host=localhost'
-        const wsUrl1 = 'ws://localhost:6007/logws/pull/access?app=tf&host=localhost'
+        const wsUrl = 'ws://localhost:6007/logws/pull/runtime?app=tnb&host=localhost'
+        const wsUrl1 = 'ws://localhost:6007/logws/pull/access?app=tnb&host=localhost'
         this.wsClient = new WebSocket(wsUrl1)
         const that = this
         this.wsClient.onopen = function() {

+ 1 - 1
src/views/admin/backend/AdminDubboService.vue

@@ -89,7 +89,7 @@
 </template>
 
 <script>
-import { getDubboList, getZkList, getZkService } from '@/api/tf'
+import { getDubboList, getZkList, getZkService } from '@/api/tnb'
 
 export default {
   name: 'AdminDubboService',

+ 1 - 1
src/views/admin/backend/AdminGateway.vue

@@ -9,7 +9,7 @@
 </template>
 
 <script>
-import { getGatewayRoute } from '@/api/tf'
+import { getGatewayRoute } from '@/api/tnb'
 
 export default {
   name: 'AdminGateway',

+ 1 - 1
src/views/admin/backend/AdminSpringCloudService.vue

@@ -65,7 +65,7 @@
 </template>
 
 <script>
-import { getSpringCloudList } from '@/api/tf'
+import { getSpringCloudList } from '@/api/tnb'
 
 export default {
   name: 'AdminSpringCloudService',

+ 1 - 1
src/views/home/PlaylistView.vue

@@ -183,7 +183,7 @@ export default {
       DPlayer,
       danmaku: {
         api: process.env.VUE_APP_SERVER_URL + '/api/comment/danmaku/',
-        token: 'tfapp'
+        token: 'tnbapp'
       },
       getUrl: true
     }

+ 1 - 1
src/views/vod/Index.vue

@@ -30,7 +30,7 @@ export default {
     }
   },*/
   created() {
-    document.title = 'tfapp'
+    document.title = 'tnbapp'
   },
   methods: {
     handleOpen(key, keyPath) {