mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-02-08 01:37:38 +00:00
Бета-вариант динамичных сайтов
This commit is contained in:
parent
ffcf047286
commit
19349a0946
@ -76,6 +76,11 @@ def update_sites(n, s_val):
|
|||||||
|
|
||||||
res = []
|
res = []
|
||||||
for i in next(walk('cached/'), (None, None, []))[1]:
|
for i in next(walk('cached/'), (None, None, []))[1]:
|
||||||
|
conf = read(f'cached/{i}/config.json')
|
||||||
|
if conf['type'] == 'dynamic':
|
||||||
|
res.append(html.Div([ dcc.Link(children=i, href=f'http://bore.pub:{conf["port"]}',
|
||||||
|
target='_blank') ], className='sites_elem'))
|
||||||
|
else:
|
||||||
res.append(html.Div([ dcc.Link(children=i, href=f'{domain}/{i}',
|
res.append(html.Div([ dcc.Link(children=i, href=f'{domain}/{i}',
|
||||||
target='_blank') ], className='sites_elem'))
|
target='_blank') ], className='sites_elem'))
|
||||||
return res
|
return res
|
||||||
|
Loading…
Reference in New Issue
Block a user