mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2025-04-28 16:09:54 +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
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue