소스 검색

first commit

pull/342/head
Guillaume Vincent 8 년 전
커밋
9357616ccf
14개의 변경된 파일305개의 추가작업 그리고 0개의 파일을 삭제
  1. +12
    -0
      .editorconfig
  2. +1
    -0
      .gitignore
  3. +3
    -0
      .travis.yml
  4. +1
    -0
      extension/content.js
  5. BIN
      extension/icons/logo-32.png
  6. BIN
      extension/icons/logo-64.png
  7. +27
    -0
      extension/manifest.json
  8. +102
    -0
      extension/options.html
  9. +69
    -0
      extension/popup.css
  10. +21
    -0
      extension/popup.html
  11. +6
    -0
      extension/vendor/css/bootstrap.min.css
  12. +21
    -0
      license
  13. +39
    -0
      package.json
  14. +3
    -0
      readme.md

+ 12
- 0
.editorconfig 파일 보기

@@ -0,0 +1,12 @@
root = true

[*]
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
indent_style = space
indent_size = 2

+ 1
- 0
.gitignore 파일 보기

@@ -0,0 +1 @@
node_modules

+ 3
- 0
.travis.yml 파일 보기

@@ -0,0 +1,3 @@
language: node_js
node_js:
- 'node'

+ 1
- 0
extension/content.js 파일 보기

@@ -0,0 +1 @@
console.log('content script');

BIN
extension/icons/logo-32.png 파일 보기

Before After
Width: 32  |  Height: 32  |  Size: 845 B

BIN
extension/icons/logo-64.png 파일 보기

Before After
Width: 64  |  Height: 64  |  Size: 1.6 KiB

+ 27
- 0
extension/manifest.json 파일 보기

@@ -0,0 +1,27 @@
{
"description": "chrome and firefox web extension for lesspass password manager",
"manifest_version": 2,
"name": "lesspass",
"version": "1.0.0",
"homepage_url": "https://github.com/lesspass/webextension",
"icons": {
"64": "icons/logo-64.png"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["content.js"],
"run_at": "document_end"
}
],
"permissions": [
"activeTab",
"storage"
],
"browser_action": {
"default_icon": "icons/logo-32.png",
"default_title": "LessPass",
"default_popup": "popup.html"
},
"options_page": "options.html"
}

+ 102
- 0
extension/options.html 파일 보기

@@ -0,0 +1,102 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="vendor/css/bootstrap.min.css"/>
</head>
<body>

<div class="container m-t-1">
<div class="row">
<div class="col-sm-6 offset-sm-3">
<form>
<legend>LessPass options <span id="message" style="color: green;"></span></legend>

<fieldset class="form-group">
<label for="passwordLength">Password Length</label>
<input class="form-control" placeholder="Password length" id="passwordLength" type="number"
value="12" min="6" max="64">
<small class="text-muted">default password length</small>
</fieldset>
<fieldset class="form-group">
<label for="passwordCounter">Counter</label>
<input class="form-control" id="passwordCounter" type="number" value="1" min="1">
<small class="text-muted">counter to change password value</small>
</fieldset>
<label>Password Options</label>
<div class="row">
<div class="col-lg-5">
<label class="c-input c-checkbox">
<input type="checkbox" id="lowercase" value="lowercase" checked>
<span class="c-indicator"></span>
lowercase
</label>
</div>
<div class="col-lg-7">
<label class="c-input c-checkbox">
<input type="checkbox" id="uppercase" value="uppercase" checked>
<span class="c-indicator"></span>
uppercase
</label>
</div>
</div>
<div class="row">
<div class="col-lg-5">
<label class="c-input c-checkbox">
<input type="checkbox" id="numbers" value="numbers"
checked>
<span class="c-indicator"></span>
numbers
</label>
</div>
<div class="col-lg-7">
<label class="c-input c-checkbox">
<input type="checkbox" id="symbols" value="symbols"
checked>
<span class="c-indicator"></span>
symbols
</label>
</div>
</div>
<button type="submit" class="btn btn-primary">Save</button>
</form>
</div>
</div>


<!--
<form class="pure-form pure-form-stacked">
<fieldset>
<legend>LessPass default options <span id="message" style="font-size: 80%;color: green;"></span>
</legend>
<label>Password Options</label>
<label for="lowercase" class="pure-checkbox">
<input id="lowercase" type="checkbox" checked> lowercase
</label>
<label for="uppercase" class="pure-checkbox">
<input id="uppercase" type="checkbox" checked> uppercase
</label>
<label for="numbers" class="pure-checkbox">
<input id="numbers" type="checkbox" checked> numbers
</label>
<label for="symbols" class="pure-checkbox">
<input id="symbols" type="checkbox" checked> symbols
</label>

<label for="passwordLength">Password Length</label>
<input id="passwordLength" type="number" value="12" min="6" max="64">

<label for="passwordCounter">Counter</label>
<input id="passwordCounter" type="number" value="1" min="1" max="100">

<button type="submit" class="pure-button pure-button-primary">Save options</button>
</fieldset>
</form>
-->
</div>


<script src="options.js"></script>
</body>
</html>


+ 69
- 0
extension/popup.css 파일 보기

@@ -0,0 +1,69 @@
html, body {
width: 400px;
margin: 0;
}

body {
font-family: sans-serif;
}

.login {
width: 400px;
margin: 0 auto;
font-size: 16px;
}

.login-header,
.login p {
margin-top: 0;
margin-bottom: 0;
}

.login-header {
padding: 20px 20px 10px;
font-size: 1.4em;
font-weight: normal;
text-align: center;
text-transform: uppercase;
color: #0275d8;
}

.login-container {
padding: 12px;
}

.login p {
padding: 12px;
}

.login input {
box-sizing: border-box;
display: block;
width: 100%;
border: 1px solid;
padding: 16px;
outline: 0;
font-family: inherit;
font-size: 0.95em;
}

.login input {
background: #fff;
border-color: #bbb;
color: #555;
}

.login input {
border-color: #888;
}

.login input[type="submit"] {
background: #0275d8;
border-color: transparent;
color: #fff;
cursor: pointer;
}

.login input[type="submit"]:focus {
border-color: #05a;
}

+ 21
- 0
extension/popup.html 파일 보기

@@ -0,0 +1,21 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="popup.css"/>
</head>
<body>
<div class="login">
<h2 class="login-header">LessPass</h2>

<form class="login-container">
<p><input id="login-container-email" type="email" placeholder="Email/Username"></p>
<p><input id="login-container-site" type="text" placeholder="Site"></p>
<p><input id="login-container-password" type="password" placeholder="Master Password"></p>
<p><input id="login-container-btn" type="submit" value="Let's go !"></p>
</form>
</div>
<!--<script src="tldjs.js"></script>-->
<!--<script src="lesspass.js"></script>-->
</body>
</html>

+ 6
- 0
extension/vendor/css/bootstrap.min.css
파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
파일 보기


+ 21
- 0
license 파일 보기

@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (c) Guillaume Vincent <guillaume@oslab.fr> (guillaumevincent.com)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

+ 39
- 0
package.json 파일 보기

@@ -0,0 +1,39 @@
{
"scripts": {
"test": "xo && ava tests --require babel-core/register"
},
"devDependencies": {
"ava": "*",
"babel-core": "*",
"babel-preset-es2015": "*",
"xo": "*"
},
"xo": {
"esnext": true,
"space": true,
"envs": [
"browser",
"jquery",
"webextensions"
],
"ignores": [
"extension/vendor/**"
]
},
"ava": {
"files": [
"tests/*.js"
],
"source": [
"extension/*.js"
]
},
"babel": {
"presets": [
"es2015"
]
},
"dependencies": {
"jsdom": "^9.0.0"
}
}

+ 3
- 0
readme.md 파일 보기

@@ -0,0 +1,3 @@
# LessPass Web Extension

chrome and firefox web extension for lesspass password manager

불러오는 중...
취소
저장