mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-01-18 08:58:48 +00:00
Бета-вариант динамичных сайтов
This commit is contained in:
parent
19349a0946
commit
393e02477e
@ -61,7 +61,12 @@ def update_sites(n, s_val):
|
||||
|
||||
res = []
|
||||
for i in next(walk('cached/'), (None, None, []))[1]:
|
||||
res.append(html.Div([ dcc.Link(children=i, href=f'{domain}/{i}',
|
||||
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}',
|
||||
target='_blank') ], className='sites_elem'))
|
||||
return res
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user