mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
fix queries
This commit is contained in:
1 parent
5d7b5831a4
commit
d37fb2da72
5 files changed
+21
-14
No files matched your search
Generated
+8
-8
@@ -9,7 +9,7 @@
|
||||
"@analytics/google-analytics": "^1.0.5",
|
||||
"@analytics/google-tag-manager": "^0.5.3",
|
||||
"@appwrite.io/console": "npm:christy-console@^0.4.0",
|
||||
"@appwrite.io/pink": "^0.0.6-rc.14",
|
||||
"@appwrite.io/pink": "^0.1.0-next.3",
|
||||
"@popperjs/core": "^2.11.6",
|
||||
"@sentry/svelte": "^7.44.2",
|
||||
"@sentry/tracing": "^7.44.2",
|
||||
@@ -175,19 +175,19 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@appwrite.io/pink": {
|
||||
"version": "0.0.6-rc.14",
|
||||
"resolved": "https://registry.npmjs.org/@appwrite.io/pink/-/pink-0.0.6-rc.14.tgz",
|
||||
"integrity": "sha512-KSfuW/MIc9aXaSjHmOB0TSyd2G/nTX8Yj49LOqOw41v649tVNfPGutvI6eTULCKve24HTYSspnHLil5Eb4Kk2Q==",
|
||||
"version": "0.1.0-next.3",
|
||||
"resolved": "https://registry.npmjs.org/@appwrite.io/pink/-/pink-0.1.0-next.3.tgz",
|
||||
"integrity": "sha512-mPova8MDiDAXq0/ie7h+RsPbAdBdoKcWe4IcgcJJVQuhxhyMCmSRE+Y+5uduC3QXqmuA2TWx8p/RERl5s1Q1vQ==",
|
||||
"dependencies": {
|
||||
"@appwrite.io/pink-icons": "*",
|
||||
"@appwrite.io/pink-icons": "0.1.0-next.3",
|
||||
"normalize.css": "^8.0.1",
|
||||
"the-new-css-reset": "^1.7.3"
|
||||
}
|
||||
},
|
||||
"node_modules/@appwrite.io/pink-icons": {
|
||||
"version": "0.0.6-rc.14",
|
||||
"resolved": "https://registry.npmjs.org/@appwrite.io/pink-icons/-/pink-icons-0.0.6-rc.14.tgz",
|
||||
"integrity": "sha512-OHkW3nOc7aTNlf+kdcSojlimWR+NKUJoYNCcC6ysQs7GnD/ny+en6bpT6u1X5EYEszO/IUQuQYDZhURFeGGO1A=="
|
||||
"version": "0.1.0-next.3",
|
||||
"resolved": "https://registry.npmjs.org/@appwrite.io/pink-icons/-/pink-icons-0.1.0-next.3.tgz",
|
||||
"integrity": "sha512-v6tYnowtVRmpkF4ZWT4BIgmJ/gbZ7gycaw2lTwdNIyY2dsAIxbFImbFz14OGAbC8T1ll5C7XtsXMlAjnWmLyag=="
|
||||
},
|
||||
"node_modules/@babel/code-frame": {
|
||||
"version": "7.22.5",
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@
|
||||
"dependencies": {
|
||||
"@analytics/google-analytics": "^1.0.5",
|
||||
"@appwrite.io/console": "npm:christy-console@^0.4.0",
|
||||
"@appwrite.io/pink": "^0.0.6-rc.14",
|
||||
"@appwrite.io/pink": "^0.1.0-next.3",
|
||||
"@analytics/google-tag-manager": "^0.5.3",
|
||||
"@popperjs/core": "^2.11.6",
|
||||
"@sentry/svelte": "^7.44.2",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
export let overlapCover = false;
|
||||
export let size: 'small' | 'medium' | 'large' | 'xl' = null;
|
||||
export let size: 'small' | 'medium' | 'large' | 'xl' | 'xxl' | 'xxxl' = null;
|
||||
|
||||
$: style = size
|
||||
? `--p-container-max-size: var(--container-max-size, var(--container-size-${size}))`
|
||||
|
||||
+9
-4
@@ -51,7 +51,12 @@
|
||||
equal: {
|
||||
toQuery: Query.equal,
|
||||
toTag: (attribute, input) => `**${attribute}** equal to **${input}**`,
|
||||
types: ['string', 'integer', 'double']
|
||||
types: ['string', 'integer', 'double', 'boolean']
|
||||
},
|
||||
'not equal to': {
|
||||
toQuery: Query.notEqual,
|
||||
toTag: (attribute, input) => `**${attribute}** not equal to **${input}**`,
|
||||
types: ['string', 'integer', 'double', 'boolean']
|
||||
},
|
||||
'not null': {
|
||||
toQuery: Query.isNotNull,
|
||||
@@ -108,7 +113,7 @@
|
||||
|
||||
<div>
|
||||
<form on:submit|preventDefault={addFilter}>
|
||||
<div class="selects u-flex u-gap-12 u-margin-block-start-16">
|
||||
<div class="selects u-flex u-gap-8 u-margin-block-start-16">
|
||||
<InputSelect
|
||||
id="column"
|
||||
options={$columns.map((c) => ({
|
||||
@@ -125,7 +130,7 @@
|
||||
bind:value={operatorKey} />
|
||||
</div>
|
||||
{#if column && operator && !operator?.hideInput}
|
||||
<div class="u-margin-block-start-16">
|
||||
<div class="u-margin-block-start-8">
|
||||
{#if column.type === 'integer' || column.type === 'double'}
|
||||
<InputNumber id="value" bind:value placeholder="Enter value" />
|
||||
{:else}
|
||||
@@ -133,7 +138,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
<Button text disabled={isDisabled} class="u-margin-block-start-12" submit>
|
||||
<Button text disabled={isDisabled} class="u-margin-block-start-4" submit>
|
||||
<i class="icon-plus" />
|
||||
Add filter
|
||||
</Button>
|
||||
|
||||
+2
@@ -13,6 +13,8 @@
|
||||
function apply() {
|
||||
queries.apply();
|
||||
applied = $tags.length;
|
||||
showFiltersDesktop = false;
|
||||
showFiltersMobile = false;
|
||||
}
|
||||
|
||||
function clearAll() {
|
||||
|
||||
Reference in new issue
Block a user