chore(cleanup): format code and move from js-beautify to prettier

This commit is contained in:
Joxit 2022-04-09 00:02:52 +02:00
parent ab12cceefc
commit 49fcba3f6c
No known key found for this signature in database
GPG key ID: F526592B8E012263
21 changed files with 373 additions and 302 deletions

View file

@ -31,9 +31,7 @@
</div>
</material-popup>
<script>
import {
addRegistryServers
} from '../../scripts/utils';
import { addRegistryServers } from '../../scripts/utils';
import router from '../../scripts/router';
export default {
@ -52,11 +50,11 @@
return this.props.onNotify('The input field should start with http:// or https://.', true);
}
const url = addRegistryServers(input.value);
router.home()
router.home();
this.props.onServerChange(url);
this.props.onClose()
this.props.onClose();
setTimeout(() => router.updateUrlQueryParam(url), 100);
}
}
},
};
</script>
</add-registry-url>
</add-registry-url>