Add svelte-check in setting. Fix errors. (#821)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov
2022-01-14 10:06:32 +01:00
committed by GitHub
parent e8c26c46a8
commit c568bbf711
29 changed files with 80 additions and 120 deletions
@@ -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