Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: modify the text content of share menu #8026

Merged
merged 1 commit into from
Sep 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,16 @@ export const DoneIconStyle = style({
export const exportItemStyle = style({
padding: '4px',
transition: 'all 0.3s',
gap: '0px',
});
globalStyle(`${exportItemStyle} > div:first-child`, {
alignItems: 'center',
});
globalStyle(`${exportItemStyle} svg`, {
width: '16px',
height: '16px',
});

export const copyLinkContainerStyle = style({
padding: '4px',
display: 'flex',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const ShareExport = () => {
<div className={styles.descriptionStyle}>
{t['com.affine.share-menu.ShareViaExportDescription']()}
</div>
<div>
<div className={styles.exportContainerStyle}>
<ExportMenuItems
exportHandler={exportHandler}
className={styles.exportItemStyle}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
ExportToHtmlIcon,
ExportToMarkdownIcon,
ExportToPngIcon,
FileIcon,
PrinterIcon,
} from '@blocksuite/icons/rc';
import type { ReactNode } from 'react';
import { useCallback } from 'react';
Expand Down Expand Up @@ -57,7 +57,7 @@ export const PrintMenuItems = ({
onSelect={() => exportHandler('pdf')}
className={className}
type="pdf"
icon={<FileIcon />}
icon={<PrinterIcon />}
label={t['com.affine.export.print']()}
/>
);
Expand Down
14 changes: 7 additions & 7 deletions packages/frontend/i18n/src/resources/en.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{

Check warning on line 1 in packages/frontend/i18n/src/resources/en.json

View workflow job for this annotation

GitHub Actions / main

Inconsistent keys

404 - Page Not Found, 404.back, Add Filter, Add Workspace, Add to Favorites, Added Successfully, Added to Favorites, App Version, Appearance Settings, Append to Daily Note, Available Offline, Back Home, Back to Quick Search, Check Keyboard Shortcuts quickly, Check Our Docs, Client Border Style, Cloud Workspace, Contact with us, Create Or Import, Created Successfully, DB_FILE_INVALID, Default Location, Delete Member?, Delete Workspace, Disable Public Link, Disable Public Link ?, Disable Public Sharing, Display Language, Early Access Stage, Edit Filter, Editor Version, Elbowed Connector, Expand/Collapse Sidebar, Font Style, Force Sign Out, Full width Layout, Go Back, Go Forward, Group as Database, Help and Feedback, Info of legal, Invite Members, Invite Members Message, Joined Workspace, Leave Workspace, Local Workspace, Markdown Syntax, Move Down, Move Up, Move to Trash, Moved to Trash, My Workspaces, Name Your Workspace, NativeTitleBar, Navigation Path, New Page, New Workspace, Official Website, Open Workspace Settings, Published to Web, Quick Search, Quick search placeholder, RFP, Remove from Pivots, Save As New Collection, Save as New Collection, Select All, Set a Workspace name, Shared Pages, Shared Pages In Public Workspace Description, Sign in and Enable, Start Week On Monday, Storage Folder, Storage and Export, Straight Connector, Untitled Collection, Update Collection, View Navigation Path, Visit Workspace, Wait for Sync, Workspace Avatar, Workspace Icon, Workspace Name, Workspace Not Found, Workspace Owner, Workspace Profile, Workspace Settings, Workspace Settings with name, Workspace Type, com.affine.aboutAFFiNE.checkUpdate.button.check, com.affine.aboutAFFiNE.checkUpdate.button.download, com.affine.aboutAFFiNE.checkUpdate.button.restart, com.affine.aboutAFFiNE.contact.community, com.affine.aboutAFFiNE.contact.title, com.affine.aboutAFFiNE.contact.website, com.affine.aboutAFFiNE.legal.tos, com.affine.aboutAFFiNE.version.app, com.affine.aboutAFFiNE.version.editor.title, com.affine.ai-onboarding.edgeless.get-started, com.affine.ai-onboarding.edgeless.purchase, com.affine.ai-onboarding.general.3.title, com.affine.ai-onboarding.general.4.title, com.affine.ai-onboarding.general.get-started, com.affine.ai-onboarding.general.purchase, com.affine.ai-onboarding.general.skip, com.affine.ai-onboarding.general.try-for-free, com.affine.ai-onboarding.local.action-get-started, com.affine.ai-onboarding.local.action-learn-more, com.affine.ai.login-required.dialog-title, com.affine.all-pages.header, com.affine.appearanceSettings.language.title, com.affine.appearanceSettings.startWeek.title, com.affine.appearanceSettings.subtitle, com.affine.appearanceSettings.title, com.affine.appearanceSettings.windowFrame.NativeTitleBar, com.affine.auth.create.count, com.affine.auth.password.set-failed, com.affine.auth.reset.password, com.affine.auth.sign.condition, com.affine.auth.sign.email.continue, com.affine.auth.sign.policy, com.affine.cmdk.affine.category.affine.layout, com.affine.cmdk.affine.category.editor.edgeless, com.affine.cmdk.affine.category.editor.insert-object, com.affine.cmdk.affine.client-border-style.to, com.affine.cmdk.affine.color-mode.to, com.affine.cmdk.affine.color-scheme.to, com.affine.cmdk.affine.contact-us, com.affine.cmdk.affine.create-new-doc-and-insert, com.affine.cmdk.affine.create-new-edgeless-as, com.affine.cmdk.affine.create-new-page-as, com.affine.cmdk.affine.display-language.to, com.affine.cmdk.affine.editor.add-to-favourites, com.affine.cmdk.affine.editor.edgeless.presentation-start, com.affine.cmdk.affine.editor.remove-from-favourites, com.affine.cmdk.affine.editor.restore-from-trash, com.affine.cmdk.affine.editor.reveal-page-history-modal, com.affine.cmdk.affine.font-style.to, com.affine.cmdk.affine.full-width-layout.to, com.affine.cmdk.affine.getting-started, com.affine.cmdk.affine.import-workspace, com.affine.cmdk.affine.left-sidebar.collapse, com.affine.cmdk.affine.left-sidebar.expand, com.affine.cmdk.affine.navigation.goto-all-pages, com.affine.cmdk.affine.navigation.goto-edgeless-list, com.affine.cmd

Check notice on line 1 in packages/frontend/i18n/src/resources/en.json

View workflow job for this annotation

GitHub Actions / main

New keys

Get in touch! Join our communities., It takes up little space on your device., It takes up more space on your device., com.affine.auth.open.affine.download-app, com.affine.auth.open.affine.prompt, com.affine.auth.open.affine.try-again, com.affine.auth.reset.password.message, com.affine.auth.reset.password.page.success, com.affine.auth.sent.change.email.hint, com.affine.auth.sent.reset.password.success.message, com.affine.auth.sent.set.password.hint, com.affine.auth.sent.set.password.success.message, com.affine.auth.set.password.save, com.affine.auth.sign.up.sent.email.subtitle, com.affine.auth.sign.up.success.title, com.affine.editCollection.rules.tips.highlight, com.affine.page-properties.add-property.menu.create, com.affine.page-properties.add-property.menu.header, com.affine.pageMode.all, com.affine.pageMode.edgeless, com.affine.pageMode.page, com.affine.setting.account.delete.message, com.affine.settings.appearance.border-style-description, com.affine.settings.appearance.start-week-description, com.affine.settings.email.action, com.affine.settings.password.action.change, com.affine.settings.password.action.set, com.affine.settings.password.message, com.affine.settings.profile.message, com.affine.settings.profile.placeholder, com.affine.settings.workspace.experimental-features, com.affine.settings.workspace.experimental-features.get-started, com.affine.settings.workspace.experimental-features.header.plugins, com.affine.settings.workspace.experimental-features.header.subtitle, com.affine.settings.workspace.experimental-features.prompt-disclaimer, com.affine.settings.workspace.experimental-features.prompt-header, com.affine.settings.workspace.experimental-features.prompt-warning, com.affine.settings.workspace.experimental-features.prompt-warning-title, com.affine.settings.workspace.preferences, com.affine.settings.workspace.properties, com.affine.settings.workspace.properties.add_property, com.affine.settings.workspace.properties.all, com.affine.settings.workspace.properties.delete-property, com.affine.settings.workspace.properties.doc, com.affine.settings.workspace.properties.doc_others, com.affine.settings.workspace.properties.edit-property, com.affine.settings.workspace.properties.header.subtitle, com.affine.settings.workspace.properties.header.title, com.affine.settings.workspace.properties.in-use, com.affine.settings.workspace.properties.set-as-required, com.affine.settings.workspace.properties.unused, com.affine.settings.workspace.storage.tip, com.affine.storage.maximum-tips.pro, com.affine.workspace.cloud.description

Check warning on line 1 in packages/frontend/i18n/src/resources/en.json

View workflow job for this annotation

GitHub Actions / main

Inconsistent keys

404 - Page Not Found, 404.back, Add Filter, Add Workspace, Add to Favorites, Added Successfully, Added to Favorites, App Version, Appearance Settings, Append to Daily Note, Available Offline, Back Home, Back to Quick Search, Check Keyboard Shortcuts quickly, Check Our Docs, Client Border Style, Cloud Workspace, Contact with us, Create Or Import, Created Successfully, DB_FILE_INVALID, Default Location, Delete Member?, Delete Workspace, Disable Public Link, Disable Public Link ?, Disable Public Sharing, Display Language, Early Access Stage, Edit Filter, Editor Version, Elbowed Connector, Expand/Collapse Sidebar, Export Shared Pages Description, Font Style, Force Sign Out, Full width Layout, Go Back, Go Forward, Group as Database, Help and Feedback, Info of legal, Invite Members, Invite Members Message, Joined Workspace, Leave Workspace, Local Workspace, Markdown Syntax, Move Down, Move Up, Move to Trash, Moved to Trash, My Workspaces, Name Your Workspace, NativeTitleBar, Navigation Path, New Page, New Workspace, Official Website, Open Workspace Settings, Published to Web, Quick Search, Quick search placeholder, RFP, Remove from Pivots, Save As New Collection, Save as New Collection, Select All, Set a Workspace name, Shared Pages, Shared Pages In Public Workspace Description, Sign in and Enable, Start Week On Monday, Storage Folder, Storage and Export, Straight Connector, Untitled Collection, Update Collection, View Navigation Path, Visit Workspace, Wait for Sync, Workspace Avatar, Workspace Icon, Workspace Name, Workspace Not Found, Workspace Owner, Workspace Profile, Workspace Settings, Workspace Settings with name, Workspace Type, com.affine.aboutAFFiNE.checkUpdate.button.check, com.affine.aboutAFFiNE.checkUpdate.button.download, com.affine.aboutAFFiNE.checkUpdate.button.restart, com.affine.aboutAFFiNE.contact.community, com.affine.aboutAFFiNE.contact.title, com.affine.aboutAFFiNE.contact.website, com.affine.aboutAFFiNE.legal.tos, com.affine.aboutAFFiNE.version.app, com.affine.aboutAFFiNE.version.editor.title, com.affine.ai-onboarding.edgeless.get-started, com.affine.ai-onboarding.edgeless.purchase, com.affine.ai-onboarding.general.3.title, com.affine.ai-onboarding.general.4.title, com.affine.ai-onboarding.general.get-started, com.affine.ai-onboarding.general.purchase, com.affine.ai-onboarding.general.skip, com.affine.ai-onboarding.general.try-for-free, com.affine.ai-onboarding.local.action-get-started, com.affine.ai-onboarding.local.action-learn-more, com.affine.ai.login-required.dialog-title, com.affine.all-pages.header, com.affine.appearanceSettings.language.title, com.affine.appearanceSettings.startWeek.title, com.affine.appearanceSettings.subtitle, com.affine.appearanceSettings.title, com.affine.appearanceSettings.windowFrame.NativeTitleBar, com.affine.auth.create.count, com.affine.auth.password.set-failed, com.affine.auth.reset.password, com.affine.auth.sign.condition, com.affine.auth.sign.email.continue, com.affine.auth.sign.policy, com.affine.cmdk.affine.category.affine.layout, com.affine.cmdk.affine.category.editor.edgeless, com.affine.cmdk.affine.category.editor.insert-object, com.affine.cmdk.affine.client-border-style.to, com.affine.cmdk.affine.color-mode.to, com.affine.cmdk.affine.color-scheme.to, com.affine.cmdk.affine.contact-us, com.affine.cmdk.affine.create-new-doc-and-insert, com.affine.cmdk.affine.create-new-edgeless-as, com.affine.cmdk.affine.create-new-page-as, com.affine.cmdk.affine.display-language.to, com.affine.cmdk.affine.editor.add-to-favourites, com.affine.cmdk.affine.editor.edgeless.presentation-start, com.affine.cmdk.affine.editor.remove-from-favourites, com.affine.cmdk.affine.editor.restore-from-trash, com.affine.cmdk.affine.editor.reveal-page-history-modal, com.affine.cmdk.affine.font-style.to, com.affine.cmdk.affine.full-width-layout.to, com.affine.cmdk.affine.getting-started, com.affine.cmdk.affine.import-workspace, com.affine.cmdk.affine.left-sidebar.collapse, com.affine.cmdk.affine.left-sidebar.expand, com.affine.cmdk.affine.navigation.goto-all-pages, com.affine.cmdk.affine.navigation.g

Check notice on line 1 in packages/frontend/i18n/src/resources/en.json

View workflow job for this annotation

GitHub Actions / main

New keys

Get in touch! Join our communities., It takes up little space on your device., It takes up more space on your device., com.affine.auth.open.affine.download-app, com.affine.auth.open.affine.prompt, com.affine.auth.open.affine.try-again, com.affine.auth.reset.password.message, com.affine.auth.reset.password.page.success, com.affine.auth.sent.change.email.hint, com.affine.auth.sent.reset.password.success.message, com.affine.auth.sent.set.password.hint, com.affine.auth.sent.set.password.success.message, com.affine.auth.set.password.save, com.affine.auth.sign.up.sent.email.subtitle, com.affine.auth.sign.up.success.title, com.affine.editCollection.rules.tips.highlight, com.affine.page-properties.add-property.menu.create, com.affine.page-properties.add-property.menu.header, com.affine.pageMode.all, com.affine.pageMode.edgeless, com.affine.pageMode.page, com.affine.setting.account.delete.message, com.affine.settings.appearance.border-style-description, com.affine.settings.appearance.start-week-description, com.affine.settings.email.action, com.affine.settings.password.action.change, com.affine.settings.password.action.set, com.affine.settings.password.message, com.affine.settings.profile.message, com.affine.settings.profile.placeholder, com.affine.settings.workspace.experimental-features, com.affine.settings.workspace.experimental-features.get-started, com.affine.settings.workspace.experimental-features.header.plugins, com.affine.settings.workspace.experimental-features.header.subtitle, com.affine.settings.workspace.experimental-features.prompt-disclaimer, com.affine.settings.workspace.experimental-features.prompt-header, com.affine.settings.workspace.experimental-features.prompt-warning, com.affine.settings.workspace.experimental-features.prompt-warning-title, com.affine.settings.workspace.preferences, com.affine.settings.workspace.properties, com.affine.settings.workspace.properties.add_property, com.affine.settings.workspace.properties.all, com.affine.settings.workspace.properties.delete-property, com.affine.settings.workspace.properties.doc, com.affine.settings.workspace.properties.doc_others, com.affine.settings.workspace.properties.edit-property, com.affine.settings.workspace.properties.header.subtitle, com.affine.settings.workspace.properties.header.title, com.affine.settings.workspace.properties.in-use, com.affine.settings.workspace.properties.set-as-required, com.affine.settings.workspace.properties.unused, com.affine.settings.workspace.storage.tip, com.affine.storage.maximum-tips.pro, com.affine.workspace.cloud.description
"404 - Page Not Found": "404 - Page not found",
"404.back": "Back to my Content",
"404.hint": "Sorry, you do not have access or this content does not exist...",
Expand Down Expand Up @@ -118,7 +118,7 @@
"Export": "Export",
"Export AFFiNE backup file": "Export AFFiNE backup file",
"Export Description": "You can export the entire Workspace data for backup, and the exported data can be re-imported.",
"Export Shared Pages Description": "Download a static copy of your page to share with others.",
"Export Shared Pages Description": "Download a static copy of your page to share with others",
"Export Workspace": "Export Workspace <1>{{workspace}}</1> is coming soon",
"Export failed": "Export failed",
"Export success": "Export success",
Expand Down Expand Up @@ -1374,19 +1374,19 @@
"com.affine.share-menu.ShareMode": "Share mode",
"com.affine.share-menu.SharePage": "Share doc",
"com.affine.share-menu.ShareViaExport": "Share via export",
"com.affine.share-menu.ShareViaExportDescription": "Download a static copy of your doc to share with others.",
"com.affine.share-menu.ShareViaPrintDescription": "Print a paper copy.",
"com.affine.share-menu.ShareViaExportDescription": "Download a static copy of your doc to share with others",
"com.affine.share-menu.ShareViaPrintDescription": "Print a paper copy",
"com.affine.share-menu.ShareWithLink": "Share with link",
"com.affine.share-menu.ShareWithLinkDescription": "Create a link you can easily share with anyone. The visitors will open your doc in the form od a document",
"com.affine.share-menu.SharedPage": "Shared doc",
"com.affine.share-menu.option.link.label": "Anyone with the link",
"com.affine.share-menu.option.link.readonly": "Read Only",
"com.affine.share-menu.option.link.readonly.description": "Anyone can access this link.",
"com.affine.share-menu.option.link.readonly.description": "Anyone can access this link",
"com.affine.share-menu.option.link.no-access": "No Access",
"com.affine.share-menu.option.link.no-access.description": "Only workspace members can access this link.",
"com.affine.share-menu.option.permission.label": "Members in Workspace",
"com.affine.share-menu.option.link.no-access.description": "Only workspace members can access this link",
"com.affine.share-menu.option.permission.label": "Members in workspace",
"com.affine.share-menu.option.permission.can-edit": "Can Edit",
"com.affine.share-menu.navigate.workspace": "Manage Workspace Members",
"com.affine.share-menu.navigate.workspace": "Manage workspace members",
"com.affine.share-menu.copy": "Copy Link",
"com.affine.share-menu.copy.page": "Copy Link to Page Mode",
"com.affine.share-menu.copy.edgeless": "Copy Link to Edgeless Mode",
Expand Down
Loading