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.
633 lines
16 KiB
633 lines
16 KiB
4 years ago
|
<template>
|
||
3 years ago
|
<v-container
|
||
2 years ago
|
class="h-100 j-excel-container"
|
||
3 years ago
|
:class="{
|
||
2 years ago
|
'pa-0 ma-0': !notFound,
|
||
3 years ago
|
}"
|
||
|
fluid
|
||
|
>
|
||
2 years ago
|
<v-alert v-if="notFound" type="warning" class="mx-auto mt-10" outlined max-width="300"> Not found </v-alert>
|
||
4 years ago
|
|
||
3 years ago
|
<template v-else>
|
||
3 years ago
|
<div v-if="viewName" class="model-name">
|
||
3 years ago
|
<span class="font-weight-bold"> {{ viewName }}</span> <span class="font-weight-regular ml-1" />
|
||
|
</div>
|
||
|
|
||
3 years ago
|
<v-toolbar
|
||
|
v-if="meta"
|
||
|
height="40"
|
||
3 years ago
|
dense
|
||
3 years ago
|
class="nc-table-toolbar elevation-0 xc-toolbar xc-border-bottom"
|
||
2 years ago
|
style="z-index: 7; border-radius: 4px"
|
||
3 years ago
|
>
|
||
3 years ago
|
<div class="d-inline-flex">
|
||
|
<fields-menu
|
||
|
v-model="showFields"
|
||
|
:field-list="fieldList"
|
||
|
:fields-order.sync="fieldsOrder"
|
||
|
is-public
|
||
|
:meta="meta"
|
||
3 years ago
|
:show-system-fields="showSystemFields"
|
||
3 years ago
|
/>
|
||
4 years ago
|
|
||
3 years ago
|
<sort-list-menu
|
||
|
v-model="sorts"
|
||
|
:meta="meta"
|
||
|
:shared="true"
|
||
|
:field-list="realFieldList"
|
||
|
@input="loadTableData"
|
||
|
/>
|
||
4 years ago
|
|
||
3 years ago
|
<column-filter-menu
|
||
|
v-model="filters"
|
||
|
:meta="meta"
|
||
|
:field-list="realFieldList"
|
||
|
:shared="true"
|
||
|
@input="loadTableData"
|
||
|
/>
|
||
4 years ago
|
|
||
2 years ago
|
<more-actions
|
||
2 years ago
|
v-if="allowCSVDownload"
|
||
3 years ago
|
:is-view="isView"
|
||
2 years ago
|
:query-params="{ ...queryParams, showFields, fieldsOrder }"
|
||
3 years ago
|
:public-view-id="$route.params.id"
|
||
|
:meta="meta"
|
||
2 years ago
|
:req-payload="{ filters, sorts, password }"
|
||
3 years ago
|
/>
|
||
|
</div>
|
||
2 years ago
|
<v-spacer class="h-100" @dblclick="debug = true" />
|
||
3 years ago
|
</v-toolbar>
|
||
3 years ago
|
|
||
3 years ago
|
<div
|
||
|
v-if="meta"
|
||
3 years ago
|
class="nc-grid-wrapper d-flex"
|
||
3 years ago
|
:class="`cell-height-${cellHeight}`"
|
||
2 years ago
|
style="overflow: auto; transition: width 500ms"
|
||
3 years ago
|
>
|
||
|
<div class="flex-grow-1 h-100" style="overflow-y: auto">
|
||
2 years ago
|
<div ref="table" class="nc-grid" style="overflow: auto; width: 100%">
|
||
3 years ago
|
<v-skeleton-loader v-if="loadingData" type="table" />
|
||
4 years ago
|
|
||
3 years ago
|
<xc-grid-view
|
||
|
v-else
|
||
|
is-public-view
|
||
3 years ago
|
:meta="tableMeta"
|
||
3 years ago
|
:metas="metas"
|
||
|
:data="data"
|
||
|
:available-columns="availableColumns"
|
||
|
:show-fields="showFields"
|
||
2 years ago
|
:nodes="{ ...nodes, dbConnection: { client } }"
|
||
3 years ago
|
:sql-ui="sqlUi"
|
||
|
:columns-width="columnsWidth"
|
||
|
:password="password"
|
||
|
/>
|
||
|
</div>
|
||
4 years ago
|
|
||
3 years ago
|
<v-pagination
|
||
|
v-if="data"
|
||
|
v-model="page"
|
||
|
style="max-width: 100%"
|
||
|
:length="Math.ceil(count / size)"
|
||
|
:total-visible="8"
|
||
|
color="primary lighten-2"
|
||
|
@input="loadTableData"
|
||
|
/>
|
||
|
</div>
|
||
4 years ago
|
</div>
|
||
3 years ago
|
</template>
|
||
4 years ago
|
<v-dialog v-model="showPasswordModal" width="400">
|
||
|
<v-card width="400" class="backgroundColor">
|
||
|
<v-container fluid>
|
||
3 years ago
|
<v-text-field
|
||
|
v-model="password"
|
||
|
dense
|
||
3 years ago
|
autocomplete="shared-table-password"
|
||
|
browser-autocomplete="shared-table-password"
|
||
3 years ago
|
type="password"
|
||
|
solo
|
||
|
flat
|
||
|
hint="Enter the password"
|
||
|
persistent-hint
|
||
|
/>
|
||
4 years ago
|
|
||
|
<div class="text-center">
|
||
2 years ago
|
<v-btn small color="primary" @click="unlock"> Unlock </v-btn>
|
||
4 years ago
|
</div>
|
||
|
</v-container>
|
||
|
</v-card>
|
||
|
</v-dialog>
|
||
|
</v-container>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
3 years ago
|
/* eslint-disable camelcase */
|
||
4 years ago
|
|
||
2 years ago
|
import { ErrorMessages, SqlUiFactory } from 'nocodb-sdk';
|
||
|
import spreadsheet from '../mixins/spreadsheet';
|
||
|
import ApiFactory from '../apis/apiFactory';
|
||
|
import FieldsMenu from '../components/FieldsMenu';
|
||
|
import SortListMenu from '../components/SortListMenu';
|
||
|
import ColumnFilterMenu from '../components/ColumnFilterMenu';
|
||
|
import XcGridView from '../views/GridView';
|
||
|
import MoreActions from '~/components/project/spreadsheet/components/MoreActions';
|
||
4 years ago
|
|
||
|
export default {
|
||
3 years ago
|
name: 'XcTable',
|
||
3 years ago
|
components: {
|
||
2 years ago
|
MoreActions,
|
||
3 years ago
|
XcGridView,
|
||
|
ColumnFilterMenu,
|
||
|
SortListMenu,
|
||
2 years ago
|
FieldsMenu,
|
||
3 years ago
|
},
|
||
4 years ago
|
mixins: [spreadsheet],
|
||
|
props: {
|
||
|
env: String,
|
||
|
nodes: Object,
|
||
|
relationType: String,
|
||
|
relation: Object,
|
||
|
relationIdValue: [String, Number],
|
||
|
refTable: String,
|
||
3 years ago
|
relationPrimaryValue: [String, Number],
|
||
2 years ago
|
isView: Boolean,
|
||
4 years ago
|
},
|
||
|
data: () => ({
|
||
3 years ago
|
notFound: false,
|
||
3 years ago
|
viewName: null,
|
||
|
viewType: null,
|
||
3 years ago
|
columnsWidth: {},
|
||
3 years ago
|
metas: {},
|
||
3 years ago
|
fieldsOrder: [],
|
||
4 years ago
|
password: null,
|
||
|
showPasswordModal: false,
|
||
|
client: 'mysql',
|
||
|
shareLink: null,
|
||
|
showShareModel: false,
|
||
|
loadingMeta: true,
|
||
|
loadingData: true,
|
||
|
toggleDrawer: false,
|
||
|
selectedItem: 0,
|
||
|
searchField: null,
|
||
|
searchQuery: '',
|
||
|
showExpandModal: false,
|
||
|
selectedExpandRowIndex: null,
|
||
|
selectedExpandRowMeta: null,
|
||
3 years ago
|
meta: null,
|
||
4 years ago
|
navDrawer: true,
|
||
|
selected: {
|
||
|
row: null,
|
||
2 years ago
|
col: null,
|
||
4 years ago
|
},
|
||
|
editEnabled: {
|
||
|
row: null,
|
||
2 years ago
|
col: null,
|
||
4 years ago
|
},
|
||
|
page: 1,
|
||
|
count: 0,
|
||
|
size: 25,
|
||
|
xWhere: '',
|
||
|
sort: '',
|
||
|
|
||
|
cellHeight: 'small',
|
||
|
|
||
|
isAnyFieldHidden: false,
|
||
2 years ago
|
opList: [
|
||
|
'is equal',
|
||
|
'is not equal',
|
||
|
'is like',
|
||
|
'is not like',
|
||
|
'is empty',
|
||
|
'is not empty',
|
||
|
'is null',
|
||
|
'is not null',
|
||
|
],
|
||
4 years ago
|
fieldFilter: '',
|
||
|
|
||
|
filters: [],
|
||
3 years ago
|
sorts: [],
|
||
4 years ago
|
|
||
|
data: [],
|
||
|
spreadsheet: null,
|
||
|
options: {
|
||
|
allowToolbar: true,
|
||
2 years ago
|
columnSorting: false,
|
||
4 years ago
|
},
|
||
|
filteredData: [],
|
||
|
showFields: {},
|
||
3 years ago
|
// fieldList: [],
|
||
4 years ago
|
|
||
2 years ago
|
cellHeights: [
|
||
|
{
|
||
|
size: 'small',
|
||
|
icon: 'mdi-view-headline',
|
||
|
},
|
||
|
{
|
||
|
size: 'medium',
|
||
|
icon: 'mdi-view-sequential',
|
||
|
},
|
||
|
{
|
||
|
size: 'large',
|
||
|
icon: 'mdi-view-stream',
|
||
|
},
|
||
|
{
|
||
|
size: 'xlarge',
|
||
|
icon: 'mdi-card',
|
||
|
},
|
||
|
],
|
||
4 years ago
|
rowContextMenu: null,
|
||
3 years ago
|
modelName: null,
|
||
2 years ago
|
tableMeta: null,
|
||
2 years ago
|
allowCSVDownload: true,
|
||
4 years ago
|
}),
|
||
3 years ago
|
computed: {
|
||
3 years ago
|
concatenatedXWhere() {
|
||
2 years ago
|
let where = '';
|
||
3 years ago
|
if (this.searchField && this.searchQuery.trim()) {
|
||
2 years ago
|
if (
|
||
|
['text', 'string'].includes(
|
||
|
this.sqlUi.getAbstractType(this.meta.columns.find(({ _cn }) => _cn === this.searchField))
|
||
|
)
|
||
|
) {
|
||
|
where = `(${this.searchField},like,%${this.searchQuery.trim()}%)`;
|
||
3 years ago
|
} else {
|
||
2 years ago
|
where = `(${this.searchField},eq,${this.searchQuery.trim()})`;
|
||
3 years ago
|
}
|
||
|
}
|
||
|
|
||
|
if (!where) {
|
||
2 years ago
|
return this.xWhere;
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
return this.xWhere ? where + `~and(${this.xWhere})` : where;
|
||
3 years ago
|
},
|
||
3 years ago
|
sqlUi() {
|
||
3 years ago
|
// todo: replace with correct client
|
||
2 years ago
|
return SqlUiFactory.create({ client: this.client });
|
||
3 years ago
|
},
|
||
3 years ago
|
queryParams() {
|
||
3 years ago
|
return {
|
||
|
limit: this.size,
|
||
|
offset: this.size * (this.page - 1),
|
||
|
where: this.concatenatedXWhere,
|
||
2 years ago
|
sort: this.sort,
|
||
|
};
|
||
3 years ago
|
},
|
||
3 years ago
|
api() {
|
||
2 years ago
|
return ApiFactory.create(
|
||
|
this.$store.getters['project/GtrProjectType'],
|
||
|
this.table,
|
||
|
this.meta && this.meta.columns,
|
||
|
this,
|
||
|
this.meta
|
||
|
);
|
||
3 years ago
|
},
|
||
3 years ago
|
colLength() {
|
||
2 years ago
|
return (this.meta && this.meta.columns && this.meta.columns.length) || 0;
|
||
3 years ago
|
},
|
||
3 years ago
|
visibleColLength() {
|
||
2 years ago
|
return (this.meta && this.meta.columns && this.meta.columns.length) || 0;
|
||
3 years ago
|
},
|
||
3 years ago
|
rowLength() {
|
||
2 years ago
|
return (this.data && this.data.length) || 0;
|
||
3 years ago
|
},
|
||
3 years ago
|
edited() {
|
||
2 years ago
|
return this.data && this.data.some(r => r.rowMeta && (r.rowMeta.new || r.rowMeta.changed));
|
||
3 years ago
|
},
|
||
3 years ago
|
table() {
|
||
3 years ago
|
if (this.relationType === 'hm') {
|
||
2 years ago
|
return this.relation.table_name;
|
||
3 years ago
|
} else if (this.relationType === 'bt') {
|
||
2 years ago
|
return this.relation.rtn;
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
return this.nodes.table_name || this.nodes.view_name;
|
||
3 years ago
|
},
|
||
3 years ago
|
primaryValueColumn() {
|
||
3 years ago
|
if (!this.meta || !this.meta.columns) {
|
||
2 years ago
|
return '';
|
||
3 years ago
|
}
|
||
|
|
||
2 years ago
|
const pvIndex = this.meta.columns.findIndex(c => c.pv);
|
||
3 years ago
|
|
||
3 years ago
|
if (pvIndex > -1 && pvIndex <= this.colLength - 1) {
|
||
2 years ago
|
return this.meta.columns[pvIndex].title;
|
||
3 years ago
|
}
|
||
3 years ago
|
|
||
2 years ago
|
const pkIndex = this.meta.columns.findIndex(c => c.pv);
|
||
3 years ago
|
|
||
|
if (pkIndex > -1 && pkIndex < this.colLength - 1) {
|
||
2 years ago
|
return this.meta.columns[pkIndex + 1].title;
|
||
3 years ago
|
}
|
||
2 years ago
|
return this.meta.columns[0].title;
|
||
|
},
|
||
3 years ago
|
},
|
||
3 years ago
|
async mounted() {
|
||
4 years ago
|
try {
|
||
2 years ago
|
await this.loadMetaData();
|
||
3 years ago
|
if (!this.showPasswordModal && !this.notFound) {
|
||
2 years ago
|
await this.loadTableData();
|
||
3 years ago
|
}
|
||
4 years ago
|
} catch (e) {
|
||
2 years ago
|
console.log(e);
|
||
4 years ago
|
}
|
||
2 years ago
|
this.searchField = this.primaryValueColumn;
|
||
3 years ago
|
},
|
||
3 years ago
|
created() {
|
||
2 years ago
|
document.addEventListener('keydown', this.onKeyDown);
|
||
3 years ago
|
},
|
||
3 years ago
|
beforeDestroy() {
|
||
2 years ago
|
document.removeEventListener('keydown', this.onKeyDown);
|
||
4 years ago
|
},
|
||
|
methods: {
|
||
3 years ago
|
comingSoon() {
|
||
2 years ago
|
this.$toast.info('Coming soon!').goAway(3000);
|
||
4 years ago
|
},
|
||
3 years ago
|
makeSelected(col, row) {
|
||
4 years ago
|
if (this.selected.col !== col || this.selected.row !== row) {
|
||
3 years ago
|
this.selected = {
|
||
|
col,
|
||
2 years ago
|
row,
|
||
|
};
|
||
|
this.editEnabled = {};
|
||
4 years ago
|
}
|
||
|
},
|
||
3 years ago
|
makeEditable(col, row) {
|
||
4 years ago
|
if (this.meta.columns[col].ai) {
|
||
2 years ago
|
return this.$toast.info('Auto Increment field is not editable').goAway(3000);
|
||
4 years ago
|
}
|
||
|
if (this.meta.columns[col].pk && !this.data[row].rowMeta.new) {
|
||
2 years ago
|
return this.$toast.info('Editing primary key not supported').goAway(3000);
|
||
4 years ago
|
}
|
||
|
if (this.editEnabled.col !== col || this.editEnabled.row !== row) {
|
||
3 years ago
|
this.editEnabled = {
|
||
|
col,
|
||
2 years ago
|
row,
|
||
|
};
|
||
4 years ago
|
}
|
||
|
},
|
||
|
|
||
2 years ago
|
async handleKeyDown({ metaKey, key, altKey, shiftKey, ctrlKey }) {
|
||
4 years ago
|
// ctrl + s -> save
|
||
|
// ctrl + l -> reload
|
||
|
// ctrl + n -> new
|
||
2 years ago
|
switch ([this._isMac ? metaKey : ctrlKey, key].join('_')) {
|
||
|
case 'true_s':
|
||
|
this.edited && (await this.save());
|
||
|
break;
|
||
|
case 'true_l':
|
||
|
await this.loadTableData();
|
||
|
break;
|
||
|
case 'true_n':
|
||
|
this.insertNewRow(true);
|
||
|
break;
|
||
4 years ago
|
}
|
||
|
},
|
||
|
|
||
3 years ago
|
addFilter() {
|
||
4 years ago
|
this.filters.push({
|
||
|
field: '',
|
||
|
op: '',
|
||
|
value: '',
|
||
2 years ago
|
logicOp: 'and',
|
||
|
});
|
||
|
this.filters = this.filters.slice();
|
||
4 years ago
|
},
|
||
3 years ago
|
addSort() {
|
||
3 years ago
|
this.sorts.push({
|
||
4 years ago
|
field: '',
|
||
2 years ago
|
order: '',
|
||
|
});
|
||
|
this.filters = this.filters.slice();
|
||
4 years ago
|
},
|
||
3 years ago
|
async loadMetaData() {
|
||
2 years ago
|
this.loading = true;
|
||
3 years ago
|
try {
|
||
2 years ago
|
this.viewMeta = await this.$api.public.sharedViewMetaGet(this.$route.params.id, {
|
||
3 years ago
|
headers: {
|
||
2 years ago
|
'xc-password': this.password,
|
||
|
},
|
||
|
});
|
||
|
this.tableMeta = this.viewMeta.model;
|
||
|
this.meta = { ...this.viewMeta.model };
|
||
|
this.meta.columns = this.meta.columns.filter(c => c.show);
|
||
|
this.metas = this.viewMeta.relatedMetas;
|
||
|
this.showSystemFields = this.viewMeta.show_system_fields;
|
||
3 years ago
|
|
||
2 years ago
|
this.sorts = this.viewMeta.sorts;
|
||
|
this.viewName = this.viewMeta.title;
|
||
|
this.client = this.viewMeta.client;
|
||
|
this.allowCSVDownload = JSON.parse(this.viewMeta.meta).allowCSVDownload;
|
||
3 years ago
|
} catch (e) {
|
||
3 years ago
|
if (e.response && e.response.status === 404) {
|
||
2 years ago
|
this.notFound = true;
|
||
|
} else if ((await this._extractSdkResponseErrorMsg(e)) === ErrorMessages.INVALID_SHARED_VIEW_PASSWORD) {
|
||
|
this.showPasswordModal = true;
|
||
3 years ago
|
} else {
|
||
2 years ago
|
console.log(e);
|
||
3 years ago
|
}
|
||
|
}
|
||
|
|
||
2 years ago
|
this.loadingData = false;
|
||
3 years ago
|
},
|
||
|
|
||
3 years ago
|
async loadTableData() {
|
||
2 years ago
|
this.loadingData = true;
|
||
4 years ago
|
try {
|
||
3 years ago
|
const {
|
||
|
data: {
|
||
|
list,
|
||
2 years ago
|
pageInfo: { totalRows: count },
|
||
|
},
|
||
|
} = await this.$api.public.dataList(
|
||
3 years ago
|
this.$route.params.id,
|
||
|
{
|
||
2 years ago
|
sortArrJson: JSON.stringify(
|
||
|
this.sorts &&
|
||
|
this.sorts.map(({ fk_column_id, direction }) => ({
|
||
|
direction,
|
||
|
fk_column_id,
|
||
|
}))
|
||
|
),
|
||
3 years ago
|
filterArrJson: JSON.stringify(this.filters),
|
||
2 years ago
|
...this.queryParams,
|
||
|
},
|
||
|
{
|
||
|
headers: { 'xc-password': this.password },
|
||
3 years ago
|
}
|
||
2 years ago
|
);
|
||
3 years ago
|
|
||
2 years ago
|
this.count = count;
|
||
4 years ago
|
this.data = list.map(row => ({
|
||
|
row,
|
||
3 years ago
|
oldRow: { ...row },
|
||
2 years ago
|
rowMeta: {},
|
||
|
}));
|
||
4 years ago
|
} catch (e) {
|
||
3 years ago
|
if (e.response && e.response.status === 404) {
|
||
2 years ago
|
this.notFound = true;
|
||
|
} else if ((await this._extractSdkResponseErrorMsg(e)) === ErrorMessages.INVALID_SHARED_VIEW_PASSWORD) {
|
||
|
this.showPasswordModal = true;
|
||
3 years ago
|
} else {
|
||
2 years ago
|
console.log(e);
|
||
3 years ago
|
}
|
||
4 years ago
|
}
|
||
|
|
||
2 years ago
|
this.loadingData = false;
|
||
4 years ago
|
},
|
||
3 years ago
|
onKeyDown(e) {
|
||
3 years ago
|
if (this.selected.col === null || this.selected.row === null) {
|
||
2 years ago
|
return;
|
||
3 years ago
|
}
|
||
4 years ago
|
switch (e.keyCode) {
|
||
|
// left
|
||
|
case 37:
|
||
3 years ago
|
if (this.selected.col > 0) {
|
||
2 years ago
|
this.selected.col--;
|
||
3 years ago
|
}
|
||
2 years ago
|
break;
|
||
4 years ago
|
// right
|
||
|
case 39:
|
||
3 years ago
|
if (this.selected.col < this.colLength - 1) {
|
||
2 years ago
|
this.selected.col++;
|
||
3 years ago
|
}
|
||
2 years ago
|
break;
|
||
4 years ago
|
// up
|
||
|
case 38:
|
||
3 years ago
|
if (this.selected.row > 0) {
|
||
2 years ago
|
this.selected.row--;
|
||
3 years ago
|
}
|
||
2 years ago
|
break;
|
||
4 years ago
|
// down
|
||
|
case 40:
|
||
3 years ago
|
if (this.selected.row < this.rowLength - 1) {
|
||
2 years ago
|
this.selected.row++;
|
||
3 years ago
|
}
|
||
2 years ago
|
break;
|
||
4 years ago
|
// enter
|
||
|
case 13:
|
||
2 years ago
|
this.makeEditable(this.selected.col, this.selected.row);
|
||
|
break;
|
||
4 years ago
|
}
|
||
|
},
|
||
3 years ago
|
showRowContextMenu(e, row, rowMeta, index) {
|
||
2 years ago
|
e.preventDefault();
|
||
|
this.rowContextMenu = false;
|
||
4 years ago
|
this.$nextTick(() => {
|
||
|
this.rowContextMenu = {
|
||
|
x: e.clientX,
|
||
|
y: e.clientY,
|
||
3 years ago
|
row,
|
||
|
index,
|
||
2 years ago
|
rowMeta,
|
||
|
};
|
||
|
});
|
||
4 years ago
|
},
|
||
3 years ago
|
expandRow(row, rowMeta) {
|
||
2 years ago
|
this.showExpandModal = true;
|
||
|
this.selectedExpandRowIndex = row;
|
||
|
this.selectedExpandRowMeta = rowMeta;
|
||
3 years ago
|
},
|
||
|
async unlock() {
|
||
2 years ago
|
this.showPasswordModal = false;
|
||
|
await this.reload();
|
||
3 years ago
|
},
|
||
|
async reload() {
|
||
2 years ago
|
await this.loadMetaData();
|
||
|
await this.loadTableData();
|
||
|
},
|
||
|
},
|
||
|
};
|
||
4 years ago
|
</script>
|
||
|
<style scoped>
|
||
|
/deep/ .v-input__control .v-input__slot .v-input--selection-controls__input {
|
||
2 years ago
|
transform: scale(0.85);
|
||
4 years ago
|
margin-right: 0;
|
||
|
}
|
||
|
|
||
2 years ago
|
/deep/ .xc-toolbar .v-input__slot,
|
||
|
.navigation .v-input__slot {
|
||
4 years ago
|
box-shadow: none !important;
|
||
|
}
|
||
|
|
||
|
/deep/ .navigation .v-input__slot input::placeholder {
|
||
2 years ago
|
font-size: 0.8rem;
|
||
4 years ago
|
}
|
||
|
|
||
|
/deep/ .v-btn {
|
||
|
text-transform: capitalize;
|
||
|
}
|
||
|
|
||
|
/deep/ .xc-bt-chip {
|
||
|
margin-right: 12px;
|
||
2 years ago
|
transition: 0.4s margin-right, 0.4s padding-right;
|
||
4 years ago
|
}
|
||
|
|
||
|
/deep/ .xc-border.search-box {
|
||
|
overflow: visible;
|
||
|
border-radius: 4px;
|
||
|
}
|
||
|
|
||
|
/deep/ .xc-border.search-box .v-input {
|
||
2 years ago
|
transition: 0.4s border-color;
|
||
4 years ago
|
}
|
||
|
|
||
|
/deep/ .xc-border.search-box .v-input--is-focused {
|
||
|
border: 1px solid var(--v-primary-base) !important;
|
||
|
margin: -1px;
|
||
|
}
|
||
|
|
||
|
/deep/ .search-field.v-text-field.v-text-field--solo.v-input--dense > .v-input__control {
|
||
|
min-height: auto;
|
||
|
}
|
||
|
|
||
|
.model-name {
|
||
|
position: fixed;
|
||
|
top: 5px;
|
||
|
pointer-events: none;
|
||
|
left: 0;
|
||
|
right: 0;
|
||
|
text-align: center;
|
||
|
z-index: 9999;
|
||
|
width: 100%;
|
||
|
font-size: 1.2rem;
|
||
|
color: white;
|
||
|
height: 40px;
|
||
|
display: flex;
|
||
|
align-items: center;
|
||
|
justify-content: center;
|
||
|
}
|
||
|
|
||
3 years ago
|
.nc-grid-wrapper {
|
||
2 years ago
|
height: calc(100vh - 120px);
|
||
3 years ago
|
}
|
||
|
|
||
3 years ago
|
.nc-grid {
|
||
2 years ago
|
height: calc(100% - 34px);
|
||
3 years ago
|
}
|
||
4 years ago
|
</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/>.
|
||
|
*
|
||
|
*/
|
||
|
-->
|