mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-09-20 21:50:11 +08:00
chore: 暂时关闭云端同步、收藏和评论功能
调整了多个页面的相关UI和逻辑代码,注释掉并隐藏了收藏、评论以及云端同步相关的按钮和实现逻辑,同时修改了侧边栏的品牌文案展示。
This commit is contained in:
@@ -180,6 +180,7 @@
|
||||
</button>
|
||||
</div>
|
||||
</template>
|
||||
<!-- 收藏功能暂时关闭
|
||||
<button
|
||||
type="button"
|
||||
class="inline-flex w-full items-center justify-center gap-2 rounded-xl border border-slate-300 bg-white px-4 py-2.5 text-sm font-medium text-slate-600 transition hover:bg-slate-50 hover:text-slate-900 dark:border-slate-600 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700"
|
||||
@@ -188,6 +189,7 @@
|
||||
<i class="fas fa-star text-xs"></i>
|
||||
<span>{{ favoriteButtonText }}</span>
|
||||
</button>
|
||||
-->
|
||||
<button
|
||||
type="button"
|
||||
class="inline-flex w-full items-center justify-center gap-2 rounded-xl border border-slate-300 bg-white px-4 py-2.5 text-sm font-medium text-slate-600 transition hover:bg-slate-50 hover:text-slate-900 dark:border-slate-600 dark:bg-slate-800 dark:text-slate-300 dark:hover:bg-slate-700"
|
||||
@@ -336,6 +338,7 @@
|
||||
<p class="text-sm text-slate-400">暂无应用截图</p>
|
||||
</div>
|
||||
|
||||
<!-- 评论功能暂时关闭
|
||||
<ReviewsPanel
|
||||
v-if="loggedIn && activeReviewAppKey && activeReviewTags"
|
||||
:app-key="activeReviewAppKey"
|
||||
@@ -380,6 +383,7 @@
|
||||
安装应用后可发表评论。
|
||||
</p>
|
||||
</section>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -507,13 +511,14 @@
|
||||
<script setup lang="ts">
|
||||
import { computed, useAttrs, ref, watch } from "vue";
|
||||
import axios from "axios";
|
||||
import ReviewsPanel from "@/components/ReviewsPanel.vue";
|
||||
// import ReviewsPanel from "@/components/ReviewsPanel.vue";
|
||||
import { useInstallFeedback, downloads } from "../global/downloadStatus";
|
||||
import {
|
||||
APM_STORE_BASE_URL,
|
||||
getHybridDefaultOrigin,
|
||||
} from "../global/storeConfig";
|
||||
import { buildReviewAppKey, buildReviewTags } from "../modules/appIdentity";
|
||||
// 评论功能暂时关闭
|
||||
// import { buildReviewAppKey, buildReviewTags } from "../modules/appIdentity";
|
||||
import type { App, AppReview, ReviewTags } from "../global/typedefinition";
|
||||
|
||||
const attrs = useAttrs();
|
||||
@@ -655,28 +660,29 @@ const iconPath = computed(() => {
|
||||
return `${APM_STORE_BASE_URL}/${finalArch}/${displayApp.value.category}/${displayApp.value.pkgname}/icon.png`;
|
||||
});
|
||||
|
||||
const activeReviewAppKey = computed(() => {
|
||||
if (!displayApp.value) return "";
|
||||
return buildReviewAppKey(
|
||||
displayApp.value,
|
||||
props.reviewTags?.clientArch ?? "amd64",
|
||||
);
|
||||
});
|
||||
// 评论与收藏功能暂时关闭
|
||||
// const activeReviewAppKey = computed(() => {
|
||||
// if (!displayApp.value) return "";
|
||||
// return buildReviewAppKey(
|
||||
// displayApp.value,
|
||||
// props.reviewTags?.clientArch ?? "amd64",
|
||||
// );
|
||||
// });
|
||||
|
||||
const activeReviewTags = computed<ReviewTags | null>(() => {
|
||||
if (!displayApp.value || !props.reviewTags) return null;
|
||||
return buildReviewTags(displayApp.value, {
|
||||
clientArch: props.reviewTags.clientArch,
|
||||
distro: props.reviewTags.distro,
|
||||
});
|
||||
});
|
||||
// const activeReviewTags = computed<ReviewTags | null>(() => {
|
||||
// if (!displayApp.value || !props.reviewTags) return null;
|
||||
// return buildReviewTags(displayApp.value, {
|
||||
// clientArch: props.reviewTags.clientArch,
|
||||
// distro: props.reviewTags.distro,
|
||||
// });
|
||||
// });
|
||||
|
||||
const favoriteButtonText = computed(() => {
|
||||
if (!props.favorited) return "收藏";
|
||||
return props.favoriteFolderName
|
||||
? `已收藏 · ${props.favoriteFolderName}`
|
||||
: "已收藏";
|
||||
});
|
||||
// const favoriteButtonText = computed(() => {
|
||||
// if (!props.favorited) return "收藏";
|
||||
// return props.favoriteFolderName
|
||||
// ? `已收藏 · ${props.favoriteFolderName}`
|
||||
// : "已收藏";
|
||||
// });
|
||||
|
||||
const downloadCount = ref<string>("");
|
||||
|
||||
@@ -722,14 +728,15 @@ const handleRemove = () => {
|
||||
}
|
||||
};
|
||||
|
||||
const handleFavorite = () => {
|
||||
if (!displayApp.value) return;
|
||||
if (!props.loggedIn) {
|
||||
emit("request-login", "收藏应用需要登录星火账号。");
|
||||
return;
|
||||
}
|
||||
emit("favorite", displayApp.value);
|
||||
};
|
||||
// 收藏功能暂时关闭
|
||||
// const handleFavorite = () => {
|
||||
// if (!displayApp.value) return;
|
||||
// if (!props.loggedIn) {
|
||||
// emit("request-login", "收藏应用需要登录星火账号。");
|
||||
// return;
|
||||
// }
|
||||
// emit("favorite", displayApp.value);
|
||||
// };
|
||||
|
||||
const selectOrigin = (origin: "spark" | "apm") => {
|
||||
viewingOrigin.value = origin;
|
||||
|
||||
Reference in New Issue
Block a user