@drodil/backstage-plugin-qeta 3.10.5 → 3.12.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ContentHeader } from '@backstage/core-components';
|
|
2
|
-
import { useTranslation, useIdentityApi, AskQuestionButton, PostsCard, ImpactCard, FollowedTagsList, FollowedEntitiesList, FollowedCollectionsList } from '@drodil/backstage-plugin-qeta-react';
|
|
2
|
+
import { useTranslation, useIdentityApi, AskQuestionButton, SuggestionsCard, PostsCard, ImpactCard, FollowedTagsList, FollowedEntitiesList, FollowedCollectionsList } from '@drodil/backstage-plugin-qeta-react';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import Grid from '@mui/material/Grid';
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ const HomePage = () => {
|
|
|
10
10
|
loading: loadingUser,
|
|
11
11
|
error: userError
|
|
12
12
|
} = useIdentityApi((api) => api.getBackstageIdentity(), []);
|
|
13
|
-
return /* @__PURE__ */ React.createElement(Grid, { container: true, spacing: 4 }, /* @__PURE__ */ React.createElement(Grid, { item: true, md: 12, lg: 8, xl: 9 }, /* @__PURE__ */ React.createElement(ContentHeader, { title: t("homePage.title") }, /* @__PURE__ */ React.createElement(AskQuestionButton, null)), /* @__PURE__ */ React.createElement(Grid, { container: true }, user && !loadingUser && !userError && /* @__PURE__ */ React.createElement(Grid, { item: true, xs: 12 }, /* @__PURE__ */ React.createElement(
|
|
13
|
+
return /* @__PURE__ */ React.createElement(Grid, { container: true, spacing: 4 }, /* @__PURE__ */ React.createElement(Grid, { item: true, md: 12, lg: 8, xl: 9 }, /* @__PURE__ */ React.createElement(ContentHeader, { title: t("homePage.title") }, /* @__PURE__ */ React.createElement(AskQuestionButton, null)), /* @__PURE__ */ React.createElement(Grid, { container: true }, /* @__PURE__ */ React.createElement(Grid, { item: true, xs: 12 }, /* @__PURE__ */ React.createElement(SuggestionsCard, null)), user && !loadingUser && !userError && /* @__PURE__ */ React.createElement(Grid, { item: true, xs: 12 }, /* @__PURE__ */ React.createElement(
|
|
14
14
|
PostsCard,
|
|
15
15
|
{
|
|
16
16
|
type: "own",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HomePage.esm.js","sources":["../../../src/components/HomePage/HomePage.tsx"],"sourcesContent":["import { ContentHeader } from '@backstage/core-components';\nimport {\n AskQuestionButton,\n FollowedCollectionsList,\n FollowedEntitiesList,\n FollowedTagsList,\n ImpactCard,\n PostsCard,\n useIdentityApi,\n useTranslation,\n} from '@drodil/backstage-plugin-qeta-react';\nimport React from 'react';\nimport Grid from '@mui/material/Grid';\n\nexport const HomePage = () => {\n const { t } = useTranslation();\n const {\n value: user,\n loading: loadingUser,\n error: userError,\n } = useIdentityApi(api => api.getBackstageIdentity(), []);\n\n return (\n <Grid container spacing={4}>\n <Grid item md={12} lg={8} xl={9}>\n <ContentHeader title={t('homePage.title')}>\n <AskQuestionButton />\n </ContentHeader>\n <Grid container>\n {user && !loadingUser && !userError && (\n <Grid item xs={12}>\n <PostsCard\n type=\"own\"\n title={t('highlights.own.title')}\n options={{ author: user.userEntityRef }}\n postType=\"question\"\n />\n </Grid>\n )}\n <Grid item xs={12}>\n <PostsCard\n type=\"own\"\n title={t('highlights.unanswered.title')}\n options={{ noAnswers: true, random: true, type: 'question' }}\n postType=\"question\"\n />\n </Grid>\n </Grid>\n </Grid>\n <Grid item lg={4} xl={3}>\n <ImpactCard />\n <FollowedTagsList />\n <FollowedEntitiesList />\n <FollowedCollectionsList />\n </Grid>\n </Grid>\n );\n};\n"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"HomePage.esm.js","sources":["../../../src/components/HomePage/HomePage.tsx"],"sourcesContent":["import { ContentHeader } from '@backstage/core-components';\nimport {\n AskQuestionButton,\n FollowedCollectionsList,\n FollowedEntitiesList,\n FollowedTagsList,\n ImpactCard,\n PostsCard,\n SuggestionsCard,\n useIdentityApi,\n useTranslation,\n} from '@drodil/backstage-plugin-qeta-react';\nimport React from 'react';\nimport Grid from '@mui/material/Grid';\n\nexport const HomePage = () => {\n const { t } = useTranslation();\n const {\n value: user,\n loading: loadingUser,\n error: userError,\n } = useIdentityApi(api => api.getBackstageIdentity(), []);\n\n return (\n <Grid container spacing={4}>\n <Grid item md={12} lg={8} xl={9}>\n <ContentHeader title={t('homePage.title')}>\n <AskQuestionButton />\n </ContentHeader>\n <Grid container>\n <Grid item xs={12}>\n <SuggestionsCard />\n </Grid>\n {user && !loadingUser && !userError && (\n <Grid item xs={12}>\n <PostsCard\n type=\"own\"\n title={t('highlights.own.title')}\n options={{ author: user.userEntityRef }}\n postType=\"question\"\n />\n </Grid>\n )}\n <Grid item xs={12}>\n <PostsCard\n type=\"own\"\n title={t('highlights.unanswered.title')}\n options={{ noAnswers: true, random: true, type: 'question' }}\n postType=\"question\"\n />\n </Grid>\n </Grid>\n </Grid>\n <Grid item lg={4} xl={3}>\n <ImpactCard />\n <FollowedTagsList />\n <FollowedEntitiesList />\n <FollowedCollectionsList />\n </Grid>\n </Grid>\n );\n};\n"],"names":[],"mappings":";;;;;AAeO,MAAM,WAAW,MAAM;AAC5B,EAAM,MAAA,EAAE,CAAE,EAAA,GAAI,cAAe,EAAA,CAAA;AAC7B,EAAM,MAAA;AAAA,IACJ,KAAO,EAAA,IAAA;AAAA,IACP,OAAS,EAAA,WAAA;AAAA,IACT,KAAO,EAAA,SAAA;AAAA,MACL,cAAe,CAAA,CAAA,GAAA,KAAO,IAAI,oBAAqB,EAAA,EAAG,EAAE,CAAA,CAAA;AAExD,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,QAAK,SAAS,EAAA,IAAA,EAAC,SAAS,CACvB,EAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,IAAK,EAAA,EAAA,IAAA,EAAI,IAAC,EAAA,EAAA,EAAI,IAAI,EAAI,EAAA,CAAA,EAAG,EAAI,EAAA,CAAA,EAAA,kBAC3B,KAAA,C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A,CAAA,aAAA,CAAA,gBAAA,EAAA,IAAiB,CAClB,kBAAA,KAAA,CAAA,aAAA,CAAC,0BAAqB,CACtB,kBAAA,KAAA,CAAA,aAAA,CAAC,uBAAwB,EAAA,IAAA,CAC3B,CACF,CAAA,CAAA;AAEJ;;;;"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { useTranslation, UsersGrid } from '@drodil/backstage-plugin-qeta-react';
|
|
2
|
+
import { useTranslation, UsersGrid, FollowedUsersList } from '@drodil/backstage-plugin-qeta-react';
|
|
3
3
|
import { ContentHeader } from '@backstage/core-components';
|
|
4
|
+
import Grid from '@mui/material/Grid';
|
|
4
5
|
|
|
5
6
|
const UsersPage = () => {
|
|
6
7
|
const { t } = useTranslation();
|
|
7
|
-
return /* @__PURE__ */ React.createElement(React.
|
|
8
|
+
return /* @__PURE__ */ React.createElement(Grid, { container: true, spacing: 4 }, /* @__PURE__ */ React.createElement(Grid, { item: true, md: 12, lg: 8, xl: 9 }, /* @__PURE__ */ React.createElement(ContentHeader, { title: t("usersPage.title") }), /* @__PURE__ */ React.createElement(UsersGrid, null)), /* @__PURE__ */ React.createElement(Grid, { item: true, lg: 4, xl: 3 }, /* @__PURE__ */ React.createElement(FollowedUsersList, null)));
|
|
8
9
|
};
|
|
9
10
|
|
|
10
11
|
export { UsersPage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UsersPage.esm.js","sources":["../../../src/components/UsersPage/UsersPage.tsx"],"sourcesContent":["import React from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"UsersPage.esm.js","sources":["../../../src/components/UsersPage/UsersPage.tsx"],"sourcesContent":["import React from 'react';\nimport {\n FollowedUsersList,\n UsersGrid,\n useTranslation,\n} from '@drodil/backstage-plugin-qeta-react';\nimport { ContentHeader } from '@backstage/core-components';\nimport Grid from '@mui/material/Grid';\n\nexport const UsersPage = () => {\n const { t } = useTranslation();\n\n return (\n <Grid container spacing={4}>\n <Grid item md={12} lg={8} xl={9}>\n <ContentHeader title={t('usersPage.title')} />\n <UsersGrid />\n </Grid>\n <Grid item lg={4} xl={3}>\n <FollowedUsersList />\n </Grid>\n </Grid>\n );\n};\n"],"names":[],"mappings":";;;;;AASO,MAAM,YAAY,MAAM;AAC7B,EAAM,MAAA,EAAE,CAAE,EAAA,GAAI,cAAe,EAAA,CAAA;AAE7B,EAAA,2CACG,IAAK,EAAA,EAAA,SAAA,EAAS,IAAC,EAAA,OAAA,EAAS,qBACtB,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAK,IAAI,EAAA,IAAA,EAAC,IAAI,EAAI,EAAA,EAAA,EAAI,GAAG,EAAI,EAAA,CAAA,EAAA,sCAC3B,aAAc,EAAA,EAAA,KAAA,EAAO,CAAE,CAAA,iBAAiB,GAAG,CAC5C,kBAAA,KAAA,CAAA,aAAA,CAAC,SAAU,EAAA,IAAA,CACb,mBACC,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAK,IAAI,EAAA,IAAA,EAAC,IAAI,CAAG,EAAA,EAAA,EAAI,qBACnB,KAAA,CAAA,aAAA,CAAA,iBAAA,EAAA,IAAkB,CACrB,CACF,CAAA,CAAA;AAEJ;;;;"}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"frontend",
|
|
8
8
|
"backstage.io"
|
|
9
9
|
],
|
|
10
|
-
"version": "3.
|
|
10
|
+
"version": "3.12.0",
|
|
11
11
|
"main": "dist/index.esm.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"prepublishOnly": "yarn tsc && yarn build",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"tsc": "tsc"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@backstage/catalog-model": "^1.7.
|
|
52
|
-
"@backstage/core-components": "^0.
|
|
53
|
-
"@backstage/core-plugin-api": "^1.10.
|
|
54
|
-
"@backstage/plugin-catalog-react": "^1.14.
|
|
55
|
-
"@backstage/plugin-home-react": "^0.1.
|
|
56
|
-
"@backstage/plugin-signals-react": "^0.0.
|
|
57
|
-
"@drodil/backstage-plugin-qeta-common": "^3.
|
|
58
|
-
"@drodil/backstage-plugin-qeta-react": "^3.
|
|
51
|
+
"@backstage/catalog-model": "^1.7.1",
|
|
52
|
+
"@backstage/core-components": "^0.16.0",
|
|
53
|
+
"@backstage/core-plugin-api": "^1.10.1",
|
|
54
|
+
"@backstage/plugin-catalog-react": "^1.14.1",
|
|
55
|
+
"@backstage/plugin-home-react": "^0.1.19",
|
|
56
|
+
"@backstage/plugin-signals-react": "^0.0.7",
|
|
57
|
+
"@drodil/backstage-plugin-qeta-common": "^3.12.0",
|
|
58
|
+
"@drodil/backstage-plugin-qeta-react": "^3.12.0",
|
|
59
59
|
"@mui/icons-material": "^5.15.14",
|
|
60
60
|
"@mui/lab": "^5.0.0-alpha.169",
|
|
61
61
|
"@mui/material": "^5.16.7",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"react-use": "^17.4.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
|
-
"@backstage/catalog-client": "^1.
|
|
67
|
+
"@backstage/catalog-client": "^1.8.0",
|
|
68
68
|
"react": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
69
69
|
"react-dom": "^17.0.0 || ^18.0.0 || ^19.0.0",
|
|
70
70
|
"react-router-dom": "6.0.0-beta.0 || ^6.3.0"
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"react-markdown": "8.0.7"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
|
-
"@backstage/cli": "^0.
|
|
77
|
-
"@backstage/dev-utils": "^1.1.
|
|
78
|
-
"@backstage/plugin-catalog": "^1.
|
|
79
|
-
"@backstage/plugin-home": "^0.8.
|
|
80
|
-
"@backstage/plugin-notifications": "^0.
|
|
81
|
-
"@backstage/plugin-signals": "^0.0.
|
|
76
|
+
"@backstage/cli": "^0.29.1",
|
|
77
|
+
"@backstage/dev-utils": "^1.1.3",
|
|
78
|
+
"@backstage/plugin-catalog": "^1.25.0",
|
|
79
|
+
"@backstage/plugin-home": "^0.8.1",
|
|
80
|
+
"@backstage/plugin-notifications": "^0.4.0",
|
|
81
|
+
"@backstage/plugin-signals": "^0.0.12",
|
|
82
82
|
"@testing-library/jest-dom": "^6.1.3",
|
|
83
83
|
"cross-fetch": "^3.1.5"
|
|
84
84
|
},
|
|
@@ -87,5 +87,12 @@
|
|
|
87
87
|
"configSchema.d.ts"
|
|
88
88
|
],
|
|
89
89
|
"configSchema": "configSchema.d.ts",
|
|
90
|
+
"typesVersions": {
|
|
91
|
+
"*": {
|
|
92
|
+
"index": [
|
|
93
|
+
"dist/index.d.ts"
|
|
94
|
+
]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
90
97
|
"module": "./dist/index.esm.js"
|
|
91
98
|
}
|