1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-24 04:04:24 +00:00

scripts, connectors, and webpack adjustments

This commit is contained in:
Kyle Spearrin
2018-06-05 09:01:40 -04:00
parent 8f14ced5af
commit 29d0803a5c
11 changed files with 75 additions and 48 deletions

12
src/connectors/duo.html Normal file
View File

@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Bitwarden Duo Connector</title>
</head>
<body></body>
</html>

View File

@@ -1,4 +1,7 @@
!(function () {
require('../scripts/duo');
require('./duo.scss');
!(function () {
var frameElement = document.createElement('iframe');
frameElement.setAttribute('id', 'duo_iframe');
setFrameHeight();

17
src/connectors/duo.scss Normal file
View File

@@ -0,0 +1,17 @@
html, body {
margin: 0;
padding: 0;
}
body {
background: #efeff4 url('../images/loading.svg') 0 0 no-repeat;
}
iframe {
display: block;
width: 100%;
height: 400px;
border: none;
margin: 0;
padding: 0;
}

11
src/connectors/u2f.html Normal file
View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Bitwarden U2F Connector</title>
</head>
<body></body>
</html>

View File

@@ -1,4 +1,6 @@
document.addEventListener('DOMContentLoaded', function (event) {
require('../scripts/u2f');
document.addEventListener('DOMContentLoaded', function (event) {
init();
});

View File

@@ -1,31 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Duo Two-step Login</title>
<style>
html, body {
margin: 0;
padding: 0;
}
body {
background: #efeff4 url('images/loading.svg') 0 0 no-repeat;
}
iframe {
display: block;
width: 100%;
height: 400px;
border: none;
margin: 0;
padding: 0;
}
</style>
</head>
<body>
<script src="js/duo.js"></script>
<script src="js/duo-connector.js"></script>
</body>
</html>

View File

@@ -1,11 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>U2F Connector</title>
</head>
<body>
<script src="js/u2f-api.js"></script>
<script src="js/u2f-connector.js"></script>
</body>
</html>