mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-06-30 13:02:46 +08:00
精简文档页面
This commit is contained in:
parent
772b3b9860
commit
e0724db569
@ -427,10 +427,23 @@ window.getSelectFile = hwnd => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let runUbrowser = path => {
|
let runUbrowser = path => {
|
||||||
utools.ubrowser.goto(path).run({
|
utools.ubrowser.goto(path)
|
||||||
width: 1380,
|
.css(`
|
||||||
height: 750
|
.ant-modal-content,
|
||||||
});
|
.ant-modal-mask,
|
||||||
|
[class*='index-module_contentWrapper'],
|
||||||
|
[class*='index-module_reward'],
|
||||||
|
[class*='ReaderLayout-module_asideWrapper'],
|
||||||
|
[class*='CornerBubble-module_cornerBubble'],
|
||||||
|
[class*='DocReader-module_comment'],
|
||||||
|
#header,
|
||||||
|
#footer {
|
||||||
|
display: none
|
||||||
|
}`)
|
||||||
|
.run({
|
||||||
|
width: 980,
|
||||||
|
height: 750
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const docsRepoUrl = 'https://www.yuque.com/fofolee/qcdocs3'
|
const docsRepoUrl = 'https://www.yuque.com/fofolee/qcdocs3'
|
||||||
@ -564,7 +577,10 @@ window.runCodeFile = (cmd, option, terminal, callback) => {
|
|||||||
// }
|
// }
|
||||||
let child, cmdline;
|
let child, cmdline;
|
||||||
if (bin.slice(-7) == 'csc.exe') {
|
if (bin.slice(-7) == 'csc.exe') {
|
||||||
cmdline = `${bin} ${argv} /out:"${script.slice(0, -2) + 'exe'}" "${script}" && "${script.slice(0, -2) + 'exe'}" ${scptarg}`
|
cmdline = `
|
||||||
|
$ { bin }
|
||||||
|
$ { argv }
|
||||||
|
/out:"${script.slice(0, -2) + 'exe'}" "${script}" && "${script.slice(0, -2) + 'exe'}" ${scptarg}`
|
||||||
} else if (bin == 'gcc') {
|
} else if (bin == 'gcc') {
|
||||||
var suffix = utools.isWindows() ? '.exe' : ''
|
var suffix = utools.isWindows() ? '.exe' : ''
|
||||||
cmdline = `${bin} ${argv} "${script.slice(0, -2)}" "${script}" && "${script.slice(0, -2) + suffix}" ${scptarg}`
|
cmdline = `${bin} ${argv} "${script.slice(0, -2)}" "${script}" && "${script.slice(0, -2) + suffix}" ${scptarg}`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user