Commit Graph

78 Commits

Author SHA1 Message Date
Zack Spear
1b95edc9e1 feat: footer layout, right side horizontally scrolls for improved responsiveness and UX 2025-07-22 11:52:39 -07:00
Zack Spear
559115bfe9 refactor: simplify header structure in DefaultPageLayout
- Removed unnecessary wrapper div and adjusted the header layout in Header.php for cleaner code.
- Updated CSS to reflect changes in the header structure, ensuring proper styling for the unraid-header-os-version component.

This change aims to enhance code readability and maintainability by streamlining the header layout. No further changes are pending for this task.
2025-07-09 15:46:11 -07:00
Zack Spear
34e50e51fe feat: add unraid-modals component to DefaultPageLayout.php
- Introduced the <unraid-modals> component to the DefaultPageLayout.php file to enhance modal functionality across the web interface.

This change aims to improve user interaction by integrating modal support. No further changes are pending for this task.
2025-07-07 12:47:32 -07:00
Zack Spear
469f15883b feat: enhance page content generation with responsive layout support
- Updated `generateContent` function to handle a new `ResponsiveLayout` flag in the page data array.
- Added a wrapper for non-responsive content based on the `ResponsiveLayout` flag.
- Adjusted CSS class naming for consistency in the `default-base.css` file.
- Set `ResponsiveLayout` to false in `AddVM.page` and `UpdateVM.page` for default behavior.
- Cleaned up HTML structure in `VMedit.php` to remove unnecessary class.

This change improves the flexibility of page layouts and ensures proper styling for non-responsive content.
2025-07-01 16:04:27 -07:00
Tom Mortensen
732129de72 localhost endpoint now requires authentication 2025-06-28 10:47:03 -07:00
Zack Spear
445deceb09 refactor: improve fillAvailableHeight function for better element height calculations
- Enhanced the fillAvailableHeight function in BodyInlineJS.php to refine height calculations by ensuring proper handling of element selectors and margins.
- Adjusted logic to prevent unnecessary spacing for specific elements, improving layout accuracy.
- Cleaned up code for better readability and maintainability.
2025-06-27 12:36:54 -07:00
Zack Spear
dde0cd1f08 feat: implement resize listener for fillAvailableHeight function
- Added a resize event listener to the fillAvailableHeight function in BodyInlineJS.php to ensure dynamic height adjustments on window resize.
- Implemented a debounced handler to optimize performance and prevent excessive function calls during rapid resize events.
- This enhancement improves the responsiveness of the layout by maintaining appropriate element heights as the window size changes.
2025-06-27 12:20:52 -07:00
Zack Spear
bb87d4d370 feat: add debounce function for improved performance in HeadInlineJS
- Introduced a new debounce function in HeadInlineJS.php to optimize function calls by limiting the rate at which a function can fire.
- This enhancement aims to improve performance in scenarios where rapid function calls may occur, such as during user input events.
2025-06-27 12:08:30 -07:00
Zack Spear
3e734b0914 refactor: enhance fillAvailableHeight function for additional element selectors
- Updated the fillAvailableHeight function in BodyInlineJS.php to include additional element selectors for height and spacing calculations.
- Improved the handling of dynamic height adjustments by allowing more flexible parameter inputs.
- Clarified comments for better understanding of the height and spacing logic.
2025-06-27 11:58:47 -07:00
Zack Spear
adb30a1214 docs: update fillAvailableHeight example for jQuery usage
- Modified the documentation comment for the fillAvailableHeight function in BodyInlineJS.php to specify that it must be used within a jQuery ready function.
- Ensured clarity in the example usage to improve developer understanding and implementation.
2025-06-26 14:27:33 -07:00
Zack Spear
006344c646 refactor: enhance fillAvailableHeight function for dynamic resizing
- Updated the fillAvailableHeight function in BodyInlineJS.php to accept parameters for better flexibility in resizing elements.
- Modified Syslog.page to utilize the new parameters for dynamic height adjustment of specific elements.
- Improved code readability and maintainability by restructuring the function and its parameters.
2025-06-26 14:20:36 -07:00
Zack Spear
1e2ba501c0 feat: added fillAvailableHeight js to dynamically resize vertical elements
- Updated PHP opening tags from `<?PHP` to `<?php` for consistency.
- Reformatted code for improved readability in Syslog.page.
- Added a new function `fillAvailableHeight` in BodyInlineJS.php to dynamically resize elements for better layout.
- Updated CSS to remove unnecessary gap and margin for a cleaner design in Syslog.css.
- Enhanced the syslog controls and output structure for improved usability.
2025-06-26 14:09:36 -07:00
Zack Spear
10e9ffaa99 refactor: make manifest json static 2025-06-11 13:09:01 -07:00
Zack Spear
8dc5410e14 feat: add favicon and web app manifest support
- Introduced new favicon files: apple-touch-icon.png, favicon-96x96.png, favicon.ico, favicon.svg.
- Updated auth-request.php to include new favicon paths in the whitelist.
- Added web app manifest files: web-app-manifest-192x192.png, web-app-manifest-512x512.png, and created a manifest.json structure in ThemeHelper.
- Refactored DefaultPageLayout to include favicon links and manifest reference.

This update enhances the application's branding and improves the user experience on mobile devices.
2025-06-10 18:09:39 -07:00
tom mortensen
3cfa60e726 Merge pull request #2245 from Squidly271/patch-85
Fix: Add progress to VM actions popup
2025-06-10 09:09:19 -07:00
Squidly271
eb050458dc Fix: Add progress to VM actions popup
A line of code was also missed on the original PR
2025-06-09 22:18:10 -04:00
Zack Spear
ed8c6a7535 fix: Update upgrade_notice styles
- Adjusted CSS for .upgrade_notice to improve layout and responsiveness.
- Removed outdated JavaScript code related to banner positioning.
2025-06-09 16:25:43 -07:00
Squidly271
536ca665b6 Feat: Add Progress to Docker / Plugin popup window 2025-06-09 11:07:46 -04:00
Zack Spear
915a79c94e fix: tabbed content rendering in MainContentTabbed.php
- Added logic to handle pages without titles but containing text, ensuring proper rendering of content.
- Introduced a mechanism to skip index increment for such pages, maintaining correct tab functionality.
- Improved code readability with better indentation and comments for clarity.
2025-05-29 17:04:08 -07:00
Zack Spear
82eb592812 style: fix indentation in MainContent.php
- Corrected inconsistent indentation in the processTitle function for improved code readability and maintainability.
2025-05-29 11:39:02 -07:00
tom mortensen
8d59f43517 Merge pull request #2211 from unraid/feat/responsive-improvements
feat: responsive improvements rd. 2
2025-05-28 09:48:02 -07:00
tom mortensen
297fc26fe2 Merge pull request #2210 from Squidly271/Terminal
Feat: Terminal - Add button to manually open if popup blocked
2025-05-28 08:47:34 -07:00
Zack Spear
9e7c27bc6a fix: handle empty output in generatePanels function
- Updated the generatePanels function to return an empty string if no panels are generated, ensuring cleaner output when there are no panels to display.
2025-05-27 16:20:24 -07:00
Squidly271
b66f5823e3 Update emhttp/plugins/dynamix/include/DefaultPageLayout/HeadInlineJS.php
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-05-26 12:59:36 -04:00
Squidly271
0de80b959a Add button to manually open if popup blocked 2025-05-26 12:51:33 -04:00
tom mortensen
2421b9b36f Merge pull request #2204 from unraid/feat/remove-legacy-notifications
feat: remove NotificationsArchive page and related files
2025-05-24 20:58:23 -07:00
Zack Spear
b8cb46cb28 feat: remove NotificationsArchive page and related files
- Deleted the NotificationsArchive.page, NotificationsArchive.php, and associated CSS file as they are no longer needed.
- This change helps streamline the codebase and remove obsolete components.
- Notifications replaced via unraid-api inclusion
2025-05-22 16:59:33 -07:00
Zack Spear
39316cd5c2 fix: improve showStatus function in HeadInlineJS.php
- Refactored the showStatus function for better readability and structure.
- Changed the way parameters are passed to the jQuery post method.
- This change continues the effort to enhance code clarity and maintainability across the plugin.
2025-05-22 12:31:52 -07:00
tom mortensen
e2551e7e9b Merge pull request #2202 from unraid/fix/blobs-not-external
fix: blob links shouldn't be external
2025-05-22 11:20:36 -07:00
tom mortensen
689d181e45 Merge pull request #2188 from unraid/feat/responsive-default-page-layout
feat: responsive DefaultPageLayout first pass
2025-05-22 11:19:36 -07:00
Eli Bosley
1afb7d86d1 fix: blob links shouldn't be external 2025-05-22 13:14:04 -04:00
Zack Spear
18337e9e14 fix: enhance layout consistency in PageBuilder.php and MainContentTabless.php
- Wrapped elements in spans within PageBuilder.php to improve layout structure.
- Added a span for layout consistency in MainContentTabless.php.
- This change continues the effort to enhance visual consistency across the plugin.
2025-05-21 16:39:13 -07:00
Eli Bosley
29b68a6b70 Update GUIModeSessionFix.php
Fix: this will fix a rare edge case that a function may be "defined twice", breaking the entire webGUI.
2025-05-21 16:22:34 -04:00
Zack Spear
e426e52c4d Merge branch 'master' into feat/responsive-default-page-layout 2025-05-20 18:01:18 -07:00
Zack Spear
9d0db98241 feat: implement safe title processing in MainContent, MainContentTabbed, and MainContentTabless
- Introduced a new function `processTitle` to safely handle page titles by replacing PHP variables with their values without using eval.
- Updated title handling in MainContent, MainContentTabbed, and MainContentTabless to utilize the new `processTitle` function, enhancing security and maintainability.
2025-05-09 13:23:03 -07:00
Zack Spear
c9da14d675 style: update class for tab content in MainContentTabbed.php
- Changed the class attribute from "content" to "tab-content content" for better semantic clarity and improved styling consistency in the tabbed layout.
2025-05-09 11:58:49 -07:00
Zack Spear
a3917eabe5 fix: update title handling in MainContent, MainContentTabbed, and MainContentTabless for improved variable usage
- Replaced direct htmlspecialchars usage with eval to ensure variables in .page titles are correctly processed.
- This change enhances the flexibility of title rendering across multiple layout files.
2025-05-09 11:37:00 -07:00
Eli Bosley
21c271055f fix: remove jgrowl from dynamix 2025-05-09 11:24:47 -04:00
Eli Bosley
30a7f6eb90 feat: add tweaks for the Unraid API
- enables API support for 7.2
- do not merge before the API is integrated, will break notifications
- includes authentication fix for now
2025-05-09 08:25:38 -04:00
Zack Spear
d5fbdebde4 fix: panels spacing + user list for responsiveness 2025-05-08 15:54:50 -07:00
Zack Spear
3e40361b6e refactor: remove duplicate page stylesheets inclusion in MainContentTabless.php 2025-05-08 15:54:27 -07:00
Zack Spear
ad342e68b6 refactor: improve scroll position handling in BodyInlineJS.php
- Changed the 'top' variable to use parseInt for better type handling.
- Updated the scrollTop logic for clarity and consistency.
2025-05-07 16:15:45 -07:00
Zack Spear
98c5ef3a19 fix: add aria-live attribute to status bar for improved accessibility 2025-05-07 16:14:32 -07:00
Zack Spear
5c13404492 refactor: update content handling for non-tabbed layout
- Introduced a new file, MainContentTabless.php, which provides a non-tabbed content template for the Unraid web interface, rendering all pages in sequence without tabs.
2025-05-07 16:11:14 -07:00
Zack Spear
9eab318383 fix: add rel attribute to footer link for security enhancement 2025-05-07 16:09:59 -07:00
Zack Spear
648d9252cc fix: update cookie handling in tab management
- Removed unused cookie helper functions from MainContentTabbed.php to streamline the code.
- Updated the tab management logic to ensure cookies are cleared when no cookie exists, aligning with the behavior of the initab function.
- Corrected the filename reference in MainContent.php from 'MainContentNotab.php' to 'MainContentNoTab.php' for consistency.
2025-05-07 15:20:16 -07:00
Zack Spear
ad9f54618c refactor: implement panel generation functions for menu pages
- Added `generatePanel` and `generatePanels` functions to encapsulate panel creation logic for menu items.
- Updated `MainContentNotab.php` and `MainContentTabbed.php` to utilize the new functions, improving code reusability and readability.
- Introduced `generateContent` function to handle content generation based on Markdown flag.
2025-05-07 15:06:38 -07:00
Zack Spear
46731110ea fix: adjust cookie handling for scroll position in BodyInlineJS.php
- Modified the calculation of the 'top' variable to remove the offset adjustment, simplifying the logic.
- Ensured that the scroll position is set correctly based on the cookie value.

This change improves the handling of scroll position based on user preferences.
2025-05-07 10:48:43 -07:00
Zack Spear
843efed231 refactor: abstract tab vs no tab content into separate components 2025-05-07 10:48:13 -07:00
Zack Spear
f2e4d6fb18 refactor: update footer layout and styles for improved responsiveness
- Restructured footer HTML to use flexbox for better alignment and spacing.
- Adjusted CSS styles for #footer, including padding and box-sizing.
- Removed unnecessary float properties and improved layout consistency.
2025-05-06 15:54:52 -07:00