mirror of https://github.com/nocodb/nocodb
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
3.6 KiB
116 lines
3.6 KiB
4 years ago
|
<template>
|
||
|
<v-container fluid class="pa-0 ma-0" style="overflow: auto">
|
||
3 years ago
|
<!-- <trialExpired v-if="$store.getters['settings/GtrHasTrialPeriodExpired']"></trialExpired>-->
|
||
2 years ago
|
<splitpanes style="height: calc(100vh - 48px)" class="xc-theme">
|
||
4 years ago
|
<pane min-size="10" :size="paneSize" max-size="50" style="overflow: auto">
|
||
3 years ago
|
<ProjectTreeView />
|
||
4 years ago
|
</pane>
|
||
|
<pane :size="100 - paneSize">
|
||
3 years ago
|
<ProjectTabs />
|
||
4 years ago
|
|
||
|
<!-- <splitpanes horizontal class="xc-theme">-->
|
||
|
<!-- <pane :size=" mainPanelSize" min-size="50" style="overflow: auto">-->
|
||
|
<!-- <ProjectTabs/>-->
|
||
|
<!-- </pane>-->
|
||
|
|
||
3 years ago
|
<!-- <pane v-if="$store.state.settings.outputWindow" :size="10" style="overflow: auto" >-->
|
||
4 years ago
|
<!-- <ProjectOutput />-->
|
||
|
<!-- </pane>-->
|
||
3 years ago
|
<!-- <pane v-if="$store.state.settings.logWindow" :size="10" style="overflow: auto" >-->
|
||
4 years ago
|
<!-- <ProjectLogs />-->
|
||
|
<!-- </pane>-->
|
||
|
<!-- </splitpanes>-->
|
||
|
</pane>
|
||
|
</splitpanes>
|
||
|
</v-container>
|
||
|
</template>
|
||
|
<script>
|
||
2 years ago
|
import { Splitpanes, Pane } from 'splitpanes';
|
||
|
import ProjectTabs from '~/components/ProjectTabs';
|
||
|
import ProjectTreeView from '@/components/ProjectTreeView';
|
||
4 years ago
|
// import ProjectLogs from "~/components/ProjectLogs";
|
||
|
// import ProjectOutput from "~/components/ProjectOutput";
|
||
|
// import trialExpired from "../../components/trialExpired";
|
||
|
// const {validateInit} = require("electron").remote.require("./libs");
|
||
|
export default {
|
||
|
components: {
|
||
|
ProjectTreeView,
|
||
|
ProjectTabs,
|
||
|
// ProjectLogs,
|
||
|
// ProjectOutput,
|
||
3 years ago
|
Splitpanes,
|
||
2 years ago
|
Pane,
|
||
4 years ago
|
// trialExpired
|
||
|
|
||
|
// Multipane,
|
||
|
// MultipaneResizer
|
||
|
},
|
||
3 years ago
|
data() {
|
||
4 years ago
|
return {
|
||
|
paneSize: 20,
|
||
2 years ago
|
mainPanelSize: 80,
|
||
|
};
|
||
4 years ago
|
},
|
||
|
|
||
|
computed: {},
|
||
|
watch: {},
|
||
3 years ago
|
async created() {
|
||
4 years ago
|
// const user = await validateInit();
|
||
|
// if (user) {
|
||
|
// ga('send', 'event', 'init', 'corruption', user);
|
||
|
// }
|
||
|
// this.$store.dispatch('users/ActSetUserAbility');
|
||
|
// this.$store.dispatch('users/ActSetUserAbility');
|
||
|
this.$store.watch(
|
||
3 years ago
|
state => state.panelSize.treeView && state.panelSize.treeView.size,
|
||
2 years ago
|
newSize => {
|
||
|
this.paneSize = newSize;
|
||
|
}
|
||
|
);
|
||
4 years ago
|
//
|
||
|
// this.$store.watch(
|
||
3 years ago
|
// (state) => !state.settings.outputWindow && !state.settings.logWindow,
|
||
4 years ago
|
// (newState) => {
|
||
|
// if (newState) this.$nextTick(() => this.mainPanelSize = 100)
|
||
|
// }
|
||
|
// )
|
||
|
},
|
||
|
|
||
2 years ago
|
mounted() {},
|
||
|
methods: {},
|
||
|
};
|
||
4 years ago
|
</script>
|
||
|
<style scoped>
|
||
|
/deep/ .splitpanes__splitter {
|
||
|
/*background: var(--v-primary-base) !important;*/
|
||
|
/*border: var(--v-primary-base) !important;*/
|
||
|
/*opacity: .4;*/
|
||
|
background: #7f828b33 !important;
|
||
|
border: #7f828b33 !important;
|
||
|
}
|
||
|
</style>
|
||
|
<!--
|
||
|
/**
|
||
|
* @copyright Copyright (c) 2021, Xgene Cloud Ltd
|
||
|
*
|
||
|
* @author Naveen MR <oof1lab@gmail.com>
|
||
|
* @author Pranav C Balan <pranavxc@gmail.com>
|
||
|
*
|
||
|
* @license GNU AGPL version 3 or any later version
|
||
|
*
|
||
|
* This program is free software: you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU Affero General Public License as
|
||
|
* published by the Free Software Foundation, either version 3 of the
|
||
|
* License, or (at your option) any later version.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU Affero General Public License for more details.
|
||
|
*
|
||
|
* You should have received a copy of the GNU Affero General Public License
|
||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
*
|
||
|
*/
|
||
|
-->
|