-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from lzfgit-byte/dev4.0
Dev4.0
- Loading branch information
Showing
18 changed files
with
425 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import type { AnalysisDetail, AnalysisVideoDetail } from '@ghs/types/src'; | ||
import type { Analysis } from '@ghs/types'; | ||
import type { ComicHistory } from '@ghs/constant'; | ||
import { getCurrentBusiness } from '../business/business'; | ||
import { getCurrentKey } from '../business/use-init-web-config'; | ||
|
||
/** | ||
* 获取页面的解析数据 | ||
*/ | ||
export const getAnalysisDetail = async (item: Analysis): Promise<AnalysisDetail[]> => { | ||
return getCurrentBusiness(getCurrentKey())?.getAnalysisDetail(item); | ||
}; | ||
/** | ||
* 获取 视频播放详细 AnalysisVideoDetail | ||
*/ | ||
export const getAnalysisVideoDetail = async ( | ||
item: AnalysisDetail | ||
): Promise<AnalysisVideoDetail[]> => { | ||
return getCurrentBusiness(getCurrentKey())?.getAnalysisVideoDetail(item); | ||
}; | ||
|
||
export const getSeriesCurrentContent = async (): Promise<ComicHistory> => { | ||
return getCurrentBusiness(getCurrentKey())?.getSeriesCurrentContent(); | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<template> | ||
<a-float-button | ||
v-if="commentsRef?.length > 0" | ||
tooltip="查看评论" | ||
type="default" | ||
:style="{ | ||
right: '15px', | ||
top: '250px', | ||
width: '30px', | ||
height: '30px', | ||
opacity: 0.2, | ||
}" | ||
@click="drawerOpenModel = true" | ||
> | ||
<template #icon> | ||
<CommentOutlined :style="{ fontSize: '14px', color: '#323' }" /> | ||
</template> | ||
</a-float-button> | ||
<a-drawer | ||
v-model:open="drawerOpenModel" | ||
title="" | ||
placement="right" | ||
:closable="false" | ||
:mask-closable="true" | ||
:z-index="20000" | ||
root-class-name="ghs-video-drawer-container" | ||
:content-wrapper-style="{ zIndex: 20000 }" | ||
:body-style="{ zIndex: 20000, padding: '10px' }" | ||
width="55%" | ||
:get-container="getDrawerContainer" | ||
:style="{ position: 'absolute' }" | ||
> | ||
<div h-full w-full overflow-auto> | ||
<GhsComment | ||
v-for="item in commentsRef" | ||
:key="item.comment" | ||
:datetime="item.datetime" | ||
:comment="item.comment" | ||
> | ||
</GhsComment> | ||
</div> | ||
</a-drawer> | ||
</template> | ||
<script setup lang="ts"> | ||
import { CommentOutlined } from '@ant-design/icons-vue'; | ||
import type { PropType } from 'vue-demi'; | ||
import type { Comment } from '@ghs/types'; | ||
import { useVModel } from '@vueuse/core'; | ||
import { ref } from 'vue'; | ||
import GhsComment from '@/components/comment/ghs-comment.vue'; | ||
const props = defineProps({ comments: Array as PropType<Comment[]> }); | ||
const emits = defineEmits(['update:comments']); | ||
const drawerOpenModel = ref(false); | ||
const commentsRef = useVModel(props, 'comments', emits); | ||
const getDrawerContainer = () => document.getElementById('body'); | ||
</script> | ||
|
||
<style scoped lang="less"></style> |
Oops, something went wrong.