Skip to content

Commit

Permalink
Added few comments to frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
mladejir committed May 9, 2023
1 parent 0800435 commit a517b6e
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
</v-btn>
</v-col>
</v-row>

<v-row>
<v-col>
<v-btn class="px-2 mr-3 mb-2" color="orange lighten-3 black--text" @click="addEmptyRule">
Expand Down Expand Up @@ -58,9 +57,7 @@
mdi-delete
</v-icon>
Reset rules</v-btn>

</v-col>

</v-row>
<v-row class="mt-0">
<ruleFileContent v-bind:rules="rules" v-on:update-rules="updateRules"
Expand All @@ -71,9 +68,7 @@
<v-col align="right" class="pr-4">
Rules count: <b>{{ rulesCount }}</b>
</v-col>

</v-row>

<v-row>
<v-col class="text-right">
<v-btn color="primary black--text" @click="saveFile()">
Expand All @@ -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() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
Insert
</v-btn>
</v-col>

</v-row>
</v-container>
</v-card>
Expand All @@ -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: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ export default {
* @param {Number} functionIndex Index of the rule function
*/
showInsertPopup(functionIndex) {

const data = {
functionIndex: functionIndex,
ruleIndex: this.ruleIndex,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<v-spacer></v-spacer>
<v-text-field v-model="search" append-icon="mdi-magnify" label="Search" single-line
hide-details></v-text-field>

</v-card-title>
<v-divider></v-divider>
<v-data-table :page="lastOrCurrentPage" :options.sync="options" :headers="headers" :items="computedRules"
Expand All @@ -21,7 +20,6 @@
<template v-slot:body="{ items }">
<tbody>
<tr v-for="item in items" :key="item.index">

<td>
{{ item.index + 1 }}
</td>
Expand Down Expand Up @@ -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);
}
Expand All @@ -215,4 +214,5 @@ export default {

.toolbar-fade-leave-active {
transition: .15s .1s ease-in;
}</style>
}
</style>

0 comments on commit a517b6e

Please sign in to comment.