mirror of https://github.com/certd/certd
chore: vip modal
parent
81df96bf45
commit
1e288b14d0
|
@ -238,7 +238,7 @@ function openUpgrade() {
|
||||||
title: "专业版",
|
title: "专业版",
|
||||||
desc: "开源需要您的赞助支持",
|
desc: "开源需要您的赞助支持",
|
||||||
type: "plus",
|
type: "plus",
|
||||||
privilege: ["可加VIP群,您的需求将优先实现", "站点证书监控无限制", "更多通知方式", "更多强大的部署插件,宝塔、群晖、1Panel等"],
|
privilege: ["可加VIP群,您的需求将优先实现", "站点证书监控无限制", "更多通知方式", "插件全开放,更多强大的部署插件,宝塔、群晖、1Panel等"],
|
||||||
trial: {
|
trial: {
|
||||||
title: "点击获取7天试用",
|
title: "点击获取7天试用",
|
||||||
click: () => {
|
click: () => {
|
||||||
|
|
|
@ -10,11 +10,7 @@
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<fs-icon
|
<fs-icon class="icon-button" :icon="fullscreen ? 'material-symbols:fullscreen-exit' : 'material-symbols:fullscreen'" @click="fullscreen = !fullscreen"></fs-icon>
|
||||||
class="icon-button"
|
|
||||||
:icon="fullscreen ? 'material-symbols:fullscreen-exit' : 'material-symbols:fullscreen'"
|
|
||||||
@click="fullscreen = !fullscreen"
|
|
||||||
></fs-icon>
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="currentStep">
|
<template v-if="currentStep">
|
||||||
|
@ -117,6 +113,7 @@ import { compute, useCompute } from "@fast-crud/fast-crud";
|
||||||
import { useReference } from "/@/use/use-refrence";
|
import { useReference } from "/@/use/use-refrence";
|
||||||
import { useSettingStore } from "/@/store/modules/settings";
|
import { useSettingStore } from "/@/store/modules/settings";
|
||||||
import * as pluginApi from "../../../api.plugin";
|
import * as pluginApi from "../../../api.plugin";
|
||||||
|
import { mitter } from "/@/utils/util.mitt";
|
||||||
export default {
|
export default {
|
||||||
name: "PiStepForm",
|
name: "PiStepForm",
|
||||||
// eslint-disable-next-line vue/no-unused-components
|
// eslint-disable-next-line vue/no-unused-components
|
||||||
|
@ -156,6 +153,7 @@ export default {
|
||||||
const stepTypeSelected = (item: any) => {
|
const stepTypeSelected = (item: any) => {
|
||||||
if (item.needPlus && !settingStore.isPlus) {
|
if (item.needPlus && !settingStore.isPlus) {
|
||||||
message.warn("此插件需要开通专业版才能使用");
|
message.warn("此插件需要开通专业版才能使用");
|
||||||
|
mitter.emit("openVipModal");
|
||||||
throw new Error("此插件需要开通专业版才能使用");
|
throw new Error("此插件需要开通专业版才能使用");
|
||||||
}
|
}
|
||||||
currentStep.value.type = item.name;
|
currentStep.value.type = item.name;
|
||||||
|
@ -321,9 +319,7 @@ export default {
|
||||||
if (pluginSearch.value.keyword) {
|
if (pluginSearch.value.keyword) {
|
||||||
const keyword = pluginSearch.value.keyword.toLowerCase();
|
const keyword = pluginSearch.value.keyword.toLowerCase();
|
||||||
const list = groups.all.plugins.filter((plugin) => {
|
const list = groups.all.plugins.filter((plugin) => {
|
||||||
return (
|
return plugin.title?.toLowerCase().includes(keyword) || plugin.desc?.toLowerCase().includes(keyword) || plugin.name?.toLowerCase().includes(keyword);
|
||||||
plugin.title?.toLowerCase().includes(keyword) || plugin.desc?.toLowerCase().includes(keyword) || plugin.name?.toLowerCase().includes(keyword)
|
|
||||||
);
|
|
||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
search: { key: "search", title: "搜索结果", plugins: list }
|
search: { key: "search", title: "搜索结果", plugins: list }
|
||||||
|
|
Loading…
Reference in New Issue