cryptpad/www/convert
Maxime Cesson 24ccb6d9e7 Apply placeholder to all relevant applications on a slow connection #865
Made with the following command from the cryptpad/ root directory:

$ patternStatic='(<link href=\"\/customize\/src\/outer\.css.*$|<script async data-bootload=\"\/customize\/template\.js\".*$)';
$ pattern2='<style>$';
$ js='<script src=\"\/customize\/pre-loading\.js\"><\/script>';
$ css='<link href=\"\/customize\/src\/pre-loading\.css\" rel=\"stylesheet\" type=\"text\/css\">';
$ find . -name 'index.html' | grep -v -E '(onlyoffice|bower_components|node_modules)' | while read x; \
do if [ `grep -cE "$pattern" $x` -gt 0 ]; then sed -E "s/($pattern)/$js\n    \1\n    $css/" $x > tmp; \
mv tmp $x; y=`echo $x | sed 's/index\.html/inner\.html/'`; if [ -f "$y" ]; then \
sed -E "s/($pattern2)/$js\n    $css\n    \1/" $y > tmp; mv tmp $y; fi; fi; done
2022-07-13 13:21:38 +02:00
..
app-convert.less Merge branch 'dapsi-demo-update' into exportSheet 2021-10-04 16:08:28 +02:00
index.html Apply placeholder to all relevant applications on a slow connection #865 2022-07-13 13:21:38 +02:00
inner.html Apply placeholder to all relevant applications on a slow connection #865 2022-07-13 13:21:38 +02:00
inner.js Prepare possible OO migration 2021-11-02 12:42:44 +01:00
main.js lint compliance 2021-10-20 12:21:21 +05:30