mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-13 22:22:17 +00:00
1 line
8.5 KiB
Plaintext
1 line
8.5 KiB
Plaintext
{"version":3,"sources":["webpack:///app/javascript/tank/sources/git/git.pleroma.social/pleroma/mastofe/app/javascript/flavours/glitch/features/keyboard_shortcuts/index.js"],"names":["messages","defineMessages","heading","KeyboardShortcuts","connect","state","collapseEnabled","getIn","injectIntl","render","this","props","intl","multiColumn","bindToDocument","icon","formatMessage","className","id","defaultMessage","ImmutablePureComponent","PropTypes","object","isRequired","bool"],"mappings":"qPAQA,IAAMA,EAAWC,YAAe,CAC9BC,QAAQ,CAAD,uEASHC,EAFUC,mBAJQ,SAAAC,GAAK,MAAK,CAChCC,gBAAiBD,EAAME,MAAM,CAAC,iBAAkB,YAAa,e,GAI9DC,a,gHASCC,OAAA,WAAW,IAAD,EACuCC,KAAKC,MAA5CC,EADA,EACAA,KAAMN,EADN,EACMA,gBAAiBO,EADvB,EACuBA,YAE/B,OACE,YAAC,IAAD,CAAQC,gBAAiBD,EAAaE,KAAK,WAAWb,QAASU,EAAKI,cAAchB,EAASE,eAA3F,EACE,YAAC,IAAD,IACA,mBAAKe,UAAU,4DAAf,EACE,8BACE,8BACE,2BACE,2BAAI,YAAC,IAAD,CAAkBC,GAAG,4BAA4BC,eAAe,YACpE,2BAAI,YAAC,IAAD,CAAkBD,GAAG,iCAAiCC,eAAe,mBAG7E,8BACE,2BACE,2BAAI,kCACJ,2BAAI,YAAC,IAAD,CAAkBD,GAAG,2BAA2BC,eAAe,eAErE,2BACE,2BAAI,kCACJ,2BAAI,YAAC,IAAD,CAAkBD,GAAG,6BAA6BC,eAAe,wBAEvE,2BACE,2BAAI,kCACJ,2BAAI,YAAC,IAAD,CAAkBD,GAAG,6BAA6BC,eAAe,+BAEvE,2BACE,2BAAI,kCACJ,2BAAI,YAAC,IAAD,CAAkBD,GAAG,+BAA+BC,eAAe,mBAEzE,2BACE,2BAAI,kCACJ,2BAAI,YAAC,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C,eAAe,mDAE9E,2BACE,2BAAI,oCACJ,2BAAI,YAAC,IAAD,CAAkBD,GAAG,6BAA6BC,eAAe,0CAEvE,2BACE,2BAAI,kCACJ,2BAAI,YAAC,IAAD,CAAkBD,GAAG,4BAA4BC,eAAe,mC,GA3GpDC,K,0BAEX,CACjBR,KAAMS,IAAUC,OAAOC,WACvBV,YAAaQ,IAAUG,KACvBlB,gBAAiBe,IAAUG,O","file":"flavours/glitch/async/keyboard_shortcuts.js","sourcesContent":["import React from 'react';\nimport Column from 'flavours/glitch/features/ui/components/column';\nimport ColumnBackButtonSlim from 'flavours/glitch/components/column_back_button_slim';\nimport { connect } from 'react-redux';\nimport { defineMessages, injectIntl, FormattedMessage } from 'react-intl';\nimport PropTypes from 'prop-types';\nimport ImmutablePureComponent from 'react-immutable-pure-component';\n\nconst messages = defineMessages({\n heading: { id: 'keyboard_shortcuts.heading', defaultMessage: 'Keyboard Shortcuts' },\n});\n\nconst mapStateToProps = state => ({\n collapseEnabled: state.getIn(['local_settings', 'collapsed', 'enabled']),\n});\n\nexport default @connect(mapStateToProps)\n@injectIntl\nclass KeyboardShortcuts extends ImmutablePureComponent {\n\n static propTypes = {\n intl: PropTypes.object.isRequired,\n multiColumn: PropTypes.bool,\n collapseEnabled: PropTypes.bool,\n };\n\n render () {\n const { intl, collapseEnabled, multiColumn } = this.props;\n\n return (\n <Column bindToDocument={!multiColumn} icon='question' heading={intl.formatMessage(messages.heading)}>\n <ColumnBackButtonSlim />\n <div className='keyboard-shortcuts scrollable optionally-scrollable'>\n <table>\n <thead>\n <tr>\n <th><FormattedMessage id='keyboard_shortcuts.hotkey' defaultMessage='Hotkey' /></th>\n <th><FormattedMessage id='keyboard_shortcuts.description' defaultMessage='Description' /></th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td><kbd>r</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.reply' defaultMessage='to reply' /></td>\n </tr>\n <tr>\n <td><kbd>m</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.mention' defaultMessage='to mention author' /></td>\n </tr>\n <tr>\n <td><kbd>p</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.profile' defaultMessage=\"to open author's profile\" /></td>\n </tr>\n <tr>\n <td><kbd>f</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.favourite' defaultMessage='to favourite' /></td>\n </tr>\n <tr>\n <td><kbd>b</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.boost' defaultMessage='to boost' /></td>\n </tr>\n <tr>\n <td><kbd>d</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.bookmark' defaultMessage='to bookmark' /></td>\n </tr>\n <tr>\n <td><kbd>enter</kbd>, <kbd>o</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.enter' defaultMessage='to open status' /></td>\n </tr>\n <tr>\n <td><kbd>e</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.open_media' defaultMessage='to open media' /></td>\n </tr>\n <tr>\n <td><kbd>x</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.toggle_hidden' defaultMessage='to show/hide text behind CW' /></td>\n </tr>\n <tr>\n <td><kbd>h</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.toggle_sensitivity' defaultMessage='to show/hide media' /></td>\n </tr>\n {collapseEnabled && (\n <tr>\n <td><kbd>shift</kbd>+<kbd>x</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.toggle_collapse' defaultMessage='to collapse/uncollapse toots' /></td>\n </tr>\n )}\n <tr>\n <td><kbd>up</kbd>, <kbd>k</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.up' defaultMessage='to move up in the list' /></td>\n </tr>\n <tr>\n <td><kbd>down</kbd>, <kbd>j</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.down' defaultMessage='to move down in the list' /></td>\n </tr>\n <tr>\n <td><kbd>1</kbd>-<kbd>9</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.column' defaultMessage='to focus a status in one of the columns' /></td>\n </tr>\n <tr>\n <td><kbd>n</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.compose' defaultMessage='to focus the compose textarea' /></td>\n </tr>\n <tr>\n <td><kbd>alt</kbd>+<kbd>n</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.toot' defaultMessage='to start a brand new toot' /></td>\n </tr>\n <tr>\n <td><kbd>backspace</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.back' defaultMessage='to navigate back' /></td>\n </tr>\n <tr>\n <td><kbd>s</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.search' defaultMessage='to focus search' /></td>\n </tr>\n <tr>\n <td><kbd>alt</kbd>+<kbd>enter</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.secondary_toot' defaultMessage='to send toot using secondary privacy setting' /></td>\n </tr>\n <tr>\n <td><kbd>esc</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.unfocus' defaultMessage='to un-focus compose textarea/search' /></td>\n </tr>\n <tr>\n <td><kbd>?</kbd></td>\n <td><FormattedMessage id='keyboard_shortcuts.legend' defaultMessage='to display this legend' /></td>\n </tr>\n </tbody>\n </table>\n </div>\n </Column>\n );\n }\n\n}\n"],"sourceRoot":""} |