mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-21 11:35:34 +01:00
stubbed out ionic app for browser_action
This commit is contained in:
parent
54695c5673
commit
724a136b7e
@ -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>
|
9
src/browser_action/app/app.js
Normal file
9
src/browser_action/app/app.js
Normal file
@ -0,0 +1,9 @@
|
||||
angular
|
||||
.module('bit', [
|
||||
'ionic',
|
||||
|
||||
'bit.current',
|
||||
'bit.vault',
|
||||
'bit.settings',
|
||||
'bit.tools'
|
||||
]);
|
51
src/browser_action/app/config.js
Normal file
51
src/browser_action/app/config.js
Normal 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");
|
||||
});
|
6
src/browser_action/app/current/currentController.js
Normal file
6
src/browser_action/app/current/currentController.js
Normal file
@ -0,0 +1,6 @@
|
||||
angular
|
||||
.module('bit.current')
|
||||
|
||||
.controller('currentController', function ($scope) {
|
||||
|
||||
});
|
2
src/browser_action/app/current/currentModule.js
Normal file
2
src/browser_action/app/current/currentModule.js
Normal file
@ -0,0 +1,2 @@
|
||||
angular
|
||||
.module('bit.current', []);
|
7
src/browser_action/app/current/views/current.html
Normal file
7
src/browser_action/app/current/views/current.html
Normal 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>
|
14
src/browser_action/app/global/tabs.html
Normal file
14
src/browser_action/app/global/tabs.html
Normal 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>
|
6
src/browser_action/app/settings/settingsController.js
Normal file
6
src/browser_action/app/settings/settingsController.js
Normal file
@ -0,0 +1,6 @@
|
||||
angular
|
||||
.module('bit.settings')
|
||||
|
||||
.controller('settingsController', function ($scope) {
|
||||
|
||||
});
|
2
src/browser_action/app/settings/settingsModule.js
Normal file
2
src/browser_action/app/settings/settingsModule.js
Normal file
@ -0,0 +1,2 @@
|
||||
angular
|
||||
.module('bit.settings', []);
|
7
src/browser_action/app/settings/views/settings.html
Normal file
7
src/browser_action/app/settings/views/settings.html
Normal 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>
|
6
src/browser_action/app/tools/toolsController.js
Normal file
6
src/browser_action/app/tools/toolsController.js
Normal file
@ -0,0 +1,6 @@
|
||||
angular
|
||||
.module('bit.tools')
|
||||
|
||||
.controller('toolsController', function ($scope) {
|
||||
|
||||
});
|
2
src/browser_action/app/tools/toolsModule.js
Normal file
2
src/browser_action/app/tools/toolsModule.js
Normal file
@ -0,0 +1,2 @@
|
||||
angular
|
||||
.module('bit.tools', []);
|
7
src/browser_action/app/tools/views/tools.html
Normal file
7
src/browser_action/app/tools/views/tools.html
Normal 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>
|
6
src/browser_action/app/vault/vaultController.js
Normal file
6
src/browser_action/app/vault/vaultController.js
Normal file
@ -0,0 +1,6 @@
|
||||
angular
|
||||
.module('bit.vault')
|
||||
|
||||
.controller('vaultController', function ($scope) {
|
||||
|
||||
});
|
2
src/browser_action/app/vault/vaultModule.js
Normal file
2
src/browser_action/app/vault/vaultModule.js
Normal file
@ -0,0 +1,2 @@
|
||||
angular
|
||||
.module('bit.vault', []);
|
7
src/browser_action/app/vault/views/vault.html
Normal file
7
src/browser_action/app/vault/views/vault.html
Normal 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>
|
40
src/browser_action/index.html
Normal file
40
src/browser_action/index.html
Normal 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>
|
@ -20,6 +20,6 @@
|
||||
"38": "images/icon38.png"
|
||||
},
|
||||
"default_title": "bitwarden",
|
||||
"default_popup": "action_popup.html"
|
||||
"default_popup": "browser_action/index.html"
|
||||
}
|
||||
}
|
@ -2,6 +2,6 @@
|
||||
"name": "bitwarden",
|
||||
"version": "0.0.1",
|
||||
"devDependencies": {
|
||||
|
||||
"ionic-framework-v1": "1.3.1"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user