Skip to content

Commit

Permalink
add BAM
Browse files Browse the repository at this point in the history
  • Loading branch information
ProudMuBai committed Dec 23, 2023
1 parent d85dbe9 commit b48e53a
Show file tree
Hide file tree
Showing 151 changed files with 12,401 additions and 1,332 deletions.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,10 @@ dist/
package-lock.json

.idea/
.idea
.idea
# 文件保留路径
static/


*Privide*.go

30 changes: 30 additions & 0 deletions client/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,55 @@ export {}
declare module '@vue/runtime-core' {
export interface GlobalComponents {
CustomDialog: typeof import('./src/components/Popup/CustomDialog.vue')['default']
ElAside: typeof import('element-plus/es')['ElAside']
ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElButton: typeof import('element-plus/es')['ElButton']
ElCol: typeof import('element-plus/es')['ElCol']
ElCollapseTransition: typeof import('element-plus/es')['ElCollapseTransition']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElContainer: typeof import('element-plus/es')['ElContainer']
ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDialog: typeof import('element-plus/es')['ElDialog']
ElDropdown: typeof import('element-plus/es')['ElDropdown']
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElFooter: typeof import('element-plus/es')['ElFooter']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElImage: typeof import('element-plus/es')['ElImage']
ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
ElInput: typeof import('element-plus/es')['ElInput']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElLink: typeof import('element-plus/es')['ElLink']
ElMain: typeof import('element-plus/es')['ElMain']
ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption']
ElPagination: typeof import('element-plus/es')['ElPagination']
ElRadio: typeof import('element-plus/es')['ElRadio']
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
ElRow: typeof import('element-plus/es')['ElRow']
ElSelect: typeof import('element-plus/es')['ElSelect']
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTable: typeof import('element-plus/es')['ElTable']
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
ElTag: typeof import('element-plus/es')['ElTag']
ElTooltip: typeof import('element-plus/es')['ElTooltip']
ElUpload: typeof import('element-plus/es')['ElUpload']
FilmList: typeof import('./src/components/FilmList.vue')['default']
Footer: typeof import('./src/components/Footer.vue')['default']
Header: typeof import('./src/components/Header.vue')['default']
ImageViewer: typeof import('./src/components/Global/ImageViewer.vue')['default']
Loading: typeof import('./src/components/Loading/Loading.vue')['default']
ManageHeader: typeof import('./src/components/Manage/ManageHeader.vue')['default']
RelateList: typeof import('./src/components/RelateList.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
Sidebar: typeof import('./src/components/Manage/Sidebar.vue')['default']
Util: typeof import('./src/components/Util.vue')['default']
}
}
2 changes: 1 addition & 1 deletion client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="referrer" content="never">
<meta charset="UTF-8"/>
<title>(╥﹏╥)</title>
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_3992367_r0ou59wsgum.css">
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_3992367_chvdxwo1gkp.css">
</head>
<body>
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@element-plus/icons-vue": "^2.1.0",
"@videojs-player/vue": "^1.0.0",
"axios": "^1.3.4",
"element-plus": "^2.3.2",
"element-plus": "^2.4.4",
"video.js": "^8.0.4",
"vue": "^3.2.47"
},
Expand Down
9 changes: 5 additions & 4 deletions client/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
<template>
<el-config-provider :locale="zhCn">
<div class="main" >
<router-view></router-view>
<Util/>
<router-view></router-view>
<Util/>
</div>
</el-config-provider>
</template>

<script lang="ts" setup>
import Util from "./components/Util.vue";
import zhCn from "element-plus/dist/locale/zh-cn.min.js";
</script>

<style>
Expand Down
Binary file added client/src/assets/image/bg.mp4
Binary file not shown.
Binary file added client/src/assets/image/managebg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions client/src/components/Global/ImageViewer.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<template>
<el-image-viewer
v-if="data.show"
:urlList="data.list"
:z-index="data.zIndex"
:initial-index="data.initialIndex"
:infinite="data.infinite"
:hideOnClickModal="data.hideOnClickModal"
@close="data.show = false"
></el-image-viewer>
</template>

<script setup lang="ts">
import {onMounted, reactive, watch} from "vue";
const props = defineProps({
options: {
type:Object,
default: {
list:Array,
currentLink: String,
show:Boolean,
}
},
remove: {
type:Function,
default: null,
}
})
const data = reactive({
show: false,
list: [{link:''}],
zIndex: 2000,
initialIndex: 0,
infinite: true,
hideOnClickModal: false,
})
onMounted(()=>{
data.list = props.options.list
data.list.forEach((item,index)=>{
if (item == props.options.currentLink) {
data.initialIndex = index
}
})
data.show = props.options?.show
})
watch([data],()=>{
!data.show && props.remove()
})
</script>

<style scoped>
</style>
20 changes: 20 additions & 0 deletions client/src/components/Global/preview.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import ImageViewer from "./ImageViewer.vue";
import {createApp} from "vue";

const Preview = (options:any) =>{
// 默认创建 ImageViewer 组件时为显示状态
options.show = true
// 创建节点用户挂载
const el = document.createElement("div")
document.body.appendChild(el)
const app = createApp(ImageViewer, {
options,
remove(){
app.unmount()
document.body.removeChild(el)
}
})
return app.mount(el)
}

export {Preview}
37 changes: 28 additions & 9 deletions client/src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<!-- 左侧logo以及搜索 -->
<div class="nav_left">
<!-- <img class="logo" src="/src/assets/logo.png">-->
<a href="/" class="site">GoFilm</a>
<!--<el-avatar class="logo" :size="45" :src="data.site.logo" alt="GoFilm"/>-->
<a href="/" class="site">{{ data.site.siteName }}</a>
<div class="search_group">
<input v-model="keyword" @keydown="(e)=>{e.keyCode == 13 && searchFilm()}" placeholder="搜索 动漫,剧集,电影 "
class="search"/>
Expand All @@ -13,10 +14,13 @@
<!--右侧顶级分类导航 -->
<div class="nav_right">
<a href="/">首页</a>
<a :href="`/filmClassify?Pid=${nav.film.id}`">电影</a>
<a :href="`/filmClassify?Pid=${nav.tv.id}`">剧集</a>
<a :href="`/filmClassify?Pid=${nav.cartoon.id}`">动漫</a>
<a :href="`/filmClassify?Pid=${nav.variety.id}`">综艺</a>
<!--<a :href="`/filmClassify?Pid=${nav.film.id}`">电影</a>-->
<!--<a :href="`/filmClassify?Pid=${nav.tv.id}`">剧集</a>-->
<!--<a :href="`/filmClassify?Pid=${nav.cartoon.id}`">动漫</a>-->
<!--<a :href="`/filmClassify?Pid=${nav.variety.id}`">综艺</a>-->
<template v-for="n in data.nav">
<a :href="`/filmClassify?Pid=${n.id}`">{{ n.name }}</a>
</template>

<div class="history-link hidden-md-and-down" v-on:mouseenter="handleHistory(true)"
v-on:mouseleave="handleHistory(false)">
Expand Down Expand Up @@ -65,6 +69,8 @@ const keyword = ref<string>('')
const data = reactive({
historyFlag: false,
historyList: [{}],
nav: Array,
site: Object,
})
// 加载观看历史记录信息
const handleHistory = (flag: boolean) => {
Expand Down Expand Up @@ -106,17 +112,30 @@ const nav = reactive({
tv: {},
variety: {},
})
// 获取站点信息
const getBasicInfo = ()=>{
ApiGet(`/manage/config/basic`).then((resp: any) => {
if (resp.code === 0) {
data.site = resp.data
} else {
ElMessage.error({message: resp.data.msg})
}
})
}
onMounted(() => {
ApiGet('/navCategory').then((resp: any) => {
if (resp.status === 'ok') {
nav.tv = resp.data.tv
nav.film = resp.data.film
nav.cartoon = resp.data.cartoon
nav.variety = resp.data.variety
// nav.tv = resp.data.tv
// nav.film = resp.data.film
// nav.cartoon = resp.data.cartoon
// nav.variety = resp.data.variety
data.nav = resp.data
} else {
ElMessage.error({message: "请先输入影片名称关键字再进行搜索", duration: 1000})
}
})
getBasicInfo()
})
</script>

Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Loading/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ defineProps({
margin-left: 10%;
transform: translate3d(-50%, -50%, 0);
background: rgba(0,0,0, 0.65);
z-index: 2002;
z-index: 5000;
overflow-y: hidden;
}
.loader-container {
Expand Down
Loading

0 comments on commit b48e53a

Please sign in to comment.