mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-20 08:58:41 +00:00
嵌入B站视频
This commit is contained in:
parent
8fbfc43b18
commit
df2844e869
@ -1,19 +1,23 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="panel">
|
<div class="panel ccui-scrollbar">
|
||||||
<vue-particles id="tsparticles" :options="options"></vue-particles>
|
<vue-particles id="tsparticles" :options="options"></vue-particles>
|
||||||
<div class="head">
|
<div class="head">
|
||||||
<img class="icon" src="../../doc/icon128.png" />
|
<img class="icon" src="../../doc/icon128.png" />
|
||||||
<span class="txt">Cocos Inspector</span>
|
<span class="txt">Cocos Inspector</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content" :class="horizontal ? 'content-row' : 'content-col'">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<p style="font-size: 40px; font-weight: bold; color: white">为Coocs游戏开发加速。</p>
|
<p style="font-size: 40px; font-weight: bold; color: white">为Coocs游戏开发加速。</p>
|
||||||
<div style="font-size: 18px; font-weight: normal; margin: 30px 0; line-height: 40px; color: white">在Chrome浏览器中查看节点树、节点属性。<br />支持Creator所有版本。</div>
|
<div style="font-size: 18px; font-weight: normal; margin: 30px 0; line-height: 40px; color: white">在Chrome浏览器中查看节点树、节点属性。<br />支持Creator所有版本。</div>
|
||||||
|
<div class="link">
|
||||||
<CCButton color="rgb(38,187,255)" class="download" @click="onClickBtn">
|
<CCButton color="rgb(38,187,255)" class="download" @click="onClickBtn">
|
||||||
<div style="font-size: 20px; font-weight: normal; color: black">下载</div>
|
<div style="font-size: 20px; font-weight: normal; color: black">下载</div>
|
||||||
</CCButton>
|
</CCButton>
|
||||||
|
<i @click="onClickGithub" class="iconfont icon_github github"></i>
|
||||||
</div>
|
</div>
|
||||||
<video class="video" controls="true" autoplay loop muted src="./res/video.mp4"></video>
|
</div>
|
||||||
|
<iframe class="video" src="//player.bilibili.com/player.html?isOutside=true&aid=113803849106700&bvid=BV1jzcHeSEh3&cid=27797426092&p=1" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>
|
||||||
|
<!-- <video class="video" controls="true" autoplay loop muted src="https://www.bilibili.com/video/BV1jzcHeSEh3/"></video> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -27,8 +31,14 @@ export default defineComponent({
|
|||||||
components: { CCButton },
|
components: { CCButton },
|
||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
console.log("hi ~~~");
|
updateLayout();
|
||||||
});
|
});
|
||||||
|
const horizontal = ref(true);
|
||||||
|
function updateLayout() {
|
||||||
|
const w = window.document.body.clientWidth;
|
||||||
|
horizontal.value = w > 1100;
|
||||||
|
}
|
||||||
|
window.addEventListener("resize", updateLayout);
|
||||||
const msg = ref(PluginConfig.manifest.name);
|
const msg = ref(PluginConfig.manifest.name);
|
||||||
const count = ref(0);
|
const count = ref(0);
|
||||||
const options = ref({
|
const options = ref({
|
||||||
@ -110,11 +120,16 @@ export default defineComponent({
|
|||||||
});
|
});
|
||||||
return {
|
return {
|
||||||
options,
|
options,
|
||||||
|
horizontal,
|
||||||
msg,
|
msg,
|
||||||
count,
|
count,
|
||||||
onClickBtn() {
|
onClickBtn() {
|
||||||
count.value++;
|
const url = "https://chromewebstore.google.com/detail/cc-inspector/hejbkamkfnkifppoaljcidepkhgaahcj?hl=zh-CN&utm_source=ext_sidebar";
|
||||||
console.log("click btn");
|
window.open(url);
|
||||||
|
},
|
||||||
|
onClickGithub() {
|
||||||
|
const url = "https://github.com/tidys/cc-inspector-chrome";
|
||||||
|
window.open(url);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
@ -125,7 +140,7 @@ export default defineComponent({
|
|||||||
.panel {
|
.panel {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
overflow: hidden;
|
overflow: auto;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
padding: 30px;
|
padding: 30px;
|
||||||
@ -148,25 +163,53 @@ export default defineComponent({
|
|||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.content-row {
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
.content-col {
|
||||||
|
flex-direction: column;
|
||||||
|
.video {
|
||||||
|
margin-top: 40px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
.content {
|
.content {
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
|
||||||
.title {
|
.title {
|
||||||
margin-top: 10px;
|
margin-top: 10px;
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
min-width: 450px;
|
min-width: 450px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
.link {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: flex-end;
|
||||||
|
.github {
|
||||||
|
cursor: pointer;
|
||||||
|
padding: 0 20px;
|
||||||
|
font-size: 30px;
|
||||||
|
color: white;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #188ee1;
|
||||||
|
}
|
||||||
|
&:active {
|
||||||
|
color: rgb(255, 153, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
.download {
|
.download {
|
||||||
width: 160px;
|
width: 160px;
|
||||||
height: 60px;
|
height: 60px;
|
||||||
font-size: 20px !important;
|
font-size: 20px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
.video {
|
.video {
|
||||||
|
flex: 1;
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
min-height: 440px;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
color: white;
|
color: white;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user