mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
chore: run linter
This commit is contained in:
1 parent
2c54c12efc
commit
161efff0d1
6 files changed
+21
-13
No files matched your search
@@ -83,4 +83,4 @@ import CreateMessage from './createMessage.svelte';
|
||||
export const CreateMessagePanel: SubPanel = {
|
||||
name: 'Create Message',
|
||||
component: CreateMessage
|
||||
};
|
||||
};
|
||||
@@ -29,7 +29,7 @@ const getIcon = (message) => {
|
||||
default:
|
||||
return 'send';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export const messagesSearcher = (async (query: string) => {
|
||||
const { messages } = await sdk.forProject.messaging.listMessages([], query || undefined);
|
||||
@@ -46,7 +46,7 @@ export const messagesSearcher = (async (query: string) => {
|
||||
callback: () => {
|
||||
goto(`/console/project-${projectId}/messaging/message-${message.$id}`);
|
||||
},
|
||||
icon: getIcon(message),
|
||||
icon: getIcon(message)
|
||||
}) as const
|
||||
);
|
||||
}) satisfies Searcher;
|
||||
@@ -21,11 +21,13 @@ export const providersSearcher = (async (query: string) => {
|
||||
(provider) =>
|
||||
({
|
||||
group: 'providers',
|
||||
label: provider.name,
|
||||
label: provider.name,
|
||||
callback: () => {
|
||||
goto(`/console/project-${projectId}/messaging/providers/provider-${provider.$id}`);
|
||||
goto(
|
||||
`/console/project-${projectId}/messaging/providers/provider-${provider.$id}`
|
||||
);
|
||||
},
|
||||
image: getIcon(provider.provider),
|
||||
image: getIcon(provider.provider)
|
||||
}) as const
|
||||
);
|
||||
}) satisfies Searcher;
|
||||
@@ -15,11 +15,11 @@ export const topicsSearcher = (async (query: string) => {
|
||||
(topic) =>
|
||||
({
|
||||
group: 'topics',
|
||||
label: topic.name,
|
||||
label: topic.name,
|
||||
callback: () => {
|
||||
goto(`/console/project-${projectId}/messaging/topics/topic-${topic.$id}`);
|
||||
},
|
||||
icon: 'send',
|
||||
icon: 'send'
|
||||
}) as const
|
||||
);
|
||||
}) satisfies Searcher;
|
||||
@@ -57,7 +57,7 @@
|
||||
callback: () => {
|
||||
goto(`/console/project-${$project.$id}/messaging`);
|
||||
},
|
||||
keys:['g', 'm'],
|
||||
keys: ['g', 'm'],
|
||||
disabled: $page.url.pathname.endsWith('messaging'),
|
||||
group: 'navigation'
|
||||
},
|
||||
|
||||
+10
-4
@@ -144,7 +144,9 @@
|
||||
);
|
||||
},
|
||||
group: 'collections',
|
||||
disabled: $page.url.pathname.endsWith('display-name') || $page.url.pathname.endsWith('settings'),
|
||||
disabled:
|
||||
$page.url.pathname.endsWith('display-name') ||
|
||||
$page.url.pathname.endsWith('settings'),
|
||||
icon: 'eye'
|
||||
},
|
||||
{
|
||||
@@ -155,8 +157,10 @@
|
||||
);
|
||||
},
|
||||
group: 'collections',
|
||||
disabled: $page.url.pathname.endsWith('permissions') || $page.url.pathname.endsWith('settings'),
|
||||
icon: 'puzzle',
|
||||
disabled:
|
||||
$page.url.pathname.endsWith('permissions') ||
|
||||
$page.url.pathname.endsWith('settings'),
|
||||
icon: 'puzzle'
|
||||
},
|
||||
{
|
||||
label: 'Document security',
|
||||
@@ -166,7 +170,9 @@
|
||||
);
|
||||
},
|
||||
group: 'collections',
|
||||
disabled: $page.url.pathname.endsWith('document-security') || $page.url.pathname.endsWith('settings'),
|
||||
disabled:
|
||||
$page.url.pathname.endsWith('document-security') ||
|
||||
$page.url.pathname.endsWith('settings'),
|
||||
icon: 'lock-closed'
|
||||
},
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user