mirror of
https://github.com/unraid/api.git
synced 2026-04-30 12:10:15 -05:00
refactor: rename to built components to unraid-
This commit is contained in:
@@ -130,19 +130,19 @@ if ($display['theme'] === 'black' || $display['theme'] === 'azure') {
|
||||
}
|
||||
</style>
|
||||
<div class="ComponentWrapper" style="background-color: <?=$themeBg?>;">
|
||||
<?="<connect-user-profile server='" . json_encode($serverData) . "'></connect-user-profile>"?>
|
||||
<?="<unraid-user-profile server='" . json_encode($serverData) . "'></connect-user-profile>"?>
|
||||
</div>
|
||||
<div class="ComponentWrapper">
|
||||
<connect-auth></connect-auth>
|
||||
<unraid-auth></connect-auth>
|
||||
</div>
|
||||
<div class="ComponentWrapper">
|
||||
<connect-download-api-logs></connect-download-api-logs>
|
||||
<unraid-download-api-logs></connect-download-api-logs>
|
||||
</div>
|
||||
<div class="ComponentWrapper">
|
||||
<connect-key-actions></connect-key-actions>
|
||||
<unraid-key-actions></connect-key-actions>
|
||||
</div>
|
||||
<div class="ComponentWrapper">
|
||||
<connect-wan-ip-check php-wan-ip="<?=@file_get_contents('https://wanip4.unraid.net/')?>"></connect-wan-ip-check>
|
||||
<unraid-wan-ip-check php-wan-ip="<?=@file_get_contents('https://wanip4.unraid.net/')?>"></connect-wan-ip-check>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
|
||||
+7
-7
@@ -33,30 +33,30 @@ export default defineNuxtConfig({
|
||||
customElements: {
|
||||
entries: [
|
||||
{
|
||||
name: 'ConnectComponents',
|
||||
name: 'UnraidComponents',
|
||||
tags: [
|
||||
{
|
||||
name: 'ConnectAuth',
|
||||
name: 'UnraidAuth',
|
||||
path: '@/components/Auth.ce',
|
||||
},
|
||||
{
|
||||
name: 'ConnectDownloadApiLogs',
|
||||
name: 'UnraidDownloadApiLogs',
|
||||
path: '@/components/DownloadApiLogs.ce',
|
||||
},
|
||||
{
|
||||
name: 'ConnectKeyActions',
|
||||
name: 'UnraidKeyActions',
|
||||
path: '@/components/KeyActions.ce',
|
||||
},
|
||||
{
|
||||
name: 'ConnectModals',
|
||||
name: 'UnraidModals',
|
||||
path: '@/components/Modals.ce',
|
||||
},
|
||||
{
|
||||
name: 'ConnectUserProfile',
|
||||
name: 'UnraidUserProfile',
|
||||
path: '@/components/UserProfile.ce',
|
||||
},
|
||||
{
|
||||
name: 'ConnectWanIpCheck',
|
||||
name: 'UnraidWanIpCheck',
|
||||
path: '@/components/WanIpCheck.ce',
|
||||
},
|
||||
],
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview",
|
||||
"postinstall": "nuxt prepare",
|
||||
"serve": "serve dist/nuxt-custom-elements/connect-components",
|
||||
"serve": "serve dist/nuxt-custom-elements/unraid-components",
|
||||
"codegen": "graphql-codegen --config codegen.ts -r dotenv/config",
|
||||
"codegen:watch": "graphql-codegen --config codegen.ts --watch -r dotenv/config"
|
||||
},
|
||||
|
||||
@@ -14,22 +14,22 @@ onBeforeMount(() => {
|
||||
<div class="flex flex-col gap-6 p-6">
|
||||
<h2>Web Components</h2>
|
||||
<h3>UserProfileCe</h3>
|
||||
<connect-user-profile :server="JSON.stringify(serverState)" />
|
||||
<unraid-user-profile :server="JSON.stringify(serverState)" />
|
||||
<hr>
|
||||
<h3>DownloadApiLogsCe</h3>
|
||||
<connect-download-api-logs />
|
||||
<unraid-download-api-logs />
|
||||
<hr>
|
||||
<h3>AuthCe</h3>
|
||||
<connect-auth />
|
||||
<unraid-auth />
|
||||
<hr>
|
||||
<h3>KeyActionsCe</h3>
|
||||
<connect-key-actions />
|
||||
<unraid-key-actions />
|
||||
<hr>
|
||||
<h3>WanIpCheckCe</h3>
|
||||
<connect-wan-ip-check php-wan-ip="47.184.85.45" />
|
||||
<unraid-wan-ip-check php-wan-ip="47.184.85.45" />
|
||||
<hr>
|
||||
<h3>ModalsCe</h3>
|
||||
<connect-modals />
|
||||
<unraid-modals />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -23,7 +23,7 @@ fi
|
||||
echo "$server_name" > "$state_file"
|
||||
|
||||
# Replace the value inside the rsync command with the user's input
|
||||
rsync_command="rsync -avz -e ssh .nuxt/nuxt-custom-elements/dist/connect-components root@${server_name}.local:/usr/local/emhttp/plugins/dynamix.my.servers"
|
||||
rsync_command="rsync -avz -e ssh .nuxt/nuxt-custom-elements/dist/unraid-components root@${server_name}.local:/usr/local/emhttp/plugins/dynamix.my.servers"
|
||||
|
||||
echo "Executing the following command:"
|
||||
echo "$rsync_command"
|
||||
|
||||
Reference in New Issue
Block a user