From 1b5a9126b738ef70bd5c4f5e4b8216ede82a8624 Mon Sep 17 00:00:00 2001
From: "andrea.terzani"
Date: Wed, 16 Oct 2024 15:04:38 +0200
Subject: [PATCH 1/5] new cia scenario output
---
package-lock.json | 11 ++
package.json | 2 +
src/components/ChangeImpactOutputViewer.vue | 10 --
src/components/CiaFlowCodeViewer.vue | 14 ++-
src/components/CiaSingleImpactView.vue | 108 ++++++++++++++++++++
src/main.js | 2 +-
6 files changed, 128 insertions(+), 19 deletions(-)
create mode 100644 src/components/CiaSingleImpactView.vue
diff --git a/package-lock.json b/package-lock.json
index b8b0b03..58ef22b 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -20,6 +20,7 @@
"axios": "^1.7.2",
"chart.js": "3.3.2",
"Hermione": "file:",
+ "highlight.js": "^11.10.0",
"json-editor-vue": "^0.15.1",
"md-editor-v3": "^4.18.0",
"primeicons": "^6.0.1",
@@ -29,6 +30,7 @@
"v-code-diff": "^1.13.1",
"vue": "^3.4.34",
"vue-authenticate-2": "^2.2.0",
+ "vue-highlight-code": "^0.2.0",
"vue-markdown-render": "^2.2.1",
"vue-router": "^4.4.0",
"vue3-markdown": "^1.1.9"
@@ -6403,6 +6405,15 @@
"eslint": ">=6.0.0"
}
},
+ "node_modules/vue-highlight-code": {
+ "version": "0.2.0",
+ "resolved": "https://registry.npmjs.org/vue-highlight-code/-/vue-highlight-code-0.2.0.tgz",
+ "integrity": "sha512-KNDa2QWr2yVxVJYRmcr8/cHUGPoGrwDWNm5P0pos+ZkG0tC5mc1Nb4BpBddL+SNYH24ZV9Bco6iOVSkG9H3K8g==",
+ "dependencies": {
+ "highlight.js": "^11.5.1",
+ "vue": "^3.2.25"
+ }
+ },
"node_modules/vue-markdown-render": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/vue-markdown-render/-/vue-markdown-render-2.2.1.tgz",
diff --git a/package.json b/package.json
index 5760356..6f07ea9 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
"axios": "^1.7.2",
"chart.js": "3.3.2",
"Hermione": "file:",
+ "highlight.js": "^11.10.0",
"json-editor-vue": "^0.15.1",
"md-editor-v3": "^4.18.0",
"primeicons": "^6.0.1",
@@ -29,6 +30,7 @@
"v-code-diff": "^1.13.1",
"vue": "^3.4.34",
"vue-authenticate-2": "^2.2.0",
+ "vue-highlight-code": "^0.2.0",
"vue-markdown-render": "^2.2.1",
"vue-router": "^4.4.0",
"vue3-markdown": "^1.1.9"
diff --git a/src/components/ChangeImpactOutputViewer.vue b/src/components/ChangeImpactOutputViewer.vue
index 88ae0b0..129c0d3 100644
--- a/src/components/ChangeImpactOutputViewer.vue
+++ b/src/components/ChangeImpactOutputViewer.vue
@@ -4,16 +4,6 @@
{{ parsedOuput.description }}
-
diff --git a/src/components/CiaFlowCodeViewer.vue b/src/components/CiaFlowCodeViewer.vue
index 88ba2b9..012f65e 100644
--- a/src/components/CiaFlowCodeViewer.vue
+++ b/src/components/CiaFlowCodeViewer.vue
@@ -4,7 +4,6 @@ import { Controls } from '@vue-flow/controls'
import { VueFlow, useVueFlow } from '@vue-flow/core'
import { MiniMap } from '@vue-flow/minimap'
import Dialog from 'primevue/dialog'
-import { CodeDiff } from 'v-code-diff'
import { nextTick, onMounted, ref, toRefs } from 'vue'
import ClassNode from './ClassNode.vue'
import { useLayout } from './useLayout'
@@ -112,15 +111,18 @@ function defineNodes() {
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main.js b/src/main.js
index b6b43d8..ac98284 100644
--- a/src/main.js
+++ b/src/main.js
@@ -47,7 +47,7 @@ var auth = createAuth({
}
});
-axios.defaults.baseURL = import.meta.env.VITE_BACKEND_URL;//'http://localhost:8081'//
+axios.defaults.baseURL = 'http://localhost:8081' //import.meta.env.VITE_BACKEND_URL;//'http://localhost:8081'//
const app = createApp(App);
From ab7b8e79557d57814b117f40583d4d9af6851677 Mon Sep 17 00:00:00 2001
From: "andrea.terzani"
Date: Wed, 16 Oct 2024 15:06:15 +0200
Subject: [PATCH 2/5] fe url
---
src/main.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.js b/src/main.js
index ac98284..b6b43d8 100644
--- a/src/main.js
+++ b/src/main.js
@@ -47,7 +47,7 @@ var auth = createAuth({
}
});
-axios.defaults.baseURL = 'http://localhost:8081' //import.meta.env.VITE_BACKEND_URL;//'http://localhost:8081'//
+axios.defaults.baseURL = import.meta.env.VITE_BACKEND_URL;//'http://localhost:8081'//
const app = createApp(App);
From 6ea3fc26e3914c48b4f964e2bbd73902756a7a81 Mon Sep 17 00:00:00 2001
From: "andrea.terzani"
Date: Fri, 18 Oct 2024 07:03:24 +0200
Subject: [PATCH 3/5] code browser
---
src/components/CiaFlowCodeViewer.vue | 9 -
src/components/CiaSingleImpactView.vue | 2 +-
src/components/FileFlowViewer.vue | 229 +++++++++++++++++++++++++
src/components/SingleClassViewer.vue | 173 +++++++++++++++++++
src/layout/AppMenu.vue | 4 +
src/main.js | 2 +-
src/router/index.js | 5 +
src/service/ApplicationCodeService.js | 8 +
src/views/pages/ApplicationBrowser.vue | 95 ++++++++++
9 files changed, 516 insertions(+), 11 deletions(-)
create mode 100644 src/components/FileFlowViewer.vue
create mode 100644 src/components/SingleClassViewer.vue
create mode 100644 src/service/ApplicationCodeService.js
create mode 100644 src/views/pages/ApplicationBrowser.vue
diff --git a/src/components/CiaFlowCodeViewer.vue b/src/components/CiaFlowCodeViewer.vue
index 012f65e..a52ff8e 100644
--- a/src/components/CiaFlowCodeViewer.vue
+++ b/src/components/CiaFlowCodeViewer.vue
@@ -113,15 +113,6 @@ function defineNodes() {
-
diff --git a/src/components/CiaSingleImpactView.vue b/src/components/CiaSingleImpactView.vue
index 934db3a..5fc40aa 100644
--- a/src/components/CiaSingleImpactView.vue
+++ b/src/components/CiaSingleImpactView.vue
@@ -40,7 +40,7 @@
theme="dark"
width="100%"
height="100%"
- codeLines="true"
+ :codeLines="true"
fontSize="14px"
>
diff --git a/src/components/FileFlowViewer.vue b/src/components/FileFlowViewer.vue
new file mode 100644
index 0000000..d88f2a8
--- /dev/null
+++ b/src/components/FileFlowViewer.vue
@@ -0,0 +1,229 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/SingleClassViewer.vue b/src/components/SingleClassViewer.vue
new file mode 100644
index 0000000..ff9264b
--- /dev/null
+++ b/src/components/SingleClassViewer.vue
@@ -0,0 +1,173 @@
+
+
+
+ Class Code
+ Class RE
+ Method List
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
No Description available for this class
+
+
+
+
+
+
+
+
+
+
+
Method Code ( No reverse engineering available )
+
+
+
+
+
Method Explaination
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/layout/AppMenu.vue b/src/layout/AppMenu.vue
index ba84f29..219d8b4 100644
--- a/src/layout/AppMenu.vue
+++ b/src/layout/AppMenu.vue
@@ -13,7 +13,11 @@ const model = ref([
}, {
label: 'Canvas',
items: [{ label: 'New Canvas', icon: 'pi pi-fw pi-id-card', to: '/mdcanvas' }]
+ },{
+ label: 'Browse Code',
+ items: [{ label: 'ATF-Prossor', icon: 'pi pi-fw pi-id-card', to: '/app-browser' }]
}
+
]);
diff --git a/src/main.js b/src/main.js
index b6b43d8..ac98284 100644
--- a/src/main.js
+++ b/src/main.js
@@ -47,7 +47,7 @@ var auth = createAuth({
}
});
-axios.defaults.baseURL = import.meta.env.VITE_BACKEND_URL;//'http://localhost:8081'//
+axios.defaults.baseURL = 'http://localhost:8081' //import.meta.env.VITE_BACKEND_URL;//'http://localhost:8081'//
const app = createApp(App);
diff --git a/src/router/index.js b/src/router/index.js
index fd59fdb..5c75047 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -38,6 +38,11 @@ const router = createRouter({
path: '/canvas',
name: 'canvas',
component: () => import('@/views/pages/canvas/Canvas.vue')
+ },
+ {
+ path: '/app-browser',
+ name: 'app-browser',
+ component: () => import('@/views/pages/ApplicationBrowser.vue')
},
{
path: '/mdcanvas',
diff --git a/src/service/ApplicationCodeService.js b/src/service/ApplicationCodeService.js
new file mode 100644
index 0000000..5b2ffec
--- /dev/null
+++ b/src/service/ApplicationCodeService.js
@@ -0,0 +1,8 @@
+import axios from 'axios';
+
+export const ApplicationCodeService = {
+
+ getApplication(applicationName) {
+ return axios.get(`/source-viewer/getApplicationTreeNode?applicationName=${applicationName}`);
+ }
+};
\ No newline at end of file
diff --git a/src/views/pages/ApplicationBrowser.vue b/src/views/pages/ApplicationBrowser.vue
new file mode 100644
index 0000000..4566800
--- /dev/null
+++ b/src/views/pages/ApplicationBrowser.vue
@@ -0,0 +1,95 @@
+
+
+
+ Source Code Explorer : ATF-Processor
+
+
+
+
+
+
+
File Browser
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
From 06bd78c86cb62c3fec7c367c02ef41285d98ed2b Mon Sep 17 00:00:00 2001
From: "andrea.terzani"
Date: Fri, 18 Oct 2024 07:22:20 +0200
Subject: [PATCH 4/5] Update AppMenu and ApplicationBrowser components
---
src/layout/AppMenu.vue | 4 ++--
src/views/pages/ApplicationBrowser.vue | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/layout/AppMenu.vue b/src/layout/AppMenu.vue
index 219d8b4..fad86de 100644
--- a/src/layout/AppMenu.vue
+++ b/src/layout/AppMenu.vue
@@ -14,8 +14,8 @@ const model = ref([
label: 'Canvas',
items: [{ label: 'New Canvas', icon: 'pi pi-fw pi-id-card', to: '/mdcanvas' }]
},{
- label: 'Browse Code',
- items: [{ label: 'ATF-Prossor', icon: 'pi pi-fw pi-id-card', to: '/app-browser' }]
+ label: 'Your Applications',
+ items: [{ label: 'ATF-Notifier', icon: 'pi pi-fw pi-id-card', to: '/app-browser' }]
}
]);
diff --git a/src/views/pages/ApplicationBrowser.vue b/src/views/pages/ApplicationBrowser.vue
index 4566800..697a848 100644
--- a/src/views/pages/ApplicationBrowser.vue
+++ b/src/views/pages/ApplicationBrowser.vue
@@ -1,7 +1,7 @@
- Source Code Explorer : ATF-Processor
+ Source Code Explorer : {{application}}
From 0a39ca5186f5156b484e4e419006636f9a0d8182 Mon Sep 17 00:00:00 2001
From: Sumedh
Date: Fri, 18 Oct 2024 06:01:05 +0000
Subject: [PATCH 5/5] gateway variable added
---
src/main.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/main.js b/src/main.js
index ac98284..404e219 100644
--- a/src/main.js
+++ b/src/main.js
@@ -47,7 +47,8 @@ var auth = createAuth({
}
});
-axios.defaults.baseURL = 'http://localhost:8081' //import.meta.env.VITE_BACKEND_URL;//'http://localhost:8081'//
+axios.defaults.baseURL = import.meta.env.VITE_BACKEND_URL;//'http://localhost:8081'
+console.log(import.meta.env.VITE_BACKEND_URL);
const app = createApp(App);