Merge branch 'main' of https://github.com/sourabpramanik/console into bug-7362-file-extension-validation

This commit is contained in:
sourabpramanik
2024-01-03 07:25:02 +05:30
8 changed files with 7668 additions and 9 deletions
+6
View File
@@ -3,8 +3,14 @@ name: Tests
on:
push:
branches: [main]
paths-ignore:
- '**/*.md'
- 'static/**/*'
pull_request:
branches: [main]
paths-ignore:
- '**/*.md'
- 'static/**/*'
env:
VITE_APPWRITE_ENDPOINT: http://appwrite.test/v1
+7647
View File
File diff suppressed because it is too large Load Diff
+8 -2
View File
@@ -7,7 +7,7 @@
export let showLabel = true;
export let optionalText: string | undefined = undefined;
export let id: string;
export let value = '';
export let value: string;
export let required = false;
export let nullable = false;
export let disabled = false;
@@ -35,6 +35,11 @@
error = element.validationMessage;
}
function handleInput(event: Event) {
const { value: currentValue } = event.currentTarget as HTMLInputElement;
value = currentValue || null;
}
let prevValue = '';
function handleNullChange(e: CustomEvent<boolean>) {
const isNull = e.detail;
@@ -64,12 +69,13 @@
{disabled}
{readonly}
{required}
{value}
step=".001"
autocomplete={autocomplete ? 'on' : 'off'}
type="datetime-local"
class="input-text"
bind:value
bind:this={element}
on:input={handleInput}
on:invalid={handleInvalid}
style:--amount-of-buttons={isNullable ? 2.75 : 1}
style:--button-size={isNullable ? '2rem' : '1rem'} />
+1 -1
View File
@@ -8,7 +8,7 @@
let element: HTMLInputElement;
let icon = 'info';
const pattern = String.raw`^[a-zA-Z0-9][a-zA-Z0-9._-]*$`;
const pattern = String.raw`^[a-zA-Z0-9][a-zA-Z0-9._\-]*$`;
onMount(() => {
if (element && autofocus) {
@@ -17,7 +17,7 @@ export const load: PageLoad = async ({ params, url, route, depends, parent }) =>
projects: await sdk.forConsole.projects.list([
Query.offset(offset),
Query.equal('teamId', params.organization),
Query.limit(CARD_LIMIT),
Query.limit(limit),
Query.orderDesc('')
])
};
@@ -3,7 +3,7 @@
import { Pill } from '$lib/elements';
import { Button } from '$lib/elements/forms';
import {
Table,
TableScroll,
TableBody,
TableCell,
TableCellHead,
@@ -36,7 +36,7 @@
{/if}
</ContainerHeader>
{#if data.sessions.total}
<Table>
<TableScroll>
<TableHeader>
<TableCellHead width={140}>Browser and device</TableCellHead>
<TableCellHead width={140}>Session</TableCellHead>
@@ -85,7 +85,7 @@
</TableRow>
{/each}
</TableBody>
</Table>
</TableScroll>
{:else}
<EmptySearch>
<div class="u-flex u-flex-vertical u-cross-center u-gap-24">
@@ -58,7 +58,7 @@
<Heading tag="h6" size="7" id="schedule">Schedule</Heading>
<p>
Set a Cron schedule to trigger your function. Leave blank for no schedule. <a
href="https://appwrite.io/docs/products/functions/execution"
href="https://appwrite.io/docs/products/functions/execution#schedule"
target="_blank"
rel="noopener noreferrer"
class="link">
@@ -8,7 +8,7 @@
<svelte:fragment slot="title">Schedule</svelte:fragment>
<svelte:fragment slot="subtitle">
Set a Cron schedule to trigger your function. Leave blank for no schedule. <a
href="https://appwrite.io/docs/products/functions/quick-start"
href="https://appwrite.io/docs/products/functions/execution#schedule"
target="_blank"
rel="noopener noreferrer"
class="link">More details on Cron syntax here</a