Merge pull request 'Finish shared design inside native shop pages' (#575) from dev/MC:design/native-shop-interior-20261125 into main
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m31s
All checks were successful
DuneRealms Web CI / web (push) Successful in 3m31s
This commit is contained in:
commit
4b2da02ff2
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