Skip to content

Commit 5f50fd5

Browse files
committed
Removed console logs. Updated import name for form component.
1 parent 9ec1f26 commit 5f50fd5

File tree

13 files changed

+14840
-59
lines changed

13 files changed

+14840
-59
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
src/stories
3-
.storybook
3+
.storybook
4+
build

build/index.es.js

Lines changed: 299 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js

Lines changed: 299 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@sypher/react-dropzone-submit",
3-
"version": "1.0.0",
2+
"name": "@defensestation/sypher-dropzone-submit",
3+
"version": "1.0.1",
44
"description": "Sypher widget to submit dropzone data.",
55
"main": "build/index.js",
66
"module": "build/index.es.js",
@@ -14,7 +14,7 @@
1414
"storybook:export": "build-storybook",
1515
"build-storybook": "build-storybook"
1616
},
17-
"author": "",
17+
"author": "DefenseStation",
1818
"license": "ISC",
1919
"devDependencies": {
2020
"@apollo/client": "^3.7.10",
@@ -56,6 +56,7 @@
5656
"graphql": "^16.6.0",
5757
"html-webpack-plugin": "^5.5.0",
5858
"node-sass": "^8.0.0",
59+
"postcss": "^8.4.32",
5960
"prop-types": "^15.8.1",
6061
"react": "^18.2.0",
6162
"react-date-range": "^1.4.0",
@@ -75,30 +76,45 @@
7576
"yup": "^0.32.11"
7677
},
7778
"peerDependencies": {
79+
"react": "^18.2.0",
80+
"react-dom": "^18.2.0"
81+
},
82+
"dependencies": {
7883
"@apollo/client": "^3.7.10",
7984
"@chakra-ui/icons": "^2.0.17",
8085
"@chakra-ui/react": "^2.5.1",
8186
"@emotion/react": "^11.10.6",
8287
"@emotion/styled": "^11.10.6",
88+
"@rjsf/core": "^5.15.1",
89+
"@rjsf/utils": "^5.15.1",
8390
"buffer": "^6.0.3",
91+
"chakra-react-select": "^4.7.6",
8492
"date-fns": "^2.29.3",
8593
"filesize": "^10.0.6",
8694
"formik": "^2.2.9",
8795
"framer-motion": "^10.3.2",
8896
"graphql": "^16.6.0",
8997
"prop-types": "^15.8.1",
90-
"react": "^18.2.0",
9198
"react-date-range": "^1.4.0",
92-
"react-dom": "^18.2.0",
9399
"react-dropzone": "^14.2.3",
94100
"react-icons": "^4.8.0",
95101
"react-multi-email": "^1.0.6",
96102
"sha3": "^2.1.4",
97103
"yup": "^0.32.11"
98104
},
99-
"dependencies": {
100-
"@rjsf/core": "^5.15.1",
101-
"@rjsf/utils": "^5.15.1",
102-
"chakra-react-select": "^4.7.6"
103-
}
105+
"repository": {
106+
"type": "git",
107+
"url": "git@github.com:defensestation/react-dropzone-submit.git"
108+
},
109+
"keywords": [
110+
"sypher",
111+
"sypher-dropzone",
112+
"dropzone",
113+
"sypher-data-submit",
114+
"sypher-dropzone-submit"
115+
],
116+
"bugs": {
117+
"url": "https://github.com/defensestation/react-dropzone-submit/issues"
118+
},
119+
"homepage": "https://github.com/defensestation/react-dropzone-submit#readme"
104120
}

src/components/multi-url/ReactMultiURL.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@ class ReactMultiURL extends React.Component {
1414
let inputValue = '';
1515
const re = /[ ,;]/g;
1616
const isURL = validateURL || isURLFn;
17-
console.log("Email value", value)
1817
const addEmails = (url) => {
1918
const urls = this.state.urls;
20-
console.log("validURLs", urls);
2119
for (let i = 0, l = urls.length; i < l; i++) {
2220
if (urls[i] === url) {
2321
return false;
2422
}
2523
}
2624
validURLs.push(url);
27-
console.log("validURLs", validURLs);
2825
return true;
2926
};
3027
if (value !== '') {
@@ -50,9 +47,7 @@ class ReactMultiURL extends React.Component {
5047
else {
5148
if (isEnter) {
5249
const isValid = isURL(value)
53-
console.log("isURL(" + value + ")", isValid)
5450
if (isValid) {
55-
console.log("Adding urls.")
5651
addEmails(value);
5752
}
5853
else {

src/components/rjsf/CustomStringField.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ export default function CustomStringField(props) {
9696
} else {
9797
}
9898
};
99-
console.log("Props", props);
10099
if (isMultifile) {
101100
let filesToBeShown = [];
102101
if (props.readonly) {

src/utils/custom-function.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ export function uploadFile(url, file, headers = null) {
7272
headers: headerObj,
7373
body: file,
7474
}).catch((err) => {
75-
console.log(err);
7675
throw err;
7776
});
7877
}

src/utils/encrypt.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ export const SymEncryptFile = async (key, file) => {
128128
return blob;
129129

130130
} catch (err) {
131-
console.log('unable to read file');
132131
throw err;
133132
}
134133
}
@@ -150,7 +149,6 @@ export const SymDecryptFile = async (key, file) => {
150149
return blob;
151150

152151
} catch (err) {
153-
console.log('unable to read file');
154152
throw err;
155153
}
156154
}
@@ -240,7 +238,6 @@ export const SymmetricEncryption = async (key, plaintextbyteArray) => {
240238

241239
if (!cipherbytes) {
242240
// TODO: return error for crypt probs
243-
console.log("encryption error #1")
244241
}
245242

246243
// convert to unitarry
@@ -255,7 +252,6 @@ export const SymmetricEncryption = async (key, plaintextbyteArray) => {
255252
return resultbytes;
256253

257254
} catch (err) {
258-
console.log('encrypt error');
259255
throw err;
260256
}
261257
};
@@ -323,8 +319,6 @@ export const SymmetricDecryption = async (key, plaintextbyteArray) => {
323319

324320
return plaintextArray
325321
} catch (err) {
326-
console.log('decryption error');
327-
console.log(err);
328322
throw err;
329323
}
330324
};
@@ -402,7 +396,6 @@ export const AsymEncryptMessage = async (pubkey, data) => {
402396
return ciphertext;
403397

404398
} catch (err) {
405-
console.log('as encrypt error');
406399
throw err;
407400
}
408401
};
@@ -429,7 +422,6 @@ export const AsymDecryptMessage = async (privKey, ciphertext) => {
429422
return clearText;
430423

431424
} catch (err) {
432-
console.log('as decrypt error');
433425
throw err;
434426
}
435427
};
@@ -501,7 +493,6 @@ export const AsymDecryptionFile = async (privKey, file) => {
501493
return blob;
502494
}
503495
catch(e){
504-
console.log("Decrypt file error", e);
505496
throw e;
506497
}
507498
}
@@ -540,7 +531,6 @@ export const ExportPostQAsymmetricKeys = async () => {
540531
let ciphertext = encode(encap) + '.' + encData;
541532
return ciphertext;
542533
} catch (err) {
543-
console.log('error: PostQAsymEncryptMessage');
544534
throw err;
545535
}
546536
}
@@ -565,7 +555,6 @@ export const ExportPostQAsymmetricKeys = async () => {
565555
// return clear text
566556
return clearText;
567557
} catch (err) {
568-
console.log('error: PostQAsymDecryptMessage');
569558
throw err;
570559
}
571560
}
@@ -604,7 +593,6 @@ export const ExportPostQAsymmetricKeys = async () => {
604593
return blob;
605594

606595
} catch (err) {
607-
console.log('error: PostQAsymEncryptFile');
608596
throw err;
609597
}
610598
}
@@ -641,7 +629,6 @@ export const ExportPostQAsymmetricKeys = async () => {
641629
return blob;
642630

643631
} catch (err) {
644-
console.log('error: PostQAsymDecryptFile');
645632
throw err;
646633
}
647634
}

0 commit comments

Comments
 (0)