replace more remix icons
This commit is contained in:
parent
d6f238d116
commit
e3edb131e2
|
@ -3,8 +3,11 @@
|
||||||
import { automationStore } from "builderStore"
|
import { automationStore } from "builderStore"
|
||||||
import { database } from "stores/backend"
|
import { database } from "stores/backend"
|
||||||
import { notifications } from "@budibase/bbui"
|
import { notifications } from "@budibase/bbui"
|
||||||
import { Popover } from "@budibase/bbui"
|
import { Icon, Popover } from "@budibase/bbui"
|
||||||
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
|
import {
|
||||||
|
DropdownContainer,
|
||||||
|
DropdownItem,
|
||||||
|
} from "components/common/Dropdowns"
|
||||||
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
||||||
|
|
||||||
export let automation
|
export let automation
|
||||||
|
@ -31,14 +34,15 @@
|
||||||
|
|
||||||
<div on:click|stopPropagation>
|
<div on:click|stopPropagation>
|
||||||
<div bind:this={anchor} class="icon" on:click={dropdown.show}>
|
<div bind:this={anchor} class="icon" on:click={dropdown.show}>
|
||||||
<i class="ri-more-line" />
|
<Icon s hoverable name="MoreSmallList" />
|
||||||
</div>
|
</div>
|
||||||
<Popover align="left" {anchor} bind:this={dropdown}>
|
<Popover align="left" {anchor} bind:this={dropdown}>
|
||||||
<DropdownContainer>
|
<DropdownContainer>
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
icon="ri-delete-bin-line"
|
icon="ri-delete-bin-line"
|
||||||
title="Delete"
|
title="Delete"
|
||||||
on:click={showModal} />
|
on:click={showModal}
|
||||||
|
/>
|
||||||
</DropdownContainer>
|
</DropdownContainer>
|
||||||
</Popover>
|
</Popover>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,7 +50,8 @@
|
||||||
bind:this={confirmDeleteDialog}
|
bind:this={confirmDeleteDialog}
|
||||||
okText="Delete Automation"
|
okText="Delete Automation"
|
||||||
onOk={deleteAutomation}
|
onOk={deleteAutomation}
|
||||||
title="Confirm Deletion">
|
title="Confirm Deletion"
|
||||||
|
>
|
||||||
Are you sure you wish to delete the automation
|
Are you sure you wish to delete the automation
|
||||||
<i>{automation.name}?</i>
|
<i>{automation.name}?</i>
|
||||||
This action cannot be undone.
|
This action cannot be undone.
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { goto } from "@roxi/routify"
|
import { goto } from "@roxi/routify"
|
||||||
import { datasources } from "stores/backend"
|
import { datasources } from "stores/backend"
|
||||||
import { notifications } from "@budibase/bbui"
|
import { notifications } from "@budibase/bbui"
|
||||||
import { Popover } from "@budibase/bbui"
|
import { Icon, Popover } from "@budibase/bbui"
|
||||||
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
||||||
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
|
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
|
|
||||||
<div on:click|stopPropagation>
|
<div on:click|stopPropagation>
|
||||||
<div bind:this={anchor} class="icon" on:click={dropdown.show}>
|
<div bind:this={anchor} class="icon" on:click={dropdown.show}>
|
||||||
<i class="ri-more-line" />
|
<Icon s hoverable name="MoreSmallList" />
|
||||||
</div>
|
</div>
|
||||||
<Popover align="left" {anchor} bind:this={dropdown}>
|
<Popover align="left" {anchor} bind:this={dropdown}>
|
||||||
<DropdownContainer>
|
<DropdownContainer>
|
||||||
|
@ -45,7 +45,8 @@
|
||||||
icon="ri-delete-bin-line"
|
icon="ri-delete-bin-line"
|
||||||
title="Delete"
|
title="Delete"
|
||||||
on:click={showModal}
|
on:click={showModal}
|
||||||
data-cy="delete-datasource" />
|
data-cy="delete-datasource"
|
||||||
|
/>
|
||||||
</DropdownContainer>
|
</DropdownContainer>
|
||||||
</Popover>
|
</Popover>
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,7 +54,8 @@
|
||||||
bind:this={confirmDeleteDialog}
|
bind:this={confirmDeleteDialog}
|
||||||
okText="Delete Datasource"
|
okText="Delete Datasource"
|
||||||
onOk={deleteDatasource}
|
onOk={deleteDatasource}
|
||||||
title="Confirm Deletion">
|
title="Confirm Deletion"
|
||||||
|
>
|
||||||
Are you sure you wish to delete the datasource
|
Are you sure you wish to delete the datasource
|
||||||
<i>{datasource.name}?</i>
|
<i>{datasource.name}?</i>
|
||||||
This action cannot be undone.
|
This action cannot be undone.
|
||||||
|
@ -66,8 +68,4 @@
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.icon i {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import { notifications } from "@budibase/bbui"
|
import { notifications } from "@budibase/bbui"
|
||||||
import { Popover } from "@budibase/bbui"
|
import { Icon, Popover } from "@budibase/bbui"
|
||||||
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
||||||
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
|
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
<div on:click|stopPropagation>
|
<div on:click|stopPropagation>
|
||||||
<div bind:this={anchor} class="icon" on:click={dropdown.show}>
|
<div bind:this={anchor} class="icon" on:click={dropdown.show}>
|
||||||
<i class="ri-more-line" />
|
<Icon s hoverable name="MoreSmallList" />
|
||||||
</div>
|
</div>
|
||||||
<Popover align="left" {anchor} bind:this={dropdown}>
|
<Popover align="left" {anchor} bind:this={dropdown}>
|
||||||
<DropdownContainer>
|
<DropdownContainer>
|
||||||
|
@ -36,7 +36,8 @@
|
||||||
icon="ri-delete-bin-line"
|
icon="ri-delete-bin-line"
|
||||||
title="Delete"
|
title="Delete"
|
||||||
on:click={showModal}
|
on:click={showModal}
|
||||||
data-cy="delete-datasource" />
|
data-cy="delete-datasource"
|
||||||
|
/>
|
||||||
</DropdownContainer>
|
</DropdownContainer>
|
||||||
</Popover>
|
</Popover>
|
||||||
</div>
|
</div>
|
||||||
|
@ -44,7 +45,8 @@
|
||||||
bind:this={confirmDeleteDialog}
|
bind:this={confirmDeleteDialog}
|
||||||
okText="Delete Query"
|
okText="Delete Query"
|
||||||
onOk={deleteQuery}
|
onOk={deleteQuery}
|
||||||
title="Confirm Deletion">
|
title="Confirm Deletion"
|
||||||
|
>
|
||||||
Are you sure you wish to delete this query? This action cannot be undone.
|
Are you sure you wish to delete this query? This action cannot be undone.
|
||||||
</ConfirmDialog>
|
</ConfirmDialog>
|
||||||
|
|
||||||
|
@ -55,8 +57,4 @@
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.icon i {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import { store, allScreens } from "builderStore"
|
import { store, allScreens } from "builderStore"
|
||||||
import { tables } from "stores/backend"
|
import { tables } from "stores/backend"
|
||||||
import { notifications } from "@budibase/bbui"
|
import { notifications } from "@budibase/bbui"
|
||||||
import { Popover, Button, Input } from "@budibase/bbui"
|
import { Icon, Popover, Button, Input } from "@budibase/bbui"
|
||||||
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
||||||
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
|
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
|
||||||
|
|
||||||
|
@ -29,9 +29,11 @@
|
||||||
|
|
||||||
function showModal() {
|
function showModal() {
|
||||||
const screens = $allScreens
|
const screens = $allScreens
|
||||||
templateScreens = screens.filter(screen => screen.autoTableId === table._id)
|
templateScreens = screens.filter(
|
||||||
|
(screen) => screen.autoTableId === table._id
|
||||||
|
)
|
||||||
willBeDeleted = ["All table data"].concat(
|
willBeDeleted = ["All table data"].concat(
|
||||||
templateScreens.map(screen => `Screen ${screen.props._instanceName}`)
|
templateScreens.map((screen) => `Screen ${screen.props._instanceName}`)
|
||||||
)
|
)
|
||||||
hideEditor()
|
hideEditor()
|
||||||
confirmDeleteDialog.show()
|
confirmDeleteDialog.show()
|
||||||
|
@ -66,7 +68,7 @@
|
||||||
|
|
||||||
<div on:click|stopPropagation>
|
<div on:click|stopPropagation>
|
||||||
<div bind:this={anchor} class="icon" on:click={dropdown.show}>
|
<div bind:this={anchor} class="icon" on:click={dropdown.show}>
|
||||||
<i class="ri-more-line" />
|
<Icon s hoverable name="MoreSmallList" />
|
||||||
</div>
|
</div>
|
||||||
<Popover align="left" {anchor} bind:this={dropdown}>
|
<Popover align="left" {anchor} bind:this={dropdown}>
|
||||||
{#if editing}
|
{#if editing}
|
||||||
|
@ -77,7 +79,8 @@
|
||||||
thin
|
thin
|
||||||
bind:value={table.name}
|
bind:value={table.name}
|
||||||
on:input={checkValid}
|
on:input={checkValid}
|
||||||
{error} />
|
{error}
|
||||||
|
/>
|
||||||
<footer>
|
<footer>
|
||||||
<Button secondary on:click={hideEditor}>Cancel</Button>
|
<Button secondary on:click={hideEditor}>Cancel</Button>
|
||||||
<Button primary disabled={error} on:click={save}>Save</Button>
|
<Button primary disabled={error} on:click={save}>Save</Button>
|
||||||
|
@ -89,12 +92,14 @@
|
||||||
icon="ri-edit-line"
|
icon="ri-edit-line"
|
||||||
data-cy="edit-table"
|
data-cy="edit-table"
|
||||||
title="Edit"
|
title="Edit"
|
||||||
on:click={showEditor} />
|
on:click={showEditor}
|
||||||
|
/>
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
icon="ri-delete-bin-line"
|
icon="ri-delete-bin-line"
|
||||||
title="Delete"
|
title="Delete"
|
||||||
on:click={showModal}
|
on:click={showModal}
|
||||||
data-cy="delete-table" />
|
data-cy="delete-table"
|
||||||
|
/>
|
||||||
</DropdownContainer>
|
</DropdownContainer>
|
||||||
{/if}
|
{/if}
|
||||||
</Popover>
|
</Popover>
|
||||||
|
@ -103,7 +108,8 @@
|
||||||
bind:this={confirmDeleteDialog}
|
bind:this={confirmDeleteDialog}
|
||||||
okText="Delete Table"
|
okText="Delete Table"
|
||||||
onOk={deleteTable}
|
onOk={deleteTable}
|
||||||
title="Confirm Deletion">
|
title="Confirm Deletion"
|
||||||
|
>
|
||||||
Are you sure you wish to delete the table
|
Are you sure you wish to delete the table
|
||||||
<i>{table.name}?</i>
|
<i>{table.name}?</i>
|
||||||
The following will also be deleted:
|
The following will also be deleted:
|
||||||
|
@ -125,10 +131,6 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.icon i {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
div.delete-items {
|
div.delete-items {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
import { goto } from "@roxi/routify"
|
import { goto } from "@roxi/routify"
|
||||||
import { views } from "stores/backend"
|
import { views } from "stores/backend"
|
||||||
import { notifications } from "@budibase/bbui"
|
import { notifications } from "@budibase/bbui"
|
||||||
import { Popover, Button, Input } from "@budibase/bbui"
|
import { Icon, Popover, Button, Input } from "@budibase/bbui"
|
||||||
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
import ConfirmDialog from "components/common/ConfirmDialog.svelte"
|
||||||
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
|
import { DropdownContainer, DropdownItem } from "components/common/Dropdowns"
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
<div on:click|stopPropagation>
|
<div on:click|stopPropagation>
|
||||||
<div bind:this={anchor} class="icon" on:click={dropdown.show}>
|
<div bind:this={anchor} class="icon" on:click={dropdown.show}>
|
||||||
<i class="ri-more-line" />
|
<Icon s hoverable name="MoreSmallList" />
|
||||||
</div>
|
</div>
|
||||||
<Popover align="left" {anchor} bind:this={dropdown}>
|
<Popover align="left" {anchor} bind:this={dropdown}>
|
||||||
{#if editing}
|
{#if editing}
|
||||||
|
@ -66,12 +66,14 @@
|
||||||
icon="ri-edit-line"
|
icon="ri-edit-line"
|
||||||
data-cy="edit-view"
|
data-cy="edit-view"
|
||||||
title="Edit"
|
title="Edit"
|
||||||
on:click={showEditor} />
|
on:click={showEditor}
|
||||||
|
/>
|
||||||
<DropdownItem
|
<DropdownItem
|
||||||
icon="ri-delete-bin-line"
|
icon="ri-delete-bin-line"
|
||||||
title="Delete"
|
title="Delete"
|
||||||
data-cy="delete-view"
|
data-cy="delete-view"
|
||||||
on:click={showDelete} />
|
on:click={showDelete}
|
||||||
|
/>
|
||||||
</DropdownContainer>
|
</DropdownContainer>
|
||||||
{/if}
|
{/if}
|
||||||
</Popover>
|
</Popover>
|
||||||
|
@ -81,7 +83,8 @@
|
||||||
body={`Are you sure you wish to delete the view '${view.name}'? Your data will be deleted and this action cannot be undone.`}
|
body={`Are you sure you wish to delete the view '${view.name}'? Your data will be deleted and this action cannot be undone.`}
|
||||||
okText="Delete View"
|
okText="Delete View"
|
||||||
onOk={deleteView}
|
onOk={deleteView}
|
||||||
title="Confirm Deletion" />
|
title="Confirm Deletion"
|
||||||
|
/>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
div.icon {
|
div.icon {
|
||||||
|
@ -91,10 +94,6 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
div.icon i {
|
|
||||||
font-size: 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.actions {
|
.actions {
|
||||||
padding: var(--spacing-xl);
|
padding: var(--spacing-xl);
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
Loading…
Reference in New Issue