Kaynağa Gözat

[splash] embed svg of splash

version-14
Anand Doshi 12 yıl önce
ebeveyn
işleme
b78b376bc5
2 değiştirilmiş dosya ile 10 ekleme ve 2 silme
  1. +1
    -1
      public/html/app.html
  2. +9
    -1
      webnotes/utils/bundlejs.py

+ 1
- 1
public/html/app.html Dosyayı Görüntüle

@@ -9,7 +9,7 @@
<link type="text/css" rel="stylesheet" href="app/css/splash.css">
</head>
<body>
<div class="splash"></div>
<div class="splash">%(splash)s</div>
<header></header>
<div id="body_div">
</div>


+ 9
- 1
webnotes/utils/bundlejs.py Dosyayı Görüntüle

@@ -122,9 +122,17 @@ class Bundle:
if os.path.exists("public/app.html"):
os.remove("public/app.html")
splash = ""
if os.path.exists("public/app/images/splash.svg"):
with open("public/app/images/splash.svg") as splash_file:
splash = splash_file.read()
with open('lib/public/html/app.html', 'r') as app_html:
data = app_html.read()
data = data % {"_version_number": webnotes.generate_hash()}
data = data % {
"_version_number": webnotes.generate_hash(),
"splash": splash
}
with open('public/app.html', 'w') as new_app_html:
new_app_html.write(data)


Yükleniyor…
İptal
Kaydet