gemercheung 2 anni fa
parent
commit
9d16173201

+ 1 - 1
packages/qjkankan-editor/.env.eurdev

@@ -5,4 +5,4 @@ VUE_APP_PROXY_URL_ROOT='https://eur.4dkankan.com'
 VUE_APP_PROXY_URL='https://eur.4dkankan.com/qjkankan/'
 VUE_APP_ORIGIN=aws
 
-VUE_APP_URL_FILL=
+VUE_APP_URL_FILL=

+ 2 - 1
packages/qjkankan-editor/.env.testdev

@@ -5,4 +5,5 @@ VUE_APP_CDN=https://ossxiaoan.4dage.com
 VUE_APP_PROXY_URL_ROOT='https://test.4dkankan.com'
 VUE_APP_PROXY_URL='https://test.4dkankan.com/qjkankan/'
 VUE_APP_ORIGIN=
-VUE_APP_URL_FILL=
+VUE_APP_URL_FILL=
+VUE_APP_DEBBUG_FLAG=0423-01

+ 2 - 1
packages/qjkankan-editor/.env.testprod

@@ -6,4 +6,5 @@ VUE_APP_CDN=https://ossxiaoan.4dage.com
 VUE_APP_PROXY_URL_ROOT='https://test.4dkankan.com'
 VUE_APP_PROXY_URL='https://test.4dkankan.com/qjkankan/'
 VUE_APP_ORIGIN=
-VUE_APP_URL_FILL=/qjkankan
+VUE_APP_URL_FILL=/qjkankan
+VUE_APP_DEBBUG_FLAG=0423-01

+ 1 - 0
packages/qjkankan-editor/package.json

@@ -24,6 +24,7 @@
     "element-ui": "^2.15.1",
     "html2canvas": "^1.4.1",
     "libphonenumber-js": "^1.10.19",
+    "log-beautify": "^1.2.0",
     "photoswipe": "^4.1.3",
     "quill": "^1.3.7",
     "swiper": "^5.3.8",

+ 13 - 0
packages/qjkankan-editor/src/mixins/debuggerHelper.js

@@ -0,0 +1,13 @@
+
+export const debuggerHelper = (show = true) => {
+
+    if (show) {
+        // log.setColors({
+        var css = "background: #28b561; color:#fff;font-size:14px;padding:5px;";
+
+        console.log(`%c 👉:当前测试版本::---> 1.3.0--${process.env.VUE_APP_DEBBUG_FLAG}`,css);
+
+    }
+
+
+}

+ 6 - 4
packages/qjkankan-editor/src/pages/edit.js

@@ -8,17 +8,19 @@ import Viewer from 'v-viewer'
 import '@/directives/vTitleInEditor.js'
 import '@/directives/vTooltipInEditor.js'
 import { i18n } from "@/lang"
+import { debuggerHelper } from '../mixins/debuggerHelper'
+debuggerHelper(true);
 
-console.log(`version: ${process.env.VUE_APP_VERSION}`)
+// console.log(`version: ${process.env.VUE_APP_VERSION}`)
 
 // 热点图标默认大小
 window.g_hotspotCurrentScale = 1
 
-Vue.use(Viewer,{
+Vue.use(Viewer, {
   defaultOptions: {
     toolbar: 0,
-    title:0,
-    navbar:false
+    title: 0,
+    navbar: false
   }
 })
 

+ 2 - 0
packages/qjkankan-editor/src/pages/material.js

@@ -10,6 +10,8 @@ import { Button } from 'element-ui';
 import '@/directives/vTitleInManageCenter.js'
 import '@/directives/vTooltipInManageCenter.js'
 import { i18n } from "@/lang"
+import { debuggerHelper } from '../mixins/debuggerHelper'
+debuggerHelper(true);
 
 Vue.component(Button.name, Button);
 

+ 5 - 3
packages/qjkankan-editor/src/pages/show.js

@@ -5,12 +5,14 @@ import store from '../Store'
 import 'viewerjs/dist/viewer.css'
 import Viewer from 'v-viewer'
 import { i18n } from "@/lang"
+import { debuggerHelper } from '../mixins/debuggerHelper'
+debuggerHelper(true);
 
-Vue.use(Viewer,{
+Vue.use(Viewer, {
   defaultOptions: {
     toolbar: 0,
-    title:0,
-    navbar:false
+    title: 0,
+    navbar: false
   }
 })
 

+ 2 - 1
packages/qjkankan-view/.env.testdev

@@ -5,4 +5,5 @@ VUE_APP_PROXY_URL='https://test.4dkankan.com/qjkankan/'
 VUE_APP_URL_FILL=
 
 # 接口请求地址
-VUE_APP_APIS_URL=https://test.4dkankan.com/
+VUE_APP_APIS_URL=https://test.4dkankan.com/
+VUE_APP_DEBBUG_FLAG=0423-01

+ 4 - 1
packages/qjkankan-view/.env.testprod

@@ -3,4 +3,7 @@ VUE_APP_STATIC_DIR=showviewer
 VUE_APP_CDN=https://ossxiaoan.4dage.com
 VUE_APP_PROXY_URL_ROOT='https://test.4dkankan.com'
 VUE_APP_PROXY_URL='https://test.4dkankan.com/qjkankan/'
-VUE_APP_URL_FILL=/qjkankan
+VUE_APP_URL_FILL=/qjkankan
+# 接口请求地址
+VUE_APP_APIS_URL=https://test.4dkankan.com/
+VUE_APP_DEBBUG_FLAG=0423-01

+ 1 - 0
packages/qjkankan-view/package.json

@@ -16,6 +16,7 @@
     "@floating-ui/dom": "^1.0.4",
     "axios": "^0.27.2",
     "clipboard": "^2.0.11",
+    "consola": "^3.1.0",
     "core-js": "^3.8.3",
     "photoswipe": "^5.2.2",
     "swiper": "^9.2.3",

+ 3 - 0
packages/qjkankan-view/src/app.js

@@ -2,6 +2,9 @@ import QJKanKan from '@/sdk/QJKanKan'
 let _app
 let _num
 let deferred = QJKanKan.Deferred()
+import { debuggerHelper } from './utils/debuggerHelper'
+
+debuggerHelper(true);
 
 export function createApp(opitons = {}) {
     if (_app) {

+ 13 - 0
packages/qjkankan-view/src/utils/debuggerHelper.js

@@ -0,0 +1,13 @@
+
+export const debuggerHelper = (show = true) => {
+
+    if (show) {
+        // log.setColors({
+        var css = "background: #28b561; color:#fff;font-size:14px;padding:5px;";
+
+        console.log(`%c 👉:当前测试版本::---> 1.3.0--${process.env.VUE_APP_DEBBUG_FLAG}`,css);
+
+    }
+
+
+}

+ 18 - 0
yarn.lock

@@ -5706,6 +5706,11 @@ color-name@^1.0.0, color-name@~1.1.4:
   resolved "https://mirrors.cloud.tencent.com/npm/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
   integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
 
+color-regex@^1.0.2:
+  version "1.0.2"
+  resolved "https://mirrors.cloud.tencent.com/npm/color-regex/-/color-regex-1.0.2.tgz#7faf6b045468a76b73470419885140a89fcded45"
+  integrity sha512-TBRKov2oivOPjISo/P3HwHzAm39b4g5Ggx+wJqjLrUcJ9EW2WjqO4j81Xo9Jzeu3Z2u+x9nx2A/Pt8ZSYd/d3Q==
+
 color-string@^0.3.0:
   version "0.3.0"
   resolved "https://mirrors.cloud.tencent.com/npm/color-string/-/color-string-0.3.0.tgz#27d46fb67025c5c2fa25993bfbf579e47841b991"
@@ -5903,6 +5908,11 @@ connect-history-api-fallback@^2.0.0:
   resolved "https://mirrors.cloud.tencent.com/npm/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8"
   integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==
 
+consola@^3.1.0:
+  version "3.1.0"
+  resolved "https://mirrors.cloud.tencent.com/npm/consola/-/consola-3.1.0.tgz#dfdfa62ceb68bc1f06e4a76ad688566bd8813baf"
+  integrity sha512-rrrJE6rP0qzl/Srg+C9x/AE5Kxfux7reVm1Wh0wCjuXvih6DqZgqDZe8auTD28fzJ9TF0mHlSDrPpWlujQRo1Q==
+
 console-browserify@^1.1.0:
   version "1.2.0"
   resolved "https://mirrors.cloud.tencent.com/npm/console-browserify/-/console-browserify-1.2.0.tgz#67063cef57ceb6cf4993a2ab3a55840ae8c49336"
@@ -11043,6 +11053,14 @@ lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.19, lodash@^4.17
   resolved "https://mirrors.cloud.tencent.com/npm/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
   integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
 
+log-beautify@^1.2.0:
+  version "1.2.0"
+  resolved "https://mirrors.cloud.tencent.com/npm/log-beautify/-/log-beautify-1.2.0.tgz#c91f7e09d98eb0b52ec826384a1b3ed8fa9e427d"
+  integrity sha512-730dy7bmL9LcrX9q0ybM+M2eqynzmPqG5bilgs1k2hXsX0ad9RKf3lCMoSDVn8uDjYd9mlJkPXWnIDWpOmzTNw==
+  dependencies:
+    chalk "^3.0.0"
+    color-regex "^1.0.2"
+
 log-symbols@^2.2.0:
   version "2.2.0"
   resolved "https://mirrors.cloud.tencent.com/npm/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a"