Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyrat committed May 2, 2019
0 parents commit 33a89a2
Show file tree
Hide file tree
Showing 21 changed files with 7,875 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# top-most EditorConfig file
root = true

[*]
end_of_line = lf
insert_final_newline = true

# Matches multiple files with brace expansion notation
# Set default charset
[*.{js,ts,json,html,css,sass,less}]
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true

# Tab indentation (no size specified)
[Makefile]
indent_style = tab

# # Indentation override for all JS under lib directory
# [lib/**.js]
# indent_style = space
# indent_size = 2

[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# package directories
node_modules
jspm_packages

# Output directories
dist/**/*

# Test coverage stats
coverage

*.map
26 changes: 26 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"runtimeVersion": "8.11.1",
"request": "launch",
"name": "Jest Tests",
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js",
"args": [
"--runInBand",
"--no-cache"
],
"cwd": "${workspaceRoot}",
"runtimeArgs": [
"--nolazy"
],
"console": "internalConsole",
"env": {
"NODE_ENV": "test"
},
"sourceMaps": true,
"stopOnEntry": false
}
]
}
12 changes: 12 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"cSpell.words": [
"Hashcash",
"camelize",
"jrpc",
"keepass",
"keeweb",
"papaparse",
"urlsum"
],
"typescript.tsdk": "node_modules/typescript/lib"
}
14 changes: 14 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "typescript",
"tsconfig": "tsconfig.json",
"problemMatcher": [
"$tsc"
]
}
]
}
14 changes: 14 additions & 0 deletions ImportDTO.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Kdbx } from "kdbxweb";

export class ImportDTO {
db: Kdbx;
attachments: ArrayBuffer[];
attachmentsSize: number;
error?: any;

static createError (e: any) {
const errorDto = new ImportDTO();
errorDto.error = e;
return errorDto;
}
}
Loading

0 comments on commit 33a89a2

Please sign in to comment.