Skip to content

Commit 56d9b35

Browse files
committed
refactor: remove Surely Form links and related alert banners from Menu and Header components
1 parent b58e73d commit 56d9b35

File tree

3 files changed

+7
-54
lines changed

3 files changed

+7
-54
lines changed

site/src/layouts/Menu.vue

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,6 @@
2323
Surely Table
2424
</a>
2525
</a-menu-item>
26-
<a-menu-item key="surely-form">
27-
<a
28-
href="https://form.antdv.com"
29-
target="_blank"
30-
rel="noopener noreferrer"
31-
style="position: relative"
32-
>
33-
Surely Form
34-
<a-badge color="red" style="position: absolute; top: -18px; right: -15px" />
35-
</a>
36-
</a-menu-item>
3726
</a-menu-item-group>
3827
<template v-for="m in menus">
3928
<template v-if="m.children">

site/src/layouts/header/Navigation.vue

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@
3333
Surely Table
3434
</a>
3535
</a-menu-item>
36-
<a-menu-item key="surely-form">
37-
<a
38-
href="https://form.antdv.com"
39-
target="_blank"
40-
rel="noopener noreferrer"
41-
style="position: relative"
42-
>
43-
Surely Form
44-
<a-badge color="red" style="position: absolute; top: -18px; right: -15px" />
45-
</a>
46-
</a-menu-item>
4736
</a-sub-menu>
4837
<a-menu-item key="store">
4938
<a

site/src/layouts/header/index.vue

Lines changed: 7 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,5 @@
11
<template>
22
<header id="header" :class="headerClassName">
3-
<!-- <div v-if="visibleAdblockBanner" class="adblock-banner">
4-
<template v-if="isZhCN">
5-
我们检测到你可能使用了 AdBlock 或 Adblock
6-
Plus,它会影响到正常功能的使用(如复制、展开代码等)。
7-
<br />
8-
你可以将 Ant Design Vue 加入白名单,以便我们更好地提供服务。
9-
</template>
10-
<template v-else>
11-
We have detected that you may use AdBlock or Adblock Plus, which will affect the use of
12-
normal functions (such as copying, expanding code, etc.)
13-
<br />
14-
You can add Ant Design Vue to the whitelist so that we can provide better services.
15-
</template>
16-
17-
<CloseOutlined class="close-icon" @click="visibleAdblockBanner = false" />
18-
</div> -->
19-
<div class="alert-banner">
20-
Surely Form AI 助手内测开放申请 &nbsp;&nbsp;
21-
<a target="_blank" href="https://form.antdv.com">立即申请</a>
22-
</div>
233
<a-row :style="{ flexFlow: 'nowrap', height: 64, position: 'relative' }">
244
<a-col v-bind="colProps[0]">
255
<Logo />
@@ -57,11 +37,6 @@
5737
<strong>Ant Design Vue 4</strong>
5838
:五大新组件,全新 Design Token
5939
</li>
60-
<li class="alert-list-item">
61-
<strong>Surely Form</strong>
62-
:全新主题编辑, AI 问卷开放内测申请
63-
<a target="_blank" href="https://form.antdv.com">立即体验</a>
64-
</li>
6540
<li class="alert-list-item">
6641
<strong>Surely Table</strong>
6742
:支持高性能编辑模式了
@@ -157,13 +132,13 @@ export default defineComponent({
157132
watch(globalConfig?.blocked, val => {
158133
visibleAdblockBanner.value = val;
159134
});
160-
const alertKey = 'ant-design-vue-4-alert';
161-
const visibleAlertBanner = ref(!localStorage.getItem(alertKey));
162-
watch(visibleAlertBanner, () => {
163-
if (!visibleAlertBanner.value) {
164-
localStorage.setItem(alertKey, version);
165-
}
166-
});
135+
// const alertKey = 'ant-design-vue-4-alert';
136+
const visibleAlertBanner = ref(false);
137+
// watch(visibleAlertBanner, () => {
138+
// if (!visibleAlertBanner.value) {
139+
// localStorage.setItem(alertKey, version);
140+
// }
141+
// });
167142
return {
168143
isZhCN: globalConfig.isZhCN,
169144
isMobile: globalConfig.isMobile,

0 commit comments

Comments
 (0)