-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
get basic data flows working, switch to light theme
- Loading branch information
1 parent
3dcad8e
commit 0a32ca7
Showing
20 changed files
with
663 additions
and
344 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<template> | ||
<main class="min-h-screen w-screen flex flex-col items-center gap-12 p-24 bg-blue-gray-200"> | ||
<section class="w-full max-w-xl flex flex-col gap-4"> | ||
<h2 class="uppercase font-bold text-blue-900 opacity-60 tracking-[.2em] text-sm">Selector</h2> | ||
<pre class="rounded-md shadow-lg p-4 bg-gradient-to-r from-blue-700 to-blue-500 text-blue-100 overflow-x-scroll text-xl"><code>{{ selector || '*' }}</code></pre> | ||
</section> | ||
<section class="w-full max-w-xl flex flex-col gap-4"> | ||
<h1 class="uppercase font-bold text-blue-900 opacity-60 tracking-[.2em] text-sm">Selector Builder</h1> | ||
|
||
<section class="bg-white p-6 rounded-md shadow-lg text-blue-gray-900"> | ||
<h2 class="font-bold tracking-wide">I'm looking for an element...</h2> | ||
<FormConditions v-model="conditions" /> | ||
</section> | ||
</section> | ||
</main> | ||
<!-- <footer class="bg-gray-900 h-20"> | ||
</footer> --> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { ref, computed, defineComponent } from 'vue' | ||
import FormConditions from './components/FormConditions.vue' | ||
import { toSelector } from './toSelector' | ||
import type { Condition } from './toSelector' | ||
export default defineComponent({ | ||
components: { | ||
FormConditions, | ||
}, | ||
setup () { | ||
const conditions = ref<Condition[]>([ | ||
{ id: '123', pipe: 'id', args: ['haha'] }, | ||
{ id: 'ABC', pipe: 'className', args: ['business'] }, | ||
{ id: '456', pipe: 'nthChild', args: ['even'] }, | ||
]), | ||
selector = computed(() => toSelector(conditions.value)) | ||
return { | ||
conditions, | ||
selector, | ||
} | ||
} | ||
}) | ||
</script> |
Oops, something went wrong.