Skip to content

Commit 0d57e59

Browse files
committed
Pteroignore details
1 parent 973591d commit 0d57e59

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

resources/scripts/components/server/files/FileEditContainer.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,17 @@ export default () => {
8383
<PageContentBlock>
8484
<FlashMessageRender byKey={'files:view'} className={'mb-4'}/>
8585
<FileManagerBreadcrumbs withinFileEditor={true} isNewFile={action !== 'edit'}/>
86+
{(name || hash.replace(/^#/, '')).endsWith('.pteroignore') &&
87+
<div className={'mb-4 p-4 border-l-4 bg-neutral-900 rounded border-cyan-400'}>
88+
<p className={'text-neutral-300 text-sm'}>
89+
You're editing a <code className={'font-mono bg-black rounded py-px px-1'}>.pteroignore</code> file.
90+
Any files or directories listed in here will be excluded from backups. Wildcards are supported by
91+
using an asterisk (<code className={'font-mono bg-black rounded py-px px-1'}>*</code>). You can
92+
negate a prior rule by prepending an exclamation point
93+
(<code className={'font-mono bg-black rounded py-px px-1'}>!</code>).
94+
</p>
95+
</div>
96+
}
8697
<FileNameModal
8798
visible={modalVisible}
8899
onDismissed={() => setModalVisible(false)}

0 commit comments

Comments
 (0)