修复输入法跟随; 增加代理设置API
parent
409e5f1dde
commit
da445f2402
|
@ -6,7 +6,8 @@ gi.require_version('Gtk', '3.0')
|
||||||
|
|
||||||
from gi.repository import Gtk, Gdk, GLib, Gio, GObject, GdkPixbuf
|
from gi.repository import Gtk, Gdk, GLib, Gio, GObject, GdkPixbuf
|
||||||
|
|
||||||
from webengine.gtk3 import WebEngine, create_setting, create_hmr_server
|
from we.gtk3 import WebEngine, create_setting, create_hmr_server
|
||||||
|
# from webengine.gtk3 import WebEngine, create_setting, create_hmr_server
|
||||||
from _window import Window
|
from _window import Window
|
||||||
|
|
||||||
APP_ID = 'fun.wkit.hosts-switch'
|
APP_ID = 'fun.wkit.hosts-switch'
|
||||||
|
|
|
@ -34,7 +34,7 @@ createApp({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
render() {
|
render() {
|
||||||
return html` <wc-home @contextmenu.prevent=${noop}></wc-home> `
|
return html` <wc-home @contextmenu.prevent2=${noop}></wc-home> `
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.use(store)
|
.use(store)
|
||||||
|
|
|
@ -99,7 +99,7 @@ class Home extends Component {
|
||||||
|
|
||||||
async mounted() {
|
async mounted() {
|
||||||
window.foo = this
|
window.foo = this
|
||||||
|
native.proxy.enable('http://127.0.0.1:8888')
|
||||||
let writable = await checkPermission()
|
let writable = await checkPermission()
|
||||||
|
|
||||||
if (writable) {
|
if (writable) {
|
||||||
|
@ -113,6 +113,9 @@ class Home extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
addRecord() {
|
addRecord() {
|
||||||
|
location.href = 'https://www.ipaddress.my/'
|
||||||
|
return
|
||||||
|
|
||||||
if (this.$store.activeDomain) {
|
if (this.$store.activeDomain) {
|
||||||
this.$store.records.push({
|
this.$store.records.push({
|
||||||
record: '',
|
record: '',
|
||||||
|
|
|
@ -6,8 +6,6 @@
|
||||||
|
|
||||||
import { nextTick } from 'wkit'
|
import { nextTick } from 'wkit'
|
||||||
|
|
||||||
await native.init()
|
|
||||||
|
|
||||||
const APP_CONFIG_DIR = `${native.env.CONFIG_DIR}/hosts-switch`
|
const APP_CONFIG_DIR = `${native.env.CONFIG_DIR}/hosts-switch`
|
||||||
const HOST_FILE = `${APP_CONFIG_DIR}/host.cache`
|
const HOST_FILE = `${APP_CONFIG_DIR}/host.cache`
|
||||||
const LOCK_FILE = `${APP_CONFIG_DIR}/lock`
|
const LOCK_FILE = `${APP_CONFIG_DIR}/lock`
|
||||||
|
|
Loading…
Reference in New Issue