Skip to content

Commit

Permalink
Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
0140454 committed Jan 21, 2024
1 parent 2479e89 commit af49ce0
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion contrib/echo.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

if ($mode === 'csp') {
header("Content-Security-Policy: script-src 'self'; form-action 'self';");
} else if ($mode === 'redirect') {
} elseif ($mode === 'redirect') {
header('Location: ' . (empty($target) ? '/' : $target));
}

Expand Down
8 changes: 4 additions & 4 deletions src/components/DialogCustomPayloadEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ export default defineComponent({
const { modelValue } = toRefs(props)
const shown = computed<boolean>({
set: value => {
emit(
'update:modelValue',
Object.assign({}, modelValue.value, { show: value }),
)
emit('update:modelValue', {
...modelValue.value,
show: value,
})
},
get: () => {
return modelValue.value.show
Expand Down
8 changes: 4 additions & 4 deletions src/components/DialogCustomPayloadManagement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ export default defineComponent({
const { modelValue } = toRefs(props)
const shown = computed<boolean>({
set: value => {
emit(
'update:modelValue',
Object.assign({}, modelValue.value, { show: value }),
)
emit('update:modelValue', {
...modelValue.value,
show: value,
})
},
get: () => {
return modelValue.value.show
Expand Down
8 changes: 4 additions & 4 deletions src/components/DialogReloadPrompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ export default defineComponent({
const { modelValue } = toRefs(props)
const shown = computed<boolean>({
set: value => {
emit(
'update:modelValue',
Object.assign({}, modelValue.value, { show: value }),
)
emit('update:modelValue', {
...modelValue.value,
show: value,
})
},
get: () => {
return modelValue.value.show
Expand Down
8 changes: 4 additions & 4 deletions src/components/DialogRequestLoader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ export default defineComponent({
const { modelValue } = toRefs(props)
const shown = computed<boolean>({
set: value => {
emit(
'update:modelValue',
Object.assign({}, modelValue.value, { show: value }),
)
emit('update:modelValue', {
...modelValue.value,
show: value,
})
},
get: () => {
return modelValue.value.show
Expand Down
8 changes: 4 additions & 4 deletions src/components/DialogReverseShellSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ export default defineComponent({
const { modelValue } = toRefs(props)
const shown = computed<boolean>({
set: value => {
emit(
'update:modelValue',
Object.assign({}, modelValue.value, { show: value }),
)
emit('update:modelValue', {
...modelValue.value,
show: value,
})
},
get: () => {
return modelValue.value.show
Expand Down
8 changes: 4 additions & 4 deletions src/components/DialogSqlInjectionSetting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ export default defineComponent({
const { modelValue } = toRefs(props)
const shown = computed<boolean>({
set: value => {
emit(
'update:modelValue',
Object.assign({}, modelValue.value, { show: value }),
)
emit('update:modelValue', {
...modelValue.value,
show: value,
})
},
get: () => {
return modelValue.value.show
Expand Down
8 changes: 4 additions & 4 deletions src/components/DialogTestProgress.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ export default defineComponent({
const { modelValue } = toRefs(props)
const shown = computed<boolean>({
set: value => {
emit(
'update:modelValue',
Object.assign({}, modelValue.value, { show: value }),
)
emit('update:modelValue', {
...modelValue.value,
show: value,
})
},
get: () => {
return modelValue.value.show
Expand Down
6 changes: 3 additions & 3 deletions src/components/PrettyRawResponse.vue
Original file line number Diff line number Diff line change
Expand Up @@ -400,15 +400,15 @@ export default defineComponent({
resultStart >= textStart &&
resultStart < textEnd
) {
record.range.setStart(node!, resultStart - textStart)
record.range.setStart(node, resultStart - textStart)
record.startFound = true
}
if (
record.startFound &&
resultEnd >= textStart &&
resultEnd <= textEnd
) {
record.range.setEnd(node!, resultEnd - textStart)
record.range.setEnd(node, resultEnd - textStart)
finishedResultsIndex = idx
}
Expand Down Expand Up @@ -488,7 +488,7 @@ export default defineComponent({
range.selectNodeContents(htmlArea.value!)
selection.removeAllRanges()
selection.addRange(range as Range)
selection.addRange(range)
}
const onScroll = debounce(highlightInViewportSearchResult, 32)
Expand Down
2 changes: 1 addition & 1 deletion src/processors/implementations/4-multipart-form-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default class MultipartFormDataProcessor extends BodyProcessor {
const content = parts[idx].substring(delimiterIndex + (crlf ? 4 : 2))

let matched = null
const regex = RegExp('(name|filename)=(?:"([^"]+)"|([^;]+))', 'gi')
const regex = /(name|filename)=(?:"([^"]+)"|([^;]+))/gi
while ((matched = regex.exec(header)) !== null) {
if (matched[1].toLowerCase() === 'name') {
field.name = matched[2] || matched[3]
Expand Down

0 comments on commit af49ce0

Please sign in to comment.