@drodil/backstage-plugin-qeta-react 3.33.2 → 3.33.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.
|
@@ -33,7 +33,7 @@ const AuthorBoxes = (props) => {
|
|
|
33
33
|
{
|
|
34
34
|
userEntityRef: entity.author,
|
|
35
35
|
time: entity.created,
|
|
36
|
-
label: t("authorBox.answeredAtTime"),
|
|
36
|
+
label: isAnswer(entity) ? t("authorBox.answeredAtTime") : t("authorBox.postedAtTime"),
|
|
37
37
|
expert: isAnswer(entity) ? entity.expert : false,
|
|
38
38
|
anonymous: entity.anonymous
|
|
39
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthorBoxes.esm.js","sources":["../../../src/components/AuthorBox/AuthorBoxes.tsx"],"sourcesContent":["import {\n Answer,\n PostAnswerEntity,\n QetaIdEntity,\n} from '@drodil/backstage-plugin-qeta-common';\nimport { Box } from '@material-ui/core';\nimport { AuthorBox } from './AuthorBox.tsx';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { qetaTranslationRef } from '../../translation.ts';\n\nfunction isAnswer(entity: QetaIdEntity): entity is Answer {\n return 'postId' in entity && 'correct' in entity;\n}\n\nexport const AuthorBoxes = (props: { entity: PostAnswerEntity }) => {\n const entity = props.entity;\n const { t } = useTranslationRef(qetaTranslationRef);\n\n return (\n <Box\n display=\"flex\"\n minWidth={220}\n style={{ gap: '8px', justifyContent: 'flex-end' }}\n ml={1}\n >\n {entity.updated && entity.updatedBy && (\n <AuthorBox\n userEntityRef={entity.updatedBy}\n time={entity.updated}\n label={t('authorBox.updatedAtTime')}\n expert={false}\n anonymous={entity.anonymous}\n />\n )}\n <AuthorBox\n userEntityRef={entity.author}\n time={entity.created}\n label={t('authorBox.answeredAtTime')}\n expert={isAnswer(entity) ? entity.expert : false}\n anonymous={entity.anonymous}\n />\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;;AAUA,SAAS,SAAS,MAAwC,EAAA;AACxD,EAAO,OAAA,QAAA,IAAY,UAAU,SAAa,IAAA,MAAA;AAC5C;AAEa,MAAA,WAAA,GAAc,CAAC,KAAwC,KAAA;AAClE,EAAA,MAAM,SAAS,KAAM,CAAA,MAAA;AACrB,EAAA,MAAM,EAAE,CAAA,EAAM,GAAA,iBAAA,CAAkB,kBAAkB,CAAA;AAElD,EACE,uBAAA,IAAA;AAAA,IAAC,GAAA;AAAA,IAAA;AAAA,MACC,OAAQ,EAAA,MAAA;AAAA,MACR,QAAU,EAAA,GAAA;AAAA,MACV,KAAO,EAAA,EAAE,GAAK,EAAA,KAAA,EAAO,gBAAgB,UAAW,EAAA;AAAA,MAChD,EAAI,EAAA,CAAA;AAAA,MAEH,QAAA,EAAA;AAAA,QAAO,MAAA,CAAA,OAAA,IAAW,OAAO,SACxB,oBAAA,GAAA;AAAA,UAAC,SAAA;AAAA,UAAA;AAAA,YACC,eAAe,MAAO,CAAA,SAAA;AAAA,YACtB,MAAM,MAAO,CAAA,OAAA;AAAA,YACb,KAAA,EAAO,EAAE,yBAAyB,CAAA;AAAA,YAClC,MAAQ,EAAA,KAAA;AAAA,YACR,WAAW,MAAO,CAAA;AAAA;AAAA,SACpB;AAAA,wBAEF,GAAA;AAAA,UAAC,SAAA;AAAA,UAAA;AAAA,YACC,eAAe,MAAO,CAAA,MAAA;AAAA,YACtB,MAAM,MAAO,CAAA,OAAA;AAAA,YACb,KAAA,
|
|
1
|
+
{"version":3,"file":"AuthorBoxes.esm.js","sources":["../../../src/components/AuthorBox/AuthorBoxes.tsx"],"sourcesContent":["import {\n Answer,\n PostAnswerEntity,\n QetaIdEntity,\n} from '@drodil/backstage-plugin-qeta-common';\nimport { Box } from '@material-ui/core';\nimport { AuthorBox } from './AuthorBox.tsx';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { qetaTranslationRef } from '../../translation.ts';\n\nfunction isAnswer(entity: QetaIdEntity): entity is Answer {\n return 'postId' in entity && 'correct' in entity;\n}\n\nexport const AuthorBoxes = (props: { entity: PostAnswerEntity }) => {\n const entity = props.entity;\n const { t } = useTranslationRef(qetaTranslationRef);\n\n return (\n <Box\n display=\"flex\"\n minWidth={220}\n style={{ gap: '8px', justifyContent: 'flex-end' }}\n ml={1}\n >\n {entity.updated && entity.updatedBy && (\n <AuthorBox\n userEntityRef={entity.updatedBy}\n time={entity.updated}\n label={t('authorBox.updatedAtTime')}\n expert={false}\n anonymous={entity.anonymous}\n />\n )}\n <AuthorBox\n userEntityRef={entity.author}\n time={entity.created}\n label={\n isAnswer(entity)\n ? t('authorBox.answeredAtTime')\n : t('authorBox.postedAtTime')\n }\n expert={isAnswer(entity) ? entity.expert : false}\n anonymous={entity.anonymous}\n />\n </Box>\n );\n};\n"],"names":[],"mappings":";;;;;;AAUA,SAAS,SAAS,MAAwC,EAAA;AACxD,EAAO,OAAA,QAAA,IAAY,UAAU,SAAa,IAAA,MAAA;AAC5C;AAEa,MAAA,WAAA,GAAc,CAAC,KAAwC,KAAA;AAClE,EAAA,MAAM,SAAS,KAAM,CAAA,MAAA;AACrB,EAAA,MAAM,EAAE,CAAA,EAAM,GAAA,iBAAA,CAAkB,kBAAkB,CAAA;AAElD,EACE,uBAAA,IAAA;AAAA,IAAC,GAAA;AAAA,IAAA;AAAA,MACC,OAAQ,EAAA,MAAA;AAAA,MACR,QAAU,EAAA,GAAA;AAAA,MACV,KAAO,EAAA,EAAE,GAAK,EAAA,KAAA,EAAO,gBAAgB,UAAW,EAAA;AAAA,MAChD,EAAI,EAAA,CAAA;AAAA,MAEH,QAAA,EAAA;AAAA,QAAO,MAAA,CAAA,OAAA,IAAW,OAAO,SACxB,oBAAA,GAAA;AAAA,UAAC,SAAA;AAAA,UAAA;AAAA,YACC,eAAe,MAAO,CAAA,SAAA;AAAA,YACtB,MAAM,MAAO,CAAA,OAAA;AAAA,YACb,KAAA,EAAO,EAAE,yBAAyB,CAAA;AAAA,YAClC,MAAQ,EAAA,KAAA;AAAA,YACR,WAAW,MAAO,CAAA;AAAA;AAAA,SACpB;AAAA,wBAEF,GAAA;AAAA,UAAC,SAAA;AAAA,UAAA;AAAA,YACC,eAAe,MAAO,CAAA,MAAA;AAAA,YACtB,MAAM,MAAO,CAAA,OAAA;AAAA,YACb,KAAA,EACE,SAAS,MAAM,CAAA,GACX,EAAE,0BAA0B,CAAA,GAC5B,EAAE,wBAAwB,CAAA;AAAA,YAEhC,MAAQ,EAAA,QAAA,CAAS,MAAM,CAAA,GAAI,OAAO,MAAS,GAAA,KAAA;AAAA,YAC3C,WAAW,MAAO,CAAA;AAAA;AAAA;AACpB;AAAA;AAAA,GACF;AAEJ;;;;"}
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"frontend",
|
|
8
8
|
"backstage.io"
|
|
9
9
|
],
|
|
10
|
-
"version": "3.33.
|
|
10
|
+
"version": "3.33.3",
|
|
11
11
|
"main": "dist/index.esm.js",
|
|
12
12
|
"types": "dist/index.d.ts",
|
|
13
13
|
"prepublishOnly": "yarn tsc && yarn build",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"@backstage/plugin-permission-common": "^0.9.1",
|
|
58
58
|
"@backstage/plugin-permission-react": "^0.4.36",
|
|
59
59
|
"@backstage/plugin-signals-react": "^0.0.15",
|
|
60
|
-
"@drodil/backstage-plugin-qeta-common": "^3.33.
|
|
60
|
+
"@drodil/backstage-plugin-qeta-common": "^3.33.3",
|
|
61
61
|
"@jsdevtools/rehype-toc": "^3.0.2",
|
|
62
62
|
"@material-ui/core": "^4.12.2",
|
|
63
63
|
"@material-ui/icons": "^4.11.3",
|