forked from virtual-labs-archive/computer-programming-iiith
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: file:///labs/cse02/svn/programming@1 626e1577-b3a6-4e43-b347-5355aed41d3a
- Loading branch information
svnadmin
committed
Nov 18, 2011
0 parents
commit bb891f1
Showing
72 changed files
with
4,226 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
Congrats !! | ||
|
||
* You have successfully downloaded and extracted the | ||
ui.tgz . | ||
|
||
|
||
* Changes: New Tabs have been added for | ||
- Target Audience | ||
- Courses Aligned | ||
- Pre-requisite Softwares | ||
|
||
You need to added 3 more sections on virtual lab home page | ||
|
||
3) Target Audience | ||
4) Courses Aligned | ||
5) Pre-requisite Softwares | ||
|
||
You can make the above said changes by editing content.html. To update the changes | ||
|
||
1) open content.html in your fav editor and search for last closing html tag </section>. | ||
2) Open the change.html file and open it in your fav. editor. | ||
3) Copy all content of change.html | ||
4) Paste it after the last closing html tag </section> (you searched in Step1). | ||
5) Go to ui/src and run " make theme=blue-icon" on command terminal to change theme to blue | ||
|
||
|
||
We had attached change.html in folder. You can copy the whole content and paste it in content.html . | ||
|
||
|
||
Below is snapshot how content.html will look like | ||
<!-- Second section of the article--> | ||
<section id="lab-article-section-2"> | ||
|
||
<div id="lab-article-section-2-icon" class="icon"> | ||
<!-- Enclose the icon image for the section. --> | ||
<img src="images/simulation.jpg" /> | ||
</div> | ||
|
||
|
||
<!-- The heading for the section can be enclosed in a | ||
div tag and shown with a <h2> tag --> | ||
<div id="lab-article-section-2-heading" class="heading"> | ||
List of experiments | ||
</div> | ||
|
||
<!-- Write the section content inside a paragraph | ||
element, You can also include images with <img> tag --> | ||
<div id="lab-article-section-2-content" class="content"> | ||
<ul id="list-of-experiments"> | ||
|
||
<li> | ||
<!--Link and name of the experiment 1 --> | ||
<a href="exp1/index.html">Simple Pendulum Experiment</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
</section> | ||
|
||
// PASTE the CHANGE.html content here.. | ||
|
||
|
||
/*****************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
* Now run makefile by the following commands inside the 'ui/src' folder to | ||
change the default theme : | ||
|
||
Go to Command Terminal | ||
$ cd ui_extracted_folder // Where u have extracted the ui kit | ||
$ cd ui/src | ||
$ make clean all | ||
$ make theme=blue-icon | ||
|
||
* Now, open ui/build/index.html in the browser to test the template. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
for i in {1..9} | ||
do | ||
rsync -azv /home/cse0$i/public_html/final-build/* virtual-labs.ac.in/var/www/labs/cse0$i/ | ||
done | ||
|
||
for i in {10..29} | ||
do | ||
rsync -azv /home/cse$i/public_html/final-build/* virtual-labs.ac.in/var/www/labs/cse$i/ | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
#!/bin/bash | ||
# Proper header for a Bash script. | ||
|
||
# usage: | ||
# Running from inside ui/scripts | ||
# ./transfer.sh <devel-login-name> <optional-theme> <optional -F> | ||
# The -F is meant to do the finalbuild for the deployment server | ||
|
||
SRC_DIR=./src | ||
BUILD_DIR=./build | ||
FINAL_DIR=final-build | ||
FINAL_FLAG=false | ||
|
||
if [ $# = 0 ] | ||
then | ||
echo 'Enter the username on devel.virtual-labs.ac.in' | ||
exit 1 | ||
fi | ||
|
||
if [ $# = 1 ] # The first argument to the script is the username on the | ||
# devel/test server | ||
then | ||
username=$1 | ||
else | ||
username=$1 | ||
if [ $2 = "-F" ] | ||
then | ||
FINAL_FLAG=true | ||
theme=$3 | ||
elif [[ $# = 3 && $3 = "-F" ]] | ||
then | ||
FINAL_FLAG=true | ||
theme=$2 | ||
else | ||
theme=$2 | ||
fi | ||
fi | ||
|
||
#Move outside scripts | ||
cd ../ | ||
|
||
echo $theme | ||
#Set the run commands | ||
#rsync from the local machine to test via devel. | ||
run1='rsync -auvz -e "ssh -i /home/'$username'/.ssh/'$username'" '$SRC_DIR' '$username'@test:' | ||
|
||
# clean the old build in public_html on test | ||
subrun2='find public_html/build -mindepth 1 -maxdepth 1 ! -name js -print0 | xargs -0n1 rm -rf;' | ||
|
||
# clean the old final-build in public_html on test | ||
subrun_final='find public_html/'$FINAL_DIR' -mindepth 1 -maxdepth 1 ! -name js -print0 | xargs -0n1 rm -rf;' | ||
|
||
# run make on test and publish the build on public_html on test | ||
if [ -n "$theme" ] | ||
then | ||
run2='ssh -i /home/'$username'/.ssh/'$username' '$username'@test "cd src/ ; make -k theme="'$theme'" clean all; cd ../ ; '$subrun2' rsync -auvz build/ public_html/build;' | ||
else | ||
run2='ssh -i /home/'$username'/.ssh/'$username' '$username'@test "cd src/ ; make -k clean all; cd ../ ; '$subrun2' rsync -auvz build/ public_html/build;' | ||
fi | ||
|
||
# if this is final, then publish final-build on public_html on test | ||
run3=$subrun_final' rsync -auvz build/ public_html/'$FINAL_DIR | ||
|
||
if [ $FINAL_FLAG = true ] | ||
then | ||
run2=$run2' '$run3';"' | ||
else | ||
run2=$run2'"' | ||
fi | ||
|
||
#echo $run2 | ||
|
||
# Making the build using the default maroon-grid theme | ||
rsync -auvz -e "ssh -i /home/$USER/.ssh/$username" $SRC_DIR $username@devel.virtual-labs.ac.in: | ||
ssh -i /home/$USER/.ssh/$username $username@devel.virtual-labs.ac.in $run1 | ||
ssh -i /home/$USER/.ssh/$username $username@devel.virtual-labs.ac.in $run2 | ||
|
||
|
||
exit 0 # The right and proper method of "exiting" from a script. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Congrats !! | ||
|
||
* You have successfully downloaded and extracted the | ||
ui.tgz . | ||
|
||
|
||
* Now run makefile by the following commands inside the 'ui/src' folder to | ||
create the build directory : | ||
|
||
make clean all | ||
|
||
* Now, open ui/build/index.html in the browser to test the template. | ||
|
||
* For any further doubts refer to the help that has been provided | ||
inside the build/help/index.html. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
digraph modules { | ||
node [style=filled,color="#FFDAB9"]; | ||
|
||
|
||
"lab-header" [label="header"]; | ||
"lab-heading" [label="heading"]; | ||
"article-header" [label="header"]; | ||
"article-heading" [label="heading"]; | ||
"section-heading" [label="heading"]; | ||
|
||
"lab-footer" [label="footer" color="#DDA0DD"]; | ||
"article-footer" [label="footer" color="#DDA0DD"]; | ||
"article-aside" [label="aside" color="#DDA0DD"]; | ||
nav [label="nav" color="#DDA0DD"]; | ||
|
||
lab -> "lab-header"; | ||
lab -> "lab-footer"; | ||
lab -> article; | ||
|
||
|
||
"lab-header" -> logo; | ||
"lab-header" -> "lab-heading"; | ||
logo -> img; | ||
|
||
article -> "article-header"; | ||
article -> nav; | ||
article -> "article-aside"; | ||
article -> "article-footer"; | ||
article -> sections; | ||
|
||
"article-header" -> "article-heading"; | ||
|
||
sections -> "section-1"; | ||
sections -> "section-n"; | ||
|
||
"section-1" -> icon; | ||
"section-1" -> "section-heading"; | ||
"section-1" -> content; | ||
|
||
} | ||
|
||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
span.list-heading { | ||
font-weight: bold; | ||
margin-top: 2em; | ||
} | ||
|
||
span.code { | ||
font-family: monospace; | ||
font-style: normal; | ||
font-weight: bold; | ||
color: #556B2F; | ||
} | ||
|
Oops, something went wrong.