mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-27 23:50:01 +03:00
chore(cleanup): format code and move from js-beautify to prettier
This commit is contained in:
parent
ab12cceefc
commit
49fcba3f6c
21 changed files with 373 additions and 302 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue