mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 20:14:57 +02:00
Add svelte-check in setting. Fix errors. (#821)
Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { Button, Component, Label, Link } from '@anticrm/ui'
|
||||
import { getResource } from '@anticrm/platform'
|
||||
@@ -56,10 +57,10 @@
|
||||
<div class="content">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod temp</div>
|
||||
<div class="footer">
|
||||
{#if integration}
|
||||
<Button label={'Disconnect'} on:click={disconnect} />
|
||||
<Button label={setting.string.Disconnect} on:click={disconnect} />
|
||||
{:else}
|
||||
<Button
|
||||
label={'Add'}
|
||||
label={setting.string.Add}
|
||||
primary
|
||||
on:click={(e) => {
|
||||
showPopup(integrationType.createComponent, {}, e.target, close)
|
||||
|
||||
@@ -14,22 +14,8 @@
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { getCurrentAccount, Ref, Space } from '@anticrm/core';
|
||||
import { createQuery } from '@anticrm/presentation'
|
||||
import setting from '@anticrm/setting'
|
||||
import type { Integration, IntegrationType } from '@anticrm/setting'
|
||||
import PluginCard from './PluginCard.svelte'
|
||||
import { Icon, Label } from '@anticrm/ui'
|
||||
|
||||
// const accountId = getCurrentAccount()._id
|
||||
// const typeQuery = createQuery()
|
||||
// const integrationQuery = createQuery()
|
||||
|
||||
// let integrations: Integration[] = []
|
||||
// let integrationTypes: IntegrationType[] = []
|
||||
|
||||
// typeQuery.query(setting.class.IntegrationType, {}, (res) => (integrationTypes = res))
|
||||
// integrationQuery.query(setting.class.Integration, { space: accountId as string as Ref<Space> }, (res) => (integrations = res))
|
||||
</script>
|
||||
|
||||
<div class="flex-col h-full">
|
||||
|
||||
@@ -14,22 +14,8 @@
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { getCurrentAccount, Ref, Space } from '@anticrm/core';
|
||||
import { createQuery } from '@anticrm/presentation'
|
||||
import setting from '@anticrm/setting'
|
||||
import type { Integration, IntegrationType } from '@anticrm/setting'
|
||||
import PluginCard from './PluginCard.svelte'
|
||||
import { Icon, Label } from '@anticrm/ui'
|
||||
|
||||
// const accountId = getCurrentAccount()._id
|
||||
// const typeQuery = createQuery()
|
||||
// const integrationQuery = createQuery()
|
||||
|
||||
// let integrations: Integration[] = []
|
||||
// let integrationTypes: IntegrationType[] = []
|
||||
|
||||
// typeQuery.query(setting.class.IntegrationType, {}, (res) => (integrationTypes = res))
|
||||
// integrationQuery.query(setting.class.Integration, { space: accountId as string as Ref<Space> }, (res) => (integrations = res))
|
||||
</script>
|
||||
|
||||
<div class="flex-col h-full">
|
||||
|
||||
@@ -14,22 +14,8 @@
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { getCurrentAccount, Ref, Space } from '@anticrm/core';
|
||||
import { createQuery } from '@anticrm/presentation'
|
||||
import setting from '@anticrm/setting'
|
||||
import type { Integration, IntegrationType } from '@anticrm/setting'
|
||||
import PluginCard from './PluginCard.svelte'
|
||||
import { Icon, Label } from '@anticrm/ui'
|
||||
|
||||
// const accountId = getCurrentAccount()._id
|
||||
// const typeQuery = createQuery()
|
||||
// const integrationQuery = createQuery()
|
||||
|
||||
// let integrations: Integration[] = []
|
||||
// let integrationTypes: IntegrationType[] = []
|
||||
|
||||
// typeQuery.query(setting.class.IntegrationType, {}, (res) => (integrationTypes = res))
|
||||
// integrationQuery.query(setting.class.Integration, { space: accountId as string as Ref<Space> }, (res) => (integrations = res))
|
||||
</script>
|
||||
|
||||
<div class="flex-col h-full">
|
||||
|
||||
@@ -14,22 +14,8 @@
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import { getCurrentAccount, Ref, Space } from '@anticrm/core';
|
||||
import { createQuery } from '@anticrm/presentation'
|
||||
import setting from '@anticrm/setting'
|
||||
import type { Integration, IntegrationType } from '@anticrm/setting'
|
||||
import PluginCard from './PluginCard.svelte'
|
||||
import { Icon, Label } from '@anticrm/ui'
|
||||
|
||||
// const accountId = getCurrentAccount()._id
|
||||
// const typeQuery = createQuery()
|
||||
// const integrationQuery = createQuery()
|
||||
|
||||
// let integrations: Integration[] = []
|
||||
// let integrationTypes: IntegrationType[] = []
|
||||
|
||||
// typeQuery.query(setting.class.IntegrationType, {}, (res) => (integrationTypes = res))
|
||||
// integrationQuery.query(setting.class.Integration, { space: accountId as string as Ref<Space> }, (res) => (integrations = res))
|
||||
</script>
|
||||
|
||||
<div class="flex-col h-full">
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
-->
|
||||
|
||||
<script lang="ts">
|
||||
import type { Ref, Space, Doc, Class } from '@anticrm/core'
|
||||
// import type { Ref, Space, Doc, Class } from '@anticrm/core'
|
||||
import { getClient, MessageBox } from '@anticrm/presentation'
|
||||
import { Label, Icon, showPopup } from '@anticrm/ui'
|
||||
import type { KanbanTemplate, KanbanTemplateSpace, StateTemplate } from '@anticrm/task'
|
||||
@@ -26,9 +26,9 @@
|
||||
import Folders from './Folders.svelte'
|
||||
import Templates from './Templates.svelte'
|
||||
|
||||
export let objectId: Ref<Doc>
|
||||
export let space: Ref<Space>
|
||||
export let _class: Ref<Class<Doc>>
|
||||
// export let objectId: Ref<Doc>
|
||||
// export let space: Ref<Space>
|
||||
// export let _class: Ref<Class<Doc>>
|
||||
|
||||
let folder: KanbanTemplateSpace | undefined
|
||||
let template: KanbanTemplate | undefined
|
||||
|
||||
Reference in New Issue
Block a user