Skip to content

Commit

Permalink
Web UI: update get-js-dependecies script and config.js.
Browse files Browse the repository at this point in the history
  • Loading branch information
tehnick committed Oct 5, 2017
1 parent a6849b6 commit 0754c33
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
4 changes: 2 additions & 2 deletions eiskaltdcpp-web/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ define([], function () {
"debugLevel" : 3,
"userlinks": {
"google": {
"icon": "http://www.google.com/favicon.ico",
"url": "https://www.google.de/search?q=%Filename%",
"icon": "https://www.google.com/favicon.ico",
"url": "https://www.google.com/search?q=%Filename%",
"filter": function (text) {
return text.replace(/\.\w{2,}$/, '').replace(/[-._+]/g, ' ').replace(/\(.*\)/g, ' ').replace(/\[.*\]/g, ' ').replace(/\d{3,}.*/, '');
}
Expand Down
32 changes: 17 additions & 15 deletions eiskaltdcpp-web/get-js-dependecies
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
#!/bin/bash
#!/bin/sh

# Author: Boris Pek <tehnick-8@mail.ru>
# Author: Boris Pek <tehnick-8@yandex.ru>
# License: Public Domain
# Created: 2013-10-19
# Updated: 2013-10-19
# Updated: 2017-10-06
# Version: N/A

# Dependencies: wget

set -e

if [ "${1}" == "system" ]; then
if [ "${1}" = "system" ]; then

rm -rf js/lib
mkdir -p js/lib
Expand All @@ -23,22 +25,22 @@ if [ "${1}" == "system" ]; then
ln -s /usr/share/javascript/jquery-tablesorter/jquery.tablesorter.js jquery.tablesorter.js
ln -s /usr/share/javascript/requirejs/require.js require.js

elif [ "${1}" == "local" ]; then
elif [ "${1}" = "local" ]; then

rm -rf js/lib
mkdir -p js/lib
cd js/lib

wget -nv -c http://code.jquery.com/jquery-1.7.2.min.js -O jquery.js
wget -nv -c http://raw.github.com/JangoSteve/jQuery-EasyTabs/v3.2.0/lib/jquery.easytabs.min.js -O jquery.easytabs.js
wget -nv -c http://raw.github.com/cowboy/jquery-hashchange/v1.3/jquery.ba-hashchange.min.js -O jquery.hashchange.js
wget -nv -c http://raw.github.com/datagraph/jquery-jsonrpc/master/jquery.jsonrpc.js -O jquery.jsonrpc.js
wget -nv -c http://raw.github.com/Cyntax/jquery-timer/0.1.1/jquery.plugin.js -O jquery.plugin.js
wget -nv -c http://raw.github.com/Cyntax/jquery-timer/0.1.1/jquery.timer.js -O jquery.timer.js
wget -nv -c http://raw.github.com/Mottie/tablesorter/v2.12.0/js/jquery.tablesorter.min.js -O jquery.tablesorter.js
wget -nv -c http://requirejs.org/docs/release/2.1.9/minified/require.js -O require.js
wget -nv -c https://code.jquery.com/jquery-1.12.4.min.js -O jquery.js
wget -nv -c https://raw.github.com/JangoSteve/jQuery-EasyTabs/v3.2.0/lib/jquery.easytabs.min.js -O jquery.easytabs.js
wget -nv -c https://raw.github.com/pandell/jquery-hashchange/v1.3c/jquery.ba-hashchange.min.js -O jquery.hashchange.js
wget -nv -c https://raw.github.com/datagraph/jquery-jsonrpc/0.1.1/jquery.jsonrpc.js -O jquery.jsonrpc.js
wget -nv -c https://raw.github.com/Cyntax/jquery-timer/0.1.1/jquery.plugin.js -O jquery.plugin.js
wget -nv -c https://raw.github.com/Cyntax/jquery-timer/0.1.1/jquery.timer.js -O jquery.timer.js
wget -nv -c https://raw.github.com/Mottie/tablesorter/v2.29.0/dist/js/jquery.tablesorter.min.js -O jquery.tablesorter.js
wget -nv -c http://requirejs.org/docs/release/2.3.5/minified/require.js -O require.js

elif [ "${1}" == "mixed" ]; then
elif [ "${1}" = "mixed" ]; then

"${0}" local
rm -rf js/lib.local
Expand All @@ -58,7 +60,7 @@ else
echo "Usage:"
echo " ${0} system"
echo " ${0} local"
echo " ${0} [mixed easytabs hashchange jsonrpc plugin timer]"
echo " ${0} mixed [easytabs hashchange jsonrpc plugin timer]"

fi

0 comments on commit 0754c33

Please sign in to comment.