Compare commits
No commits in common. "e1e795b5dc8c2ce13c6e46050a259ae6c9fd40cb" and "3f2a50f86d54dffb29d74c5844041f857249df44" have entirely different histories.
e1e795b5dc
...
3f2a50f86d
@ -5,9 +5,6 @@ let route = useRoute()
|
|||||||
// const handleSelect = (key: string, keyPath: string[]) => {
|
// const handleSelect = (key: string, keyPath: string[]) => {
|
||||||
// console.log(key, keyPath)
|
// console.log(key, keyPath)
|
||||||
// }
|
// }
|
||||||
|
|
||||||
const HotArray = await $fetch("https://data.zziyu.cn/hot/webs")
|
|
||||||
// console.log(HotArray)
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -24,9 +21,8 @@ const HotArray = await $fetch("https://data.zziyu.cn/hot/webs")
|
|||||||
<el-sub-menu index="/data/all">
|
<el-sub-menu index="/data/all">
|
||||||
<template #title>数据收集</template>
|
<template #title>数据收集</template>
|
||||||
<el-menu-item index="/data/all">总览</el-menu-item>
|
<el-menu-item index="/data/all">总览</el-menu-item>
|
||||||
<el-menu-item v-for="(item,index) in HotArray" :key="index" :index="'/data/'+item">{{item}}</el-menu-item>
|
<el-menu-item index="/data/bilibili">bilibili</el-menu-item>
|
||||||
<!-- <el-menu-item index="/data/bilibili">bilibili</el-menu-item>-->
|
<el-menu-item index="/data/baidu">baidu</el-menu-item>
|
||||||
<!-- <el-menu-item index="/data/baidu">baidu</el-menu-item>-->
|
|
||||||
</el-sub-menu>
|
</el-sub-menu>
|
||||||
<el-sub-menu index="/tools">
|
<el-sub-menu index="/tools">
|
||||||
<template #title>工具</template>
|
<template #title>工具</template>
|
||||||
|
@ -6,7 +6,6 @@ let {api} = await $fetch('/api/data/all')
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Title>热搜 {{route.params.WebName}} </Title>
|
|
||||||
这是 {{route.params.WebName}} 数据展示
|
这是 {{route.params.WebName}} 数据展示
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,19 +1,18 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const HotArray = await $fetch("https://data.zziyu.cn/hot/webs")
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Title>网站地图</Title>
|
<Title>网站地图</Title>
|
||||||
<div style="display: flex;justify-content: center;flex-direction: column;align-items: center">
|
<div style="display: flex;justify-content: center;flex-direction: column;align-items: center">
|
||||||
<NuxtLink to="/">主页</NuxtLink>
|
<NuxtLink to="/">主页</NuxtLink>
|
||||||
<NuxtLink to="/data/all">数据收集所有</NuxtLink>
|
<NuxtLink to="/data/all">数据收集</NuxtLink>
|
||||||
<!-- <NuxtLink to="/data/bilibili">数据收集Bilibili</NuxtLink>-->
|
<NuxtLink to="/data/bilibili">数据收集Bilibili</NuxtLink>
|
||||||
<!-- <NuxtLink to="/data/baidu">数据收集百度</NuxtLink>-->
|
<NuxtLink to="/data/baidu">数据收集百度</NuxtLink>
|
||||||
<NuxtLink v-for="(item,index) in HotArray" :to="'/data/'+item" :key="index">数据收集 {{item}}</NuxtLink>
|
|
||||||
<NuxtLink to="/">主页</NuxtLink>
|
<NuxtLink to="/">主页</NuxtLink>
|
||||||
<NuxtLink to="/tools/qqazk/">笔顺码字典首页</NuxtLink>
|
<NuxtLink to="/tools/qqazk/">笔顺码字典首页</NuxtLink>
|
||||||
<NuxtLink to="/tools/qqazk/about">笔顺码字典关于</NuxtLink>
|
<NuxtLink to="/tools/qqazk/about">笔顺码字典关于</NuxtLink>
|
||||||
<NuxtLink to="/map/qqazk">所有笔顺码</NuxtLink>
|
<NuxtLink to="/tools/qqazk/search?words=&method=bsmf">所有笔顺码</NuxtLink>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
@ -1,30 +0,0 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
|
|
||||||
import {Action} from "element-plus";
|
|
||||||
|
|
||||||
const dataRaw = await $fetch(`/api/tools/qqazk/search?words=&method=hz`)
|
|
||||||
if (dataRaw.haveMess){
|
|
||||||
ElMessageBox.alert(dataRaw.message,"获取资源错误",{
|
|
||||||
confirmButtonText: '确认',
|
|
||||||
callback:(action:Action)=>{
|
|
||||||
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
|
||||||
let arr = dataRaw.data
|
|
||||||
|
|
||||||
// console.log(arr)
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
|
||||||
<Title>网站地图-所有笔顺码</Title>
|
|
||||||
<NuxtLink v-for="value in arr" :to="'/tools/qqazk/details/'+value.id">
|
|
||||||
{{value.hz}}
|
|
||||||
</NuxtLink>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
a {
|
|
||||||
margin: 10px;
|
|
||||||
}
|
|
||||||
</style>
|
|
@ -1,4 +1,4 @@
|
|||||||
import {readFile, readFileSync} from "fs";
|
import {readFile} from "fs";
|
||||||
|
|
||||||
interface Word{
|
interface Word{
|
||||||
bsm:string
|
bsm:string
|
||||||
@ -11,18 +11,12 @@ interface Ret{
|
|||||||
message:string
|
message:string
|
||||||
haveMess:boolean
|
haveMess:boolean
|
||||||
}
|
}
|
||||||
let words:Word[] = []
|
let words:Word[]
|
||||||
const loadWords = ()=>{
|
readFile("./word.json",'utf-8',(err, data)=>{
|
||||||
const wordRaw = readFileSync('./word.json','utf-8')
|
if (err)console.error(err)
|
||||||
words = JSON.parse(wordRaw)
|
words=JSON.parse(data)
|
||||||
for (let i = 0; i< words.length ; i++){
|
})
|
||||||
words[i].id =i;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
export default defineEventHandler((event):Ret=>{
|
export default defineEventHandler((event):Ret=>{
|
||||||
if (words.length===0){
|
|
||||||
loadWords()
|
|
||||||
}
|
|
||||||
const query = getQuery(event)
|
const query = getQuery(event)
|
||||||
if (query.id=="错误"){
|
if (query.id=="错误"){
|
||||||
return {
|
return {
|
||||||
@ -31,7 +25,6 @@ export default defineEventHandler((event):Ret=>{
|
|||||||
haveMess:true
|
haveMess:true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// @ts-ignore
|
|
||||||
if (query.id>=words.length){
|
if (query.id>=words.length){
|
||||||
return {
|
return {
|
||||||
data:words[0],
|
data:words[0],
|
||||||
@ -39,9 +32,7 @@ export default defineEventHandler((event):Ret=>{
|
|||||||
haveMess:true
|
haveMess:true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
// @ts-ignore
|
|
||||||
data:words[query.id],
|
data:words[query.id],
|
||||||
message:"",
|
message:"",
|
||||||
haveMess:false
|
haveMess:false
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {readFile, readFileSync} from "fs";
|
import {readFile} from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
interface Word{
|
interface Word{
|
||||||
bsm:string
|
bsm:string
|
||||||
@ -11,23 +11,17 @@ interface Ret{
|
|||||||
message:string
|
message:string
|
||||||
haveMess:boolean
|
haveMess:boolean
|
||||||
}
|
}
|
||||||
let words:Word[] = []
|
let words:Word[]
|
||||||
|
readFile("./word.json",'utf-8',(err, data)=>{
|
||||||
const loadWords = ()=>{
|
if (err)console.error(err)
|
||||||
const wordRaw = readFileSync('./word.json','utf-8')
|
words = JSON.parse(data)
|
||||||
words = JSON.parse(wordRaw)
|
for (let i =0 ;i<words.length;i++){
|
||||||
for (let i = 0; i< words.length ; i++){
|
words[i].id=i
|
||||||
words[i].id =i;
|
|
||||||
}
|
}
|
||||||
}
|
})
|
||||||
|
|
||||||
export default defineEventHandler((event):Ret=>{
|
export default defineEventHandler((event):Ret=>{
|
||||||
if (words.length===0){
|
|
||||||
loadWords()
|
|
||||||
}
|
|
||||||
const retWords:Word[] = []
|
const retWords:Word[] = []
|
||||||
const query = getQuery(event)
|
const query = getQuery(event)
|
||||||
// @ts-ignore
|
|
||||||
if (query.words=="错误"||query.method=="错误"||!(query.method=="bsmf"||query.method=="bsmc"||query.method=="hz")||query.words.length>20){
|
if (query.words=="错误"||query.method=="错误"||!(query.method=="bsmf"||query.method=="bsmc"||query.method=="hz")||query.words.length>20){
|
||||||
return {
|
return {
|
||||||
data:[],
|
data:[],
|
||||||
|
Loading…
Reference in New Issue
Block a user