@ossy/distribution 1.10.2 → 1.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/distribution.page.jsx +16 -26
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/distribution",
|
|
3
3
|
"description": "Analytics module — workspace analytics for website traffic",
|
|
4
|
-
"version": "1.10.
|
|
4
|
+
"version": "1.10.3",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.js",
|
|
7
7
|
"module": "./src/index.js",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"@ossy/sdk-react": "*",
|
|
28
28
|
"react": "*"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "a0d89185a17f8de8ce328c3a648c108ff1d61d8f"
|
|
31
31
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { useRouter } from '@ossy/router-react'
|
|
3
|
-
import {
|
|
3
|
+
import { Text, View, Button, Switch, Page, useLocale, Tags } from '@ossy/design-system'
|
|
4
4
|
import { AsyncStatus } from '@ossy/sdk-react'
|
|
5
5
|
import { Definition } from '@ossy/distribution'
|
|
6
6
|
import { moduleStatusTags } from './moduleStatus.js'
|
|
@@ -26,31 +26,21 @@ export const DistributionPage = () => {
|
|
|
26
26
|
icon: key === 'pinterest' ? 'details-more' : key === 'x' ? 'screen-shot' : 'arrows-expand-up-right',
|
|
27
27
|
}))
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
<View gap="m" surface="primary" style={{ padding: 'var(--space-m) var(--space-l)', height: '100%', overflowY: 'auto' }}>
|
|
31
|
-
|
|
32
|
-
<View inset="s" gap="s">
|
|
33
|
-
|
|
34
|
-
<View layout="row" justifyContent="space-between" alignItems="center">
|
|
35
|
-
<View layout='row' gap="s" alignItems="center">
|
|
36
|
-
<Title>{t('distribution.home.title')}</Title>
|
|
37
|
-
{moduleStatusTags(Definition).length > 0 && (
|
|
38
|
-
<Tags tags={moduleStatusTags(Definition)} size="s" />
|
|
39
|
-
)}
|
|
40
|
-
</View>
|
|
41
|
-
<Button variant="cta" disabled={true} prefix="add">
|
|
42
|
-
{t('distribution.home.addIntegration')}
|
|
43
|
-
</Button>
|
|
44
|
-
</View>
|
|
45
|
-
|
|
46
|
-
<Text style={{ maxWidth: '400px' }}>
|
|
47
|
-
{t('distribution.home.description')}
|
|
48
|
-
</Text>
|
|
29
|
+
const statusTags = moduleStatusTags(Definition)
|
|
49
30
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
31
|
+
return (
|
|
32
|
+
<Page
|
|
33
|
+
title="distribution.home.title"
|
|
34
|
+
near={statusTags.length > 0 ? <Tags tags={statusTags} size="s" /> : undefined}
|
|
35
|
+
description="distribution.home.description"
|
|
36
|
+
far={(
|
|
37
|
+
<Button variant="cta" disabled prefix="add">
|
|
38
|
+
{t('distribution.home.addIntegration')}
|
|
39
|
+
</Button>
|
|
40
|
+
)}
|
|
41
|
+
>
|
|
42
|
+
<View gap="m">
|
|
43
|
+
<Text variant="heading-secondary" as="h2" text="distribution.home.integrations" />
|
|
54
44
|
<Switch on={AsyncStatus.Success}>
|
|
55
45
|
|
|
56
46
|
<Switch.Case match={[AsyncStatus.NotInitialized, AsyncStatus.Loading]}>
|
|
@@ -91,7 +81,7 @@ export const DistributionPage = () => {
|
|
|
91
81
|
</Switch>
|
|
92
82
|
</View>
|
|
93
83
|
|
|
94
|
-
</
|
|
84
|
+
</Page>
|
|
95
85
|
)
|
|
96
86
|
}
|
|
97
87
|
|