fleet/frontend/pages
Scott Gress 4b5f8de637
Add syntax highlighting support for shell and powershell scripts (#28417)
# Checklist for submitter

If some of the following don't apply, delete the relevant line.

<!-- Note that API documentation changes are now addressed by the
product design team. -->

- [X] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files)
for more information.

# Details

This PR adds syntax highlighting for shell scripts and Powershell
scripts. It switches highlighting mode based on the extension of the
file.

**Shell:**
<img width="775" alt="image"
src="https://github.com/user-attachments/assets/712ef7db-cf33-4bd7-b620-e4b55225ecf5"
/>

**Powershell:**
<img width="773" alt="image"
src="https://github.com/user-attachments/assets/8a9fedb8-d8e3-4285-9ae6-d6f17c760e52"
/>
2025-04-29 10:24:05 -05:00
..
AccountPage FE: Buttons clean up Part 2 (#28346) 2025-04-23 14:42:30 -04:00
admin Handle wide logos in MDM setup experience and migration dialog on Apple devices (#28539) 2025-04-29 09:39:28 -05:00
ApiOnlyUser FE: Button renaming, better storybook view, remove unused code (#28245) 2025-04-16 09:56:09 -04:00
ConfirmInvitePage UI - Update default UseQuery retry (#25919) 2025-01-31 10:36:59 -08:00
ConfirmSSOInvitePage Fleet UI: URL routes for dashboard platforms (#8689) 2022-11-17 10:45:35 -05:00
DashboardPage UI: Add ability to run scripts on batches of hosts (#28563) 2025-04-28 16:32:41 -07:00
errors FE: Buttons clean up Part 2 (#28346) 2025-04-23 14:42:30 -04:00
ForgotPasswordPage UI – refactor forms and form fields (#16159) 2024-01-18 10:48:44 -05:00
hosts UI: Add ability to run scripts on batches of hosts (#28563) 2025-04-28 16:32:41 -07:00
labels FE: Button renaming, better storybook view, remove unused code (#28245) 2025-04-16 09:56:09 -04:00
LoginPage Force a user to click through to redeem MFA if they aren't on a browser that started the MFA process (#26980) 2025-03-10 13:56:25 -05:00
LoginSuccessfulPage maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
LogoutPage Fleet Sandbox: Logout actually logs out of sandbox (#7213) 2022-08-15 15:59:02 -04:00
ManageControlsPage Add syntax highlighting support for shell and powershell scripts (#28417) 2025-04-29 10:24:05 -05:00
MDMAppleSSOCallbackPage Revert changes to DEP enrollment flow (#20506) 2024-07-16 11:44:48 -05:00
MDMAppleSSOPage Revert changes to DEP enrollment flow (#20506) 2024-07-16 11:44:48 -05:00
MfaPage FE: Button renaming, better storybook view, remove unused code (#28245) 2025-04-16 09:56:09 -04:00
NoAccessPage FE: Button renaming, better storybook view, remove unused code (#28245) 2025-04-16 09:56:09 -04:00
packs UI: Add ability to run scripts on batches of hosts (#28563) 2025-04-28 16:32:41 -07:00
policies UI: Add ability to run scripts on batches of hosts (#28563) 2025-04-28 16:32:41 -07:00
queries UI: Add ability to run scripts on batches of hosts (#28563) 2025-04-28 16:32:41 -07:00
RegistrationPage UI - use new db user settings to persist user's host table column preferences (#25185) 2025-01-09 10:53:43 -08:00
ResetPasswordPage fix: return better error when password is too long (#15875) 2024-01-03 17:24:28 -05:00
SoftwarePage FE: Button renaming, better storybook view, remove unused code (#28245) 2025-04-16 09:56:09 -04:00