forked from tsai/budibase
6 changed files with 2 additions and 64 deletions
@ -1,33 +0,0 @@ |
|||||
<script> |
|
||||
import Input from "../Form/Input.svelte" |
|
||||
|
|
||||
export let categories = [ |
|
||||
{ |
|
||||
name: "Customers List - Data Row", |
|
||||
items: [ |
|
||||
{ name: "Name", id: "chjaHICHc82h2" }, |
|
||||
{ name: "Created", id: "chjaHICgr56Hc82h2" }, |
|
||||
{ name: "Status", id: "chjaHICHc8646462h2" }, |
|
||||
], |
|
||||
}, |
|
||||
{ |
|
||||
name: "Home Screen Components", |
|
||||
items: [{ name: "Title", id: "chjaHICHc82h2" }], |
|
||||
}, |
|
||||
] |
|
||||
</script> |
|
||||
|
|
||||
<div class="container"> |
|
||||
<Input thin placeholder="Search" /> |
|
||||
{#each categories as { name, items }} |
|
||||
<div class="title">{name}</div> |
|
||||
<ul> |
|
||||
{#each items as { name, id }} |
|
||||
<li>{name}</li> |
|
||||
{/each} |
|
||||
</ul> |
|
||||
{/each} |
|
||||
</div> |
|
||||
|
|
||||
<style> |
|
||||
</style> |
|
||||
@ -1,8 +0,0 @@ |
|||||
<script> |
|
||||
import Search from "./Search.svelte"; |
|
||||
import { View } from "svench"; |
|
||||
</script> |
|
||||
|
|
||||
<View name="Name"> |
|
||||
<Search /> |
|
||||
</View> |
|
||||
@ -1,14 +0,0 @@ |
|||||
export default function buildStyle(styles) { |
|
||||
const convertCamel = str => { |
|
||||
return str.replace(/[A-Z]/g, match => `-${match.toLowerCase()}`) |
|
||||
} |
|
||||
|
|
||||
let str = "" |
|
||||
for (let s in styles) { |
|
||||
if (styles[s]) { |
|
||||
let key = convertCamel(s) |
|
||||
str += `${key}: ${styles[s]}; ` |
|
||||
} |
|
||||
} |
|
||||
return str |
|
||||
} |
|
||||
Loading…
Reference in new issue