Lint
This commit is contained in:
parent
666762a2c2
commit
c614c0739f
|
@ -2,7 +2,6 @@
|
||||||
import { getContext, onMount } from "svelte"
|
import { getContext, onMount } from "svelte"
|
||||||
import { Modal } from "@budibase/bbui"
|
import { Modal } from "@budibase/bbui"
|
||||||
import CreateEditColumn from "../CreateEditColumn.svelte"
|
import CreateEditColumn from "../CreateEditColumn.svelte"
|
||||||
import { tables } from "stores/backend"
|
|
||||||
|
|
||||||
const { rows, subscribe } = getContext("sheet")
|
const { rows, subscribe } = getContext("sheet")
|
||||||
|
|
||||||
|
|
|
@ -325,9 +325,4 @@
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -15,12 +15,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
const goToBuilder = () => {
|
const goToBuilder = () => {
|
||||||
// if (app.lockedOther) {
|
if (app.lockedOther) {
|
||||||
// notifications.error(
|
notifications.error(
|
||||||
// `App locked by ${app.lockedBy.email}. Please allow lock to expire or have them unlock this app.`
|
`App locked by ${app.lockedBy.email}. Please allow lock to expire or have them unlock this app.`
|
||||||
// )
|
)
|
||||||
// return
|
return
|
||||||
// }
|
}
|
||||||
$goto(`../../app/${app.devId}`)
|
$goto(`../../app/${app.devId}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,7 +104,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
onMount(async () => {
|
onMount(async () => {
|
||||||
return
|
|
||||||
if (!hasSynced && application) {
|
if (!hasSynced && application) {
|
||||||
try {
|
try {
|
||||||
await API.syncApp(application)
|
await API.syncApp(application)
|
||||||
|
|
|
@ -80,16 +80,6 @@
|
||||||
open = false
|
open = false
|
||||||
}
|
}
|
||||||
|
|
||||||
const moveStart = () => {
|
|
||||||
reorder.actions.moveColumnToStart(column.name)
|
|
||||||
open = false
|
|
||||||
}
|
|
||||||
|
|
||||||
const moveEnd = () => {
|
|
||||||
reorder.actions.moveColumnToEnd(column.name)
|
|
||||||
open = false
|
|
||||||
}
|
|
||||||
|
|
||||||
const makeDisplayColumn = () => {
|
const makeDisplayColumn = () => {
|
||||||
columns.actions.changePrimaryDisplay(column.name)
|
columns.actions.changePrimaryDisplay(column.name)
|
||||||
open = false
|
open = false
|
||||||
|
|
|
@ -64,9 +64,6 @@
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.text-cell.editable:hover {
|
|
||||||
cursor: text;
|
|
||||||
}
|
|
||||||
.text-cell.number {
|
.text-cell.number {
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
}
|
}
|
||||||
|
|
|
@ -183,9 +183,6 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
transition: margin-bottom 130ms ease-out;
|
transition: margin-bottom 130ms ease-out;
|
||||||
}
|
}
|
||||||
.new-row.visible {
|
|
||||||
margin-bottom: 0;
|
|
||||||
}
|
|
||||||
.new-row :global(.cell) {
|
.new-row :global(.cell) {
|
||||||
--cell-background: var(--background) !important;
|
--cell-background: var(--background) !important;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
on:mouseenter={() => ($hoveredRowId = row._id)}
|
on:mouseenter={() => ($hoveredRowId = row._id)}
|
||||||
on:mouseleave={() => ($hoveredRowId = null)}
|
on:mouseleave={() => ($hoveredRowId = null)}
|
||||||
>
|
>
|
||||||
{#each $renderedColumns as column, idx (column.name)}
|
{#each $renderedColumns as column, columnIdx (column.name)}
|
||||||
{@const cellId = `${row._id}-${column.name}`}
|
{@const cellId = `${row._id}-${column.name}`}
|
||||||
<DataCell
|
<DataCell
|
||||||
{cellId}
|
{cellId}
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
{row}
|
{row}
|
||||||
{invertY}
|
{invertY}
|
||||||
{rowFocused}
|
{rowFocused}
|
||||||
invertX={idx >= $columnHorizontalInversionIndex}
|
invertX={columnIdx >= $columnHorizontalInversionIndex}
|
||||||
highlighted={rowHovered || rowFocused || reorderSource === column.name}
|
highlighted={rowHovered || rowFocused || reorderSource === column.name}
|
||||||
selected={rowSelected}
|
selected={rowSelected}
|
||||||
rowIdx={idx}
|
rowIdx={idx}
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
|
|
||||||
const {
|
const {
|
||||||
scroll,
|
scroll,
|
||||||
rowHeight,
|
|
||||||
contentHeight,
|
contentHeight,
|
||||||
maxScrollTop,
|
maxScrollTop,
|
||||||
contentWidth,
|
contentWidth,
|
||||||
|
|
Loading…
Reference in New Issue