0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2025-09-11 12:24:27 +00:00

organise backend code / frontend combobox / edit allowed ips

This commit is contained in:
vx3r
2020-02-05 10:53:53 +09:00
parent 08faa8c53f
commit 727b5c4049
13 changed files with 476 additions and 327 deletions

11
ui/src/plugins/cidr.js Normal file
View File

@ -0,0 +1,11 @@
import Vue from 'vue'
const isCidr = require('is-cidr');
const plugin = {
install () {
Vue.isCidr = isCidr;
Vue.prototype.$isCidr = isCidr
}
};
Vue.use(plugin);