Skip to content

Commit

Permalink
增加反编译类管理器
Browse files Browse the repository at this point in the history
  • Loading branch information
tommy811 committed Sep 1, 2024
1 parent 52410f2 commit 045dc10
Show file tree
Hide file tree
Showing 18 changed files with 1,038 additions and 194 deletions.
69 changes: 69 additions & 0 deletions JCat-web/src/App2.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
<template>
<!-- App.vue -->

<v-app>
<v-navigation-drawer app dark mini-variant mini-variant-width="56px" permanent>
<v-list-item >
<v-list-item-avatar style="font-style: italic">
<v-avatar
color="primary"
size="48"
>JCat
</v-avatar>
</v-list-item-avatar>

</v-list-item>
<v-divider></v-divider>
<v-list nav>
<v-list-item to="/console">
<v-list-item-icon>
<v-icon> mdi-console</v-icon>
</v-list-item-icon>
</v-list-item>
<v-list-item to="/resource">
<v-list-item-icon>
<v-icon>mdi-file-document-multiple-outline</v-icon>
</v-list-item-icon>
</v-list-item>
</v-list>
</v-navigation-drawer>
<v-main>
<v-container fluid>
<!-- 如果使用 vue-router -->
<h5>{{ titleText }}</h5>
<router-view></router-view>
</v-container>
</v-main>

</v-app>
</template>
<script>
import GlobalMessage from "@/components/GlobalMessage.vue";
export default {
name: "App",
components: {
GlobalMessage,
},
data: () => {
return {}
},
computed: {
titleText() {
if (this.$route.path == "/console") {
return "控制台"
} else if (this.$route.path == "/resource") {
return "资源管理器"
}
return "";
}
}
};
</script>


<style>
body {
margin: 0;
}
</style>
15 changes: 15 additions & 0 deletions JCat-web/src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,22 @@ export class ConsoleService {
}
}

export class ResourceExplorerService {
constructor() {
this.api = createBaseApi(`/jCat/api/resource`);
addResponseFilter(this.api);
}
getAllClass(){
let params = new URLSearchParams({ });
return this.api.get(`/allClass?${params.toString()}`);
}
decompilerClass(classId){
let params = new URLSearchParams({ classId });
return this.api.get(`/decompilerClass?${params.toString()}`);
}
}
export default {
ConsoleService,
ResourceExplorerService
}

Loading

0 comments on commit 045dc10

Please sign in to comment.