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

@ -32,10 +32,7 @@
</div>
</material-popup>
<script>
import {
addRegistryServers,
getRegistryServers
} from '../../scripts/utils';
import { addRegistryServers, getRegistryServers } from '../../scripts/utils';
import router from '../../scripts/router';
export default {
change(event) {
@ -47,13 +44,13 @@
return this.props.onNotify('The select field should start with http:// or https://.', true);
}
const url = addRegistryServers(select.value);
router.home()
router.home();
this.props.onServerChange(url);
this.props.onClose()
this.props.onClose();
setTimeout(() => router.updateUrlQueryParam(url), 100);
},
getRegistryServers
}
getRegistryServers,
};
</script>
<style>
:host select {
@ -74,4 +71,4 @@
margin: 1.5em 0;
}
</style>
</change-registry-url>
</change-registry-url>