Skip to content
This repository has been archived by the owner on Apr 28, 2022. It is now read-only.

Commit

Permalink
chore: clean imageSealing extra configs (everything must be configura…
Browse files Browse the repository at this point in the history
…ted in user configs)
  • Loading branch information
vitaly-shaposhnik committed Nov 20, 2020
1 parent 7ebf301 commit 58aad4e
Showing 1 changed file with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ export default ({ appState, files: [file = {}] = {}, path, saveUploadedFiles, se
}
}

/**
* Hack for sealing token.
* Need to figure out how to check is token support sealing
*/
const isTokenWithSealing = container === 'fyooyzbm';
const sealingConfig = isTokenWithSealing ? {
enabled: true,
salt: 'test',
char_count: 10,
include_params: ['wat', 'wat_url', 'wat_opacity', 'wat_scale', 'wat_pad', 'wat_gravity'],
} : {};

return (
<ImageEditor
show={true}
Expand All @@ -91,11 +79,7 @@ export default ({ appState, files: [file = {}] = {}, path, saveUploadedFiles, se
dir: path || uploadParams.dir,
...(imageEditorConfig.filerobot && imageEditorConfig.filerobot.uploadParams)
},
...imageEditorConfig.filerobot,
imageSealing: {
...sealingConfig,
...((imageEditorConfig.filerobot || {}).imageSealing || {}),
}
...imageEditorConfig.filerobot
},

cloudimage: {
Expand Down

0 comments on commit 58aad4e

Please sign in to comment.