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
c3b1b979
Commit
c3b1b979
authored
Mar 10, 2014
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
download bootstrap as external_lib on `npm install`
parent
aaec7fa1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
3 deletions
+27
-3
debomatic-webui/package.json
debomatic-webui/package.json
+3
-0
debomatic-webui/scripts/download_external_libs.sh
debomatic-webui/scripts/download_external_libs.sh
+21
-0
debomatic-webui/views/layout.ejs
debomatic-webui/views/layout.ejs
+3
-3
No files found.
debomatic-webui/package.json
View file @
c3b1b979
...
@@ -9,4 +9,7 @@
...
@@ -9,4 +9,7 @@
,
"node-fs"
:
"*"
,
"node-fs"
:
"*"
,
"tail"
:
"*"
,
"tail"
:
"*"
}
}
,
"scripts"
:
{
"install"
:
"bash scripts/download_external_libs.sh"
}
}
}
debomatic-webui/scripts/download_external_libs.sh
0 → 100755
View file @
c3b1b979
#!/bin/bash
TMP_DIR
=
"
`
mktemp
-d
`
"
SCRIPTS_DIR
=
"
$(
cd
"
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
"
&&
pwd
)
"
PUBLIC_DIR
=
"
${
SCRIPTS_DIR
}
/../public/external_libs"
get_bootstrap
()
{
VERSION
=
"3.1.1"
NAME
=
"bootstrap-
${
VERSION
}
-dist"
if
[
-d
${
PUBLIC_DIR
}
/
${
NAME
}
]
;
then return
;
fi
ARCHIVE
=
${
NAME
}
.zip
URL
=
"https://github.com/twbs/bootstrap/releases/download/v
${
VERSION
}
/
${
ARCHIVE
}
"
cd
$TMP_DIR
echo
"Downloading bootstrap ..."
curl
-s
-O
-L
${
URL
}
&&
unzip
-q
${
ARCHIVE
}
&&
mv
${
NAME
}
${
PUBLIC_DIR
}
cd
&&
rm
-r
$TMP_DIR
}
mkdir
-p
${
PUBLIC_DIR
}
get_bootstrap
debomatic-webui/views/layout.ejs
View file @
c3b1b979
...
@@ -3,8 +3,8 @@
...
@@ -3,8 +3,8 @@
<head>
<head>
<title><
%=
web
.
title
%
></title>
<title><
%=
web
.
title
%
></title>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<link
rel=
"stylesheet"
href=
"/
libs/bootstrap/3.1.1
/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"/
external_libs/bootstrap-3.1.1-dist
/css/bootstrap.min.css"
>
<link
rel=
"stylesheet"
href=
"/
libs/bootstrap/3.1.1
/css/bootstrap-theme.min.css"
>
<link
rel=
"stylesheet"
href=
"/
external_libs/bootstrap-3.1.1-dist
/css/bootstrap-theme.min.css"
>
<link
rel=
"stylesheet"
href=
"/stylesheets/style.css"
>
<link
rel=
"stylesheet"
href=
"/stylesheets/style.css"
>
</head>
</head>
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<script
src=
'//code.jquery.com/jquery-1.7.2.min.js'
></script>
<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=
"/
libs/bootstrap/3.1.1
/js/bootstrap.min.js"
></script>
<script
src=
"/
external_libs/bootstrap-3.1.1-dist
/js/bootstrap.min.js"
></script>
<script>
<script>
var
config
=
<%-
JSON
.
stringify
(
web
)
%>
var
config
=
<%-
JSON
.
stringify
(
web
)
%>
...
...
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