Skip to content

Commit

Permalink
chore: remove css-animation (vueComponent#7613)
Browse files Browse the repository at this point in the history
* chore: remove css-animate

* chore(site): remove localStorage support check
  • Loading branch information
extclp authored Jun 4, 2024
1 parent 33a0708 commit f42d8ad
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 391 deletions.
130 changes: 0 additions & 130 deletions components/_util/css-animation/Event.js

This file was deleted.

186 changes: 0 additions & 186 deletions components/_util/css-animation/index.js

This file was deleted.

24 changes: 0 additions & 24 deletions components/_util/isCssAnimationSupported.js

This file was deleted.

3 changes: 1 addition & 2 deletions components/config-provider/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { App, Plugin, WatchStopHandle } from 'vue';
import type { App, MaybeRef, Plugin, WatchStopHandle } from 'vue';
import { watch, computed, reactive, defineComponent, watchEffect } from 'vue';
import defaultRenderEmpty from './renderEmpty';
import type { RenderEmptyHandler } from './renderEmpty';
Expand All @@ -7,7 +7,6 @@ import LocaleProvider, { ANT_MARK } from '../locale-provider';

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

import type { MaybeRef } from '../_util/type';
import message from '../message';
import notification from '../notification';
import { registerTheme } from './cssVariables';
Expand Down
6 changes: 2 additions & 4 deletions site/src/layouts/header/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import More from './More.vue';
import Navigation from './Navigation.vue';
import Ecosystem from './Ecosystem.vue';
import { version } from 'ant-design-vue';
import { isZhCN, isLocalStorageNameSupported, getLocalizedPathname } from '../../utils/util';
import { isZhCN, getLocalizedPathname } from '../../utils/util';
import { useRoute } from 'vue-router';
export default defineComponent({
name: 'HeaderMenu',
Expand All @@ -58,9 +58,7 @@ export default defineComponent({
const currentProtocol = `${window.location.protocol}//`;
const currentHref = window.location.href.substring(currentProtocol.length);
if (isLocalStorageNameSupported()) {
localStorage.setItem('locale', isZhCN(pathname) ? 'en-US' : 'zh-CN');
}
localStorage.setItem('locale', isZhCN(pathname) ? 'en-US' : 'zh-CN');
window.location.href =
currentProtocol +
Expand Down
Loading

0 comments on commit f42d8ad

Please sign in to comment.