-
Notifications
You must be signed in to change notification settings - Fork 12
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 #77 from schulcloud/246-download-delete-copy-files
246 download and delete files
- Loading branch information
Showing
8 changed files
with
167 additions
and
51 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
class RandomIdGenerator { | ||
generateRandomId() { | ||
const s4 = () => { | ||
return Math.floor((1 + Math.random()) * 0x10000) | ||
.toString(16) | ||
.substring(1); | ||
}; | ||
|
||
return s4() + s4() + '-' + s4() + '-' + s4() + '-' + | ||
s4() + '-' + s4() + s4() + s4(); | ||
} | ||
} | ||
export default new RandomIdGenerator(); |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,41 @@ | ||
@import '../../core/styles/colors.scss'; | ||
|
||
.files { | ||
width:100%; | ||
float:left; | ||
margin-bottom:40px; | ||
width: 100%; | ||
float: left; | ||
margin-bottom: 40px; | ||
|
||
h5 { | ||
color: $colorHPIRed; | ||
padding:10px 0px 20px; | ||
padding: 10px 0px 20px; | ||
} | ||
|
||
.card.file { | ||
box-shadow: 0px 1px 2px rgba(0,0,0,0.1); | ||
height:65px; | ||
line-height:63px; | ||
.modal-body { | ||
button { | ||
margin-left: 5px; | ||
} | ||
} | ||
|
||
.card.file { | ||
&:hover { | ||
box-shadow: 0px 1px 4px rgba(0,0,0,0.2); | ||
background:#f9f9f9; | ||
cursor: pointer; | ||
background: #f9f9f9; | ||
} | ||
|
||
.file-preview { | ||
width:90%; | ||
height:65px; | ||
float:left; | ||
width: 90%; | ||
height: 65px; | ||
float: left; | ||
background: no-repeat center center; | ||
background-size:cover; | ||
background-size: cover; | ||
} | ||
|
||
.fa { | ||
margin-right:15px; | ||
margin-right: 15px; | ||
color:#ccc; | ||
&:hover { | ||
cursor: pointer; | ||
} | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ | |
width:100%; | ||
float:left; | ||
padding:40px 0px; | ||
cursor: pointer; | ||
|
||
.drop-zone { | ||
width:100%; | ||
|