mirror of
				https://github.com/tidys/cc-inspector-chrome
				synced 2025-10-31 06:15:24 +00:00 
			
		
		
		
	将devtools的代码移植过去
This commit is contained in:
		| @@ -1,11 +1,13 @@ | |||||||
| import { createApp } from "vue"; | import { createApp } from "vue"; | ||||||
|  | // 用的是ui/index.vue | ||||||
| import App from "./index.vue"; | import App from "./index.vue"; | ||||||
| import CCP from "cc-plugin/src/ccp/entry-render"; | import CCP from "cc-plugin/src/ccp/entry-render"; | ||||||
| import pluginConfig from "../../../cc-plugin.config"; | import pluginConfig from "../../../cc-plugin.config"; | ||||||
| import ccui from "@xuyanfeng/cc-ui"; | import ccui from "@xuyanfeng/cc-ui"; | ||||||
| import "@xuyanfeng/cc-ui/dist/ccui.css"; | import "@xuyanfeng/cc-ui/dist/ccui.css"; | ||||||
| import "@xuyanfeng/cc-ui/iconfont/iconfont.css"; | import "@xuyanfeng/cc-ui/iconfont/iconfont.css"; | ||||||
|  | import {init} from './register-panel'; | ||||||
|  | init(); | ||||||
| export default CCP.init(pluginConfig, { | export default CCP.init(pluginConfig, { | ||||||
|   ready: function (rootElement: any, args: any) { |   ready: function (rootElement: any, args: any) { | ||||||
|     const app = createApp(App); |     const app = createApp(App); | ||||||
|   | |||||||
| @@ -1,50 +0,0 @@ | |||||||
| module.exports = { |  | ||||||
|   root: true, |  | ||||||
|   globals: { |  | ||||||
|     chrome: true, |  | ||||||
|   }, |  | ||||||
|   env: { |  | ||||||
|     node: true, |  | ||||||
|     webextensions: true, |  | ||||||
|   }, |  | ||||||
|   // parser: "vue-eslint-parser", |  | ||||||
|   // parserOptions: { |  | ||||||
|   //   "parser": "babel-eslint", |  | ||||||
|   //   "ecmaVersion": 2020, |  | ||||||
|   //   ecmaFeatures: { |  | ||||||
|   //     legacyDecorators: true |  | ||||||
|   //   } |  | ||||||
|   // }, |  | ||||||
|   parserOptions: { |  | ||||||
|     parser: "@typescript-eslint/parser" |  | ||||||
|   }, |  | ||||||
|   extends: [ |  | ||||||
|     "plugin:vue/essential", |  | ||||||
|     "eslint:recommended", |  | ||||||
|     "@vue/typescript/recommended", |  | ||||||
|     "@vue/prettier", |  | ||||||
|     "@vue/prettier/@typescript-eslint" |  | ||||||
|   ], |  | ||||||
|  |  | ||||||
|   rules: { |  | ||||||
|     "@typescript-eslint/explicit-module-boundary-types": "off", |  | ||||||
|     "@typescript-eslint/no-unused-vars": "off", |  | ||||||
|     "prettier/prettier": "off", |  | ||||||
|     "no-empty": "off", |  | ||||||
|     "prefer-const": "off", |  | ||||||
|     "@typescript-eslint/no-var-requires": "off", |  | ||||||
|     "no-undef": "off", |  | ||||||
|     "no-debugger": "off", |  | ||||||
|     "no-unreachable": "off", |  | ||||||
|     "@typescript-eslint/no-inferrable-types": "off", |  | ||||||
|     "@typescript-eslint/ban-types": "off", |  | ||||||
|     "@typescript-eslint/no-empty-function": "off", |  | ||||||
|     "@typescript-eslint/no-explicit-any": "off", |  | ||||||
|     "no-prototype-builtins": "off", |  | ||||||
|     "@typescript-eslint/ban-ts-comment": "off", |  | ||||||
|     "no-inner-declarations": "off", |  | ||||||
|     "vue/no-unused-vars": "off", |  | ||||||
|     "@typescript-eslint/no-namespace": "off", |  | ||||||
|     "@typescript-eslint/no-this-alias": "off" |  | ||||||
|   } |  | ||||||
| }; |  | ||||||
| @@ -1 +0,0 @@ | |||||||
|  |  | ||||||
| @@ -1,3 +0,0 @@ | |||||||
| module.exports = { |  | ||||||
|   presets: ["@vue/cli-plugin-babel/preset"], |  | ||||||
| }; |  | ||||||
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 4.2 KiB | 
| @@ -1,18 +0,0 @@ | |||||||
| <!DOCTYPE html> |  | ||||||
| <html lang="" style="width: 100%;height: 100%;margin: 0;padding: 0;"> |  | ||||||
| <head> |  | ||||||
|     <meta charset="utf-8"> |  | ||||||
|     <meta http-equiv="X-UA-Compatible" content="IE=edge"> |  | ||||||
|     <meta name="viewport" content="width=device-width,initial-scale=1.0"> |  | ||||||
|     <link rel="icon" href="<%= BASE_URL %>favicon.ico"> |  | ||||||
|     <title><%= htmlWebpackPlugin.options.title %></title> |  | ||||||
| </head> |  | ||||||
| <body style="width: 100%;height: 100%;margin: 0;padding: 0;"> |  | ||||||
| <noscript> |  | ||||||
|     <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. |  | ||||||
|         Please enable it to continue.</strong> |  | ||||||
| </noscript> |  | ||||||
| <div id="app"></div> |  | ||||||
| <!-- built files will be auto injected --> |  | ||||||
| </body> |  | ||||||
| </html> |  | ||||||
| @@ -1,43 +0,0 @@ | |||||||
| .el-color-picker--mini { |  | ||||||
|   width: 100% !important; |  | ||||||
|  |  | ||||||
|   .el-color-picker__trigger { |  | ||||||
|     width: 100% !important; |  | ||||||
|     height: 30px !important; |  | ||||||
|     padding: 0; |  | ||||||
|  |  | ||||||
|     .el-color-picker__icon { |  | ||||||
|       display: none; |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .el-tree--highlight-current .el-tree-node.is-current > .el-tree-node__content { |  | ||||||
|   background-color: #6d6d6d; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .el-tree-node__content { |  | ||||||
|   .leaf { |  | ||||||
|     span { |  | ||||||
|       user-select: none; |  | ||||||
|     } |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .el-input { |  | ||||||
|   input { |  | ||||||
|     text-align: left !important; |  | ||||||
|   } |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .el-input-group__append { |  | ||||||
|   padding: 0; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| .el-tree { |  | ||||||
|   width: 100%; |  | ||||||
| } |  | ||||||
|  |  | ||||||
| * { |  | ||||||
|   font-family: "PingFang SC", Arial, sans-serif; |  | ||||||
| } |  | ||||||
| @@ -1,15 +0,0 @@ | |||||||
| import Vue from "vue"; |  | ||||||
| import ElementUI from "element-ui" |  | ||||||
| import "element-ui/lib/theme-chalk/index.css" |  | ||||||
| import './icon-font/iconfont.css' |  | ||||||
| import "./global.less" |  | ||||||
| import index from "./ui/index.vue"; |  | ||||||
| import {init} from './register-panel'; |  | ||||||
|  |  | ||||||
| init(); |  | ||||||
|  |  | ||||||
| Vue.use(ElementUI, {size: "mini"}); |  | ||||||
| new Vue({ |  | ||||||
|   el: "#app", |  | ||||||
|   render: h => h(index) |  | ||||||
| }); |  | ||||||
| @@ -1,42 +0,0 @@ | |||||||
| { |  | ||||||
|   "compilerOptions": { |  | ||||||
|     "target": "esnext", |  | ||||||
|     "module": "esnext", |  | ||||||
|     "strict": true, |  | ||||||
|     "jsx": "preserve", |  | ||||||
|     "importHelpers": true, |  | ||||||
|     "moduleResolution": "node", |  | ||||||
|     "experimentalDecorators": true, |  | ||||||
|     "skipLibCheck": true, |  | ||||||
|     "allowJs": true, |  | ||||||
|     "esModuleInterop": true, |  | ||||||
|     "allowSyntheticDefaultImports": true, |  | ||||||
|     "resolveJsonModule": true, |  | ||||||
|     "sourceMap": true, |  | ||||||
|     "baseUrl": ".", |  | ||||||
|     "types": [ |  | ||||||
|       "webpack-env" |  | ||||||
|     ], |  | ||||||
|     "paths": { |  | ||||||
|       "@/*": [ |  | ||||||
|         "src/*" |  | ||||||
|       ] |  | ||||||
|     }, |  | ||||||
|     "lib": [ |  | ||||||
|       "esnext", |  | ||||||
|       "dom", |  | ||||||
|       "dom.iterable", |  | ||||||
|       "scripthost" |  | ||||||
|     ] |  | ||||||
|   }, |  | ||||||
|   "include": [ |  | ||||||
|     "src/**/*.ts", |  | ||||||
|     "src/**/*.tsx", |  | ||||||
|     "src/**/*.vue", |  | ||||||
|     "tests/**/*.ts", |  | ||||||
|     "tests/**/*.tsx" |  | ||||||
|   ], |  | ||||||
|   "exclude": [ |  | ||||||
|     "node_modules" |  | ||||||
|   ] |  | ||||||
| } |  | ||||||
							
								
								
									
										9765
									
								
								source/yarn.lock
									
									
									
									
									
								
							
							
						
						
									
										9765
									
								
								source/yarn.lock
									
									
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user