Apply the shared design inside the native shop frame
This commit is contained in:
parent
6c61b748a4
commit
08981e83d5
1 changed files with 5 additions and 0 deletions
|
|
@ -39,6 +39,11 @@ def absolute(match):
|
|||
shop_html=re.sub(r'\b(src|href)="([^"]*)"',absolute,shop_html)
|
||||
changes['shop-portal/index.html']=shop_html;targets['shop-portal/index.html']=(shop_root/'index.html').resolve(strict=True)
|
||||
assert targets['shop-portal/index.html'].is_relative_to(shop_root)
|
||||
shop_app=pathlib.Path('/home/dunerealms/apps/oscommerce').resolve(strict=True)
|
||||
shop_inner=(shop_app/'oscommerce-inner.js').resolve(strict=True);assert shop_inner.is_relative_to(shop_app)
|
||||
# Keep the native resizing/checkout bridge and apply the same design inside it.
|
||||
changes['shop-native/oscommerce-inner.js']=append(shop_inner.read_text(),script)
|
||||
targets['shop-native/oscommerce-inner.js']=shop_inner
|
||||
for kind,document in [('clans','clan-center-index.html'),('corp','company-center-index.html')]:
|
||||
root=pathlib.Path('/var/www/dunerealms-'+kind).resolve(strict=True)
|
||||
name=kind+'-portal/index.html';changes[name]=(release/'ops'/document).read_text();targets[name]=(root/'index.html').resolve(strict=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff