|
@@ -56,6 +56,17 @@ css = request_buffered_str(url)
|
|
Path('nicegui/static/quasar.prod.css').write_text(css)
|
|
Path('nicegui/static/quasar.prod.css').write_text(css)
|
|
print('Quasar:', version)
|
|
print('Quasar:', version)
|
|
|
|
|
|
|
|
+# Quasar language packs
|
|
|
|
+url = 'https://cdn.jsdelivr.net/npm/quasar@2/dist/lang/'
|
|
|
|
+html = request_buffered_str(url)
|
|
|
|
+soup = BeautifulSoup(html, 'html.parser')
|
|
|
|
+# find all <a> tags with href ending with .umd.prod.js
|
|
|
|
+for link in soup.find_all('a', href=re.compile(r'\.umd\.prod\.js$')):
|
|
|
|
+ name = link.get('href').split('/')[-1]
|
|
|
|
+ lang = name.split('.')[0]
|
|
|
|
+ js = request_buffered_str(url + name)
|
|
|
|
+ Path(f'nicegui/static/quasar.{name}').write_text(js)
|
|
|
|
+
|
|
# vue.js
|
|
# vue.js
|
|
url = 'https://unpkg.com/vue@3/anything'
|
|
url = 'https://unpkg.com/vue@3/anything'
|
|
info = request_buffered_str(url)
|
|
info = request_buffered_str(url)
|