mirror of
https://github.com/HighCapable/YukiReflection.git
synced 2025-09-05 10:15:40 +08:00
refactor: say good night to YukiReflection
This commit is contained in:
@@ -17,6 +17,10 @@
|
|||||||
|
|
||||||
这个项目属于上述组织,**点击上方链接关注这个组织**,发现更多好项目。
|
这个项目属于上述组织,**点击上方链接关注这个组织**,发现更多好项目。
|
||||||
|
|
||||||
|
## 🚨 此项目已停止维护
|
||||||
|
|
||||||
|
此项目由于很多未能解决的黑盒问题已被弃用,我们不再推荐任何人使用它,现在请迁移到全新设计的 [KavaRef](https://github.com/HighCapable/KavaRef)。
|
||||||
|
|
||||||
## 这是什么
|
## 这是什么
|
||||||
|
|
||||||
这是一个使用 Kotlin 基于 Java 原生反射 API 重新打造的一套简洁、高效的反射 API,同时也是 [YukiHookAPI](https://github.com/HighCapable/YukiHookAPI)
|
这是一个使用 Kotlin 基于 Java 原生反射 API 重新打造的一套简洁、高效的反射 API,同时也是 [YukiHookAPI](https://github.com/HighCapable/YukiHookAPI)
|
||||||
|
@@ -17,6 +17,11 @@ English | [简体中文](README-zh-CN.md)
|
|||||||
|
|
||||||
This project belongs to the above-mentioned organization, **click the link above to follow this organization** and discover more good projects.
|
This project belongs to the above-mentioned organization, **click the link above to follow this organization** and discover more good projects.
|
||||||
|
|
||||||
|
## 🚨 Maintenance of this project has been stopped
|
||||||
|
|
||||||
|
The `YukiReflection` project has been deprecated due to many unsolved black box issues, so we no longer recommend anyone to use it.
|
||||||
|
Please now migrate to the brand new design [KavaRef](https://github.com/HighCapable/KavaRef).
|
||||||
|
|
||||||
## What's this
|
## What's this
|
||||||
|
|
||||||
This is a concise and efficient Reflection API rebuilt based on Java's native Reflection API using Kotlin,
|
This is a concise and efficient Reflection API rebuilt based on Java's native Reflection API using Kotlin,
|
||||||
|
38
docs-source/src/.vuepress/client.ts
Normal file
38
docs-source/src/.vuepress/client.ts
Normal file
@@ -0,0 +1,38 @@
|
|||||||
|
import { defineClientConfig } from '@vuepress/client'
|
||||||
|
import { h, onMounted, watch } from 'vue'
|
||||||
|
import DeprecatedBanner from './components/DeprecatedBanner.vue'
|
||||||
|
import { useRoute } from 'vue-router'
|
||||||
|
|
||||||
|
export default defineClientConfig({
|
||||||
|
rootComponents: [
|
||||||
|
() => h(DeprecatedBanner)
|
||||||
|
],
|
||||||
|
setup() {
|
||||||
|
const route = useRoute()
|
||||||
|
|
||||||
|
const adjustLayout = () => {
|
||||||
|
requestAnimationFrame(() => {
|
||||||
|
const banner = document.querySelector('.deprecated-banner') as HTMLElement
|
||||||
|
const height = banner?.clientHeight ?? 0
|
||||||
|
|
||||||
|
const themeContainer = document.querySelector('.theme-container') as HTMLElement
|
||||||
|
const navbar = document.querySelector('.navbar') as HTMLElement
|
||||||
|
const sidebar = document.querySelector('.sidebar') as HTMLElement
|
||||||
|
|
||||||
|
if (height > 0) {
|
||||||
|
if (themeContainer) themeContainer.style.paddingTop = `${height}px`
|
||||||
|
if (navbar) navbar.style.marginTop = `${height}px`
|
||||||
|
if (sidebar) sidebar.style.marginTop = `${height}px`
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
adjustLayout()
|
||||||
|
})
|
||||||
|
|
||||||
|
watch(() => route.path, () => {
|
||||||
|
adjustLayout()
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
35
docs-source/src/.vuepress/components/DeprecatedBanner.vue
Normal file
35
docs-source/src/.vuepress/components/DeprecatedBanner.vue
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
<template>
|
||||||
|
<div class="deprecated-banner">
|
||||||
|
YukiReflection is deprecated, Start trying <a href="https://github.com/HighCapable/KavaRef" target="_blank"
|
||||||
|
rel="noopener">KavaRef</a> now! 
|
||||||
|
YukiReflection 已被弃用,立即尝试 <a href="https://github.com/HighCapable/KavaRef/blob/main/README-zh-CN.md"
|
||||||
|
target="_blank" rel="noopener">KavaRef</a> 吧!
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.deprecated-banner {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #ffdddd;
|
||||||
|
color: #a00000;
|
||||||
|
text-align: center;
|
||||||
|
padding: 12px 24px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 16px;
|
||||||
|
z-index: 9999;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.deprecated-banner a {
|
||||||
|
color: #a00000;
|
||||||
|
text-decoration: underline;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.deprecated-banner a:hover {
|
||||||
|
color: #600000;
|
||||||
|
}
|
||||||
|
</style>
|
Reference in New Issue
Block a user