@drodil/backstage-plugin-qeta-react 3.0.0 → 3.1.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.
- package/dist/components/AnswerCard/AnswerCard.esm.js +1 -1
- package/dist/components/AnswerCard/AnswerCard.esm.js.map +1 -1
- package/dist/components/ArticleContent/ArticleButtons.esm.js +26 -22
- package/dist/components/ArticleContent/ArticleButtons.esm.js.map +1 -1
- package/dist/components/ArticleContent/ArticleContent.esm.js +29 -26
- package/dist/components/ArticleContent/ArticleContent.esm.js.map +1 -1
- package/dist/components/Buttons/EntityFollowButton.esm.js +2 -2
- package/dist/components/Buttons/EntityFollowButton.esm.js.map +1 -1
- package/dist/components/Buttons/LinkButton.esm.js +2 -1
- package/dist/components/Buttons/LinkButton.esm.js.map +1 -1
- package/dist/components/Buttons/VoteButtons.esm.js +2 -1
- package/dist/components/Buttons/VoteButtons.esm.js.map +1 -1
- package/dist/components/CollectionCard/CollectionCard.esm.js +4 -4
- package/dist/components/CollectionCard/CollectionCard.esm.js.map +1 -1
- package/dist/components/CollectionForm/CollectionForm.esm.js +3 -23
- package/dist/components/CollectionForm/CollectionForm.esm.js.map +1 -1
- package/dist/components/CommentSection/CommentList.esm.js +2 -9
- package/dist/components/CommentSection/CommentList.esm.js.map +1 -1
- package/dist/components/EntitiesGrid/EntitiesGridItem.esm.js +2 -2
- package/dist/components/EntitiesGrid/EntitiesGridItem.esm.js.map +1 -1
- package/dist/components/LeftMenu/LeftMenu.esm.js +128 -0
- package/dist/components/LeftMenu/LeftMenu.esm.js.map +1 -0
- package/dist/components/LeftMenu/LeftMenuButton.esm.js +75 -0
- package/dist/components/LeftMenu/LeftMenuButton.esm.js.map +1 -0
- package/dist/components/MarkdownEditor/MarkdownEditor.esm.js +64 -3
- package/dist/components/MarkdownEditor/MarkdownEditor.esm.js.map +1 -1
- package/dist/components/MarkdownRenderer/MarkdownRenderer.esm.js.map +1 -1
- package/dist/components/PostsContainer/PostListItem.esm.js +1 -2
- package/dist/components/PostsContainer/PostListItem.esm.js.map +1 -1
- package/dist/components/QuestionCard/QuestionCard.esm.js +1 -7
- package/dist/components/QuestionCard/QuestionCard.esm.js.map +1 -1
- package/dist/components/StatsChart/StatsChart.esm.js +125 -92
- package/dist/components/StatsChart/StatsChart.esm.js.map +1 -1
- package/dist/components/TagsGrid/TagGridItem.esm.js +16 -5
- package/dist/components/TagsGrid/TagGridItem.esm.js.map +1 -1
- package/dist/components/TagsGrid/TagsGrid.esm.js +6 -2
- package/dist/components/TagsGrid/TagsGrid.esm.js.map +1 -1
- package/dist/index.d.ts +37 -3
- package/dist/index.esm.js +2 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/utils/hooks.esm.js +148 -220
- package/dist/utils/hooks.esm.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ import * as react_use_lib_useAsyncFn from 'react-use/lib/useAsyncFn';
|
|
|
7
7
|
import * as _backstage_core_plugin_api_alpha from '@backstage/core-plugin-api/alpha';
|
|
8
8
|
import { LinkProps } from '@backstage/core-components';
|
|
9
9
|
import { SvgIconProps } from '@material-ui/core';
|
|
10
|
+
import { Overrides } from '@material-ui/core/styles/overrides';
|
|
11
|
+
import { StyleRules } from '@material-ui/core/styles/withStyles';
|
|
10
12
|
|
|
11
13
|
declare const qetaRouteRef: _backstage_core_plugin_api.RouteRef<undefined>;
|
|
12
14
|
declare const askRouteRef: _backstage_core_plugin_api.SubRouteRef<undefined>;
|
|
@@ -371,7 +373,7 @@ declare function useQetaApi<T>(f: (api: QetaApi) => Promise<T>, deps?: any[]): {
|
|
|
371
373
|
value: T;
|
|
372
374
|
};
|
|
373
375
|
declare function useIdentityApi<T>(f: (api: IdentityApi) => Promise<T>, deps?: any[]): react_use_lib_useAsyncFn.AsyncState<T>;
|
|
374
|
-
declare const useStyles: (props?: any) => _material_ui_styles.ClassNameMap<"deleteModal" | "
|
|
376
|
+
declare const useStyles: (props?: any) => _material_ui_styles.ClassNameMap<"deleteModal" | "filterPanel" | "headerImage" | "marginLeft" | "marginRight" | "successColor" | "questionDivider" | "questionCard" | "questionCardVote" | "questionCardContent" | "questionListItem" | "questionListItemStats" | "questionListItemContent" | "questionListItemAuthor" | "questionListItemAvatar" | "answerCardContent" | "questionCardAuthor" | "questionListPagination" | "postButton" | "questionsPerPageInput" | "questionsPerPage" | "postHighlightListContainer" | "postHighlightList" | "questionCardMetadata" | "questionCardActions" | "noPadding" | "authorLink" | "highlight" | "@keyframes highlight" | "dateFilter">;
|
|
375
377
|
|
|
376
378
|
declare const PostsContainer: (props: PaginatedPostsProps) => React.JSX.Element;
|
|
377
379
|
|
|
@@ -472,6 +474,7 @@ declare const PostHighlightList: (props: {
|
|
|
472
474
|
postType?: PostType;
|
|
473
475
|
}) => React.JSX.Element;
|
|
474
476
|
|
|
477
|
+
type QetaMarkdownContentClassKey = 'markdown';
|
|
475
478
|
declare const MarkdownRenderer: (props: {
|
|
476
479
|
content: string;
|
|
477
480
|
className?: string;
|
|
@@ -537,6 +540,7 @@ declare const QuestionsTable: (props: {
|
|
|
537
540
|
quickFilter?: QuickFilterType;
|
|
538
541
|
}) => React.JSX.Element;
|
|
539
542
|
|
|
543
|
+
type QetaStatsChartClassKey = 'tooltipLabel' | 'tooltipWrapper' | 'xAxis' | 'lineChart' | 'barChart';
|
|
540
544
|
declare const StatsChart: (props: {
|
|
541
545
|
data: GlobalStat[] | UserStat[];
|
|
542
546
|
}) => React.JSX.Element;
|
|
@@ -561,10 +565,11 @@ declare const UsersGrid: () => React.JSX.Element;
|
|
|
561
565
|
|
|
562
566
|
declare const PostsGrid: (props: PaginatedPostsProps) => React.JSX.Element;
|
|
563
567
|
|
|
568
|
+
type QetaArticleContentClassKey = 'content' | 'headerImage' | 'commentSection';
|
|
564
569
|
declare const ArticleContent: (props: {
|
|
565
570
|
post: PostResponse;
|
|
566
571
|
views: number;
|
|
567
|
-
}) => React.JSX.Element;
|
|
572
|
+
}) => React.JSX.Element | null;
|
|
568
573
|
|
|
569
574
|
type CollectionFormProps = {
|
|
570
575
|
id?: string;
|
|
@@ -578,4 +583,33 @@ declare const CollectionCard: (props: {
|
|
|
578
583
|
collection: Collection;
|
|
579
584
|
}) => React.JSX.Element;
|
|
580
585
|
|
|
581
|
-
|
|
586
|
+
type QetaLeftMenuClassKey = 'leftMenu' | 'inPopup' | 'outsidePopup' | 'selectedMenuItem' | 'nonSelectedMenuItem' | 'menuIcon';
|
|
587
|
+
declare const LeftMenu: (props: {
|
|
588
|
+
onKeyDown?: (event: React.KeyboardEvent) => void;
|
|
589
|
+
autoFocusItem?: boolean;
|
|
590
|
+
onClick?: (event: React.MouseEvent<EventTarget>) => void;
|
|
591
|
+
inPopup?: boolean;
|
|
592
|
+
}) => React.JSX.Element;
|
|
593
|
+
|
|
594
|
+
declare const LeftMenuButton: () => React.JSX.Element;
|
|
595
|
+
|
|
596
|
+
type QetaVoteButtonsClassKey = 'qetaCorrectAnswerSelected' | 'qetaCorrectAnswer' | 'voteButtonContainer';
|
|
597
|
+
|
|
598
|
+
type QetaArticleButtonsClassKey = 'container' | 'scoreText';
|
|
599
|
+
|
|
600
|
+
type QetaMarkdownEditorClassKey = 'markdownEditor' | 'markdownEditorError' | 'markdownPreview';
|
|
601
|
+
|
|
602
|
+
type QetaComponentsNameToClassKey = {
|
|
603
|
+
QetaLeftMenu: QetaLeftMenuClassKey;
|
|
604
|
+
QetaArticleButtons: QetaArticleButtonsClassKey;
|
|
605
|
+
QetaMarkdownContent: QetaMarkdownContentClassKey;
|
|
606
|
+
QetaArticle: QetaArticleContentClassKey;
|
|
607
|
+
QetaVoteButtons: QetaVoteButtonsClassKey;
|
|
608
|
+
QetaStatsChart: QetaStatsChartClassKey;
|
|
609
|
+
QetaMarkdownEditor: QetaMarkdownEditorClassKey;
|
|
610
|
+
};
|
|
611
|
+
type QetaOverrides = Overrides & {
|
|
612
|
+
[Name in keyof QetaComponentsNameToClassKey]?: Partial<StyleRules<QetaComponentsNameToClassKey[Name]>>;
|
|
613
|
+
};
|
|
614
|
+
|
|
615
|
+
export { AddToCollectionButton, AnswerCard, AnswerForm, AnswerList, AnswerListItem, AnswersContainer, ArticleContent, AskQuestionButton, AuthorLink, BackToArticlesButton, BackToCollectionsButton, BackToQuestionsButton, CollectionCard, CollectionForm, CollectionsGrid, CreateCollectionButton, DeleteModal, EntitiesGrid, EntityFollowButton, FilterPanel, FollowedEntitiesList, FollowedTagsList, ImpactCard, LeftMenu, LeftMenuButton, MarkdownRenderer, PostForm, PostHighlightList, PostList, PostListItem, PostsCard, PostsContainer, PostsGrid, type QetaLeftMenuClassKey, type QetaOverrides, QuestionCard, QuestionsTable, RelativeTimeWithTooltip, StatsChart, SummaryStatsGrid, TagFollowButton, TagsGrid, TopRankingUsers, TrophyIcon, UpdatedByLink, UserLink, UsersGrid, WriteArticleButton, articleRouteRef, articlesRouteRef, askRouteRef, collectionCreateRouteRef, collectionEditRouteRef, collectionRouteRef, collectionsRouteRef, editArticleRouteRef, editQuestionRouteRef, entitiesRouteRef, entityRouteRef, favoriteQuestionsRouteRef, qetaApiRef, qetaRouteRef, questionRouteRef, questionsRouteRef, statisticsRouteRef, tagRouteRef, tagsRouteRef, useIdentityApi, useQetaApi, useStyles, useTranslation, userRouteRef, usersRouteRef, writeRouteRef };
|
package/dist/index.esm.js
CHANGED
|
@@ -42,5 +42,7 @@ export { ArticleContent } from './components/ArticleContent/ArticleContent.esm.j
|
|
|
42
42
|
export { CollectionForm } from './components/CollectionForm/CollectionForm.esm.js';
|
|
43
43
|
export { CollectionsGrid } from './components/CollectionsGrid/CollectionsGrid.esm.js';
|
|
44
44
|
export { CollectionCard } from './components/CollectionCard/CollectionCard.esm.js';
|
|
45
|
+
export { LeftMenu } from './components/LeftMenu/LeftMenu.esm.js';
|
|
46
|
+
export { LeftMenuButton } from './components/LeftMenu/LeftMenuButton.esm.js';
|
|
45
47
|
export { useIdentityApi, useQetaApi, useStyles, useTranslation } from './utils/hooks.esm.js';
|
|
46
48
|
//# sourceMappingURL=index.esm.js.map
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/utils/hooks.esm.js
CHANGED
|
@@ -310,241 +310,169 @@ function useIsDarkTheme() {
|
|
|
310
310
|
const theme = useMemo(() => appThemeApi.getActiveThemeId(), [appThemeApi]);
|
|
311
311
|
return Boolean(themes.find((t) => t.id === theme)?.variant === "dark");
|
|
312
312
|
}
|
|
313
|
-
const useStyles = makeStyles(
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
color: theme.palette.primary.contrastText,
|
|
321
|
-
backgroundColor: theme.palette.primary.light,
|
|
322
|
-
borderRadius: theme.shape.borderRadius,
|
|
323
|
-
"&:hover": {
|
|
324
|
-
backgroundColor: theme.palette.primary.dark
|
|
313
|
+
const useStyles = makeStyles(
|
|
314
|
+
(theme) => {
|
|
315
|
+
return {
|
|
316
|
+
headerImage: {
|
|
317
|
+
width: "100%",
|
|
318
|
+
height: "250px",
|
|
319
|
+
objectFit: "cover"
|
|
325
320
|
},
|
|
326
|
-
|
|
327
|
-
color: theme.palette.
|
|
328
|
-
}
|
|
329
|
-
},
|
|
330
|
-
nonSelectedMenuItem: {
|
|
331
|
-
backgroundColor: "initial"
|
|
332
|
-
},
|
|
333
|
-
headerImage: {
|
|
334
|
-
width: "100%",
|
|
335
|
-
height: "250px",
|
|
336
|
-
objectFit: "cover"
|
|
337
|
-
},
|
|
338
|
-
markdownEditor: {
|
|
339
|
-
backgroundColor: "initial",
|
|
340
|
-
color: theme.palette.text.primary,
|
|
341
|
-
border: `1px solid ${theme.palette.action.disabled}`,
|
|
342
|
-
borderRadius: theme.shape.borderRadius,
|
|
343
|
-
"&:hover": {
|
|
344
|
-
borderColor: theme.palette.action.active
|
|
321
|
+
successColor: {
|
|
322
|
+
color: theme.palette.success.main
|
|
345
323
|
},
|
|
346
|
-
|
|
347
|
-
|
|
324
|
+
questionDivider: {
|
|
325
|
+
marginTop: theme.spacing(2),
|
|
326
|
+
marginBottom: theme.spacing(2)
|
|
348
327
|
},
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
borderBottom: `1px solid ${theme.palette.action.selected}`,
|
|
353
|
-
"& .mde-tabs button, .mde-header-item > button": {
|
|
354
|
-
color: `${theme.palette.text.primary} !important`
|
|
355
|
-
}
|
|
328
|
+
questionCard: {
|
|
329
|
+
marginBottom: theme.spacing(1),
|
|
330
|
+
position: "relative"
|
|
356
331
|
},
|
|
357
|
-
|
|
358
|
-
|
|
332
|
+
questionCardVote: {
|
|
333
|
+
textAlign: "center",
|
|
334
|
+
width: "32px",
|
|
335
|
+
marginRight: "20px",
|
|
336
|
+
marginLeft: "5px",
|
|
337
|
+
display: "inline-block",
|
|
338
|
+
verticalAlign: "top"
|
|
359
339
|
},
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
fontFamily: theme.typography.body1.fontFamily,
|
|
363
|
-
lineHeight: theme.typography.body1.lineHeight
|
|
340
|
+
questionCardContent: {
|
|
341
|
+
minHeight: "160px"
|
|
364
342
|
},
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
outline: "none"
|
|
343
|
+
questionListItem: {
|
|
344
|
+
padding: "0.7rem",
|
|
345
|
+
paddingBottom: "1.4rem"
|
|
369
346
|
},
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
border: `1px solid ${theme.palette.error.main} !important`
|
|
377
|
-
},
|
|
378
|
-
markdownContent: {
|
|
379
|
-
"& *": {
|
|
380
|
-
wordBreak: "break-word"
|
|
347
|
+
questionListItemStats: {
|
|
348
|
+
width: "70px",
|
|
349
|
+
textAlign: "right",
|
|
350
|
+
marginRight: "5px",
|
|
351
|
+
display: "inline-block",
|
|
352
|
+
verticalAlign: "top"
|
|
381
353
|
},
|
|
382
|
-
|
|
383
|
-
display: "inline-block"
|
|
354
|
+
questionListItemContent: {
|
|
355
|
+
display: "inline-block",
|
|
356
|
+
width: "calc(100% - 80px)"
|
|
384
357
|
},
|
|
385
|
-
|
|
386
|
-
|
|
358
|
+
questionListItemAuthor: {
|
|
359
|
+
display: "inline",
|
|
360
|
+
float: "right"
|
|
387
361
|
},
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
questionCardContent: {
|
|
412
|
-
minHeight: "160px"
|
|
413
|
-
},
|
|
414
|
-
questionListItem: {
|
|
415
|
-
padding: "0.7rem",
|
|
416
|
-
paddingBottom: "1.4rem"
|
|
417
|
-
},
|
|
418
|
-
questionListItemStats: {
|
|
419
|
-
width: "70px",
|
|
420
|
-
textAlign: "right",
|
|
421
|
-
marginRight: "5px",
|
|
422
|
-
display: "inline-block",
|
|
423
|
-
verticalAlign: "top"
|
|
424
|
-
},
|
|
425
|
-
questionListItemContent: {
|
|
426
|
-
display: "inline-block",
|
|
427
|
-
width: "calc(100% - 80px)"
|
|
428
|
-
},
|
|
429
|
-
questionListItemAuthor: {
|
|
430
|
-
display: "inline",
|
|
431
|
-
float: "right"
|
|
432
|
-
},
|
|
433
|
-
questionListItemAvatar: {
|
|
434
|
-
display: "inline-flex !important",
|
|
435
|
-
marginRight: "0.25rem",
|
|
436
|
-
fontSize: "1rem",
|
|
437
|
-
maxWidth: "1rem",
|
|
438
|
-
maxHeight: "1rem"
|
|
439
|
-
},
|
|
440
|
-
answerCardContent: {
|
|
441
|
-
display: "inline-block",
|
|
442
|
-
width: "calc(100% - 70px)"
|
|
443
|
-
},
|
|
444
|
-
questionCardAuthor: {
|
|
445
|
-
padding: theme.spacing(1),
|
|
446
|
-
float: "right",
|
|
447
|
-
maxWidth: "200px",
|
|
448
|
-
border: `1px solid ${theme.palette.action.selected}`,
|
|
449
|
-
"& .avatar": {
|
|
450
|
-
width: theme.spacing(3),
|
|
451
|
-
height: theme.spacing(3),
|
|
452
|
-
fontSize: "1rem"
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
questionListPagination: {
|
|
456
|
-
marginTop: theme.spacing(2)
|
|
457
|
-
},
|
|
458
|
-
postButton: {
|
|
459
|
-
marginTop: theme.spacing(1),
|
|
460
|
-
marginBottom: theme.spacing(1)
|
|
461
|
-
},
|
|
462
|
-
questionsPerPageInput: {
|
|
463
|
-
paddingTop: "10px"
|
|
464
|
-
},
|
|
465
|
-
questionsPerPage: {
|
|
466
|
-
marginRight: theme.spacing(3)
|
|
467
|
-
},
|
|
468
|
-
postHighlightListContainer: {
|
|
469
|
-
width: "100%",
|
|
470
|
-
backgroundColor: theme.palette.background.paper,
|
|
471
|
-
border: `1px solid ${theme.palette.action.selected}`,
|
|
472
|
-
borderRadius: theme.shape.borderRadius,
|
|
473
|
-
"&:not(:first-child)": {
|
|
362
|
+
questionListItemAvatar: {
|
|
363
|
+
display: "inline-flex !important",
|
|
364
|
+
marginRight: "0.25rem",
|
|
365
|
+
fontSize: "1rem",
|
|
366
|
+
maxWidth: "1rem",
|
|
367
|
+
maxHeight: "1rem"
|
|
368
|
+
},
|
|
369
|
+
answerCardContent: {
|
|
370
|
+
display: "inline-block",
|
|
371
|
+
width: "calc(100% - 70px)"
|
|
372
|
+
},
|
|
373
|
+
questionCardAuthor: {
|
|
374
|
+
padding: theme.spacing(1),
|
|
375
|
+
float: "right",
|
|
376
|
+
maxWidth: "200px",
|
|
377
|
+
border: `1px solid ${theme.palette.action.selected}`,
|
|
378
|
+
"& .avatar": {
|
|
379
|
+
width: theme.spacing(3),
|
|
380
|
+
height: theme.spacing(3),
|
|
381
|
+
fontSize: "1rem"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
questionListPagination: {
|
|
474
385
|
marginTop: theme.spacing(2)
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
386
|
+
},
|
|
387
|
+
postButton: {
|
|
388
|
+
marginTop: theme.spacing(1),
|
|
389
|
+
marginBottom: theme.spacing(1)
|
|
390
|
+
},
|
|
391
|
+
questionsPerPageInput: {
|
|
392
|
+
paddingTop: "10px"
|
|
393
|
+
},
|
|
394
|
+
questionsPerPage: {
|
|
395
|
+
marginRight: theme.spacing(3)
|
|
396
|
+
},
|
|
397
|
+
postHighlightListContainer: {
|
|
398
|
+
width: "100%",
|
|
399
|
+
backgroundColor: theme.palette.background.paper,
|
|
400
|
+
border: `1px solid ${theme.palette.action.selected}`,
|
|
401
|
+
borderRadius: theme.shape.borderRadius,
|
|
402
|
+
"&:not(:first-child)": {
|
|
403
|
+
marginTop: theme.spacing(2)
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
postHighlightList: {
|
|
407
|
+
paddingBottom: "0px",
|
|
408
|
+
"& p": {
|
|
409
|
+
marginTop: "0",
|
|
410
|
+
marginBottom: "0"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
filterPanel: {
|
|
414
|
+
border: `1px solid ${theme.palette.action.selected}`,
|
|
415
|
+
borderRadius: theme.shape.borderRadius,
|
|
416
|
+
padding: theme.spacing(3)
|
|
417
|
+
},
|
|
418
|
+
questionCardMetadata: {
|
|
419
|
+
marginTop: theme.spacing(3)
|
|
420
|
+
},
|
|
421
|
+
marginRight: {
|
|
501
422
|
marginRight: theme.spacing(1)
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
menuIcon: {
|
|
508
|
-
minWidth: "26px"
|
|
509
|
-
},
|
|
510
|
-
deleteModal: {
|
|
511
|
-
position: "absolute",
|
|
512
|
-
top: "20%",
|
|
513
|
-
left: "50%",
|
|
514
|
-
transform: "translate(-50%, -50%)",
|
|
515
|
-
width: 400,
|
|
516
|
-
backgroundColor: theme.palette.background.default,
|
|
517
|
-
border: `1px solid ${theme.palette.action.selected}`,
|
|
518
|
-
borderRadius: theme.shape.borderRadius,
|
|
519
|
-
padding: theme.spacing(2),
|
|
520
|
-
"& button": {
|
|
423
|
+
},
|
|
424
|
+
marginLeft: {
|
|
425
|
+
marginLeft: theme.spacing(1)
|
|
426
|
+
},
|
|
427
|
+
questionCardActions: {
|
|
521
428
|
marginTop: theme.spacing(2),
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
429
|
+
"& a": {
|
|
430
|
+
marginRight: theme.spacing(1)
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
noPadding: {
|
|
434
|
+
padding: `0 !important`
|
|
435
|
+
},
|
|
436
|
+
deleteModal: {
|
|
437
|
+
position: "absolute",
|
|
438
|
+
top: "20%",
|
|
439
|
+
left: "50%",
|
|
440
|
+
transform: "translate(-50%, -50%)",
|
|
441
|
+
width: 400,
|
|
442
|
+
backgroundColor: theme.palette.background.default,
|
|
443
|
+
border: `1px solid ${theme.palette.action.selected}`,
|
|
444
|
+
borderRadius: theme.shape.borderRadius,
|
|
445
|
+
padding: theme.spacing(2),
|
|
446
|
+
"& button": {
|
|
447
|
+
marginTop: theme.spacing(2),
|
|
448
|
+
float: "right"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
authorLink: {
|
|
452
|
+
textOverflow: "ellipsis",
|
|
453
|
+
overflow: "hidden",
|
|
454
|
+
whiteSpace: "nowrap"
|
|
536
455
|
},
|
|
537
|
-
|
|
538
|
-
|
|
456
|
+
highlight: {
|
|
457
|
+
animation: "$highlight 2s"
|
|
458
|
+
},
|
|
459
|
+
"@keyframes highlight": {
|
|
460
|
+
"0%": {
|
|
461
|
+
boxShadow: `0px 0px 0px 3px ${theme.palette.secondary.light}`
|
|
462
|
+
},
|
|
463
|
+
"100%": {
|
|
464
|
+
boxShadow: "none"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
dateFilter: {
|
|
468
|
+
minWidth: "200px",
|
|
469
|
+
marginTop: theme.spacing(2),
|
|
470
|
+
marginBottom: theme.spacing(2)
|
|
539
471
|
}
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
marginBottom: theme.spacing(2)
|
|
545
|
-
}
|
|
546
|
-
};
|
|
547
|
-
});
|
|
472
|
+
};
|
|
473
|
+
},
|
|
474
|
+
{ name: "Qeta" }
|
|
475
|
+
);
|
|
548
476
|
const useBaseUrl = () => {
|
|
549
477
|
try {
|
|
550
478
|
const config = useApi(configApiRef);
|