From f20bece2b75a878bea0ce2d68a0f458ff22b498c Mon Sep 17 00:00:00 2001 From: stitch1 Date: Wed, 11 Dec 2024 16:58:49 +0100 Subject: [PATCH] allow finding www subdomains and make ui for adding domains more consistent --- src/components/domains/UrlList.vue | 6 +++--- src/components/domains/list/AddDomainsModal.vue | 8 ++++---- src/components/domains/list/WwwDiscovery.vue | 17 +++++++++++++---- .../domains/list/WwwDiscoveryModal.vue | 10 +++++----- 4 files changed, 25 insertions(+), 16 deletions(-) diff --git a/src/components/domains/UrlList.vue b/src/components/domains/UrlList.vue index 8f3f290..4070fb6 100644 --- a/src/components/domains/UrlList.vue +++ b/src/components/domains/UrlList.vue @@ -73,7 +73,7 @@ h2 { 🌪️️ {{ $t("domain.urllist.button.discover_subdomains") }}   ⬆️ {{ $t("domain.urllist.button.upload") }}   - + diff --git a/src/components/domains/list/WwwDiscovery.vue b/src/components/domains/list/WwwDiscovery.vue index 0db9257..68d331e 100644 --- a/src/components/domains/list/WwwDiscovery.vue +++ b/src/components/domains/list/WwwDiscovery.vue @@ -7,7 +7,7 @@ 🔎 {{ $t("domain.www-discovery.scanning-done-click-reload") }} - + 🔎 {{ $t("domain.www-discovery.find-www-subdomains") }} {{ $t("domain.www-discovery.last-scan-finished") }} @@ -17,7 +17,8 @@ {{ $t("domain.www-discovery.finding-www-subdomains") }} - + + @@ -45,7 +46,7 @@ export default { domains_discovered: {}, success_while_visible: false, - visible: false, + modal_visible: false, } }, beforeDestroy() { @@ -56,13 +57,20 @@ export default { }, mounted() { // todo: recheck every minute or so until the state is finished|error|cancelled - // note: do not automatically reload lists as a side effect, might be annoying when someones edits just disappear. + // note: do not automatically reload lists as a aside effect, might be annoying when someones edits just disappear. this.status() }, computed: { is_scanning() {return ['requested', 'scanning'].includes(this.state)} }, methods: { + make_visible() { + this.modal_visible = true; + this.modal_visible = true; + this.modal_visible = true; + this.modal_visible_2 = "true"; + console.log('show modal'); + }, reset() { this.state = 'finished'; this.state_message = ''; @@ -85,6 +93,7 @@ export default { this.reset() this.status() this.visible = true; + console.log('tada') }, status() { this.loading = true; diff --git a/src/components/domains/list/WwwDiscoveryModal.vue b/src/components/domains/list/WwwDiscoveryModal.vue index c09f6e5..41ee181 100644 --- a/src/components/domains/list/WwwDiscoveryModal.vue +++ b/src/components/domains/list/WwwDiscoveryModal.vue @@ -1,6 +1,7 @@