lint
This commit is contained in:
parent
6c7667545e
commit
8a0c9aef01
|
@ -1159,7 +1159,7 @@ export const buildFormSchema = (component, asset) => {
|
||||||
* Returns an array of the keys of any state variables which are set anywhere
|
* Returns an array of the keys of any state variables which are set anywhere
|
||||||
* in the app.
|
* in the app.
|
||||||
*/
|
*/
|
||||||
export const getAllStateVariables = (screen = null) => {
|
export const getAllStateVariables = screen => {
|
||||||
let assets = []
|
let assets = []
|
||||||
if (screen) {
|
if (screen) {
|
||||||
// only include state variables from a specific screen
|
// only include state variables from a specific screen
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { onMount } from "svelte"
|
import { onMount } from "svelte"
|
||||||
import { Select, Link } from "@budibase/bbui"
|
import { Select } from "@budibase/bbui"
|
||||||
import type { Component } from "@budibase/types"
|
import type { Component } from "@budibase/types"
|
||||||
import { getAllStateVariables, getBindableProperties } from "@/dataBinding"
|
import { getAllStateVariables, getBindableProperties } from "@/dataBinding"
|
||||||
import {
|
import {
|
||||||
|
@ -203,7 +203,7 @@
|
||||||
handler.parameters?.key === stateKey
|
handler.parameters?.key === stateKey
|
||||||
)
|
)
|
||||||
.map(() => ({
|
.map(() => ({
|
||||||
id: $selectedScreen._id,
|
id: $selectedScreen._id!,
|
||||||
name: "Screen onLoad",
|
name: "Screen onLoad",
|
||||||
settings: ["onLoad"],
|
settings: ["onLoad"],
|
||||||
})) || []
|
})) || []
|
||||||
|
@ -342,13 +342,4 @@
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
gap: var(--spacing-xs);
|
gap: var(--spacing-xs);
|
||||||
}
|
}
|
||||||
|
|
||||||
.link {
|
|
||||||
color: var(--spectrum-global-color-gray-600);
|
|
||||||
margin-top: var(--spacing-m);
|
|
||||||
}
|
|
||||||
|
|
||||||
.link:hover {
|
|
||||||
color: var(--spectrum-global-color-gray-700);
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -23,6 +23,7 @@ export interface Screen extends Document {
|
||||||
props: ScreenProps
|
props: ScreenProps
|
||||||
name?: string
|
name?: string
|
||||||
pluginAdded?: boolean
|
pluginAdded?: boolean
|
||||||
|
onLoad?: EventHandler[]
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ScreenRoutesViewOutput extends Document {
|
export interface ScreenRoutesViewOutput extends Document {
|
||||||
|
@ -36,3 +37,14 @@ export type ScreenRoutingJson = Record<
|
||||||
subpaths: Record<string, any>
|
subpaths: Record<string, any>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
|
|
||||||
|
export interface EventHandler {
|
||||||
|
parameters: {
|
||||||
|
key: string
|
||||||
|
type: string
|
||||||
|
value: string
|
||||||
|
persist: any | null
|
||||||
|
}
|
||||||
|
eventHandlerType: string
|
||||||
|
id: string
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue