Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
debomatic-webui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
debomatic-webui-admins
debomatic-webui
Commits
6e7364b1
Commit
6e7364b1
authored
Mar 12, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get jquery 1.11.0 as externa_libs
parent
2bf064e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
10 deletions
+27
-10
debomatic-webui/scripts/download_external_libs.sh
debomatic-webui/scripts/download_external_libs.sh
+26
-9
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+1
-1
No files found.
debomatic-webui/scripts/download_external_libs.sh
View file @
6e7364b1
#!/bin/bash
#!/bin/bash
TMP_DIR
=
"
`
mktemp
-d
`
"
SCRIPTS_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
SCRIPTS_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
PUBLIC
_DIR
=
"
${
SCRIPTS_DIR
}
/../public/external_libs"
EXT_LIBS
_DIR
=
"
${
SCRIPTS_DIR
}
/../public/external_libs"
get_bootstrap
()
{
get_bootstrap
()
{
VERSION
=
"3.1.1"
VERSION
=
"3.1.1"
NAME
=
"bootstrap-
${
VERSION
}
-dist"
NAME
=
"bootstrap-
${
VERSION
}
-dist"
if
[
-d
${
PUBLIC
_DIR
}
/
${
NAME
}
]
;
then return
;
fi
if
[
-d
${
EXT_LIBS
_DIR
}
/
${
NAME
}
]
;
then return
;
fi
ARCHIVE
=
${
NAME
}
.zip
ARCHIVE
=
${
NAME
}
.zip
URL
=
"https://github.com/twbs/bootstrap/releases/download/v
${
VERSION
}
/
${
ARCHIVE
}
"
URL
=
"https://github.com/twbs/bootstrap/releases/download/v
${
VERSION
}
/
${
ARCHIVE
}
"
cd
$TMP_DIR
echo
"Downloading bootstrap
${
VERSION
}
..."
echo
"Downloading bootstrap ..."
curl
-s
-O
-L
${
URL
}
&&
\
curl
-s
-O
-L
${
URL
}
&&
unzip
-q
${
ARCHIVE
}
&&
rm
${
ARCHIVE
}
unzip
-q
${
ARCHIVE
}
&&
mv
${
NAME
}
${
PUBLIC_DIR
}
}
cd
&&
rm
-r
$TMP_DIR
get_jquery
()
{
VERSION
=
"1.11.0"
DIR_JQUERY
=
"jquery"
if
[
-d
${
EXT_LIBS_DIR
}
/
${
DIR_JQUERY
}
]
;
then return
;
fi
mkdir
${
DIR_JQUERY
}
cd
${
DIR_JQUERY
}
URL
=
"http://code.jquery.com/jquery-
${
VERSION
}
.min.js"
echo
"Downloading jquery
${
VERSION
}
..."
curl
-s
-O
-L
${
URL
}
cd
..
}
}
mkdir
-p
${
PUBLIC_DIR
}
if
[
!
-d
${
EXT_LIBS_DIR
}
]
;
then
mkdir
-p
${
EXT_LIBS_DIR
}
;
fi
TMP_DIR
=
"
`
mktemp
-d
`
"
cd
${
TMP_DIR
}
get_jquery
get_bootstrap
get_bootstrap
if
[
"
`
ls
-1
`
"
!=
""
]
;
then
mv
*
${
EXT_LIBS_DIR
}
;
fi
cd
&&
rm
-r
${
TMP_DIR
}
\ No newline at end of file
debomatic-webui/views/layout.ejs
View file @
6e7364b1
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
</div>
</div>
</footer>
</footer>
<script
src=
'//code.jquery.com/jquery-1.7.2.min.js'
></script>
<script
src=
'/socket.io/socket.io.js'
></script>
<script
src=
'/socket.io/socket.io.js'
></script>
<script
src=
'/external_libs/jquery/jquery-1.11.0.min.js'
></script>
<script
src=
"/external_libs/bootstrap-3.1.1-dist/js/bootstrap.min.js"
></script>
<script
src=
"/external_libs/bootstrap-3.1.1-dist/js/bootstrap.min.js"
></script>
<script>
<script>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment