Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
inscode
NodeJS_639770
提交
ee044170
N
NodeJS_639770
项目概览
inscode
/
NodeJS_639770
与 Fork 源项目一致
Fork自
inscode / NodeJS
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
NodeJS_639770
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
ee044170
编写于
5月 17, 2024
作者:
View Design
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新来源
上级
02d7f029
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
46 addition
and
17 deletion
+46
-17
components/i/search/Source.vue
components/i/search/Source.vue
+45
-0
package-lock.json
package-lock.json
+0
-4
pages/search/[id].vue
pages/search/[id].vue
+1
-13
未找到文件。
components/i/search/Source.vue
0 → 100644
浏览文件 @
ee044170
<
template
>
<ULink
v-for=
"(item, index) in limitSource"
:to=
"item.link"
:title=
"item.link"
target=
"_blank"
>
<UCard
:ui=
"cardUI"
>
<div
class=
"flex flex-col gap-1"
>
<div
class=
"items-center flex gap-1"
>
<UIcon
name=
"i-simple-icons-github"
/>
<div
class=
"truncate flex flex-grow"
>
{{
item
.
repo
}}
</div>
<div
class=
"text-gray-200"
>
{{
index
+
1
}}
</div>
</div>
<div
class=
"text-blue-500 truncate"
>
{{
item
.
label
}}
</div>
</div>
</UCard>
</ULink>
<UCard
class=
"cursor-pointer"
:ui=
"cardUI"
v-if=
"source.length > 6"
@
click=
"handleToggleShowAll"
>
<div
class=
"flex items-center justify-center h-full gap-1"
>
<UIcon
name=
"i-heroicons-link-20-solid"
/>
<div
v-if=
"!showAllSource"
>
查看全部
{{
source
.
length
}}
个来源
</div>
<div
v-else
>
收起
</div>
</div>
</UCard>
</
template
>
<
script
setup
>
const
props
=
defineProps
({
source
:
{
type
:
Array
,
default
:
()
=>
[]
}
})
const
cardUI
=
{
body
:
{
padding
:
'
sm:p-3 p-3
'
,
base
:
'
h-full
'
}
}
const
showAllSource
=
ref
(
false
)
const
limitSource
=
computed
(()
=>
{
if
(
props
.
source
.
length
<=
6
)
return
props
.
source
else
if
(
showAllSource
.
value
)
return
props
.
source
else
return
props
.
source
.
slice
(
0
,
5
)
})
const
handleToggleShowAll
=
()
=>
{
showAllSource
.
value
=
!
showAllSource
.
value
}
</
script
>
package-lock.json
浏览文件 @
ee044170
...
@@ -3717,8 +3717,6 @@
...
@@ -3717,8 +3717,6 @@
},
},
"node_modules/@parcel/watcher-wasm/node_modules/napi-wasm": {
"node_modules/@parcel/watcher-wasm/node_modules/napi-wasm": {
"version": "1.1.0",
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/napi-wasm/-/napi-wasm-1.1.0.tgz",
"integrity": "sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==",
"inBundle": true,
"inBundle": true,
"license": "MIT"
"license": "MIT"
},
},
...
@@ -17780,8 +17778,6 @@
...
@@ -17780,8 +17778,6 @@
"dependencies": {
"dependencies": {
"napi-wasm": {
"napi-wasm": {
"version": "1.1.0",
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/napi-wasm/-/napi-wasm-1.1.0.tgz",
"integrity": "sha512-lHwIAJbmLSjF9VDRm9GoVOy9AGp3aIvkjv+Kvz9h16QR3uSVYH78PNQUnT2U4X53mhlnV2M7wrhibQ3GHicDmg==",
"bundled": true
"bundled": true
}
}
}
}
...
...
pages/search/[id].vue
浏览文件 @
ee044170
...
@@ -76,17 +76,7 @@
...
@@ -76,17 +76,7 @@
<span>
来源
</span>
<span>
来源
</span>
</div>
</div>
<div
class=
"grid grid-cols-1 lg:grid-cols-3 gap-4"
>
<div
class=
"grid grid-cols-1 lg:grid-cols-3 gap-4"
>
<ULink
v-for=
"(source, sourceIndex) in item.source"
:to=
"source.link"
target=
"_blank"
>
<ISearchSource
:source=
"item.source"
/>
<UCard
:ui=
"{ body: { padding: 'sm:p-3 p-3' } }"
>
<div
class=
"flex flex-col space-y-1"
>
<div
class=
"justify-between flex space-x-1"
>
<span
class=
"truncate"
><UIcon
class=
"mr-1"
name=
"i-simple-icons-github"
/>
{{ source.repo }}
</span>
<span
class=
"text-gray-200"
>
{{ sourceIndex + 1 }}
</span>
</div>
<div
class=
"text-blue-500 truncate"
>
{{ source.label }}
</div>
</div>
</UCard>
</ULink>
</div>
</div>
<UDivider
v-if=
"index !== data.length - 1"
class=
"pt-2 pb-2"
/>
<UDivider
v-if=
"index !== data.length - 1"
class=
"pt-2 pb-2"
/>
</template>
</template>
...
@@ -197,8 +187,6 @@ const handleReGenerate = (index) => {
...
@@ -197,8 +187,6 @@ const handleReGenerate = (index) => {
})
})
}
}
const
steps
=
[
''
,
'
问题分析
'
,
'
代码搜索
'
,
'
整理答案
'
,
'
完成!
'
]
const
data
=
ref
([])
const
data
=
ref
([])
const
recommendQuestions
=
[
const
recommendQuestions
=
[
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录