From a517b6e846e08ea143da1731ac5c63b8c3ed360a Mon Sep 17 00:00:00 2001 From: mladejir Date: Tue, 9 May 2023 16:55:16 +0200 Subject: [PATCH] Added few comments to frontend --- .../rule/livePreviewWindow/livePreviewWindow.vue | 6 +++--- .../components/rule/mainEditWindow/mainEditWindow.vue | 9 ++------- .../rule/mainEditWindow/popups/functionInsertPopup.vue | 3 +-- .../rule/mainEditWindow/popups/quickFunctionsMenu.vue | 1 - .../components/rule/mainEditWindow/ruleFileContent.vue | 8 ++++---- 5 files changed, 10 insertions(+), 17 deletions(-) diff --git a/webadmin/fitcrackFE/src/components/rule/livePreviewWindow/livePreviewWindow.vue b/webadmin/fitcrackFE/src/components/rule/livePreviewWindow/livePreviewWindow.vue index 59d6a7680..7fc7ab556 100644 --- a/webadmin/fitcrackFE/src/components/rule/livePreviewWindow/livePreviewWindow.vue +++ b/webadmin/fitcrackFE/src/components/rule/livePreviewWindow/livePreviewWindow.vue @@ -115,13 +115,13 @@ export default { default: () => ({ value: "", loading: false }) }, allPasswordsString: String, // string for storing all passwords concatenated - passwordsCount: Number, - finalKeyspaceCount: Number + passwordsCount: Number, // number of passwords specified + finalKeyspaceCount: Number // number of passwords, which will be generated }, data() { return { appendDictPopup: false, // true if append dictionary popup should be shown, false if hidden - max_mangled_passwords: 5000, // TODO + max_mangled_passwords: 50000, } }, methods: { diff --git a/webadmin/fitcrackFE/src/components/rule/mainEditWindow/mainEditWindow.vue b/webadmin/fitcrackFE/src/components/rule/mainEditWindow/mainEditWindow.vue index 3db0791d5..5e4b9f894 100644 --- a/webadmin/fitcrackFE/src/components/rule/mainEditWindow/mainEditWindow.vue +++ b/webadmin/fitcrackFE/src/components/rule/mainEditWindow/mainEditWindow.vue @@ -25,7 +25,6 @@ - @@ -58,9 +57,7 @@ mdi-delete Reset rules - - Rules count: {{ rulesCount }} - - @@ -98,8 +93,8 @@ import appendRulePopup from '@/components/rule/mainEditWindow/popups/appendRuleP export default { props: { rules: Array, // array of rules {value, error} - rulesCount: Number, - editingFile: Boolean, + rulesCount: Number, // number of rules in a rule file + editingFile: Boolean, // flag to indicate if file is being created or edited ruleFileInfo: Object // information about rule file got from server }, data() { diff --git a/webadmin/fitcrackFE/src/components/rule/mainEditWindow/popups/functionInsertPopup.vue b/webadmin/fitcrackFE/src/components/rule/mainEditWindow/popups/functionInsertPopup.vue index 058d48f0e..bbe9b06f9 100644 --- a/webadmin/fitcrackFE/src/components/rule/mainEditWindow/popups/functionInsertPopup.vue +++ b/webadmin/fitcrackFE/src/components/rule/mainEditWindow/popups/functionInsertPopup.vue @@ -66,7 +66,6 @@ Insert - @@ -84,7 +83,7 @@ export default { ruleFunctions: functionsJson, // data about each rule function functionOperands: [], // array for storing operands for specific rule function textFieldValid: true, // boolean indicating if operands text fields are valid - showHint: false + showHint: false // flag to indicate if hint about function should be shown } }, props: { diff --git a/webadmin/fitcrackFE/src/components/rule/mainEditWindow/popups/quickFunctionsMenu.vue b/webadmin/fitcrackFE/src/components/rule/mainEditWindow/popups/quickFunctionsMenu.vue index 8027db7a8..e739d85bb 100644 --- a/webadmin/fitcrackFE/src/components/rule/mainEditWindow/popups/quickFunctionsMenu.vue +++ b/webadmin/fitcrackFE/src/components/rule/mainEditWindow/popups/quickFunctionsMenu.vue @@ -40,7 +40,6 @@ export default { * @param {Number} functionIndex Index of the rule function */ showInsertPopup(functionIndex) { - const data = { functionIndex: functionIndex, ruleIndex: this.ruleIndex, diff --git a/webadmin/fitcrackFE/src/components/rule/mainEditWindow/ruleFileContent.vue b/webadmin/fitcrackFE/src/components/rule/mainEditWindow/ruleFileContent.vue index f2e1c9037..5edf652e0 100644 --- a/webadmin/fitcrackFE/src/components/rule/mainEditWindow/ruleFileContent.vue +++ b/webadmin/fitcrackFE/src/components/rule/mainEditWindow/ruleFileContent.vue @@ -12,7 +12,6 @@ - - {{ item.index + 1 }} @@ -204,7 +202,8 @@ export default { pointer-events: none } -.toolbar-fade-enter,.toolbar-fade-leave-to { +.toolbar-fade-enter, +.toolbar-fade-leave-to { opacity: 0; transform: translateY(1em); } @@ -215,4 +214,5 @@ export default { .toolbar-fade-leave-active { transition: .15s .1s ease-in; -} \ No newline at end of file +} + \ No newline at end of file