mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 09:20:18 +08:00
feat: enhance application type definitions and improve app management logic
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import AppCard from './AppCard.vue';
|
||||
import type { App } from '@/global/typedefinition';
|
||||
import type { App } from '../global/typedefinition';
|
||||
|
||||
defineProps<{
|
||||
apps: App[];
|
||||
|
||||
@@ -61,9 +61,9 @@
|
||||
</div>
|
||||
<button type="button"
|
||||
class="inline-flex items-center gap-2 rounded-2xl border border-rose-300/60 px-4 py-2 text-sm font-semibold text-rose-600 transition hover:bg-rose-50 disabled:opacity-50"
|
||||
:disabled="app.removing" @click="$emit('uninstall', app)">
|
||||
:disabled="app.currentStatus === 'not-installed'" @click="$emit('uninstall', app)">
|
||||
<i class="fas fa-trash"></i>
|
||||
{{ app.removing ? '卸载中…' : '卸载' }}
|
||||
卸载
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -74,7 +74,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { App } from '@/global/typedefinition';
|
||||
import { App } from '../global/typedefinition';
|
||||
|
||||
defineProps<{
|
||||
show: boolean;
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed, ref, watch, nextTick, onUnmounted } from 'vue';
|
||||
import type { App } from '@/global/typedefinition';
|
||||
import type { App } from '../global/typedefinition';
|
||||
|
||||
const props = defineProps<{
|
||||
show: boolean;
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { UpdateAppItem } from '@/global/typedefinition';
|
||||
import type { UpdateAppItem } from '../global/typedefinition';
|
||||
|
||||
defineProps<{
|
||||
show: boolean;
|
||||
|
||||
Reference in New Issue
Block a user