Add huly docs (#5471)

This commit is contained in:
Denis Bykhov 2024-04-26 06:45:28 +05:00 committed by GitHub
parent e9c7f33394
commit a55c4cde47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 24 additions and 11 deletions

View File

@ -23,6 +23,7 @@ export { deleteSupportConversation, updateSupportConversation } from './utils'
export const supportLink = 'https://join.slack.com/t/hulycommunity/shared_invite/zt-2cyrevz8g-AGqEDZNsujbn4wHOWd7myg' export const supportLink = 'https://join.slack.com/t/hulycommunity/shared_invite/zt-2cyrevz8g-AGqEDZNsujbn4wHOWd7myg'
export const reportBugLink = 'https://github.com/hcengineering/platform/issues/new' export const reportBugLink = 'https://github.com/hcengineering/platform/issues/new'
export const docsLink = 'http://docs.huly.io/'
/** /**
* @public * @public

View File

@ -21,7 +21,7 @@
"HelpCenter": "Help Center", "HelpCenter": "Help Center",
"KeyboardShortcuts": "Keyboard Shortcuts", "KeyboardShortcuts": "Keyboard Shortcuts",
"Documentation": "Documentation", "Documentation": "Documentation",
"OpenPlatformGuide": "Open Platform Guide", "OpenPlatformGuide": "Open Huly Docs",
"AccessWorkspaceSettings": "Access your workspace settings", "AccessWorkspaceSettings": "Access your workspace settings",
"HowToWorkFaster": "Learn how to work faster", "HowToWorkFaster": "Learn how to work faster",
"HiddenApplication": "Hidden application", "HiddenApplication": "Hidden application",

View File

@ -21,7 +21,7 @@
"HelpCenter": "Centro de Ayuda", "HelpCenter": "Centro de Ayuda",
"KeyboardShortcuts": "Atajos de Teclado", "KeyboardShortcuts": "Atajos de Teclado",
"Documentation": "Documentación", "Documentation": "Documentación",
"OpenPlatformGuide": "Guía de la Plataforma", "OpenPlatformGuide": "Guía de la Huly",
"AccessWorkspaceSettings": "Acceder a la configuración de tu espacio de trabajo", "AccessWorkspaceSettings": "Acceder a la configuración de tu espacio de trabajo",
"HowToWorkFaster": "Aprende a trabajar más rápido", "HowToWorkFaster": "Aprende a trabajar más rápido",
"HiddenApplication": "Aplicación Oculta", "HiddenApplication": "Aplicación Oculta",

View File

@ -21,7 +21,7 @@
"HelpCenter": "Central de Ajuda", "HelpCenter": "Central de Ajuda",
"KeyboardShortcuts": "Atalhos de Teclado", "KeyboardShortcuts": "Atalhos de Teclado",
"Documentation": "Documentação", "Documentation": "Documentação",
"OpenPlatformGuide": "Guia da Plataforma", "OpenPlatformGuide": "Guia da Huly",
"AccessWorkspaceSettings": "Aceda as configurações do seu espaço de trabalho", "AccessWorkspaceSettings": "Aceda as configurações do seu espaço de trabalho",
"HowToWorkFaster": "Aprenda a trabalhar mais rápido", "HowToWorkFaster": "Aprenda a trabalhar mais rápido",
"HiddenApplication": "Aplicação Oculta", "HiddenApplication": "Aplicação Oculta",

View File

@ -13,21 +13,23 @@
// limitations under the License. // limitations under the License.
--> -->
<script lang="ts"> <script lang="ts">
import { Asset, IntlString } from '@hcengineering/platform'
import { getClient } from '@hcengineering/presentation' import { getClient } from '@hcengineering/presentation'
import setting, { settingId } from '@hcengineering/setting' import setting, { settingId } from '@hcengineering/setting'
import support, { supportLink, reportBugLink } from '@hcengineering/support' import support, { docsLink, reportBugLink, supportLink } from '@hcengineering/support'
import { import {
AnySvelteComponent,
Button, Button,
capitalizeFirstLetter,
closePopup,
formatKey,
getCurrentResolvedLocation,
Icon, Icon,
IconArrowLeft, IconArrowLeft,
Label, Label,
ListView, ListView,
navigate,
Scroller, Scroller,
capitalizeFirstLetter,
closePopup,
formatKey,
getCurrentResolvedLocation,
navigate,
topSP topSP
} from '@hcengineering/ui' } from '@hcengineering/ui'
import view, { Action, ActionCategory } from '@hcengineering/view' import view, { Action, ActionCategory } from '@hcengineering/view'
@ -77,12 +79,22 @@
} }
getActions() getActions()
const cards = [ interface HelpCard {
icon: Asset | AnySvelteComponent
title: IntlString
description: IntlString
onClick: () => void
disabled?: boolean
}
const cards: HelpCard[] = [
{ {
icon: DocumentationIcon, icon: DocumentationIcon,
title: workbench.string.Documentation, title: workbench.string.Documentation,
description: workbench.string.OpenPlatformGuide, description: workbench.string.OpenPlatformGuide,
disabled: true onClick: () => {
window.open(docsLink, '_blank')
}
}, },
{ {
icon: view.icon.Setting, icon: view.icon.Setting,