Implement share and export components

This commit is contained in:
adilallo
2026-04-29 22:27:46 -06:00
parent a31a36c926
commit a37a72c71d
58 changed files with 3153 additions and 117 deletions
@@ -1,4 +1,18 @@
{
"toastTitle": "This is what folks see when you share your CommunityRule",
"toastDescription": "Your group can use this document as an operating manual."
"toastDescription": "Your group can use this document as an operating manual.",
"shareNoRuleTitle": "Nothing to share yet",
"shareNoRuleDescription": "Open this page from your profile after publishing, or publish a rule first.",
"shareLinkCopiedTitle": "Link copied",
"shareLinkCopiedDescription": "Paste the link anywhere to share your public CommunityRule.",
"shareCopyFailedTitle": "Could not copy link",
"shareCopyFailedDescription": "Copy the address from your browser bar, or try again.",
"shareSlackFallbackTitle": "Link copied",
"shareSlackFallbackDescription": "Slack didn't open in a new tab. Paste this link into Slack to share it.",
"shareDiscordPasteTitle": "Link copied",
"shareDiscordPasteDescription": "Paste the link into a channel or direct message in Discord.",
"exportFailedTitle": "Could not export",
"exportFailedDescription": "Something went wrong. Refresh the page and try again.",
"exportEmptyDocumentTitle": "Could not export",
"exportEmptyDocumentDescription": "Your rule document is not available to export yet."
}
+6
View File
@@ -21,6 +21,8 @@ import profile from "./pages/profile.json";
import notFoundPage from "./pages/notFoundPage.json";
import navigation from "./navigation.json";
import metadata from "./metadata.json";
import modalsShare from "./modals/share.json";
import modalsPopoverExport from "./modals/popoverExport.json";
// create stage 1: community
import createInformational from "./create/community/informational.json";
@@ -106,4 +108,8 @@ export default {
},
navigation,
metadata,
modals: {
share: modalsShare,
popoverExport: modalsPopoverExport,
},
};
+6
View File
@@ -0,0 +1,6 @@
{
"menuAriaLabel": "Export format",
"downloadPdf": "Download PDF",
"downloadCsv": "Download CSV",
"downloadMarkdown": "Download Markdown"
}
+12
View File
@@ -0,0 +1,12 @@
{
"title": "Share this CommunityRule",
"description": "Anyone with the link can view this rule.",
"copyLink": "Copy link",
"signal": "Signal",
"slack": "Slack",
"discord": "Discord",
"email": "Email",
"done": "Done",
"closeDialogAriaLabel": "Close share dialog",
"moreOptionsAriaLabel": "More share options"
}