Pteroignore details
This commit is contained in:
parent
973591d86e
commit
0d57e591cb
1 changed files with 11 additions and 0 deletions
|
@ -83,6 +83,17 @@ export default () => {
|
||||||
<PageContentBlock>
|
<PageContentBlock>
|
||||||
<FlashMessageRender byKey={'files:view'} className={'mb-4'}/>
|
<FlashMessageRender byKey={'files:view'} className={'mb-4'}/>
|
||||||
<FileManagerBreadcrumbs withinFileEditor={true} isNewFile={action !== 'edit'}/>
|
<FileManagerBreadcrumbs withinFileEditor={true} isNewFile={action !== 'edit'}/>
|
||||||
|
{(name || hash.replace(/^#/, '')).endsWith('.pteroignore') &&
|
||||||
|
<div className={'mb-4 p-4 border-l-4 bg-neutral-900 rounded border-cyan-400'}>
|
||||||
|
<p className={'text-neutral-300 text-sm'}>
|
||||||
|
You're editing a <code className={'font-mono bg-black rounded py-px px-1'}>.pteroignore</code> file.
|
||||||
|
Any files or directories listed in here will be excluded from backups. Wildcards are supported by
|
||||||
|
using an asterisk (<code className={'font-mono bg-black rounded py-px px-1'}>*</code>). You can
|
||||||
|
negate a prior rule by prepending an exclamation point
|
||||||
|
(<code className={'font-mono bg-black rounded py-px px-1'}>!</code>).
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
}
|
||||||
<FileNameModal
|
<FileNameModal
|
||||||
visible={modalVisible}
|
visible={modalVisible}
|
||||||
onDismissed={() => setModalVisible(false)}
|
onDismissed={() => setModalVisible(false)}
|
||||||
|
|
Loading…
Reference in a new issue