mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-10-22 20:35:24 +00:00
初步完成适配
This commit is contained in:
1
cc-inspector/src/scripts/background.ts
Normal file
1
cc-inspector/src/scripts/background.ts
Normal file
@@ -0,0 +1 @@
|
||||
console.log("background");
|
1
cc-inspector/src/scripts/content.ts
Normal file
1
cc-inspector/src/scripts/content.ts
Normal file
@@ -0,0 +1 @@
|
||||
console.log("content.ts");
|
3
cc-inspector/src/scripts/inject.ts
Normal file
3
cc-inspector/src/scripts/inject.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
console.log("injected");
|
||||
const a = 1;
|
||||
const b = 2;
|
15
cc-inspector/src/views/devtools/index.ts
Normal file
15
cc-inspector/src/views/devtools/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { createApp } from "vue";
|
||||
import App from "./index.vue";
|
||||
import CCP from "cc-plugin/src/ccp/entry-render";
|
||||
import pluginConfig from "../../../cc-plugin.config";
|
||||
import ccui from "@xuyanfeng/cc-ui";
|
||||
import "@xuyanfeng/cc-ui/dist/ccui.css";
|
||||
import "@xuyanfeng/cc-ui/iconfont/iconfont.css";
|
||||
|
||||
export default CCP.init(pluginConfig, {
|
||||
ready: function (rootElement: any, args: any) {
|
||||
const app = createApp(App);
|
||||
app.use(ccui);
|
||||
app.mount(rootElement);
|
||||
},
|
||||
});
|
20
cc-inspector/src/views/devtools/index.vue
Normal file
20
cc-inspector/src/views/devtools/index.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div class="devtools">devtools</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent, onMounted, ref, provide, nextTick } from "vue";
|
||||
export default defineComponent({
|
||||
name: "devtools",
|
||||
components: {},
|
||||
setup(props, ctx) {
|
||||
return {};
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
.devtools {
|
||||
widows: 10px;
|
||||
height: 10px;
|
||||
background-color: rebeccapurple;
|
||||
}
|
||||
</style>
|
15
cc-inspector/src/views/options/index.ts
Normal file
15
cc-inspector/src/views/options/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { createApp } from "vue";
|
||||
import App from "./index.vue";
|
||||
import CCP from "cc-plugin/src/ccp/entry-render";
|
||||
import pluginConfig from "../../../cc-plugin.config";
|
||||
import ccui from "@xuyanfeng/cc-ui";
|
||||
import "@xuyanfeng/cc-ui/dist/ccui.css";
|
||||
import "@xuyanfeng/cc-ui/iconfont/iconfont.css";
|
||||
|
||||
export default CCP.init(pluginConfig, {
|
||||
ready: function (rootElement: any, args: any) {
|
||||
const app = createApp(App);
|
||||
app.use(ccui);
|
||||
app.mount(rootElement);
|
||||
},
|
||||
});
|
20
cc-inspector/src/views/options/index.vue
Normal file
20
cc-inspector/src/views/options/index.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div class="options">options</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent, onMounted, ref, provide, nextTick } from "vue";
|
||||
export default defineComponent({
|
||||
name: "options",
|
||||
components: {},
|
||||
setup(props, ctx) {
|
||||
return {};
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
.options {
|
||||
widows: 10px;
|
||||
height: 10px;
|
||||
background-color: rebeccapurple;
|
||||
}
|
||||
</style>
|
15
cc-inspector/src/views/popup/index.ts
Normal file
15
cc-inspector/src/views/popup/index.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { createApp } from "vue";
|
||||
import App from "./index.vue";
|
||||
import CCP from "cc-plugin/src/ccp/entry-render";
|
||||
import pluginConfig from "../../../cc-plugin.config";
|
||||
import ccui from "@xuyanfeng/cc-ui";
|
||||
import "@xuyanfeng/cc-ui/dist/ccui.css";
|
||||
import "@xuyanfeng/cc-ui/iconfont/iconfont.css";
|
||||
|
||||
export default CCP.init(pluginConfig, {
|
||||
ready: function (rootElement: any, args: any) {
|
||||
const app = createApp(App);
|
||||
app.use(ccui);
|
||||
app.mount(rootElement);
|
||||
},
|
||||
});
|
20
cc-inspector/src/views/popup/index.vue
Normal file
20
cc-inspector/src/views/popup/index.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<div class="popup">popup</div>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent, onMounted, ref, provide, nextTick } from "vue";
|
||||
export default defineComponent({
|
||||
name: "popup",
|
||||
components: {},
|
||||
setup(props, ctx) {
|
||||
return {};
|
||||
},
|
||||
});
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
.popup {
|
||||
widows: 10px;
|
||||
height: 10px;
|
||||
background-color: rebeccapurple;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user