Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test2.00 #108

Open
wants to merge 204 commits into
base: feature/add-key
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
8ca90cd
Fetch keys on component mount
henryboldi Feb 24, 2016
7913f5f
Refactor animation on floating button
henryboldi Feb 24, 2016
17908c0
Rename compose components 🌺
henryboldi Feb 29, 2016
9e6b1b4
Add PGP helper functions
henryboldi Feb 29, 2016
b1959d2
Change `keys` to `buddies`
henryboldi Mar 7, 2016
fb21ef6
Consolidate buddies containers
henryboldi Mar 7, 2016
1449cb0
Improve `compose` to `composer`
henryboldi Mar 7, 2016
10534db
Remove `compose` component
henryboldi Mar 7, 2016
529b5c9
Use updated containers in main
henryboldi Mar 7, 2016
a9ddef6
Remove `KeyConstants`
henryboldi Mar 7, 2016
fad0d97
Switch to webpack
henryboldi May 7, 2016
5920790
Add alias actions
henryboldi May 7, 2016
ff5f4c7
Add alias component
henryboldi May 7, 2016
352c08c
Add alias composer form component
henryboldi May 7, 2016
5b101a7
Update composer component
henryboldi May 7, 2016
9492ddc
Add composer alias form component
henryboldi May 7, 2016
c66e109
Update to composer form component
henryboldi May 7, 2016
842f7c1
Move components to app folder
henryboldi May 7, 2016
125c856
Add keychain constants
henryboldi May 7, 2016
8d4c9a9
Add alias container
henryboldi May 7, 2016
b554000
Add app and dev tool containers
henryboldi May 7, 2016
7a84a54
Move files around :squirrel:
henryboldi May 7, 2016
1a0a822
Add output container
henryboldi May 7, 2016
bbf572c
Update to keychain reducer
henryboldi May 7, 2016
213ef6d
Remove old files
henryboldi May 7, 2016
31ec857
Update pgp.js
henryboldi May 7, 2016
7a2c657
Add pgp server
henryboldi May 7, 2016
7de8da7
Add routes
henryboldi May 7, 2016
a71b72f
Add avatar image
henryboldi May 7, 2016
0934a1e
`0` -> `0px`
casesandberg May 11, 2016
93b7571
Add toggle generating key
henryboldi May 11, 2016
198bf3f
Add and use alias prop
henryboldi May 11, 2016
cf5f88e
Add save/use passphrase in sys keychain
henryboldi May 11, 2016
30874aa
Add display loading button when isGeneratingKey
henryboldi May 11, 2016
c4a2a0b
Fix Console Errors
casesandberg May 11, 2016
e085541
Update composer to focus and clear
henryboldi May 11, 2016
015db17
Add copy to clipboard in output
henryboldi May 11, 2016
4816490
Update packages
henryboldi May 11, 2016
2f9fb72
Remove unnecessary log
henryboldi May 11, 2016
20e8a92
Update webpack config to use nodeExternals
henryboldi May 11, 2016
be5d0e8
Update apply felony branding
henryboldi May 11, 2016
1abc208
Remove font awesome script link
henryboldi May 11, 2016
f9bf03b
ComposerForm design
casesandberg May 11, 2016
1939b37
Merge remote-tracking branch 'origin/master'
casesandberg May 11, 2016
8fcaf83
Add close after copy to clipboard
henryboldi May 12, 2016
4093e7c
Add clear selected keys
henryboldi May 16, 2016
b309fd8
Add new avatars
henryboldi May 24, 2016
9c164ed
Fix icon positioning
henryboldi May 24, 2016
72a5ea1
Update style for output component
henryboldi May 24, 2016
f8e1b5e
Add check icon
henryboldi May 24, 2016
5751bfd
Update app icon
henryboldi Jun 8, 2016
347e903
Add toggleIsCopied to UI actions
henryboldi Jun 8, 2016
6ddb66b
Add logo images
henryboldi Jun 8, 2016
898786b
Add slant svg
henryboldi Jun 8, 2016
d4aa27d
Add spinner css
henryboldi Jun 8, 2016
850d866
Add new colors
henryboldi Jun 8, 2016
24bb7b5
Add avatar prop
henryboldi Jun 9, 2016
0ed380a
Add avatar # to avatar
henryboldi Jun 9, 2016
113614d
Update alias form
henryboldi Jun 9, 2016
c0a321a
Add alias form input
henryboldi Jun 9, 2016
c808d49
Add alias success
henryboldi Jun 9, 2016
9e8616c
Update composer form
henryboldi Jun 9, 2016
89a3a3f
Add composer form submit
henryboldi Jun 9, 2016
bf95a6f
Move to header container
henryboldi Jun 9, 2016
2fd5359
Update to use header container
henryboldi Jun 9, 2016
3ee15f2
Improve floating button item label styles
henryboldi Jun 9, 2016
4030a2e
Update header
henryboldi Jun 9, 2016
d08c4cf
Add header key copy
henryboldi Jun 9, 2016
6b99191
Add header key status
henryboldi Jun 9, 2016
4f92b5b
Add header key status spinner
henryboldi Jun 9, 2016
4ae41c9
Add header key status tooltip
henryboldi Jun 9, 2016
b1419f6
Remove header more menu
henryboldi Jun 9, 2016
b914c0d
Update to use avatar prop
henryboldi Jun 9, 2016
8912552
Update to use green color var
henryboldi Jun 9, 2016
221d699
Add toggle is copied constant
henryboldi Jun 9, 2016
0f41aba
Add avatar to keychain reducer
henryboldi Jun 9, 2016
c7219f9
Add isCopied to uiReducer
henryboldi Jun 9, 2016
96b0177
Update icons
henryboldi Jun 9, 2016
1d07f97
Update to open link and window size
henryboldi Jun 9, 2016
bf8d85d
Update package.js to work (odd)
henryboldi Jun 9, 2016
0c21b15
Update packages
henryboldi Jun 9, 2016
9a31263
Reduce numBits for faster and smaller keys
henryboldi Jun 9, 2016
5d88cb3
Move node externals to dev
henryboldi Jun 9, 2016
6c5da98
Update electron webpack config
henryboldi Jun 9, 2016
09a53fd
Temp runtime fix
henryboldi Jun 9, 2016
3fef9e2
Nit Picky
casesandberg Jun 10, 2016
1b660fb
Remove babel polyfill script tag
henryboldi Jun 15, 2016
02baff6
Remove onboarding from alias click
henryboldi Jun 15, 2016
9f82f9f
Update composer animation
henryboldi Jun 15, 2016
afa4ce6
Update composer form styles
henryboldi Jun 15, 2016
5f98020
Add loading message to submit button
henryboldi Jun 15, 2016
1c48c9b
Update output styles
henryboldi Jun 15, 2016
0e3f9ac
Add 2nd package.json in /app for native modules
henryboldi Jun 15, 2016
1148881
Merge pgpServer into pgp util
henryboldi Jun 15, 2016
b6c31b2
Update menu items
henryboldi Jun 15, 2016
d5d7399
Update package.json
henryboldi Jun 15, 2016
0adda64
Working build scripts
henryboldi Jun 15, 2016
2b2691a
Merge remote-tracking branch 'origin/master'
henryboldi Jun 15, 2016
72b93ba
Remove pgpServer
henryboldi Jun 15, 2016
dc5aae6
Update readme
henryboldi Jun 15, 2016
91dc9f1
Update readme images
henryboldi Jun 15, 2016
2fd0327
Add badges to readme
henryboldi Jun 15, 2016
9685547
Update readme logo
henryboldi Jun 17, 2016
c437118
Another logo update (padding)
henryboldi Jun 17, 2016
68017c8
Update package.js
henryboldi Jun 17, 2016
cc34997
Add electron-winstaller to packages
henryboldi Jun 17, 2016
7d9f834
Add autoUpdater
henryboldi Jun 17, 2016
8001653
Fix pgp encrypt and verify
henryboldi Jun 17, 2016
7ef4f2a
Improve output
henryboldi Jun 17, 2016
b234b4e
Update to run autoUpdater only on prod
henryboldi Jun 17, 2016
66e111e
Increment version
henryboldi Jun 17, 2016
ec0a05d
Fix autoUpdater
henryboldi Jun 20, 2016
9ea26f3
Increment ver
henryboldi Jun 20, 2016
9ff6038
Update readme screenshot
henryboldi Jun 20, 2016
05b766c
Update readme images
henryboldi Jun 20, 2016
de36c92
Update logo image readme
henryboldi Jun 20, 2016
c78fcc8
Update README.md
henryboldi Jun 20, 2016
0af46a1
Update README.md
henryboldi Jul 4, 2016
b878231
Update README.md
henryboldi Jul 4, 2016
8b7096f
Update README.md
henryboldi Jul 4, 2016
1511809
change title for app
peny Jul 4, 2016
ce98c58
Merge pull request #13 from peny/title
henryboldi Jul 4, 2016
47de7e7
Removing 'dafuq' from PGP Public Key comment
ameesme Jul 4, 2016
9943d34
Updated to work with node 6
annejan Jul 4, 2016
8aa3f1e
Merge pull request #17 from annejan/patch-1
henryboldi Jul 4, 2016
d5718a0
Merge pull request #16 from ameesme/PR-removing-dafuq-Public-PGP
henryboldi Jul 4, 2016
3741dff
Support for felony instead of for bootstrap
MichalPaszkiewicz Jul 4, 2016
69d0881
Merge pull request #18 from MichalPaszkiewicz/master
henryboldi Jul 4, 2016
e869460
Increment version num
henryboldi Jul 4, 2016
f4a98c7
Update README.md
henryboldi Jul 4, 2016
f9ab481
Fix style error
sowbug Jul 4, 2016
4b7c1cf
Merge pull request #23 from sowbug/master
henryboldi Jul 4, 2016
62ac439
Update pgp.js
nopesled Jul 6, 2016
95e3596
Update default electron version to something newer
keslerm Jul 7, 2016
755c151
Remove crash reporter because it is not configured correctly
keslerm Jul 7, 2016
71870ea
Merge pull request #48 from keslerm/master
henryboldi Jul 7, 2016
1582ef4
update electron, fully remove crash reporter
greg-js Jul 8, 2016
fc52b66
Merge pull request #56 from greg-js/update
henryboldi Jul 9, 2016
6d75abe
Added listener to enter to submit form, and validation to check that …
MartinIngesen Jul 9, 2016
d080502
Merge pull request #58 from MartinIngesen/master
henryboldi Jul 9, 2016
75cea38
Make window not resizable
Jul 11, 2016
e77b770
Merge pull request #60 from tobycyanide/master
henryboldi Jul 11, 2016
af98329
Merge remote-tracking branch 'henryboldi/master' into feature/reopen-…
Jul 12, 2016
aa0f801
Let you reopen the window after it's been closed
Jul 12, 2016
f0c8dbc
Merge remote-tracking branch 'henryboldi/master'
Jul 12, 2016
60ae0a7
Merge pull request #61 from tobycyanide/feature/reopen-window
henryboldi Jul 12, 2016
15f541e
Fix up ESlint errors and resolve the fullscreening error
Jul 12, 2016
58f86c1
Merge remote-tracking branch 'henryboldi/master' into feature/fullscr…
Jul 12, 2016
d8758e0
fix for message pane staying open when clicked rapidly
greg-js Jul 14, 2016
89b1279
ocd-inspired change in pane removal animation
greg-js Jul 14, 2016
17dcf71
Update main.development.js
adam-keim Jul 14, 2016
fe63f50
Update main.development.js
adam-keim Jul 14, 2016
5bce032
Merge pull request #62 from tobycyanide/feature/fullscreen-fix
henryboldi Jul 21, 2016
b8d7c13
Adds Maintainers
Aug 4, 2016
2bb7a55
Fixes URL for Frank
Aug 4, 2016
a785d84
title-bar-style => titleBarStyle
Aug 4, 2016
601c10a
Merge pull request #71 from frankcash/patch-2
heysanil Aug 4, 2016
83024f7
Merge branch 'master' of github.com:henryboldi/felony
Aug 4, 2016
9009a7e
Adding new contributors to README
heysanil Aug 4, 2016
e99ea68
Grammar/aesthetic changes, add maintainer
heysanil Aug 4, 2016
481bc9b
Add link to my GitHub (#73)
Aug 5, 2016
714eecc
Merge pull request #66 from greg-js/opener
heysanil Aug 5, 2016
f668132
Adds a nevermind option for decrypt/encrypt (#68) (#75)
Aug 7, 2016
ac21a44
Adds information about contributing
Aug 7, 2016
d8bcb55
Adds travis file
Aug 7, 2016
a369f54
Adds link to travis (#72)
Aug 7, 2016
a16e55d
Ups node version (#72)
Aug 7, 2016
795a719
Adds C++compiler and "display" to travis (#72)
Aug 7, 2016
518fafe
Fixes spelling mistake (oops) (#72)
Aug 7, 2016
e53f4c4
Now gets latest npm (#72)
Aug 7, 2016
f8c4601
trying to set env var
Aug 7, 2016
128f69a
Update to contribution info + issue/pr templates
heysanil Aug 8, 2016
b55a2ff
Caches node modules and adds sudo (#72)
Aug 8, 2016
34483dc
Merge branch 'master' of github.com:henryboldi/felony
Aug 8, 2016
682c75b
Adds dash (#72)
Aug 8, 2016
fab2ab2
Trying to appease the travis gods (#72)
Aug 8, 2016
59488c4
Fixes packages (#72)
Aug 8, 2016
6dcdbf8
Adds libgnome-keyring-dev (#72)
Aug 8, 2016
582fca7
Merge branch 'master' of github.com:henryboldi/felony into HEAD
Aug 8, 2016
347c11a
Merge branch 'master' of github.com:henryboldi/felony into HEAD
Aug 8, 2016
12089f5
Merge branch 'master' of github.com:henryboldi/felony
Aug 8, 2016
7ac5e98
Fixed merge problem
Aug 8, 2016
640d546
updates urls in package.json
Aug 8, 2016
c1a657e
Adds some logging (#12)
Aug 17, 2016
dc0115f
Updates CONTRIBUTING.md to include log file (#12)
Aug 17, 2016
dd99f84
Now tells user if verified isn't in contacts (#11)
Aug 17, 2016
bfd6c27
Merge pull request #44 from nopesled/patch-1
casesandberg Sep 2, 2016
2431dd6
floatingButton refactor (#83)
greg-js Sep 23, 2016
339e02d
Lint Fixes 💅 (#89)
casesandberg Nov 11, 2016
11daead
Update Readme
casesandberg Nov 11, 2016
cd05766
Update issue template formatting, ask for log file
heysanil Jan 5, 2017
c25b4c4
Fix README headers
kbrgl Mar 21, 2017
5ec0161
Merge pull request #93 from kbrgl/patch-1
heysanil Mar 21, 2017
52627c9
Add FOSSA badge
xizhao Apr 1, 2017
646e51d
Merge pull request #94 from xizhao/patch-1
henryboldi Apr 1, 2017
29761fa
Fix Windows enviroment variable
Oct 5, 2017
b5318b6
Changed URL's from http to https.
mbrickn Oct 18, 2017
0eec35e
Fix postinstall script check
mdvorscak Oct 25, 2017
20663f5
Merge pull request #102 from mdvorscak/fix/ci-build
heysanil Nov 1, 2017
1a18948
Merge pull request #100 from mbrickn/patch-1
heysanil Nov 1, 2017
a09f486
Merge pull request #97 from dvur12/master
heysanil Nov 1, 2017
106eee6
Update README.md
henryboldi Feb 19, 2018
43ce0e0
Update pgp.js
henryboldi Feb 12, 2019
8e94816
Remove broken badges from readme
henryboldi Mar 27, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": [ "es2015", "stage-0", "react" ]
}
19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
root = true

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

[*.{json,js,jsx,html,css}]
indent_style = space
indent_size = 2

[.eslintrc]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
main.js
build/**
docs/build/**
lib/**
node_modules/**
modules/**
config.js
36 changes: 36 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
var IGNORE = 0
var WARN = 1
var ERROR = 2

var ALWAYS = 'always'
var NEVER = 'never'
var OFF = 'off'

module.exports = {
extends: 'airbnb',
parser: 'babel-eslint',
env: {
browser: true,
node: true
},
rules: {
'react/jsx-curly-spacing': [ERROR, ALWAYS, { spacing: { objectLiterals: NEVER }}],
'react/jsx-filename-extension': [IGNORE],
'react/prop-types': [IGNORE],
'template-curly-spacing': [ERROR, ALWAYS],
'strict': [IGNORE],
'no-unused-expressions': IGNORE,
'no-unused-vars': [ERROR, { 'vars': 'local' }],
'arrow-body-style': [IGNORE, ALWAYS],
'camelcase': [ERROR],
'constructor-super': ERROR,
'quote-props': [ERROR, 'consistent'],
'no-underscore-dangle': [WARN],
'semi': [ERROR, NEVER],
'import/no-unresolved': [ERROR, { ignore: ['electron'] }],
'new-cap': [IGNORE],
'import/no-named-as-default': [IGNORE],
'import/no-extraneous-dependencies': [IGNORE],
'jsx-a11y/no-static-element-interactions': IGNORE
}
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!-- Fill out this template so we can get a good understanding of your intended message. -->

#### What's this issue about?
<!-- Provide a brief, one or two sentence summary of your issue here. -->

<!--
** Read the next two lines before continuing. **
IF REPORTING A BUG, delete everything past the Feature Request heading before continuing.
IF REQUESTING A FEATURE, delete the Bug Report section.
-->

<!-- Bug Report -->
<!--
NOTE: Please be sure to attach a logfile if available. Here's where you can find the logfile:
Linux: ~/.config/Felony/log.log
OS X: ~/Library/Logs/Felony/log.log
Windows: %AppData%/Felony/log.log
-->

#### Expected behavior
<!-- What were you expecting/what's supposed to happen? -->

#### Actual behavior
<!-- Tell us what actually happened. -->

#### Steps to reproduce
<!-- Tell us how exactly we can reproduce this bug. -->

#### Environment
<!-- Tell us your exact environment, including your OS version and any other relevant information. -->


<!-- Feature Request -->
#### About the Feature
<!-- What specifically do you want to see? Give us as many details as possible. -->
16 changes: 16 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!-- Fill out this template to explain your pull request. -->

#### What's in this pull request?
<!-- Provide a one or two sentence brief description of your PR here. -->

#### Bugs Squashed
<!-- If your PR fixes an issue, list the issue number here.-->
Resolves issue #x.
<!-- While not requried, you can choose to provide a brief description of how you fixed the bugs here. -->

#### Changes proposed
<!-- Describe the changes you've made so it's easier for the team to review. -->
-
-
-

35 changes: 34 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
jspm_packages

# OSX
.DS_Store

# App packaged
dist
release
main.js
main.js.map
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
sudo: required
language: node_js
notifications:
email: false
node_js:
- "6.3.1"

addons:
apt:
packages:
- xvfb
- g++-4.8
- libgnome-keyring-dev
sources:
- ubuntu-toolchain-r-test


env:
- CXX=g++-4.8

cache:
directories:
- node_modules

before_install:
- npm install -g npm@latest

install:
- export CXX="g++-4.8"
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
- npm install

script:
- npm run dev
19 changes: 19 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Opening an Issue

Please feel free to open an issue for any reason, including but not limited to bugs, feature requests, and help.
If the issue is a duplicate, it will be flagged as such and subsequently closed by the Felony team.
If not, expect some serious discussion!
If you're reporting a bug, please include as much information as possible about your environment and the steps leading up to it. A good bug report is usually one that has enough information for the developers to replicate the bug.

# Submitting a Pull Request

Internally, we try to minimize the use of our core branch.
If you're contributing and fixing an issue, please be sure that your push references the associated issue number.

# Check Log File

If your log file contains any information please attach it.

- Linux: ~/.config/Felony/log.log
- OS X: ~/Library/Logs/Felony/log.log
- Windows: %AppData%/Felony/log.log
47 changes: 45 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,45 @@
# felony
The elegant PGP app
![Felony Logo](https://i.imgur.com/gqG7XoQ.png)
![Felony Screenshot](https://i.imgur.com/0e1ZOLp.png)

**Felony is an open-source pgp keychain built on the modern web with Electron, React, and Redux.** Felony is the first PGP app that's easy for anyone to use, without a tutorial.

[![Github All Releases](https://img.shields.io/github/downloads/henryboldi/felony/total.svg?maxAge=2592000)]()

[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fhenryboldi%2Ffelony.svg?size=large)](https://app.fossa.io/projects/git%2Bhttps%3A%2F%2Fgithub.com%2Fhenryboldi%2Ffelony?ref=badge_large)

## Download Felony
You can download compiled versions of Felony for Windows, macOS, and Linux from https://github.com/henryboldi/felony/releases. The app is currently in its pre-release stage, so it hasn't been fully tested on all platforms. Confirmed to be working on Mac, as that's what the developers own.

## How it works
### 1. Add public keys to your buddies list
A public key is like a username - Adding someone’s public key to your buddies list lets you send them messages. You can find other public keys on markets like Keybase.io and Darknet.
### 2. Encrypt a message
Select a recipient from your buddies list and compose a message. Only your chosen recipient(s) can read the message. Encrypted messages can be used to send sensitive information, such as an address, document, or anything intended to be read only by intended recipients.
### 3. Send the encrypted message anywhere
You can send the encrypted message on any website! Send encrypted messages over Facebook Messenger, Twitter DMs, YouTube, Instagram, or anywhere else. **Felony is security when and where you want it.**

## Running Locally
To run the development environment run
```
npm run dev
```
To package felony run
```
npm run package
```
To build for all platforms
```
npm run package-all
```
For more information check out [electron-react-boilerplate](https://github.com/chentsulin/electron-react-boilerplate), which we used as a starting point.

## Feature Requests
Have an idea for a feature you'd love to see in Felony? Create an issue and tag it as a feature request.

## Maintainers

Maintained with ❤️ by [Sanil](https://github.com/TechyPeople), [Frank](https://github.com/frankcash).

Created by [Henry](https://github.com/henryboldi) & [Case](https://github.com/casesandberg).

> 100% inline styles via [ReactCSS](http://reactcss.com/)
33 changes: 33 additions & 0 deletions app/actions/AliasesActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import * as types from '../constants/AliasesConstants'
import db from '../config/database.js'
import { generateKey } from '../../utils/pgp'
let log = require('electron-log');

export function addAlias(alias) {
return async function (dispatch) {
try {
const generatedKey = await generateKey()
const insertedAlias = await db('aliases').insert(alias)
return dispatch({ type: types.ADD_KEY, alias: insertedAlias })
} catch (err) {
console.log(err)
log.warn(err);
}
}
}

export function setAliases(aliases) {
return { type: types.SET_KEYCHAIN, aliases }
}

export function fetchAliases() {
return async function (dispatch) {
try {
const aliases = await db('aliases').value()
return dispatch(setAliases(aliases))
} catch (err) {
log.warn(err);

}
}
}
32 changes: 32 additions & 0 deletions app/actions/KeychainActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import * as types from '../constants/KeychainConstants'
import db from '../config/database.js'
let log = require('electron-log');


export function addKey(key) {
return async function (dispatch) {
try {
const insertedKey = await db('keychain').insert(key)
return dispatch({ type: types.ADD_KEY, key: insertedKey })
} catch (err) {
console.log(err)
log.warn(err);
}
}
}

export function setKeychain(keychain) {
return { type: types.SET_KEYCHAIN, keychain }
}

export function fetchKeychain() {
return async function (dispatch) {
try {
const keychain = await db('keychain').value()
return dispatch(setKeychain(keychain))
} catch (err) {
log.warn(err);

}
}
}
29 changes: 29 additions & 0 deletions app/actions/UIActions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import * as types from '../constants/UIConstants'

export function selectKey(id) {
return { type: types.SELECT_KEY, id }
}

export function toggleComposer() {
return { type: types.TOGGLE_COMPOSER }
}

export function toggleGeneratingKey() {
return { type: types.TOGGLE_GENERATING_KEY }
}

export function toggleIsCopied() {
return { type: types.TOGGLE_IS_COPIED }
}

export function clearSelectedKeys() {
return { type: types.CLEAR_SELECTED_KEYS }
}

export function showComposerWithType(type) {
return { type: types.SHOW_COMPOSER_WITH_TYPE, data: type }
}

export function setOutput(output) {
return { type: types.SET_OUTPUT, output }
}
2 changes: 2 additions & 0 deletions app/actions/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './KeychainActions'
export * from './UIActions'
Loading