Commit graph

178 commits

Author SHA1 Message Date
Joseph Boiteau
d330f94967
Change password input for textarea 2017-01-05 11:01:16 +11:00
Nicholas Charriere
ad4012dfbe Merge pull request #47 from frontfoot/production_environment
Run in production mode by default
2017-01-03 11:55:42 -08:00
Nicholas Charriere
8663b4276c Merge pull request #41 from jameswthorne/ui-improvements
UI improvements
2017-01-03 11:50:30 -08:00
Joseph Boiteau
d61c08c7c7
Run in production mode by default
Use DEBUG environment variable to run debug mode
2017-01-03 13:36:52 +11:00
James W Thorne
f8f672f934 Added back autocomplete=off 2016-11-11 16:39:08 -06:00
James W Thorne
6b88315603 Grammar changes 2016-11-06 09:12:21 -06:00
James W Thorne
3bb3a4949d Removed npm.js and reverted to original copy 2016-11-06 09:05:05 -06:00
James W Thorne
483448051e UI improvements
* Cleaned up UI
* Updated Twitter Bootstrap to v3.3.7
* Updated jquery to 1.12.4
* Added mobile view port
2016-11-02 21:31:50 -05:00
Nicholas Charriere
addd1495a3 Merge pull request #39 from samueldg/test/password_expiration
Add tests for password expiration
2016-10-29 13:12:58 -07:00
Nicholas Charriere
43fd4d405a Merge pull request #38 from samueldg/fix/docker-compose-README
Remove unnecessary step form README Docker install
2016-10-29 13:08:36 -07:00
Samuel Dion-Girardeau
5801007738 Add tests for password expiration 2016-10-24 19:21:08 -04:00
Samuel Dion-Girardeau
82bbbab608 Remove unnecessary step form README Docker install
Since the docker-compose file includes the build directive,
building and tagging beforehand is not necessary.
2016-10-24 18:41:36 -04:00
Nicholas Charriere
dc364bb75e Merge pull request #33 from samueldg/enhancement/atomic_setex
Set password value and expiration atomically
2016-10-24 09:28:45 -07:00
Nicholas Charriere
2c84ff151b Merge pull request #35 from ebuildy/patch-1
Update docker-compose file to version 2
2016-10-24 09:24:29 -07:00
Thomas Decaux
8133db24b0 Update docker-compose file to version 2
And snappass container will be built from Dockerfile since there is no official image (yet..)
2016-10-24 16:03:03 +02:00
Samuel Dion-Girardeau
9e89376416 Set password value and expiration atomically
Redis has a `SETEX` (http://redis.io/commands/SETEX) method,
which does both setting the value and setting the expiration
atomically.
2016-10-23 03:11:32 -04:00
Nicholas Charriere
d12a090952 Merge pull request #29 from dwinston/patch-1
inherit protocol (http/https) for stylesheet load
2016-09-08 14:45:26 -07:00
Nicholas Charriere
2f29a5d50f Merge pull request #30 from dwinston/add-redis-url-env-var
Allow use of REDIS_URL env var
2016-09-08 14:44:08 -07:00
Donny Winston
d12d218042 Handle and document use of REDIS_URL env var 2016-09-08 13:44:03 -07:00
Donny Winston
20a24ff1ec inherit protocol (http/https) for stylesheet load
Some browsers (e.g. latest Chrome) won't load stylesheets over http if the site is loaded over https.
2016-09-08 10:29:01 -07:00
Nicholas Charriere
c22c902de6 Merge pull request #23 from pinterest/more-env-vars
Add ENV variables options
2016-09-08 09:58:01 -07:00
Nicholas Charriere
89eef898e4 Merge pull request #24 from voidpirate/master
Catch Connection Error when redis isn't up #22
2016-08-28 07:27:29 -07:00
Nicholas Charriere
2e8d45e691 Merge pull request #27 from samueldg/improve-dev-setup
Improve development setup
2016-08-28 07:17:34 -07:00
Brandon Davis
fadd2854e5 Fix for remaining comments.
- Call function within try/catch
- Syntax clean up
2016-08-22 21:59:08 -07:00
Brandon Davis
f0c9f6a09d Merge remote-tracking branch 'upstream/master' 2016-08-22 21:18:08 -07:00
Samuel Dion-Girardeau
0d76a62427 Fix coverage commands
- Remove setup.py, as the tests don't run it;
- Put the correct test command;
- Add `$ ` prompts, for conformity with the previous steps.
2016-08-22 20:32:22 -04:00
Samuel Dion-Girardeau
9177f0fab0 Fix flake8 command in development flow
- Missing setup.py, and wrong path for tests
- Removed extra new lines that was causing a warning
2016-08-22 20:32:22 -04:00
Samuel Dion-Girardeau
ae9bebb365 Add debug server steps to development flow 2016-08-22 20:32:22 -04:00
Samuel Dion-Girardeau
a8401434cb Bump flask to 0.11.1
One of the main advantages is the easy debug mode,
with autoreload capabilities.

Several other fixes & features:
http://flask.pocoo.org/docs/0.11/changelog/#version-0-11
2016-08-22 20:32:22 -04:00
Samuel Dion-Girardeau
56b0414524 Explicitly list dev requirements in dedicated file
Pinning the versions to the latest stable at current time.
2016-08-22 20:32:22 -04:00
Jon Parise
09ca4b6709 Merge pull request #26 from samueldg/fix/jquery_path
Fix jquery static lib path
2016-08-22 16:41:14 -07:00
Samuel Dion-Girardeau
2af4117ecb Fix jquery static lib path 2016-08-22 19:03:31 -04:00
Brandon Davis
e0ae801b24 Remove TimeoutError import 2016-08-21 21:33:12 -07:00
Brandon Davis
9694d7da7f Switch to use decorator for checking if redis server is up.
- setup.py removed empty line flake8 was complaining.
2016-08-21 21:27:00 -07:00
Brandon Davis
c9db491485 Minor cleanup 2016-08-21 11:50:06 -07:00
Brandon Davis
2d6aec17cd Remove unused traceback and code formatting cleanup 2016-08-21 11:24:20 -07:00
Brandon Davis
4feeaef2fd Add exception handling for when redis is down and or not running. 2016-08-21 11:20:00 -07:00
Nicholas Charriere
2855e5b9b6 Add env var options 2016-08-21 09:05:01 +02:00
Nicholas Charriere
67bbb6f220 Merge pull request #21 from samueldg/feature/copy_to_clipboard
Add button to copy link/password to clipboard
2016-08-21 08:59:10 +02:00
Samuel Dion-Girardeau
d0f8505bc4 Stop serving jquery from CDN 2016-08-20 16:06:01 -04:00
Samuel Dion-Girardeau
bbc01041da Stop serving clipboard from CDN 2016-08-20 15:55:36 -04:00
Samuel Dion-Girardeau
9b65550b71 Merge remote-tracking branch 'origin/master' into feature/copy_to_clipboard 2016-08-20 15:48:11 -04:00
Samuel Dion-Girardeau
26972a2f52 Move snappass-specific js/css into separate dir 2016-08-20 15:47:18 -04:00
Nicholas Charriere
64b5c3f7be Merge pull request #19 from samueldg/feature/tox_python3_support
feature/tox_python3_support
2016-08-15 13:52:32 -07:00
Samuel Dion-Girardeau
073885d651 Add button to copy link/password to clipboard
- Using clipboard.js
- On browsers not supporting evalCommand(), the text will be selected,
  and the keyboard shortcut displayed, depending on platform.
  (tested on Safari)
- Now using Bootstrap readonly text form, instead of a header,
  to display the passwords and generated links;
- Using fontawesome to get a clipboard icon (like GitHub, GitLab, etc.)
- fontawesome and clipboard.js are pulled from a CDN.
2016-08-13 20:14:36 -04:00
Samuel Dion-Girardeau
00f6964a90 Fix python2.6 support for tests
- "{}".format('foo') does not work on python2.6, as the index needs to be explicitly specified.
- assertIn(x, y) was only introduced in 2.7, reverting to assertTrue(x in y)

Updated test environments definitions and docs accordingly.
2016-08-12 18:47:02 -04:00
Yongwen Xu
c0d1e0ae39 Merge pull request #18 from samueldg/enhancement/no_autocompletion
Prevent browser autocompletion of password
2016-08-11 23:52:31 -07:00
Yongwen Xu
1ab2f6ee66 Merge pull request #20 from futureimperfect/typo-fix
Fixed minor typos.
2016-08-11 23:47:42 -07:00
James Barclay
b9e34ce2f8 Fixed minor typos. 2016-08-12 00:26:22 -04:00
Samuel Dion-Girardeau
20635bdec8 Explicitly define all supported python environment
With only 3.5, travis-ci works, because 2.7, 3.3 and 3.4 interpreters
are present by default,  but it might break randomly at some point.

Definining all the versions explicitly, and using the tox-travis plugin
is more robust.

Also, 2.6 was removed from the "officially supported" python versions,
as the tests are not run (and don't pass).
2016-08-11 22:48:36 -04:00