mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2025-04-21 03:02:09 +00:00
Download jQuery/Bootstrap Assests
This commit is contained in:
parent
59e1ff7ed5
commit
6d86261e06
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
6
management/static/css/lib/bootstrap.min.css
vendored
6
management/static/css/lib/bootstrap.min.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7
management/static/js/lib/bootstrap.min.js
vendored
7
management/static/js/lib/bootstrap.min.js
vendored
File diff suppressed because one or more lines are too long
4
management/static/js/lib/jquery-2.1.4.min.js
vendored
4
management/static/js/lib/jquery-2.1.4.min.js
vendored
File diff suppressed because one or more lines are too long
@ -9,7 +9,7 @@
|
||||
|
||||
<meta name="robots" content="noindex, nofollow">
|
||||
|
||||
<link rel="stylesheet" href="/admin/static/css/lib/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="/assets/css/lib/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
<style>
|
||||
body {
|
||||
overflow-y: scroll;
|
||||
@ -63,7 +63,7 @@
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" href="/admin/static/css/lib/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="/assets/css/lib/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@ -191,8 +191,8 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script src="/admin/static/js/lib/jquery-2.1.4.min.js" integrity="sha256-8WqyJLuWKRBVhxXIL1jBDD7SDxU936oZkCnxQbWwJVw=" crossorigin="anonymous"></script>
|
||||
<script src="/admin/static/js/lib/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||
<script src="/assets/js/lib/jquery-2.1.4.min.js" integrity="sha256-8WqyJLuWKRBVhxXIL1jBDD7SDxU936oZkCnxQbWwJVw=" crossorigin="anonymous"></script>
|
||||
<script src="/assets/js/lib/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||
|
||||
<script>
|
||||
var global_modal_state = null;
|
||||
|
38
setup/web.sh
38
setup/web.sh
@ -86,6 +86,43 @@ if [ ! -f $STORAGE_ROOT/www/default/index.html ]; then
|
||||
fi
|
||||
chown -R $STORAGE_USER $STORAGE_ROOT/www
|
||||
|
||||
|
||||
# download jQuery and Bootstrap local files
|
||||
if [ ! -d $STORAGE_ROOT/www/default/assets ]; then
|
||||
echo "Downloading Assets..."
|
||||
|
||||
js_lib=$STORAGE_ROOT/www/default/assets/js/lib
|
||||
css_lib=$STORAGE_ROOT/www/default/assets/css/lib
|
||||
|
||||
#jQuery CDN URL
|
||||
jquery_version=2.1.4
|
||||
jquery_url=https://code.jquery.com
|
||||
|
||||
#Bootstrap CDN URL
|
||||
bootstrap_version=3.3.7
|
||||
bootstrap_url=https://maxcdn.bootstrapcdn.com/bootstrap/$bootstrap_version/css
|
||||
|
||||
#get the Javascript files
|
||||
if [ ! -d $js_lib ]; then
|
||||
mkdir -p $js_lib
|
||||
|
||||
wget_verifiy $jquery_url/jquery-$jquery_version.min.js 43dc554608df885a59ddeece1598c6ace434d747 $js_lib
|
||||
wget_verifiy https://maxcdn.bootstrapcdn.com/bootstrap/$bootstrap_version/js/bootstrap.min.js 430a443d74830fe9be26efca431f448c1b3740f9 $js_lib
|
||||
fi
|
||||
|
||||
# get the CSS(map) files
|
||||
if [ ! -d $css_lib ]; then
|
||||
mkdir -p $css_lib
|
||||
|
||||
wget_verifiy $bootstrap_url/bootstrap-theme.min.css 8256575374f430476bdcd49de98c77990229ce31 $css_lib
|
||||
wget_verifiy $bootstrap_url/bootstrap-theme.min.css.map 87f7dfd79d77051ac2eca7d093d961fbd1c8f6eb $css_lib
|
||||
wget_verifiy $bootstrap_url/bootstrap.min.css 6527d8bf3e1e9368bab8c7b60f56bc01fa3afd68 $css_lib
|
||||
wget_verifiy $bootstrap_url/bootstrap.min.css.map e0d7b2bde55a0bac1b658a507e8ca491a6729e06 $css_lib
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# We previously installed a custom init script to start the PHP FastCGI daemon. #NODOC
|
||||
# Remove it now that we're using php5-fpm. #NODOC
|
||||
if [ -L /etc/init.d/php-fastcgi ]; then
|
||||
@ -108,4 +145,3 @@ restart_service php5-fpm
|
||||
# Open ports.
|
||||
ufw_allow http
|
||||
ufw_allow https
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user