mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-15 13:22:49 +00:00
Merge commit 'fb0ef19158b6b035cf80fb1ac9564b0bdf2f3cc9' into pro
This commit is contained in:
commit
7c16f9f134
@ -1180,7 +1180,7 @@ class UsersController extends AbstractController
|
|||||||
}
|
}
|
||||||
$uid = intval(str_pad(Base::generatePassword(4,1), 9, 8, STR_PAD_LEFT));
|
$uid = intval(str_pad(Base::generatePassword(4,1), 9, 8, STR_PAD_LEFT));
|
||||||
if($user){
|
if($user){
|
||||||
$uid = intval(str_pad(Base::generatePassword(4,1), 5, 9, STR_PAD_LEFT).$user->userid);
|
$uid = intval(str_pad(Base::generatePassword(5,1), 6, 9, STR_PAD_LEFT).$user->userid);
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
$service = new AgoraTokenGenerator($meetingSetting['appid'], $meetingSetting['app_certificate'], $meeting->channel, $uid);
|
$service = new AgoraTokenGenerator($meetingSetting['appid'], $meetingSetting['app_certificate'], $meeting->channel, $uid);
|
||||||
|
|||||||
@ -176,7 +176,7 @@ services:
|
|||||||
|
|
||||||
okr:
|
okr:
|
||||||
container_name: "dootask-okr-${APP_ID}"
|
container_name: "dootask-okr-${APP_ID}"
|
||||||
image: "kuaifan/doookr:0.0.6"
|
image: "kuaifan/doookr:0.0.7"
|
||||||
environment:
|
environment:
|
||||||
TZ: "${TIMEZONE:-PRC}"
|
TZ: "${TIMEZONE:-PRC}"
|
||||||
DOO_TASK_URL: "http://${APP_IPPR}.3"
|
DOO_TASK_URL: "http://${APP_IPPR}.3"
|
||||||
|
|||||||
@ -338,7 +338,7 @@ export default {
|
|||||||
this.$store.dispatch("call", {
|
this.$store.dispatch("call", {
|
||||||
url: isTourist ? 'users/meeting/tourist' : 'users/basic',
|
url: isTourist ? 'users/meeting/tourist' : 'users/basic',
|
||||||
data: {
|
data: {
|
||||||
userid: uuid,
|
userid: isTourist ? uuid : (uuid+'').substring(6),
|
||||||
tourist_id: uuid,
|
tourist_id: uuid,
|
||||||
}
|
}
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
|
|||||||
5
resources/assets/js/app.js
vendored
5
resources/assets/js/app.js
vendored
@ -2,8 +2,6 @@ const isElectron = !!(window && window.process && window.process.type);
|
|||||||
const isEEUiApp = window && window.navigator && /eeui/i.test(window.navigator.userAgent);
|
const isEEUiApp = window && window.navigator && /eeui/i.test(window.navigator.userAgent);
|
||||||
|
|
||||||
import microappInit from "./microapp"
|
import microappInit from "./microapp"
|
||||||
microappInit()
|
|
||||||
|
|
||||||
import {switchLanguage as $L} from "./language";
|
import {switchLanguage as $L} from "./language";
|
||||||
|
|
||||||
import './functions/common'
|
import './functions/common'
|
||||||
@ -210,6 +208,9 @@ Vue.mixin(mixin)
|
|||||||
|
|
||||||
let app;
|
let app;
|
||||||
store.dispatch("init").then(action => {
|
store.dispatch("init").then(action => {
|
||||||
|
|
||||||
|
microappInit();
|
||||||
|
|
||||||
app = new Vue({
|
app = new Vue({
|
||||||
router,
|
router,
|
||||||
store,
|
store,
|
||||||
|
|||||||
@ -96,7 +96,7 @@ export default {
|
|||||||
handler(to) {
|
handler(to) {
|
||||||
if(to.name == 'manage-apps'){
|
if(to.name == 'manage-apps'){
|
||||||
this.appData = {
|
this.appData = {
|
||||||
path: to.hash
|
path: to.hash || to.fullPath
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -120,6 +120,7 @@ export default {
|
|||||||
getAppData(){
|
getAppData(){
|
||||||
return {
|
return {
|
||||||
type: 'init',
|
type: 'init',
|
||||||
|
url: this.url,
|
||||||
vues: {
|
vues: {
|
||||||
Vue,
|
Vue,
|
||||||
store,
|
store,
|
||||||
|
|||||||
12
resources/assets/js/microapp.js
vendored
12
resources/assets/js/microapp.js
vendored
@ -1,11 +1,7 @@
|
|||||||
import microApp from '@micro-zoe/micro-app'
|
import microApp from '@micro-zoe/micro-app'
|
||||||
|
|
||||||
const getUrl = (s) => {
|
const getUrl = (url) => {
|
||||||
let url = $A.apiUrl('../' + s)
|
return import.meta.env.VITE_OKR_WEB_URL || $A.apiUrl(url);
|
||||||
if (url.indexOf('http') == -1) {
|
|
||||||
url = window.location.origin + url
|
|
||||||
}
|
|
||||||
return import.meta.env.VITE_OKR_WEB_URL || url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function() {
|
export default function() {
|
||||||
@ -21,7 +17,7 @@ export default function() {
|
|||||||
route = urls.replace(match[0].replace("@vite/client",""),"");
|
route = urls.replace(match[0].replace("@vite/client",""),"");
|
||||||
}
|
}
|
||||||
// 这里 /basename/ 需要和子应用vite.config.js中base的配置保持一致
|
// 这里 /basename/ 需要和子应用vite.config.js中base的配置保持一致
|
||||||
code = code.replace( eval(`/(from|import)(\\s*['"])(${route.replace(/\//g,"\\/")})/g`) , all => {
|
code = code.replace(new RegExp(`(from|import)(\\s*['"])(${route.replace(/\//g,"\\/")})`,'g') , all => {
|
||||||
return all.replace(route, urls)
|
return all.replace(route, urls)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -44,7 +40,7 @@ export default function() {
|
|||||||
microApp.preFetch([
|
microApp.preFetch([
|
||||||
{
|
{
|
||||||
name: 'micro-app',
|
name: 'micro-app',
|
||||||
url: getUrl("/apps/okr"),
|
url: getUrl("../apps/okr"),
|
||||||
disableSandbox: true
|
disableSandbox: true
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|||||||
@ -474,11 +474,7 @@ export default {
|
|||||||
|
|
||||||
// okr路由
|
// okr路由
|
||||||
okrUrl() {
|
okrUrl() {
|
||||||
let url = $A.apiUrl("../apps/okr")
|
return import.meta.env.VITE_OKR_WEB_URL || $A.apiUrl("../apps/okr")
|
||||||
if (url.indexOf('http') == -1) {
|
|
||||||
url = window.location.origin + url
|
|
||||||
}
|
|
||||||
return import.meta.env.VITE_OKR_WEB_URL || url
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -356,7 +356,7 @@ export default {
|
|||||||
case 'okr':
|
case 'okr':
|
||||||
case 'okrAnalyze':
|
case 'okrAnalyze':
|
||||||
this.goForward({
|
this.goForward({
|
||||||
path: '/manage/apps/' + (item.value == 'okr' ? '/#/list' : '/#/analysis'),
|
path: '/manage/apps/okr/' + (item.value == 'okr' ? 'list' : 'analysis'),
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'report':
|
case 'report':
|
||||||
|
|||||||
@ -26,11 +26,7 @@ export default {
|
|||||||
if (to.name == 'manage-apps') {
|
if (to.name == 'manage-apps') {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.loading = false;
|
this.loading = false;
|
||||||
let url = $A.apiUrl("../apps/okr")
|
this.appUrl = import.meta.env.VITE_OKR_WEB_URL || $A.apiUrl("../apps/okr")
|
||||||
if (url.indexOf('http') == -1) {
|
|
||||||
url = window.location.origin + url
|
|
||||||
}
|
|
||||||
this.appUrl = import.meta.env.VITE_OKR_WEB_URL || url
|
|
||||||
this.path = this.$route.query.path || '';
|
this.path = this.$route.query.path || '';
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -85,7 +85,9 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.initData()
|
this.initData()
|
||||||
|
if(!this.$store.state.windowPortrait){
|
||||||
this.onMonitorWheel()
|
this.onMonitorWheel()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
type() {
|
type() {
|
||||||
@ -127,7 +129,7 @@ export default {
|
|||||||
showEmojiMenuScrollRightBtn(){
|
showEmojiMenuScrollRightBtn(){
|
||||||
const container = this.$refs['chatEmojiMenuRef'];
|
const container = this.$refs['chatEmojiMenuRef'];
|
||||||
const liWidth = container?.querySelector('li')?.offsetWidth || 48;
|
const liWidth = container?.querySelector('li')?.offsetWidth || 48;
|
||||||
return this.emojiMenuScrollLeft < this.emoticonData.length * liWidth - 34
|
return this.emojiMenuScrollLeft < this.emoticonData.length * liWidth - (this.$store.state.windowPortrait ? 34 : 0)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
@ -67,7 +67,7 @@ export default {
|
|||||||
this.getTouristInfo();
|
this.getTouristInfo();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return parseInt( (this.player.uid+"").substring(5) ) || 0
|
return parseInt( (this.player.uid+"").substring(6) ) || 0
|
||||||
}
|
}
|
||||||
return 0
|
return 0
|
||||||
},
|
},
|
||||||
|
|||||||
2
resources/assets/js/store/actions.js
vendored
2
resources/assets/js/store/actions.js
vendored
@ -3639,7 +3639,7 @@ export default {
|
|||||||
if (link_id > 0) {
|
if (link_id > 0) {
|
||||||
if (window.innerWidth < 910) {
|
if (window.innerWidth < 910) {
|
||||||
$A.goForward({
|
$A.goForward({
|
||||||
path:'/manage/apps/#/okrDetails?data='+link_id,
|
path:'/manage/apps/okr/okrDetails?data=' + link_id,
|
||||||
});
|
});
|
||||||
}else{
|
}else{
|
||||||
state.okrWindow = {
|
state.okrWindow = {
|
||||||
|
|||||||
8
vite.config.js
vendored
8
vite.config.js
vendored
@ -68,7 +68,13 @@ export default defineConfig(({command, mode}) => {
|
|||||||
chunkSizeWarningLimit: 3000,
|
chunkSizeWarningLimit: 3000,
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
createVuePlugin(),
|
createVuePlugin({
|
||||||
|
template: {
|
||||||
|
compilerOptions: {
|
||||||
|
isCustomElement: (tag) => tag.includes('micro-app') ,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}),
|
||||||
vitePluginRequire(),
|
vitePluginRequire(),
|
||||||
vitePluginFileCopy([{
|
vitePluginFileCopy([{
|
||||||
src: resolve(__dirname, 'resources/assets/statics/public'),
|
src: resolve(__dirname, 'resources/assets/statics/public'),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user