1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-25 12:15:18 +01:00

stubbed out ionic app for browser_action

This commit is contained in:
Kyle Spearrin 2016-09-01 00:34:38 -04:00
parent 54695c5673
commit 724a136b7e
19 changed files with 176 additions and 61 deletions

View File

@ -1,59 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<style>
* {
box-sizing: border-box;
}
body {
width: 300px;
margin: 0;
padding: 0;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
font-size: 14px;
line-height: 1.42857143;
color: #333333;
background-color: #fff;
}
a, a:visited, a:focus, a:active {
color: blue;
}
header {
height: 60px;
background-color: blue;
color: white;
}
header a {
color: white;
}
footer {
height: 60px;
background-color: #cccccc;
border-top: 1px solid #999999;
}
</style>
</head>
<body>
<section id="menu">
<header></header>
<content>
<ul>
<li><a href="#">My Vault</a></li>
<li><a href="#">Sites</a></li>
<li><a href="#">Matching Sites</a></li>
<li><a href="#">Settings</a></li>
</ul>
</content>
<footer>
Logout
</footer>
</section>
</body>
</html>

View File

@ -0,0 +1,9 @@
angular
.module('bit', [
'ionic',
'bit.current',
'bit.vault',
'bit.settings',
'bit.tools'
]);

View File

@ -0,0 +1,51 @@
angular
.module('bit')
.config(function ($stateProvider, $urlRouterProvider) {
$stateProvider
.state('tabs', {
url: "/tab",
abstract: true,
templateUrl: "app/global/tabs.html"
})
.state('tabs.current', {
url: "/current",
views: {
'current-tab': {
templateUrl: "app/current/views/current.html",
controller: 'currentController'
}
}
})
.state('tabs.vault', {
url: "/vault",
views: {
'vault-tab': {
templateUrl: "app/vault/views/vault.html",
controller: 'vaultController'
}
}
})
.state('tabs.settings', {
url: "/settings",
views: {
'settings-tab': {
templateUrl: "app/settings/views/settings.html",
controller: 'settingsController'
}
}
})
.state('tabs.tools', {
url: "/tools",
views: {
'tools-tab': {
templateUrl: "app/tools/views/tools.html",
controller: 'toolsController'
}
}
});
$urlRouterProvider.otherwise("/tab/current");
});

View File

@ -0,0 +1,6 @@
angular
.module('bit.current')
.controller('currentController', function ($scope) {
});

View File

@ -0,0 +1,2 @@
angular
.module('bit.current', []);

View File

@ -0,0 +1,7 @@
<ion-view view-title="Current Sites">
<ion-content class="padding">
<p>
Some content for your current sites.
</p>
</ion-content>
</ion-view>

View File

@ -0,0 +1,14 @@
<ion-tabs class="tabs-icon-top tabs-positive">
<ion-tab title="Current Sites" icon="ion-arrow-swap" ui-sref="tabs.current">
<ion-nav-view name="current-tab"></ion-nav-view>
</ion-tab>
<ion-tab title="My Vault" icon="ion-android-lock" ui-sref="tabs.vault">
<ion-nav-view name="vault-tab"></ion-nav-view>
</ion-tab>
<ion-tab title="Tools" icon="ion-settings" ui-sref="tabs.tools">
<ion-nav-view name="tools-tab"></ion-nav-view>
</ion-tab>
<ion-tab title="Settings" icon="ion-gear-b" ui-sref="tabs.settings">
<ion-nav-view name="settings-tab"></ion-nav-view>
</ion-tab>
</ion-tabs>

View File

@ -0,0 +1,6 @@
angular
.module('bit.settings')
.controller('settingsController', function ($scope) {
});

View File

@ -0,0 +1,2 @@
angular
.module('bit.settings', []);

View File

@ -0,0 +1,7 @@
<ion-view view-title="Settings">
<ion-content class="padding">
<p>
Some content for your settings.
</p>
</ion-content>
</ion-view>

View File

@ -0,0 +1,6 @@
angular
.module('bit.tools')
.controller('toolsController', function ($scope) {
});

View File

@ -0,0 +1,2 @@
angular
.module('bit.tools', []);

View File

@ -0,0 +1,7 @@
<ion-view view-title="Tools">
<ion-content class="padding">
<p>
Some content for your tools.
</p>
</ion-content>
</ion-view>

View File

@ -0,0 +1,6 @@
angular
.module('bit.vault')
.controller('vaultController', function ($scope) {
});

View File

@ -0,0 +1,2 @@
angular
.module('bit.vault', []);

View File

@ -0,0 +1,7 @@
<ion-view view-title="My Vault">
<ion-content class="padding">
<p>
Some content for your vault.
</p>
</ion-content>
</ion-view>

View File

@ -0,0 +1,40 @@
<html ng-app="bit">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>bitwarden</title>
<link rel="stylesheet" href="../node_modules/ionic-framework-v1/css/ionic.css">
<script src="../node_modules/ionic-framework-v1/js/ionic.bundle.js"></script>
<script src="app/app.js"></script>
<script src="app/config.js"></script>
<script src="app/current/currentModule.js"></script>
<script src="app/current/currentController.js"></script>
<script src="app/vault/vaultModule.js"></script>
<script src="app/vault/vaultController.js"></script>
<script src="app/settings/settingsModule.js"></script>
<script src="app/settings/settingsController.js"></script>
<script src="app/tools/toolsModule.js"></script>
<script src="app/tools/toolsController.js"></script>
<style>
body {
width: 320px;
height: 480px;
}
</style>
</head>
<body>
<ion-nav-bar class="bar-positive">
<ion-nav-back-button>
</ion-nav-back-button>
</ion-nav-bar>
<ion-nav-view></ion-nav-view>
</body>
</html>

View File

@ -20,6 +20,6 @@
"38": "images/icon38.png"
},
"default_title": "bitwarden",
"default_popup": "action_popup.html"
"default_popup": "browser_action/index.html"
}
}

View File

@ -2,6 +2,6 @@
"name": "bitwarden",
"version": "0.0.1",
"devDependencies": {
"ionic-framework-v1": "1.3.1"
}
}