-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #48665 from nextcloud/feat/settings/app_api_apps_m…
…anagement feat(settings): migrate AppAPI ExApps management to settings
- Loading branch information
Showing
115 changed files
with
910 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<!-- | ||
- SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
- SPDX-License-Identifier: AGPL-3.0-or-later | ||
--> | ||
<template> | ||
<span v-if="daemon" | ||
class="app-daemon-badge" | ||
:title="daemon.name"> | ||
<NcIconSvgWrapper :path="mdiFileChart" :size="20" inline /> | ||
{{ daemon.display_name }} | ||
</span> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import type { IDeployDaemon } from '../../app-types.ts' | ||
import { mdiFileChart } from '@mdi/js' | ||
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js' | ||
|
||
defineProps<{ | ||
daemon?: IDeployDaemon | ||
}>() | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.app-daemon-badge { | ||
color: var(--color-text-maxcontrast); | ||
background-color: transparent; | ||
border: 1px solid var(--color-text-maxcontrast); | ||
border-radius: var(--border-radius); | ||
|
||
display: flex; | ||
flex-direction: row; | ||
gap: 6px; | ||
padding: 3px 6px; | ||
width: fit-content; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
apps/settings/src/components/AppStoreSidebar/AppDeployDaemonTab.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<!-- | ||
- SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors | ||
- SPDX-License-Identifier: AGPL-3.0-or-later | ||
--> | ||
|
||
<template> | ||
<NcAppSidebarTab v-if="app?.daemon" | ||
id="daemon" | ||
:name="t('settings', 'Daemon')" | ||
:order="3"> | ||
<template #icon> | ||
<NcIconSvgWrapper :path="mdiFileChart" :size="24" /> | ||
</template> | ||
<div class="daemon"> | ||
<h4>{{ t('settings', 'Deploy Daemon') }}</h4> | ||
<p><b>{{ t('settings', 'Type') }}</b>: {{ app?.daemon.accepts_deploy_id }}</p> | ||
<p><b>{{ t('settings', 'Name') }}</b>: {{ app?.daemon.name }}</p> | ||
<p><b>{{ t('settings', 'Display Name') }}</b>: {{ app?.daemon.display_name }}</p> | ||
<p><b>{{ t('settings', 'GPUs support') }}</b>: {{ gpuSupport }}</p> | ||
<p><b>{{ t('settings', 'Compute device') }}</b>: {{ app?.daemon?.deploy_config?.computeDevice?.label }}</p> | ||
</div> | ||
</NcAppSidebarTab> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import type { IAppstoreExApp } from '../../app-types' | ||
|
||
import NcAppSidebarTab from '@nextcloud/vue/dist/Components/NcAppSidebarTab.js' | ||
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js' | ||
|
||
import { mdiFileChart } from '@mdi/js' | ||
import { ref } from 'vue' | ||
|
||
const props = defineProps<{ | ||
app: IAppstoreExApp, | ||
}>() | ||
|
||
const gpuSupport = ref(props.app?.daemon?.deploy_config?.computeDevice?.id !== 'cpu' || false) | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.daemon { | ||
padding: 20px; | ||
|
||
h4 { | ||
font-weight: bold; | ||
margin: 10px auto; | ||
} | ||
} | ||
</style> |
Oops, something went wrong.