Skip to content

Commit f42d8ad

Browse files
authored
chore: remove css-animation (#7613)
* chore: remove css-animate * chore(site): remove localStorage support check
1 parent 33a0708 commit f42d8ad

File tree

7 files changed

+3
-391
lines changed

7 files changed

+3
-391
lines changed

components/_util/css-animation/Event.js

-130
This file was deleted.

components/_util/css-animation/index.js

-186
This file was deleted.

components/_util/isCssAnimationSupported.js

-24
This file was deleted.

components/config-provider/index.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { App, Plugin, WatchStopHandle } from 'vue';
1+
import type { App, MaybeRef, Plugin, WatchStopHandle } from 'vue';
22
import { watch, computed, reactive, defineComponent, watchEffect } from 'vue';
33
import defaultRenderEmpty from './renderEmpty';
44
import type { RenderEmptyHandler } from './renderEmpty';
@@ -7,7 +7,6 @@ import LocaleProvider, { ANT_MARK } from '../locale-provider';
77

88
import LocaleReceiver from '../locale-provider/LocaleReceiver';
99

10-
import type { MaybeRef } from '../_util/type';
1110
import message from '../message';
1211
import notification from '../notification';
1312
import { registerTheme } from './cssVariables';

site/src/layouts/header/Menu.vue

+2-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import More from './More.vue';
3737
import Navigation from './Navigation.vue';
3838
import Ecosystem from './Ecosystem.vue';
3939
import { version } from 'ant-design-vue';
40-
import { isZhCN, isLocalStorageNameSupported, getLocalizedPathname } from '../../utils/util';
40+
import { isZhCN, getLocalizedPathname } from '../../utils/util';
4141
import { useRoute } from 'vue-router';
4242
export default defineComponent({
4343
name: 'HeaderMenu',
@@ -58,9 +58,7 @@ export default defineComponent({
5858
const currentProtocol = `${window.location.protocol}//`;
5959
const currentHref = window.location.href.substring(currentProtocol.length);
6060
61-
if (isLocalStorageNameSupported()) {
62-
localStorage.setItem('locale', isZhCN(pathname) ? 'en-US' : 'zh-CN');
63-
}
61+
localStorage.setItem('locale', isZhCN(pathname) ? 'en-US' : 'zh-CN');
6462
6563
window.location.href =
6664
currentProtocol +

0 commit comments

Comments
 (0)