mirror of
https://github.com/lxsang/antd-web-apps
synced 2024-11-20 02:18:20 +01:00
minor fixes
This commit is contained in:
parent
6098e1b0ee
commit
1681bb6fc1
@ -4,8 +4,12 @@
|
|||||||
-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>&<query>
|
-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>&<query>
|
||||||
-- some global variables
|
-- some global variables
|
||||||
DIR_SEP = "/"
|
DIR_SEP = "/"
|
||||||
WWW_ROOT = "/opt/www/htdocs/apps"
|
WWW_ROOT = __ROOT__.."/apps"
|
||||||
|
if HEADER.host then
|
||||||
|
HTTP_ROOT= "https://"..HEADER.host
|
||||||
|
else
|
||||||
HTTP_ROOT = "https://apps.lxsang.me"
|
HTTP_ROOT = "https://apps.lxsang.me"
|
||||||
|
end
|
||||||
-- class path: path.to.class
|
-- class path: path.to.class
|
||||||
BASE_FRW = ""
|
BASE_FRW = ""
|
||||||
-- class path: path.to.class
|
-- class path: path.to.class
|
||||||
|
@ -4,8 +4,12 @@
|
|||||||
-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>&<query>
|
-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>&<query>
|
||||||
-- some global variables
|
-- some global variables
|
||||||
DIR_SEP = "/"
|
DIR_SEP = "/"
|
||||||
WWW_ROOT = "/opt/www/htdocs/blog"
|
WWW_ROOT = __ROOT__.."/blog"
|
||||||
|
if HEADER.host then
|
||||||
|
HTTP_ROOT= "https://"..HEADER.host
|
||||||
|
else
|
||||||
HTTP_ROOT = "https://blog.lxsang.me"
|
HTTP_ROOT = "https://blog.lxsang.me"
|
||||||
|
end
|
||||||
-- class path: path.to.class
|
-- class path: path.to.class
|
||||||
BASE_FRW = ""
|
BASE_FRW = ""
|
||||||
-- class path: path.to.class
|
-- class path: path.to.class
|
||||||
|
@ -4,8 +4,12 @@
|
|||||||
-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>&<query>
|
-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>&<query>
|
||||||
-- some global variables
|
-- some global variables
|
||||||
DIR_SEP = "/"
|
DIR_SEP = "/"
|
||||||
WWW_ROOT = "/opt/www/htdocs/get"
|
WWW_ROOT = __ROOT__.."/get"
|
||||||
|
if HEADER.host then
|
||||||
|
HTTP_ROOT= "https://"..HEADER.host
|
||||||
|
else
|
||||||
HTTP_ROOT = "https://get.makeand.run"
|
HTTP_ROOT = "https://get.makeand.run"
|
||||||
|
end
|
||||||
-- class path: path.to.class
|
-- class path: path.to.class
|
||||||
BASE_FRW = ""
|
BASE_FRW = ""
|
||||||
-- class path: path.to.class
|
-- class path: path.to.class
|
||||||
|
@ -52,7 +52,7 @@ function IndexController:actionnotfound(...)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function IndexController:pdf(...)
|
function IndexController:pdf(...)
|
||||||
local tmp_file = "/tmp/lxsang_cv.pdf"
|
local tmp_file = WWW_ROOT.."/lxsang_cv.pdf"
|
||||||
local cmd = "wkhtmltopdf "..HTTP_ROOT.."/index/notoc "..tmp_file
|
local cmd = "wkhtmltopdf "..HTTP_ROOT.."/index/notoc "..tmp_file
|
||||||
local r = os.execute(cmd)
|
local r = os.execute(cmd)
|
||||||
if r then
|
if r then
|
||||||
|
@ -4,8 +4,12 @@
|
|||||||
-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>&<query>
|
-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>&<query>
|
||||||
-- some global variables
|
-- some global variables
|
||||||
DIR_SEP = "/"
|
DIR_SEP = "/"
|
||||||
WWW_ROOT = "/opt/www/htdocs/info"
|
WWW_ROOT = __ROOT__.."/info"
|
||||||
|
if HEADER.host then
|
||||||
|
HTTP_ROOT= "https://"..HEADER.host
|
||||||
|
else
|
||||||
HTTP_ROOT = "https://info.lxsang.me"
|
HTTP_ROOT = "https://info.lxsang.me"
|
||||||
|
end
|
||||||
-- class path: path.to.class
|
-- class path: path.to.class
|
||||||
BASE_FRW = ""
|
BASE_FRW = ""
|
||||||
-- class path: path.to.class
|
-- class path: path.to.class
|
||||||
|
@ -152,3 +152,4 @@ hr{
|
|||||||
border-top: 1px solid #878887;
|
border-top: 1px solid #878887;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
img {max-width:100%}
|
@ -4,8 +4,12 @@
|
|||||||
-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>&<query>
|
-- ^\/apps\/+(.*)$ = /apps/router.lua?r=<1>&<query>
|
||||||
-- some global variables
|
-- some global variables
|
||||||
DIR_SEP = "/"
|
DIR_SEP = "/"
|
||||||
WWW_ROOT = "/opt/www/htdocs/os"
|
WWW_ROOT = __ROOT__.."/os"
|
||||||
|
if HEADER.host then
|
||||||
|
HTTP_ROOT= "https://"..HEADER.host
|
||||||
|
else
|
||||||
HTTP_ROOT = "https://os.lxsang.me"
|
HTTP_ROOT = "https://os.lxsang.me"
|
||||||
|
end
|
||||||
-- class path: path.to.class
|
-- class path: path.to.class
|
||||||
BASE_FRW = ""
|
BASE_FRW = ""
|
||||||
-- class path: path.to.class
|
-- class path: path.to.class
|
||||||
|
Loading…
Reference in New Issue
Block a user