-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from dranc/fix/ihm
Change a little bit the html code
- Loading branch information
Showing
7 changed files
with
216 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,32 @@ | ||
DO NOT USE | ||
this is a test repo in order to train me ! | ||
# DO NOT USE ! | ||
|
||
## todo | ||
This is a test repository i'm using to train me with Typescript. In fact it is working but I'm pretty sure this is not the best code you will ever see ! | ||
|
||
As a user I want to be able to upload a file and add a filigrane to it. | ||
## What Filigrane does ? | ||
|
||
As a user I want to see all the files that are imported in differents input for the current tab. | ||
Filigrane is a small service that will help you add _watermark_ on your file in order to avoid anyone else to reuse it for another purpose. In fact there is other service that does it. For example, french gouvernment offer [FiligraneFacile](https://filigrane.beta.gouv.fr/) and to be honest right now this is the service that we use. But my goal is to create a browser extension in order to automatically apply the watermark when you submit a file to a form. | ||
|
||
As a user I want to be able to add a filigrane to the file that are imported in the tab. | ||
If it work as expexted, the user will have nothing to do, just fill a form online and the extension add a watermark and replace your file by the "protected" one. | ||
|
||
As a user I want to see a preview of the file that is edited. | ||
## User stories | ||
|
||
As a user I want to download the file that is updated. | ||
- As a user of the website I want to | ||
- [x] upload a file and add a filigrane to it. | ||
- [x] preview the file with the filigrane | ||
- [x] download the protected file | ||
- [ ] revert the protection and retrieve the original file | ||
- As a user of the extension I want to | ||
- [ ] see all the files uploaded in the current tab | ||
- [ ] add watermark to the files in the current tab | ||
- [ ] automatically do the process for me | ||
- [ ] revert the changes on a specific file | ||
|
||
As a user I want to revert the change and return to the original version of the file. | ||
## Technical backlog | ||
|
||
This is a list of technical tasks I want to adress if I have time. | ||
|
||
- [ ] Create a chrome extension that is using the same code as the service | ||
- [ ] Add some tests | ||
- [ ] Remove the dependency with FiligraneFacile, do all the process in local | ||
- [ ] Keep the file format as the original one | ||
- [ ] Remove webpack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,63 @@ | ||
@import '~picnic/src/picnic'; | ||
|
||
$height: 500px; | ||
$width: 350px; | ||
|
||
body { | ||
display: flex; | ||
justify-content: center; | ||
.content { | ||
padding-top: 3em; | ||
align-items: center; | ||
} | ||
height: 100%; | ||
|
||
.content { | ||
background-color: lightgrey; | ||
position: relative; | ||
margin: auto; | ||
height: $height; | ||
width: $width; | ||
padding: 5px; | ||
|
||
.main { | ||
padding: 10px; | ||
margin: auto; | ||
} | ||
.files { | ||
overflow-y: scroll; | ||
height: 50%; | ||
|
||
.bottom { | ||
position: absolute; | ||
bottom: 0; | ||
margin: auto; | ||
left: 0; | ||
right: 0; | ||
.file { | ||
&:not(.loading) .processing { | ||
display: none; | ||
} | ||
|
||
div { | ||
margin: auto; | ||
&.loading .actions { | ||
display: none; | ||
} | ||
} | ||
} | ||
} | ||
|
||
// .files { | ||
// .file { | ||
// display: none; | ||
// $height: 500px; | ||
// $width: 350px; | ||
|
||
// body { | ||
// display: flex; | ||
// justify-content: center; | ||
// align-items: center; | ||
// } | ||
|
||
// .content { | ||
// background-color: lightgrey; | ||
// // position: relative; | ||
// // margin: auto; | ||
// height: $height; | ||
// // width: $width; | ||
// // padding: 5px; | ||
|
||
// // .main { | ||
// // padding: 10px; | ||
// // margin: auto; | ||
// // } | ||
|
||
// .bottom { | ||
// position: absolute; | ||
// bottom: 0; | ||
// margin: auto; | ||
// left: 0; | ||
// right: 0; | ||
|
||
// div { | ||
// margin: auto; | ||
// } | ||
// } | ||
// } | ||
|
||
// // .files { | ||
// // .file { | ||
// // display: none; | ||
// // } | ||
// // } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.