feat(gui): replace /commands placeholder with link to python builder
This commit is contained in:
parent
0e58a699b1
commit
f0a6ade231
4 changed files with 66 additions and 36 deletions
|
|
@ -110,10 +110,9 @@ settings-openai-not-supported = ChatGPT is not currently supported. It will be a
|
||||||
commands-title = Commands
|
commands-title = Commands
|
||||||
commands-search = Search commands...
|
commands-search = Search commands...
|
||||||
commands-count = { $count } commands
|
commands-count = { $count } commands
|
||||||
commands-wip-title = [404] This section is under development!
|
commands-heading = Jarvis commands
|
||||||
commands-wip-desc = Here will be a list of commands + full-featured command editor.
|
commands-desc = Voice commands are configured via commands.yaml (Python fork) or resources/commands/ (Rust). A GUI command builder is available in the Python version of the fork.
|
||||||
commands-wip-follow = Follow updates in
|
commands-builder-link = Open Command Builder (Python fork)
|
||||||
commands-wip-channel = our Telegram channel
|
|
||||||
|
|
||||||
# ### ERRORS
|
# ### ERRORS
|
||||||
error-generic = An error occurred
|
error-generic = An error occurred
|
||||||
|
|
|
||||||
|
|
@ -110,10 +110,9 @@ settings-openai-not-supported = В данный момент ChatGPT не под
|
||||||
commands-title = Команды
|
commands-title = Команды
|
||||||
commands-search = Поиск команд...
|
commands-search = Поиск команд...
|
||||||
commands-count = { $count } команд
|
commands-count = { $count } команд
|
||||||
commands-wip-title = [404] Этот раздел еще находится в разработке!
|
commands-heading = Команды Jarvis
|
||||||
commands-wip-desc = Тут будет список команд + полноценный редактор команд.
|
commands-desc = Голосовые команды настраиваются через файл commands.yaml (Python-форк) или resources/commands/ (Rust). GUI-конструктор команд доступен в Python-версии форка.
|
||||||
commands-wip-follow = Следите за обновлениями в
|
commands-builder-link = Открыть Command Builder (Python-форк)
|
||||||
commands-wip-channel = нашем телеграм канале
|
|
||||||
|
|
||||||
# ERRORS
|
# ERRORS
|
||||||
error-generic = Произошла ошибка
|
error-generic = Произошла ошибка
|
||||||
|
|
|
||||||
|
|
@ -110,10 +110,9 @@ settings-openai-not-supported = Наразі ChatGPT не підтримуєть
|
||||||
commands-title = Команди
|
commands-title = Команди
|
||||||
commands-search = Пошук команд...
|
commands-search = Пошук команд...
|
||||||
commands-count = { $count } команд
|
commands-count = { $count } команд
|
||||||
commands-wip-title = [404] Цей розділ ще в розробці!
|
commands-heading = Команди Jarvis
|
||||||
commands-wip-desc = Тут буде список команд + повноцінний редактор команд.
|
commands-desc = Голосові команди налаштовуються через файл commands.yaml (Python-форк) або resources/commands/ (Rust). GUI-конструктор команд доступний у Python-версії форка.
|
||||||
commands-wip-follow = Слідкуйте за оновленнями в
|
commands-builder-link = Відкрити Command Builder (Python-форк)
|
||||||
commands-wip-channel = нашому телеграм каналі
|
|
||||||
|
|
||||||
# ### ERRORS
|
# ### ERRORS
|
||||||
error-generic = Сталася помилка
|
error-generic = Сталася помилка
|
||||||
|
|
|
||||||
|
|
@ -1,41 +1,74 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { Notification, Space } from "@svelteuidev/core"
|
import { Space } from "@svelteuidev/core"
|
||||||
import { InfoCircled } from "radix-icons-svelte"
|
|
||||||
|
|
||||||
import HDivider from "@/components/elements/HDivider.svelte"
|
import HDivider from "@/components/elements/HDivider.svelte"
|
||||||
import Footer from "@/components/Footer.svelte"
|
import Footer from "@/components/Footer.svelte"
|
||||||
import { appInfo, translations, translate } from "@/stores"
|
import { translations, translate } from "@/stores"
|
||||||
|
|
||||||
$: t = (key: string) => translate($translations, key)
|
$: t = (key: string) => translate($translations, key)
|
||||||
|
|
||||||
let tgLink = ""
|
const builderUrl = "https://github.com/DmitryBykov-ISPO/J.A.R.V.I.S-py/tree/main/tools/command_builder"
|
||||||
appInfo.subscribe(info => {
|
|
||||||
tgLink = info.tgOfficialLink
|
|
||||||
})
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Space h="xl" />
|
<Space h="xl" />
|
||||||
|
|
||||||
<Notification
|
<div class="commands-info">
|
||||||
title={t('commands-wip-title')}
|
<h2>{t('commands-heading')}</h2>
|
||||||
icon={InfoCircled}
|
<p>{t('commands-desc')}</p>
|
||||||
color="blue"
|
<a class="builder-link" href={builderUrl} target="_blank" rel="noopener noreferrer">
|
||||||
withCloseButton={false}
|
{t('commands-builder-link')}
|
||||||
>
|
</a>
|
||||||
{t('commands-wip-desc')}<br />
|
|
||||||
{t('commands-wip-follow')} <a href={tgLink} target="_blank">{t('commands-wip-channel')}</a>!
|
|
||||||
</Notification>
|
|
||||||
|
|
||||||
<div class="placeholder-image">
|
|
||||||
<img src="/media/images/tenor.gif" alt="bruh" width="320px" />
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<HDivider />
|
<HDivider />
|
||||||
<Footer />
|
<Footer />
|
||||||
|
|
||||||
<style>
|
<style lang="scss">
|
||||||
.placeholder-image {
|
.commands-info {
|
||||||
text-align: center;
|
background: #0a1214;
|
||||||
margin-top: 25px;
|
border: 1px solid rgba(82, 254, 254, 0.2);
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 1.25rem 1.5rem;
|
||||||
|
color: #d6e2e6;
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
margin: 0 0 0.75rem;
|
||||||
|
font-size: 1.05rem;
|
||||||
|
color: #52fefe;
|
||||||
|
font-weight: 600;
|
||||||
|
letter-spacing: 0.02em;
|
||||||
|
}
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin: 0 0 1rem;
|
||||||
|
font-size: 0.85rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: rgba(255, 255, 255, 0.65);
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(code) {
|
||||||
|
background: rgba(82, 254, 254, 0.08);
|
||||||
|
color: #52fefe;
|
||||||
|
padding: 0.05rem 0.35rem;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.builder-link {
|
||||||
|
display: inline-block;
|
||||||
|
padding: 0.5rem 0.9rem;
|
||||||
|
background: rgba(82, 254, 254, 0.08);
|
||||||
|
border: 1px solid rgba(82, 254, 254, 0.4);
|
||||||
|
border-radius: 6px;
|
||||||
|
color: #52fefe;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: background 0.15s ease, border-color 0.15s ease;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
background: rgba(82, 254, 254, 0.16);
|
||||||
|
border-color: rgba(82, 254, 254, 0.6);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue