Skip to content

Commit 345e83b

Browse files
elibosleypujitmzackspear
authored
feat: upgrade nuxt-custom-elements (#1461)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added new modal dialogs and UI components, including activation steps, OS update feedback, and expanded notification management. * Introduced a plugin to configure internationalization, state management, and Apollo client support in web components. * Added a new Log Viewer page with a streamlined interface for viewing logs. * **Improvements** * Centralized Pinia state management by consolidating all stores to use a shared global Pinia instance. * Simplified component templates by removing redundant internationalization host wrappers. * Enhanced ESLint configuration with stricter rules and global variable declarations. * Refined custom element build process to prevent jQuery conflicts and optimize minification. * Updated component imports and templates for consistent structure and maintainability. * Streamlined log viewer dropdowns using simplified select components with improved formatting. * Improved notification sidebar with filtering by importance and modular components. * Replaced legacy notification popups with new UI components and added automatic root session creation for localhost requests. * Updated OS version display and user profile UI with refined styling and component usage. * **Bug Fixes** * Fixed component tag capitalization and improved type annotations across components. * **Chores** * Updated development dependencies including ESLint plugins and build tools. * Removed deprecated log viewer patch class and cleaned up related test fixtures. * Removed unused imports and simplified Apollo client setup. * Cleaned up test mocks and removed obsolete i18n host component tests. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- - To see the specific tasks where the Asana app for GitHub is being used, see below: - https://app.asana.com/0/0/1210730229632804 --------- Co-authored-by: Pujit Mehrotra <[email protected]> Co-authored-by: Zack Spear <[email protected]>
1 parent 7be8bc8 commit 345e83b

File tree

109 files changed

+955
-746
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+955
-746
lines changed

.claude/settings.local.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(rg:*)",
5+
"Bash(find:*)"
6+
]
7+
},
28
"enableAllProjectMcpServers": false
39
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1750864232307
1+
1751630630443
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1750864231987
1+
1751630630198
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1750864232160
1+
1751630630343
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1750864232467
1+
1751630630571
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1750864333264
1+
1751630630810

api/src/unraid-api/unraid-file-modifier/modifications/__test__/snapshots/DefaultPageLayout.php.modified.snapshot.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,7 @@ function flashReport() {
706706
<?include "$docroot/plugins/dynamix.my.servers/include/myservers1.php"?>
707707
</head>
708708
<body>
709+
<unraid-modals></unraid-modals>
709710
<div id="displaybox">
710711
<div class="upgrade_notice" style="display:none"></div>
711712
<div id="header" class="<?=$display['banner']?>">

api/src/unraid-api/unraid-file-modifier/modifications/default-page-layout.modification.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,17 @@ if (is_localhost() && !is_good_session()) {
7272
);
7373
}
7474

75+
private addModalsWebComponent(source: string): string {
76+
return source.replace('<body>', '<body>\n<unraid-modals></unraid-modals>');
77+
}
7578
private applyToSource(fileContent: string): string {
7679
const transformers = [
7780
this.removeNotificationBell.bind(this),
7881
this.replaceToasts.bind(this),
7982
this.addToaster.bind(this),
8083
this.patchGuiBootAuth.bind(this),
8184
this.hideHeaderLogo.bind(this),
85+
this.addModalsWebComponent.bind(this),
8286
];
8387

8488
return transformers.reduce((content, transformer) => transformer(content), fileContent);

api/src/unraid-api/unraid-file-modifier/modifications/log-viewer.modification.ts

Lines changed: 0 additions & 67 deletions
This file was deleted.

api/src/unraid-api/unraid-file-modifier/modifications/patches/default-page-layout.patch

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,13 @@ Index: /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php
5353
}
5454

5555
function closeNotifier() {
56-
@@ -699,11 +708,11 @@
56+
@@ -695,15 +704,16 @@
57+
});
58+
</script>
59+
<?include "$docroot/plugins/dynamix.my.servers/include/myservers1.php"?>
60+
</head>
5761
<body>
62+
+<unraid-modals></unraid-modals>
5863
<div id="displaybox">
5964
<div class="upgrade_notice" style="display:none"></div>
6065
<div id="header" class="<?=$display['banner']?>">
@@ -66,7 +71,7 @@ Index: /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php
6671
<?include "$docroot/plugins/dynamix.my.servers/include/myservers2.php"?>
6772
</div>
6873
<a href="#" class="move_to_end" title="<?=_('Move To End')?>"><i class="fa fa-arrow-circle-down"></i></a>
69-
@@ -748,12 +757,12 @@
74+
@@ -748,12 +758,12 @@
7075
}
7176
// create list of nchan scripts to be started
7277
if (isset($button['Nchan'])) nchan_merge($button['root'], $button['Nchan']);
@@ -80,7 +85,7 @@ Index: /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php
8085
foreach ($buttons as $button) {
8186
annotate($button['file']);
8287
// include page specific stylesheets (if existing)
83-
@@ -960,26 +969,18 @@
88+
@@ -960,26 +970,18 @@
8489
case 'warning': bell2++; break;
8590
case 'normal' : bell3++; break;
8691
}
@@ -112,7 +117,7 @@ Index: /usr/local/emhttp/plugins/dynamix/include/DefaultPageLayout.php
112117
});
113118

114119
<?if ($wlan0):?>
115-
@@ -1363,7 +1364,8 @@
120+
@@ -1363,7 +1365,8 @@
116121
}
117122
}
118123
}

0 commit comments

Comments
 (0)