mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #1382 from data-miner00/refactor-fix-typos
Refactor fix typos
This commit is contained in:
16 files changed
+35
-35
No files matched your search
@@ -79,7 +79,7 @@
|
||||
: selected.service?.actions;
|
||||
|
||||
// We need to check if the selected action name is still
|
||||
// on the available list, and if so, change tje action to the
|
||||
// on the available list, and if so, change the action to the
|
||||
// appropriate one, as it may contain different attributes
|
||||
const availableAction = availableActions.find(
|
||||
(a) => a.name === selected.action?.name
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
|
||||
<Modal
|
||||
title="Label"
|
||||
description="Labels allow you to grant access to users with the specfied label."
|
||||
description="Labels allow you to grant access to users with the specified label."
|
||||
bind:show
|
||||
on:close={reset}
|
||||
onSubmit={create}>
|
||||
|
||||
@@ -51,7 +51,7 @@ export const toLocaleDateTime = (datetime: string | number) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a date string usig the local timezone in ISO format (yyyy-mm-dd)
|
||||
* Returns a date string using the local timezone in ISO format (yyyy-mm-dd)
|
||||
*
|
||||
* @param datetime date string or milliseconds since the epoch
|
||||
*/
|
||||
@@ -67,7 +67,7 @@ export const toLocaleDateISO = (datetime: string | number) => {
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a time string usig the local timezone in ISO format (hh:mm:ss)
|
||||
* Returns a time string using the local timezone in ISO format (hh:mm:ss)
|
||||
*
|
||||
* @param datetime date string or milliseconds since the epoch
|
||||
*/
|
||||
|
||||
@@ -146,7 +146,7 @@ export type Aggregation = {
|
||||
*/
|
||||
amount: number;
|
||||
/**
|
||||
* Price for addional members
|
||||
* Price for additional members
|
||||
*/
|
||||
additionalMembers: number;
|
||||
/**
|
||||
|
||||
@@ -31,7 +31,7 @@ function createHeaderAlertStore() {
|
||||
});
|
||||
},
|
||||
get: (): HeaderAlert => {
|
||||
//return higest importance component
|
||||
//return highest importance component
|
||||
let component = {
|
||||
id: '',
|
||||
show: false,
|
||||
|
||||
@@ -36,7 +36,7 @@ export async function initializeStripe() {
|
||||
// Set up the options for the stripe elements
|
||||
const options = {
|
||||
clientSecret: clientSecret,
|
||||
appearance: get(app).themeInUse === 'dark' ? apperanceDark : apperanceLight
|
||||
appearance: get(app).themeInUse === 'dark' ? appearanceDark : appearanceLight
|
||||
};
|
||||
// Set up Elements and then create form
|
||||
elements = get(stripe).elements(options);
|
||||
@@ -184,7 +184,7 @@ export async function confirmSetup(
|
||||
}
|
||||
}
|
||||
|
||||
const apperanceLight = {
|
||||
const appearanceLight = {
|
||||
variables: {
|
||||
colorPrimary: '#606a7b',
|
||||
colorText: 'rgb(107, 107, 112)',
|
||||
@@ -213,7 +213,7 @@ const apperanceLight = {
|
||||
}
|
||||
};
|
||||
|
||||
const apperanceDark = {
|
||||
const appearanceDark = {
|
||||
variables: {
|
||||
colorPrimary: '#606a7b',
|
||||
colorText: 'rgb(195, 195, 198)',
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
/**
|
||||
*
|
||||
* @param field {string} The field to update.
|
||||
* Representes the path to the field in the formData object e.g. 'users.root'
|
||||
* Represents the path to the field in the formData object e.g. 'users.root'
|
||||
*/
|
||||
function handleInputChange(field: FormKeys) {
|
||||
return (event: Event) => {
|
||||
|
||||
@@ -10,10 +10,10 @@
|
||||
import { sdk } from '$lib/stores/sdk';
|
||||
import { user } from './store';
|
||||
|
||||
let showVerifcationDropdown = false;
|
||||
let showVerificationDropdown = false;
|
||||
|
||||
async function updateVerificationEmail() {
|
||||
showVerifcationDropdown = false;
|
||||
showVerificationDropdown = false;
|
||||
try {
|
||||
await sdk.forProject.users.updateEmailVerification($user.$id, !$user.emailVerification);
|
||||
await invalidate(Dependencies.USER);
|
||||
@@ -33,7 +33,7 @@
|
||||
}
|
||||
}
|
||||
async function updateVerificationPhone() {
|
||||
showVerifcationDropdown = false;
|
||||
showVerificationDropdown = false;
|
||||
try {
|
||||
await sdk.forProject.users.updatePhoneVerification($user.$id, !$user.phoneVerification);
|
||||
await invalidate(Dependencies.USER);
|
||||
@@ -135,10 +135,10 @@
|
||||
</Button>
|
||||
{#if $user.status}
|
||||
{#if $user.phone && $user.email}
|
||||
<DropList bind:show={showVerifcationDropdown} placement="top-start">
|
||||
<DropList bind:show={showVerificationDropdown} placement="top-start">
|
||||
<Button
|
||||
secondary
|
||||
on:click={() => (showVerifcationDropdown = !showVerifcationDropdown)}>
|
||||
on:click={() => (showVerificationDropdown = !showVerificationDropdown)}>
|
||||
{$user.emailVerification && $user.phoneVerification ? 'Unverify' : 'Verify'}
|
||||
account
|
||||
</Button>
|
||||
|
||||
+1
-1
@@ -88,7 +88,7 @@
|
||||
label="Elements"
|
||||
bind:tags={data.elements}
|
||||
placeholder="Add elements here"
|
||||
tooltip="Enum elements have a maxiumum length of 255 characters. This limit can not be exceeded."
|
||||
tooltip="Enum elements have a maximum length of 255 characters. This limit can not be exceeded."
|
||||
required>
|
||||
</InputTags>
|
||||
|
||||
|
||||
+1
-1
@@ -326,7 +326,7 @@
|
||||
<FormList>
|
||||
<InputTextarea
|
||||
label="Commands"
|
||||
placeholder="Enter an install commad (e.g. 'npm install')"
|
||||
placeholder="Enter an install command (e.g. 'npm install')"
|
||||
id="install"
|
||||
tooltip="Enter a single command or chain multiple commands with the && operator"
|
||||
bind:value={commands} />
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
export let content = '';
|
||||
export let classes = '';
|
||||
|
||||
function getIntials(name: string) {
|
||||
function getInitials(name: string) {
|
||||
let words = name.split(' ');
|
||||
// If there is only one word, split it by underscore
|
||||
if (words.length === 1) {
|
||||
@@ -32,7 +32,7 @@
|
||||
|
||||
<div class="phone {classes}">
|
||||
<div class="avatar-initials u-text-center u-width-full-line u-line-height-1-5 u-medium u-bold">
|
||||
{getIntials($project.name)}
|
||||
{getInitials($project.name)}
|
||||
</div>
|
||||
<div class="project-name u-text-center u-x-small u-width-full-line">{$project.name}</div>
|
||||
<div class="chat u-text-center u-width-full-line">
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
let time: string;
|
||||
let dateTime: Date;
|
||||
let docsUrl = `https://appwrite.io/docs/products/messaging`;
|
||||
let showConfimation = false;
|
||||
let showConfirmation = false;
|
||||
|
||||
let totalTargets = $messageParams[$providerType].targets?.length ?? 0;
|
||||
|
||||
@@ -60,14 +60,14 @@
|
||||
|
||||
async function askForConfirmation() {
|
||||
$wizard.interceptorNotificationEnabled = false;
|
||||
showConfimation = true;
|
||||
showConfirmation = true;
|
||||
throw 'Show confirmation';
|
||||
}
|
||||
|
||||
async function submit() {
|
||||
$wizard.interceptorNotificationEnabled = true;
|
||||
await $wizard.finalAction();
|
||||
showConfimation = false;
|
||||
showConfirmation = false;
|
||||
}
|
||||
|
||||
$: if (when === 'now') {
|
||||
@@ -127,14 +127,14 @@
|
||||
</Helper>
|
||||
</WizardStep>
|
||||
|
||||
<Modal title="Send message" bind:show={showConfimation} headerDivider={false} onSubmit={submit}>
|
||||
<Modal title="Send message" bind:show={showConfirmation} headerDivider={false} onSubmit={submit}>
|
||||
<p>
|
||||
You are about to send a message to an estimated <span class="u-bold">{totalTargets}</span> recipients.
|
||||
Would you like to proceed?
|
||||
</p>
|
||||
<p class="u-bold">This action is irreversible.</p>
|
||||
<svelte:fragment slot="footer">
|
||||
<Button text on:click={() => (showConfimation = false)}>Cancel</Button>
|
||||
<Button text on:click={() => (showConfirmation = false)}>Cancel</Button>
|
||||
<Button secondary submit>Send</Button>
|
||||
</svelte:fragment>
|
||||
</Modal>
|
||||
@@ -16,7 +16,7 @@
|
||||
import { Container, type UsagePeriods } from '$lib/layout';
|
||||
import { onMount } from 'svelte';
|
||||
import { onboarding, project } from '../store';
|
||||
import Bandwith from './bandwith.svelte';
|
||||
import Bandwidth from './bandwidth.svelte';
|
||||
import { createApiKey } from './keys/+page.svelte';
|
||||
import Onboard from './onboard.svelte';
|
||||
import Realtime from './realtime.svelte';
|
||||
@@ -91,7 +91,7 @@
|
||||
<section class="common-section">
|
||||
<div class="grid-dashboard-1s-2m-6l">
|
||||
<div class="card is-2-columns-medium-screen is-3-columns-large-screen">
|
||||
<Bandwith {period} on:change={(e) => changePeriod(e.detail)} />
|
||||
<Bandwidth {period} on:change={(e) => changePeriod(e.detail)} />
|
||||
</div>
|
||||
<div class="card is-2-columns-medium-screen is-3-columns-large-screen">
|
||||
<Requests {period} on:change={(e) => changePeriod(e.detail)} />
|
||||
|
||||
+4
-4
@@ -18,7 +18,7 @@
|
||||
value: number;
|
||||
}>;
|
||||
|
||||
$: bandwith = humanFileSize(totalMetrics($usage?.network));
|
||||
$: bandwidth = humanFileSize(totalMetrics($usage?.network));
|
||||
|
||||
$: if (period) {
|
||||
showPeriod = false;
|
||||
@@ -28,8 +28,8 @@
|
||||
<div class="u-flex u-gap-16 u-main-space-between">
|
||||
<div>
|
||||
<div class="heading-level-4">
|
||||
{bandwith.value}
|
||||
<span class="body-text-2">{bandwith.unit}</span>
|
||||
{bandwidth.value}
|
||||
<span class="body-text-2">{bandwidth.unit}</span>
|
||||
</div>
|
||||
<div>Bandwidth</div>
|
||||
</div>
|
||||
@@ -45,7 +45,7 @@
|
||||
</svelte:fragment>
|
||||
</DropList>
|
||||
</div>
|
||||
{#if bandwith.value !== '0'}
|
||||
{#if bandwidth.value !== '0'}
|
||||
<div style="height: 12rem;">
|
||||
<BarChart
|
||||
options={{
|
||||
@@ -18,7 +18,7 @@
|
||||
show = false;
|
||||
addNotification({
|
||||
type: 'success',
|
||||
message: `${$project.name} has been transfered to ${teamName}`
|
||||
message: `${$project.name} has been transferred to ${teamName}`
|
||||
});
|
||||
trackEvent(Submit.ProjectUpdateTeam);
|
||||
await goto(`${base}/organization-${teamId}`);
|
||||
|
||||
@@ -231,7 +231,7 @@
|
||||
<svelte:window on:keydown={windowKeyDown} />
|
||||
|
||||
<div class="cb-card" class:active class:interacting style={styles} bind:this={cardEl}>
|
||||
<div class="card__translater">
|
||||
<div class="card__translator">
|
||||
<button
|
||||
class="card__rotator"
|
||||
aria-label="Expand the Card"
|
||||
@@ -320,12 +320,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.cb-card.active .card__translater,
|
||||
.cb-card.active .card__translator,
|
||||
.cb-card.active .card__rotator {
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.card__translater,
|
||||
.card__translator,
|
||||
.card__rotator {
|
||||
display: grid;
|
||||
perspective: 600px;
|
||||
@@ -334,7 +334,7 @@
|
||||
will-change: transform;
|
||||
}
|
||||
|
||||
.card__translater {
|
||||
.card__translator {
|
||||
width: auto;
|
||||
position: relative;
|
||||
transform: translate3d(var(--tx), var(--ty), 0) scale(var(--s));
|
||||
|
||||
Reference in new issue
Block a user