changed label

This commit is contained in:
Mario Colque 2014-05-14 17:19:04 -03:00
parent 452ec3e2d1
commit 01bbe55589
3 changed files with 20 additions and 52 deletions

View File

@ -1,51 +0,0 @@
#! /bin/bash
#Description: A simple script to compile and copy only the needed files for the web app.
# Configs
APPDIR="webapp"
LIBDIR="$APPDIR/lib"
DOWNLOADDIR="$APPDIR/download"
ZIPFILE="copay_webapp_.zip"
OpenColor="\033["
Red="1;31m"
Yellow="1;33m"
Green="1;32m"
CloseColor="\033[0m"
# Create/Clean temp dir
echo -e "${OpenColor}${Green}* Checking temp dir...${CloseColor}"
if [ -d $APPDIR ]; then
rm -rf $APPDIR
fi
mkdir -p $APPDIR
# Generate and copy bitcore bundle
if [ ! -d node_modules/bitcore ]; then
echo -e "${OpenColor}${Red}X The node_modules/bitcore dir does not exist. \nRun npm install and try again.${CloseColor}"
exit 1
else
echo -e "${OpenColor}${Green}* Generating bitcore bundle...${CloseColor}"
cd node_modules/bitcore
grunt --target=dev shell
cd ../..
fi
# Re-compile copayBundle.js
echo -e "${OpenColor}${Green}* Generating copay bundle...${CloseColor}"
grunt --target=dev shell
# Copy all app files
echo -e "${OpenColor}${Green}* Copying all app files...${CloseColor}"
cp -af {css,font,img,js,lib,config.js,index.html} $APPDIR
cp -af node_modules/bitcore/browser/bundle.js $LIBDIR/
mv $LIBDIR/bundle.js $LIBDIR/bitcore.js
echo -e "${OpenColor}${Green}* Zipping all app files...${CloseColor}"
zip -r $ZIPFILE $APPDIR
mkdir -p $DOWNLOADDIR
mv $ZIPFILE $DOWNLOADDIR
echo -e "${OpenColor}${Yellow}\nAwesome! You just need to copy and paste the ./webapp content to your local repository and push it.${CloseColor}"

View File

@ -591,7 +591,7 @@
<h3>{{title}}</h3>
<div class="small-12 medium-6 medium-centered large-6 large-centered columns">
<fieldset>
<legend>Network Name</legend>
<legend>Bitcoin Network</legend>
<input id="network-name" type="checkbox" ng-model="networkName" ng-true-value="livenet" ng-false-value="testnet">
<label for="network-name">Livenet</label>
</fieldset>

View File

@ -4,6 +4,25 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Copay</title>
<style>
body { background-color: #2C3E50; }
a {
-webkit-border-radius: 5px;
border-radius: 5px;
background-color: #008cba;
color: #fff;
display: block;
font-family: "Helvetica Neue","Helvetica",Helvetica,Arial,sans-serif;
margin: 20px 0;
opacity: .8;
outline: none;
padding: 10px;
text-decoration: none;
text-align: center;
width: 200px;
}
a:hover { opacity: 1; }
</style>
</head>
<body>
<a href="index.html#signin" target="_blank">Open wallet</a>