|
|
@ -15,7 +15,7 @@ |
|
|
|
<v-tooltip bottom> |
|
|
|
<v-tooltip bottom> |
|
|
|
<template #activator="{ on }"> |
|
|
|
<template #activator="{ on }"> |
|
|
|
<v-btn |
|
|
|
<v-btn |
|
|
|
v-t="['toolbar:home']" |
|
|
|
v-t="['c:navbar:home']" |
|
|
|
to="/projects" |
|
|
|
to="/projects" |
|
|
|
icon |
|
|
|
icon |
|
|
|
class="pa-1 pr-0 brand-icon nc-noco-brand-icon" |
|
|
|
class="pa-1 pr-0 brand-icon nc-noco-brand-icon" |
|
|
@ -25,29 +25,36 @@ |
|
|
|
</v-btn> |
|
|
|
</v-btn> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<!-- Home --> |
|
|
|
<!-- Home --> |
|
|
|
{{ $t('general.home') }} |
|
|
|
{{ $t("general.home") }} |
|
|
|
<span |
|
|
|
<span class="caption font-weight-light pointer" |
|
|
|
class="caption font-weight-light pointer" |
|
|
|
|
|
|
|
>(v{{ |
|
|
|
>(v{{ |
|
|
|
$store.state.project.projectInfo && $store.state.project.projectInfo.version |
|
|
|
$store.state.project.projectInfo && |
|
|
|
}})</span> |
|
|
|
$store.state.project.projectInfo.version |
|
|
|
|
|
|
|
}})</span |
|
|
|
|
|
|
|
> |
|
|
|
</v-tooltip> |
|
|
|
</v-tooltip> |
|
|
|
|
|
|
|
|
|
|
|
<span class="body-1 ml-n1" @click="$router.push('/projects')"> {{ brandName }}</span> |
|
|
|
<span class="body-1 ml-n1" @click="$router.push('/projects')"> |
|
|
|
|
|
|
|
{{ brandName }}</span |
|
|
|
|
|
|
|
> |
|
|
|
</v-toolbar-title> |
|
|
|
</v-toolbar-title> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <v-toolbar-items />--> |
|
|
|
<!-- <v-toolbar-items />--> |
|
|
|
<!-- loading --> |
|
|
|
<!-- loading --> |
|
|
|
<span v-show="$nuxt.$loading.show" class="caption grey--text ml-3">{{ $t('general.loading') }} <v-icon small color="grey">mdi-spin mdi-loading</v-icon></span> |
|
|
|
<span v-show="$nuxt.$loading.show" class="caption grey--text ml-3" |
|
|
|
|
|
|
|
>{{ $t("general.loading") }} |
|
|
|
|
|
|
|
<v-icon small color="grey">mdi-spin mdi-loading</v-icon></span |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
|
|
|
|
<span |
|
|
|
<span v-shortkey="['ctrl', 'shift', 'd']" @shortkey="openDiscord" /> |
|
|
|
v-shortkey="[ 'ctrl','shift', 'd']" |
|
|
|
|
|
|
|
@shortkey="openDiscord" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div v-if="isDashboard" class="text-capitalize text-center title" style="flex: 1"> |
|
|
|
<div |
|
|
|
{{ $store.getters['project/GtrProjectName'] }} |
|
|
|
v-if="isDashboard" |
|
|
|
|
|
|
|
class="text-capitalize text-center title" |
|
|
|
|
|
|
|
style="flex: 1" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
{{ $store.getters["project/GtrProjectName"] }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div style="flex: 1" class="d-flex justify-end"> |
|
|
|
<div style="flex: 1" class="d-flex justify-end"> |
|
|
@ -68,7 +75,7 @@ |
|
|
|
mdi-account-supervisor-outline |
|
|
|
mdi-account-supervisor-outline |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
<!-- Share --> |
|
|
|
<!-- Share --> |
|
|
|
{{ $t('activity.share') }} |
|
|
|
{{ $t("activity.share") }} |
|
|
|
</x-btn> |
|
|
|
</x-btn> |
|
|
|
|
|
|
|
|
|
|
|
<share-or-invite-modal v-model="shareModal" /> |
|
|
|
<share-or-invite-modal v-model="shareModal" /> |
|
|
@ -84,10 +91,7 @@ |
|
|
|
tooltip="Enable/Disable Models" |
|
|
|
tooltip="Enable/Disable Models" |
|
|
|
@click="cronTabAdd()" |
|
|
|
@click="cronTabAdd()" |
|
|
|
> |
|
|
|
> |
|
|
|
<v-icon size="20"> |
|
|
|
<v-icon size="20"> mdi-timetable </v-icon> Crons |
|
|
|
mdi-timetable |
|
|
|
|
|
|
|
</v-icon> |
|
|
|
|
|
|
|
Crons |
|
|
|
|
|
|
|
</x-btn> |
|
|
|
</x-btn> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
@ -96,31 +100,36 @@ |
|
|
|
@shortkey="settingsTabAdd" |
|
|
|
@shortkey="settingsTabAdd" |
|
|
|
/> |
|
|
|
/> |
|
|
|
|
|
|
|
|
|
|
|
<span |
|
|
|
<span v-shortkey="['ctrl', 'shift', 'b']" @shortkey="changeTheme" /> |
|
|
|
v-shortkey="[ 'ctrl','shift', 'b']" |
|
|
|
|
|
|
|
@shortkey="changeTheme" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<preview-as class="mx-1" /> |
|
|
|
<preview-as class="mx-1" /> |
|
|
|
|
|
|
|
|
|
|
|
<v-menu |
|
|
|
<v-menu v-if="isAuthenticated" offset-y> |
|
|
|
v-if="isAuthenticated" |
|
|
|
|
|
|
|
offset-y |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<template #activator="{ on }"> |
|
|
|
<template #activator="{ on }"> |
|
|
|
<v-icon v-ge="['Profile','']" text class="font-weight-bold nc-menu-account icon" v-on="on"> |
|
|
|
<v-icon |
|
|
|
|
|
|
|
v-ge="['Profile', '']" |
|
|
|
|
|
|
|
text |
|
|
|
|
|
|
|
class="font-weight-bold nc-menu-account icon" |
|
|
|
|
|
|
|
v-on="on" |
|
|
|
|
|
|
|
> |
|
|
|
<!-- <v-icon></v-icon>--> |
|
|
|
<!-- <v-icon></v-icon>--> |
|
|
|
mdi-dots-vertical |
|
|
|
mdi-dots-vertical |
|
|
|
</v-icon> |
|
|
|
</v-icon> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<v-list dense class="nc-user-menu"> |
|
|
|
<v-list dense class="nc-user-menu"> |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<v-list-item v-t="['toolbar:user:email']" v-ge="['Settings','']" dense to="/user/settings"> |
|
|
|
<v-list-item |
|
|
|
|
|
|
|
v-t="['c:navbar:user:email']" |
|
|
|
|
|
|
|
v-ge="['Settings', '']" |
|
|
|
|
|
|
|
dense |
|
|
|
|
|
|
|
to="/user/settings" |
|
|
|
|
|
|
|
> |
|
|
|
<v-list-item-title> |
|
|
|
<v-list-item-title> |
|
|
|
<v-icon small> |
|
|
|
<v-icon small> mdi-at </v-icon> |
|
|
|
mdi-at |
|
|
|
<span class="font-weight-bold caption">{{ |
|
|
|
</v-icon> <span class="font-weight-bold caption">{{ userEmail }}</span> |
|
|
|
userEmail |
|
|
|
|
|
|
|
}}</span> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item> |
|
|
|
</v-list-item> |
|
|
|
|
|
|
|
|
|
|
@ -130,73 +139,82 @@ |
|
|
|
<!-- "Auth token copied to clipboard" --> |
|
|
|
<!-- "Auth token copied to clipboard" --> |
|
|
|
<v-list-item |
|
|
|
<v-list-item |
|
|
|
v-if="isDashboard" |
|
|
|
v-if="isDashboard" |
|
|
|
v-t="['toolbar:user:copy-auth-token']" |
|
|
|
v-t="['a:navbar:user:copy-auth-token']" |
|
|
|
v-clipboard="$store.state.users.token" |
|
|
|
v-clipboard="$store.state.users.token" |
|
|
|
dense |
|
|
|
dense |
|
|
|
@click.stop="$toast.success($t('msg.toast.authToken')).goAway(3000)" |
|
|
|
@click.stop=" |
|
|
|
|
|
|
|
$toast.success($t('msg.toast.authToken')).goAway(3000) |
|
|
|
|
|
|
|
" |
|
|
|
> |
|
|
|
> |
|
|
|
<v-list-item-title> |
|
|
|
<v-list-item-title> |
|
|
|
<v-icon key="terminal-dash" small> |
|
|
|
<v-icon key="terminal-dash" small> mdi-content-copy </v-icon |
|
|
|
mdi-content-copy |
|
|
|
> |
|
|
|
</v-icon> |
|
|
|
<span class="font-weight-regular caption">{{ |
|
|
|
<span class="font-weight-regular caption">{{ $t('activity.account.authToken') }}</span> |
|
|
|
$t("activity.account.authToken") |
|
|
|
|
|
|
|
}}</span> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item> |
|
|
|
</v-list-item> |
|
|
|
<v-list-item |
|
|
|
<v-list-item |
|
|
|
v-if="swaggerOrGraphiqlUrl" |
|
|
|
v-if="swaggerOrGraphiqlUrl" |
|
|
|
v-t="['toolbar:user:swagger']" |
|
|
|
v-t="['a:navbar:user:swagger']" |
|
|
|
dense |
|
|
|
dense |
|
|
|
@click.stop="openUrl(`${$axios.defaults.baseURL}${swaggerOrGraphiqlUrl}`)" |
|
|
|
@click.stop=" |
|
|
|
|
|
|
|
openUrl(`${$axios.defaults.baseURL}${swaggerOrGraphiqlUrl}`) |
|
|
|
|
|
|
|
" |
|
|
|
> |
|
|
|
> |
|
|
|
<v-list-item-title> |
|
|
|
<v-list-item-title> |
|
|
|
<v-icon key="terminal-dash" small> |
|
|
|
<v-icon key="terminal-dash" small> |
|
|
|
{{ isGql ? 'mdi-graphql' : 'mdi-code-json' }} |
|
|
|
{{ isGql ? "mdi-graphql" : "mdi-code-json" }} </v-icon |
|
|
|
</v-icon> |
|
|
|
> |
|
|
|
<span class="font-weight-regular caption"> |
|
|
|
<span class="font-weight-regular caption"> |
|
|
|
{{ isGql ? 'GraphQL APIs' : 'Swagger APIs Doc' }}</span> |
|
|
|
{{ isGql ? "GraphQL APIs" : "Swagger APIs Doc" }}</span |
|
|
|
|
|
|
|
> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item> |
|
|
|
</v-list-item> |
|
|
|
<v-divider /> |
|
|
|
<v-divider /> |
|
|
|
<v-list-item |
|
|
|
<v-list-item |
|
|
|
v-if="isDashboard" |
|
|
|
v-if="isDashboard" |
|
|
|
v-t="['toolbar:user:copy-proj-info']" |
|
|
|
v-t="['c:navbar:user:copy-proj-info']" |
|
|
|
v-ge="['Sign Out', '']" |
|
|
|
v-ge="['Sign Out', '']" |
|
|
|
dense |
|
|
|
dense |
|
|
|
@click="copyProjectInfo" |
|
|
|
@click="copyProjectInfo" |
|
|
|
> |
|
|
|
> |
|
|
|
<v-list-item-title> |
|
|
|
<v-list-item-title> |
|
|
|
<v-icon small> |
|
|
|
<v-icon small> mdi-content-copy </v-icon> |
|
|
|
mdi-content-copy |
|
|
|
<span class="font-weight-regular caption">{{ |
|
|
|
</v-icon> <span class="font-weight-regular caption">{{ $t('activity.account.projInfo') }}</span> |
|
|
|
$t("activity.account.projInfo") |
|
|
|
|
|
|
|
}}</span> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item> |
|
|
|
</v-list-item> |
|
|
|
<v-divider v-if="isDashboard" /> |
|
|
|
<v-divider v-if="isDashboard" /> |
|
|
|
<v-list-item |
|
|
|
<v-list-item |
|
|
|
v-if="isDashboard" |
|
|
|
v-if="isDashboard" |
|
|
|
v-t="['toolbar:user:themes']" |
|
|
|
v-t="['c:navbar:user:themes']" |
|
|
|
dense |
|
|
|
dense |
|
|
|
@click.stop="settingsTabAdd" |
|
|
|
@click.stop="settingsTabAdd" |
|
|
|
> |
|
|
|
> |
|
|
|
<v-list-item-title> |
|
|
|
<v-list-item-title> |
|
|
|
<v-icon key="terminal-dash" small> |
|
|
|
<v-icon key="terminal-dash" small> mdi-palette </v-icon |
|
|
|
mdi-palette |
|
|
|
> |
|
|
|
</v-icon> |
|
|
|
<span class="font-weight-regular caption">{{ |
|
|
|
<span class="font-weight-regular caption">{{ $t('activity.account.themes') }}</span> |
|
|
|
$t("activity.account.themes") |
|
|
|
|
|
|
|
}}</span> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item> |
|
|
|
</v-list-item> |
|
|
|
|
|
|
|
|
|
|
|
<v-divider v-if="isDashboard" /> |
|
|
|
<v-divider v-if="isDashboard" /> |
|
|
|
|
|
|
|
|
|
|
|
<v-list-item |
|
|
|
<v-list-item |
|
|
|
v-t="['toolbar:user:sign-out']" |
|
|
|
v-t="['a:navbar:user:sign-out']" |
|
|
|
v-ge="['Sign Out', '']" |
|
|
|
v-ge="['Sign Out', '']" |
|
|
|
dense |
|
|
|
dense |
|
|
|
@click="MtdSignOut" |
|
|
|
@click="MtdSignOut" |
|
|
|
> |
|
|
|
> |
|
|
|
<v-list-item-title> |
|
|
|
<v-list-item-title> |
|
|
|
<v-icon small> |
|
|
|
<v-icon small> mdi-logout </v-icon> |
|
|
|
mdi-logout |
|
|
|
<span class="font-weight-regular caption">{{ |
|
|
|
</v-icon> <span class="font-weight-regular caption">{{ $t('general.signOut') }}</span> |
|
|
|
$t("general.signOut") |
|
|
|
|
|
|
|
}}</span> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item> |
|
|
|
</v-list-item> |
|
|
|
</template> |
|
|
|
</template> |
|
|
@ -204,27 +222,40 @@ |
|
|
|
</v-menu> |
|
|
|
</v-menu> |
|
|
|
<v-menu v-else offset-y open-on-hover> |
|
|
|
<v-menu v-else offset-y open-on-hover> |
|
|
|
<template #activator="{ on }"> |
|
|
|
<template #activator="{ on }"> |
|
|
|
<v-btn v-ge="['Profile','']" text class=" font-weight-bold nc-menu-account" v-on="on"> |
|
|
|
<v-btn |
|
|
|
|
|
|
|
v-ge="['Profile', '']" |
|
|
|
|
|
|
|
text |
|
|
|
|
|
|
|
class="font-weight-bold nc-menu-account" |
|
|
|
|
|
|
|
v-on="on" |
|
|
|
|
|
|
|
> |
|
|
|
<!-- Menu--> |
|
|
|
<!-- Menu--> |
|
|
|
<v-icon>mdi-account</v-icon> |
|
|
|
<v-icon>mdi-account</v-icon> |
|
|
|
<v-icon>arrow_drop_down</v-icon> |
|
|
|
<v-icon>arrow_drop_down</v-icon> |
|
|
|
</v-btn> |
|
|
|
</v-btn> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<v-list dense> |
|
|
|
<v-list dense> |
|
|
|
<v-list-item v-if="!user && !isThisMobile" dense to="/user/authentication/signup"> |
|
|
|
<v-list-item |
|
|
|
|
|
|
|
v-if="!user && !isThisMobile" |
|
|
|
|
|
|
|
dense |
|
|
|
|
|
|
|
to="/user/authentication/signup" |
|
|
|
|
|
|
|
> |
|
|
|
<v-list-item-title> |
|
|
|
<v-list-item-title> |
|
|
|
<v-icon small> |
|
|
|
<v-icon small> mdi-account-plus-outline </v-icon> |
|
|
|
mdi-account-plus-outline |
|
|
|
<span class="font-weight-regular caption">{{ |
|
|
|
</v-icon> <span |
|
|
|
$t("general.signUp") |
|
|
|
class="font-weight-regular caption" |
|
|
|
}}</span> |
|
|
|
>{{ $t('general.signUp') }}</span> |
|
|
|
|
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item> |
|
|
|
</v-list-item> |
|
|
|
<v-list-item v-if="!user && !isThisMobile" dense to="/user/authentication/signin"> |
|
|
|
<v-list-item |
|
|
|
|
|
|
|
v-if="!user && !isThisMobile" |
|
|
|
|
|
|
|
dense |
|
|
|
|
|
|
|
to="/user/authentication/signin" |
|
|
|
|
|
|
|
> |
|
|
|
<v-list-item-title> |
|
|
|
<v-list-item-title> |
|
|
|
<v-icon small> |
|
|
|
<v-icon small> mdi-login </v-icon> |
|
|
|
mdi-login |
|
|
|
<span class="font-weight-regular caption">{{ |
|
|
|
</v-icon> <span class="font-weight-regular caption">{{ $t('general.signIn') }}</span> |
|
|
|
$t("general.signIn") |
|
|
|
|
|
|
|
}}</span> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item-title> |
|
|
|
</v-list-item> |
|
|
|
</v-list-item> |
|
|
|
</v-list> |
|
|
|
</v-list> |
|
|
@ -271,19 +302,19 @@ |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import ReleaseInfo from '@/components/releaseInfo' |
|
|
|
import { mapGetters, mapActions, mapMutations } from "vuex"; |
|
|
|
import { mapGetters, mapActions, mapMutations } from 'vuex' |
|
|
|
import ReleaseInfo from "@/components/releaseInfo"; |
|
|
|
import 'splitpanes/dist/splitpanes.css' |
|
|
|
import "splitpanes/dist/splitpanes.css"; |
|
|
|
import XBtn from '../components/global/xBtn' |
|
|
|
import XBtn from "../components/global/xBtn"; |
|
|
|
import dlgUnexpectedError from '../components/utils/dlgUnexpectedError' |
|
|
|
import dlgUnexpectedError from "../components/utils/dlgUnexpectedError"; |
|
|
|
import settings from '../components/settings' |
|
|
|
import settings from "../components/settings"; |
|
|
|
import { copyTextToClipboard } from '@/helpers/xutils' |
|
|
|
import { copyTextToClipboard } from "@/helpers/xutils"; |
|
|
|
import Snackbar from '~/components/snackbar' |
|
|
|
import Snackbar from "~/components/snackbar"; |
|
|
|
import Language from '~/components/utils/language' |
|
|
|
import Language from "~/components/utils/language"; |
|
|
|
import Loader from '~/components/loader' |
|
|
|
import Loader from "~/components/loader"; |
|
|
|
import PreviewAs from '~/components/previewAs' |
|
|
|
import PreviewAs from "~/components/previewAs"; |
|
|
|
import ShareOrInviteModal from '~/components/auth/shareOrInviteModal' |
|
|
|
import ShareOrInviteModal from "~/components/auth/shareOrInviteModal"; |
|
|
|
import ImportantAnnouncement from '../components/importantAnnouncement.vue' |
|
|
|
import ImportantAnnouncement from "../components/importantAnnouncement.vue"; |
|
|
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
components: { |
|
|
@ -296,7 +327,7 @@ export default { |
|
|
|
Snackbar, |
|
|
|
Snackbar, |
|
|
|
dlgUnexpectedError, |
|
|
|
dlgUnexpectedError, |
|
|
|
settings, |
|
|
|
settings, |
|
|
|
ImportantAnnouncement |
|
|
|
ImportantAnnouncement, |
|
|
|
}, |
|
|
|
}, |
|
|
|
data: () => ({ |
|
|
|
data: () => ({ |
|
|
|
clickCount: true, |
|
|
|
clickCount: true, |
|
|
@ -304,10 +335,10 @@ export default { |
|
|
|
swaggerOrGraphiqlUrl: null, |
|
|
|
swaggerOrGraphiqlUrl: null, |
|
|
|
showScreensaver: false, |
|
|
|
showScreensaver: false, |
|
|
|
roleIcon: { |
|
|
|
roleIcon: { |
|
|
|
owner: 'mdi-account-star', |
|
|
|
owner: "mdi-account-star", |
|
|
|
creator: 'mdi-account-hard-hat', |
|
|
|
creator: "mdi-account-hard-hat", |
|
|
|
editor: 'mdi-account-edit', |
|
|
|
editor: "mdi-account-edit", |
|
|
|
viewer: 'mdi-eye-outline' |
|
|
|
viewer: "mdi-eye-outline", |
|
|
|
}, |
|
|
|
}, |
|
|
|
showAppStore: false, |
|
|
|
showAppStore: false, |
|
|
|
showChangeEnv: false, |
|
|
|
showChangeEnv: false, |
|
|
@ -324,72 +355,72 @@ export default { |
|
|
|
drawer: null, |
|
|
|
drawer: null, |
|
|
|
fixed: false, |
|
|
|
fixed: false, |
|
|
|
right: true, |
|
|
|
right: true, |
|
|
|
title: 'Xgene', |
|
|
|
title: "Xgene", |
|
|
|
isHydrated: false, |
|
|
|
isHydrated: false, |
|
|
|
snackbar: false, |
|
|
|
snackbar: false, |
|
|
|
timeout: 10000, |
|
|
|
timeout: 10000, |
|
|
|
rolesList: null, |
|
|
|
rolesList: null, |
|
|
|
shareModal: false |
|
|
|
shareModal: false, |
|
|
|
}), |
|
|
|
}), |
|
|
|
computed: { |
|
|
|
computed: { |
|
|
|
...mapGetters({ |
|
|
|
...mapGetters({ |
|
|
|
logo: 'plugins/brandLogo', |
|
|
|
logo: "plugins/brandLogo", |
|
|
|
brandName: 'plugins/brandName', |
|
|
|
brandName: "plugins/brandName", |
|
|
|
projects: 'project/list', |
|
|
|
projects: "project/list", |
|
|
|
tabs: 'tabs/list', |
|
|
|
tabs: "tabs/list", |
|
|
|
sqldMgr: 'sqlMgr/sqlMgr', |
|
|
|
sqldMgr: "sqlMgr/sqlMgr", |
|
|
|
GetPendingStatus: 'notification/GetPendingStatus', |
|
|
|
GetPendingStatus: "notification/GetPendingStatus", |
|
|
|
isAuthenticated: 'users/GtrIsAuthenticated', |
|
|
|
isAuthenticated: "users/GtrIsAuthenticated", |
|
|
|
isAdmin: 'users/GtrIsAdmin', |
|
|
|
isAdmin: "users/GtrIsAdmin", |
|
|
|
isDocker: 'project/GtrIsDocker', |
|
|
|
isDocker: "project/GtrIsDocker", |
|
|
|
isFirstLoad: 'project/GtrIsFirstLoad', |
|
|
|
isFirstLoad: "project/GtrIsFirstLoad", |
|
|
|
isGql: 'project/GtrProjectIsGraphql', |
|
|
|
isGql: "project/GtrProjectIsGraphql", |
|
|
|
isRest: 'project/GtrProjectIsRest', |
|
|
|
isRest: "project/GtrProjectIsRest", |
|
|
|
isGrpc: 'project/GtrProjectIsGrpc', |
|
|
|
isGrpc: "project/GtrProjectIsGrpc", |
|
|
|
role: 'users/GtrRole', |
|
|
|
role: "users/GtrRole", |
|
|
|
userEmail: 'users/GtrUserEmail' |
|
|
|
userEmail: "users/GtrUserEmail", |
|
|
|
}), |
|
|
|
}), |
|
|
|
user() { |
|
|
|
user() { |
|
|
|
return this.$store.getters['users/GtrUser'] |
|
|
|
return this.$store.getters["users/GtrUser"]; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
isThisMobile() { |
|
|
|
|
|
|
|
// just an example, could be one specific value if that's all you need |
|
|
|
|
|
|
|
return this.isHydrated ? this.$vuetify.breakpoint.smAndDown : false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
isThisMobile() { // just an example, could be one specific value if that's all you need |
|
|
|
|
|
|
|
return this.isHydrated ? this.$vuetify.breakpoint.smAndDown : false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
|
'$route.path'(path, oldPath) { |
|
|
|
"$route.path"(path, oldPath) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
if (oldPath === path) { |
|
|
|
if (oldPath === path) { |
|
|
|
return |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
const recaptcha = this.$recaptchaInstance |
|
|
|
const recaptcha = this.$recaptchaInstance; |
|
|
|
if (path.startsWith('/user/')) { |
|
|
|
if (path.startsWith("/user/")) { |
|
|
|
recaptcha.showBadge() |
|
|
|
recaptcha.showBadge(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
recaptcha.hideBadge() |
|
|
|
recaptcha.hideBadge(); |
|
|
|
} |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} catch (e) {} |
|
|
|
}, |
|
|
|
}, |
|
|
|
'$route.params.project_id'(newId, oldId) { |
|
|
|
"$route.params.project_id"(newId, oldId) { |
|
|
|
if (newId && newId !== oldId) { |
|
|
|
if (newId && newId !== oldId) { |
|
|
|
this.loadProjectInfo() |
|
|
|
this.loadProjectInfo(); |
|
|
|
} |
|
|
|
} |
|
|
|
if (!newId) { |
|
|
|
if (!newId) { |
|
|
|
this.swaggerOrGraphiqlUrl = null |
|
|
|
this.swaggerOrGraphiqlUrl = null; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
this.selectedEnv = this.$store.getters['project/GtrActiveEnv'] |
|
|
|
this.selectedEnv = this.$store.getters["project/GtrActiveEnv"]; |
|
|
|
this.loadProjectInfo() |
|
|
|
this.loadProjectInfo(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
...mapActions({ changeActiveTab: 'tabs/changeActiveTab' }), |
|
|
|
...mapActions({ changeActiveTab: "tabs/changeActiveTab" }), |
|
|
|
...mapMutations({ |
|
|
|
...mapMutations({ |
|
|
|
toggleLogWindow: 'windows/MutToggleLogWindow', |
|
|
|
toggleLogWindow: "windows/MutToggleLogWindow", |
|
|
|
toggleOutputWindow: 'windows/MutToggleOutputWindow', |
|
|
|
toggleOutputWindow: "windows/MutToggleOutputWindow", |
|
|
|
toggleTreeviewWindow: 'windows/MutToggleTreeviewWindow' |
|
|
|
toggleTreeviewWindow: "windows/MutToggleTreeviewWindow", |
|
|
|
}), |
|
|
|
}), |
|
|
|
async loadProjectInfo() { |
|
|
|
async loadProjectInfo() { |
|
|
|
// if (this.$route.params.project_id) { |
|
|
|
// if (this.$route.params.project_id) { |
|
|
@ -406,23 +437,23 @@ export default { |
|
|
|
// } |
|
|
|
// } |
|
|
|
}, |
|
|
|
}, |
|
|
|
setPreviewUSer(previewAs) { |
|
|
|
setPreviewUSer(previewAs) { |
|
|
|
this.previewAs = previewAs |
|
|
|
this.previewAs = previewAs; |
|
|
|
window.location.reload() |
|
|
|
window.location.reload(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
showAppStoreIcon() { |
|
|
|
showAppStoreIcon() { |
|
|
|
this.showAppStore = true |
|
|
|
this.showAppStore = true; |
|
|
|
this.$toast.info('Apps unlocked').goAway(5000) |
|
|
|
this.$toast.info("Apps unlocked").goAway(5000); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
isProjectInfoLoaded() { |
|
|
|
isProjectInfoLoaded() { |
|
|
|
return this.$store.state.project.projectInfo !== null |
|
|
|
return this.$store.state.project.projectInfo !== null; |
|
|
|
}, |
|
|
|
}, |
|
|
|
githubClickHandler(e) { |
|
|
|
githubClickHandler(e) { |
|
|
|
// e.preventDefault(); |
|
|
|
// e.preventDefault(); |
|
|
|
// shell.openExternal(e.path.find(e => e.href).href); |
|
|
|
// shell.openExternal(e.path.find(e => e.href).href); |
|
|
|
}, |
|
|
|
}, |
|
|
|
openUrl(url) { |
|
|
|
openUrl(url) { |
|
|
|
window.open(url, '_blank') |
|
|
|
window.open(url, "_blank"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
openPricingPage() { |
|
|
|
openPricingPage() { |
|
|
|
// shell.openExternal(process.env.serverUrl + '/pricing') |
|
|
|
// shell.openExternal(process.env.serverUrl + '/pricing') |
|
|
@ -437,240 +468,253 @@ export default { |
|
|
|
// shell.openExternal('https://github.com/NocoDB/NocoDB') |
|
|
|
// shell.openExternal('https://github.com/NocoDB/NocoDB') |
|
|
|
}, |
|
|
|
}, |
|
|
|
dialogDebugCancel() { |
|
|
|
dialogDebugCancel() { |
|
|
|
this.dialogDebug = false |
|
|
|
this.dialogDebug = false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
dialogDebugShow() { |
|
|
|
dialogDebugShow() { |
|
|
|
this.dialogDebug = true |
|
|
|
this.dialogDebug = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
errorDialogCancel() { |
|
|
|
errorDialogCancel() { |
|
|
|
this.dialogErrorShow = false |
|
|
|
this.dialogErrorShow = false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
errorDialogReport() { |
|
|
|
errorDialogReport() { |
|
|
|
this.dialogErrorShow = false |
|
|
|
this.dialogErrorShow = false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
loadChat() { |
|
|
|
loadChat() { |
|
|
|
if (!window.Tawk_API) { |
|
|
|
if (!window.Tawk_API) { |
|
|
|
const s1 = document.createElement('script') |
|
|
|
const s1 = document.createElement("script"); |
|
|
|
const s0 = document.getElementsByTagName('script')[0] |
|
|
|
const s0 = document.getElementsByTagName("script")[0]; |
|
|
|
s1.async = true |
|
|
|
s1.async = true; |
|
|
|
s1.src = 'https://embed.tawk.to/5d81b8de9f6b7a4457e23ba7/default' |
|
|
|
s1.src = "https://embed.tawk.to/5d81b8de9f6b7a4457e23ba7/default"; |
|
|
|
s1.charset = 'UTF-8' |
|
|
|
s1.charset = "UTF-8"; |
|
|
|
s1.setAttribute('crossorigin', '*') |
|
|
|
s1.setAttribute("crossorigin", "*"); |
|
|
|
s0.parentNode.insertBefore(s1, s0) |
|
|
|
s0.parentNode.insertBefore(s1, s0); |
|
|
|
setTimeout(() => window.Tawk_API && window.Tawk_API.maximize(), 2000) |
|
|
|
setTimeout(() => window.Tawk_API && window.Tawk_API.maximize(), 2000); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
window.Tawk_API.maximize() |
|
|
|
window.Tawk_API.maximize(); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleMigrationsMenuClick(item, closeMenu = true, sqlEditor = false) { |
|
|
|
handleMigrationsMenuClick(item, closeMenu = true, sqlEditor = false) {}, |
|
|
|
}, |
|
|
|
|
|
|
|
apiClientTabAdd() { |
|
|
|
apiClientTabAdd() { |
|
|
|
// if (this.$route.path.indexOf('dashboard') > -1) { |
|
|
|
// if (this.$route.path.indexOf('dashboard') > -1) { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'apiClientDir') |
|
|
|
const tabIndex = this.tabs.findIndex((el) => el.key === "apiClientDir"); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'API Client', key: 'apiClientDir' } |
|
|
|
const item = { name: "API Client", key: "apiClientDir" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'apiClientDir' |
|
|
|
item._nodes.type = "apiClientDir"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
apiClientSwaggerTabAdd() { |
|
|
|
apiClientSwaggerTabAdd() { |
|
|
|
// if (this.$route.path.indexOf('dashboard') > -1) { |
|
|
|
// if (this.$route.path.indexOf('dashboard') > -1) { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'apiClientSwaggerDir') |
|
|
|
const tabIndex = this.tabs.findIndex( |
|
|
|
|
|
|
|
(el) => el.key === "apiClientSwaggerDir" |
|
|
|
|
|
|
|
); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'API Client', key: 'apiClientSwaggerDir' } |
|
|
|
const item = { name: "API Client", key: "apiClientSwaggerDir" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'apiClientSwaggerDir' |
|
|
|
item._nodes.type = "apiClientSwaggerDir"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
projectInfoTabAdd() { |
|
|
|
projectInfoTabAdd() { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'projectInfo') |
|
|
|
const tabIndex = this.tabs.findIndex((el) => el.key === "projectInfo"); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'Info', key: 'projectInfo' } |
|
|
|
const item = { name: "Info", key: "projectInfo" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'projectInfo' |
|
|
|
item._nodes.type = "projectInfo"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
xcMetaTabAdd() { |
|
|
|
xcMetaTabAdd() { |
|
|
|
// if (this.$route.path.indexOf('dashboard') > -1) { |
|
|
|
// if (this.$route.path.indexOf('dashboard') > -1) { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'meta') |
|
|
|
const tabIndex = this.tabs.findIndex((el) => el.key === "meta"); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'Meta', key: 'meta' } |
|
|
|
const item = { name: "Meta", key: "meta" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'meta' |
|
|
|
item._nodes.type = "meta"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
apiClientSwaggerOpen() { |
|
|
|
apiClientSwaggerOpen() { |
|
|
|
this.$router.push('/apiClient') |
|
|
|
this.$router.push("/apiClient"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
graphqlClientTabAdd() { |
|
|
|
graphqlClientTabAdd() { |
|
|
|
window.open(this.swaggerOrGraphiqlUrl, '_blank') |
|
|
|
window.open(this.swaggerOrGraphiqlUrl, "_blank"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
swaggerClientTabAdd() { |
|
|
|
swaggerClientTabAdd() { |
|
|
|
window.open(this.swaggerOrGraphiqlUrl, '_blank') |
|
|
|
window.open(this.swaggerOrGraphiqlUrl, "_blank"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
grpcTabAdd() { |
|
|
|
grpcTabAdd() { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'grpcClient') |
|
|
|
const tabIndex = this.tabs.findIndex((el) => el.key === "grpcClient"); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'gRPC Client', key: 'grpcClient' } |
|
|
|
const item = { name: "gRPC Client", key: "grpcClient" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'grpcClient' |
|
|
|
item._nodes.type = "grpcClient"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
rolesTabAdd() { |
|
|
|
rolesTabAdd() { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'roles') |
|
|
|
const tabIndex = this.tabs.findIndex((el) => el.key === "roles"); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'Team & Auth ', key: 'roles' } |
|
|
|
const item = { name: "Team & Auth ", key: "roles" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'roles' |
|
|
|
item._nodes.type = "roles"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
setTimeout(() => { |
|
|
|
setTimeout(() => { |
|
|
|
this.$eventBus.$emit('show-add-user') |
|
|
|
this.$eventBus.$emit("show-add-user"); |
|
|
|
}, 200) |
|
|
|
}, 200); |
|
|
|
}, |
|
|
|
}, |
|
|
|
settingsTabAdd() { |
|
|
|
settingsTabAdd() { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'projectSettings') |
|
|
|
const tabIndex = this.tabs.findIndex( |
|
|
|
|
|
|
|
(el) => el.key === "projectSettings" |
|
|
|
|
|
|
|
); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'Themes', key: 'projectSettings' } |
|
|
|
const item = { name: "Themes", key: "projectSettings" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'projectSettings' |
|
|
|
item._nodes.type = "projectSettings"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
aclTabAdd() { |
|
|
|
aclTabAdd() { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'acl') |
|
|
|
const tabIndex = this.tabs.findIndex((el) => el.key === "acl"); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'ACL', key: 'acl' } |
|
|
|
const item = { name: "ACL", key: "acl" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'acl' |
|
|
|
item._nodes.type = "acl"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
disableOrEnableModelTabAdd() { |
|
|
|
disableOrEnableModelTabAdd() { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'disableOrEnableModel') |
|
|
|
const tabIndex = this.tabs.findIndex( |
|
|
|
|
|
|
|
(el) => el.key === "disableOrEnableModel" |
|
|
|
|
|
|
|
); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'Meta Management', key: 'disableOrEnableModel' } |
|
|
|
const item = { name: "Meta Management", key: "disableOrEnableModel" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'disableOrEnableModel' |
|
|
|
item._nodes.type = "disableOrEnableModel"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
cronTabAdd() { |
|
|
|
cronTabAdd() { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'cronJobs') |
|
|
|
const tabIndex = this.tabs.findIndex((el) => el.key === "cronJobs"); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'Cron Jobs', key: 'cronJobs' } |
|
|
|
const item = { name: "Cron Jobs", key: "cronJobs" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'cronJobs' |
|
|
|
item._nodes.type = "cronJobs"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
appsTabAdd() { |
|
|
|
appsTabAdd() { |
|
|
|
const tabIndex = this.tabs.findIndex(el => el.key === 'appStore') |
|
|
|
const tabIndex = this.tabs.findIndex((el) => el.key === "appStore"); |
|
|
|
if (tabIndex !== -1) { |
|
|
|
if (tabIndex !== -1) { |
|
|
|
this.changeActiveTab(tabIndex) |
|
|
|
this.changeActiveTab(tabIndex); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
const item = { name: 'App Store', key: 'appStore' } |
|
|
|
const item = { name: "App Store", key: "appStore" }; |
|
|
|
item._nodes = { env: '_noco' } |
|
|
|
item._nodes = { env: "_noco" }; |
|
|
|
item._nodes.type = 'appStore' |
|
|
|
item._nodes.type = "appStore"; |
|
|
|
this.$store.dispatch('tabs/ActAddTab', item) |
|
|
|
this.$store.dispatch("tabs/ActAddTab", item); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
async codeGenerateMvc() { |
|
|
|
async codeGenerateMvc() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
await this.sqlMgr.projectGenerateBackend({ |
|
|
|
await this.sqlMgr.projectGenerateBackend({ |
|
|
|
env: '_noco' |
|
|
|
env: "_noco", |
|
|
|
}) |
|
|
|
}); |
|
|
|
this.$toast.success('Yay, REST APIs with MVC generated').goAway(4000) |
|
|
|
this.$toast.success("Yay, REST APIs with MVC generated").goAway(4000); |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
this.$toast.error('Error generating REST APIs code :' + e).goAway(4000) |
|
|
|
this.$toast.error("Error generating REST APIs code :" + e).goAway(4000); |
|
|
|
throw e |
|
|
|
throw e; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
cookieStatus(status) { |
|
|
|
cookieStatus(status) { |
|
|
|
this.status = status |
|
|
|
this.status = status; |
|
|
|
}, |
|
|
|
}, |
|
|
|
cookieClickedAccept() { |
|
|
|
cookieClickedAccept() { |
|
|
|
this.status = 'accept' |
|
|
|
this.status = "accept"; |
|
|
|
}, |
|
|
|
}, |
|
|
|
cookieClickedDecline() { |
|
|
|
cookieClickedDecline() { |
|
|
|
this.status = 'decline' |
|
|
|
this.status = "decline"; |
|
|
|
// localStorage.removeItem('vue-cookie-accept-decline') |
|
|
|
// localStorage.removeItem('vue-cookie-accept-decline') |
|
|
|
}, |
|
|
|
}, |
|
|
|
removeCookie() { |
|
|
|
removeCookie() { |
|
|
|
// console.log('Cookie removed') |
|
|
|
// console.log('Cookie removed') |
|
|
|
localStorage.removeItem('vue-cookie-accept-decline') |
|
|
|
localStorage.removeItem("vue-cookie-accept-decline"); |
|
|
|
this.status = 'Cookie removed, refresh the page.' |
|
|
|
this.status = "Cookie removed, refresh the page."; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
MtdContactUs() { |
|
|
|
MtdContactUs() { |
|
|
|
this.snackbar = true |
|
|
|
this.snackbar = true; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
MtdHiring() { |
|
|
|
MtdHiring() { |
|
|
|
this.$router.push('/info/hiring') |
|
|
|
this.$router.push("/info/hiring"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
MtdFaq() { |
|
|
|
MtdFaq() { |
|
|
|
this.$router.push('/info/faq') |
|
|
|
this.$router.push("/info/faq"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
MtdTos() { |
|
|
|
MtdTos() { |
|
|
|
this.$router.push('/info/tos') |
|
|
|
this.$router.push("/info/tos"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
async MtdSignOut() { |
|
|
|
async MtdSignOut() { |
|
|
|
await this.$store.dispatch('users/ActSignOut') |
|
|
|
await this.$store.dispatch("users/ActSignOut"); |
|
|
|
this.$router.push('/user/authentication/signin') |
|
|
|
this.$router.push("/user/authentication/signin"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
MtdToggleDrawer() { |
|
|
|
MtdToggleDrawer() { |
|
|
|
if (!this.$store.getters['users/GtrUser']) { |
|
|
|
if (!this.$store.getters["users/GtrUser"]) { |
|
|
|
this.drawer = false |
|
|
|
this.drawer = false; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.drawer = !this.drawer |
|
|
|
this.drawer = !this.drawer; |
|
|
|
} |
|
|
|
} |
|
|
|
// console.log('Toggling drawer', this.drawer); |
|
|
|
// console.log('Toggling drawer', this.drawer); |
|
|
|
}, |
|
|
|
}, |
|
|
|
changeTheme() { |
|
|
|
changeTheme() { |
|
|
|
this.$store.dispatch('windows/ActToggleDarkMode', !this.$store.state.windows.darkTheme) |
|
|
|
this.$store.dispatch( |
|
|
|
this.$tele.emit('toolbar:theme') |
|
|
|
"windows/ActToggleDarkMode", |
|
|
|
|
|
|
|
!this.$store.state.windows.darkTheme |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
this.$e("c:navbar:theme"); |
|
|
|
}, |
|
|
|
}, |
|
|
|
async copyProjectInfo() { |
|
|
|
async copyProjectInfo() { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const data = (await this.$api.project.metaGet(this.$store.state.project.projectId)) |
|
|
|
const data = await this.$api.project.metaGet( |
|
|
|
copyTextToClipboard(Object.entries(data).map(([k, v]) => `${k}: **${v}**`).join('\n')) |
|
|
|
this.$store.state.project.projectId |
|
|
|
this.$toast.info('Copied project info to clipboard').goAway(3000) |
|
|
|
); |
|
|
|
|
|
|
|
copyTextToClipboard( |
|
|
|
|
|
|
|
Object.entries(data) |
|
|
|
|
|
|
|
.map(([k, v]) => `${k}: **${v}**`) |
|
|
|
|
|
|
|
.join("\n") |
|
|
|
|
|
|
|
); |
|
|
|
|
|
|
|
this.$toast.info("Copied project info to clipboard").goAway(3000); |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
console.log(e) |
|
|
|
console.log(e); |
|
|
|
this.$toast.error(e.message).goAway(3000) |
|
|
|
this.$toast.error(e.message).goAway(3000); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
|
<style scoped> |
|
|
|
<style scoped> |
|
|
|
a { |
|
|
|
a { |
|
|
@ -718,10 +762,10 @@ a { |
|
|
|
border-radius: 50%; |
|
|
|
border-radius: 50%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/deep/ .nc-user-menu .v-list-item--dense, /deep/ .nc-user-menu .v-list--dense .v-list-item { |
|
|
|
/deep/ .nc-user-menu .v-list-item--dense, |
|
|
|
min-height: 35px |
|
|
|
/deep/ .nc-user-menu .v-list--dense .v-list-item { |
|
|
|
|
|
|
|
min-height: 35px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
</style> |
|
|
|
</style> |
|
|
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
<!-- |
|
|
|