Merge branch 'master' of ssh.gitgud.io:lambadalambda/pleroma-fe into feature/retweet
This commit is contained in:
commit
d4284686fa
21 changed files with 112 additions and 40 deletions
|
@ -1,7 +1,4 @@
|
|||
$main-color: #f58d2c;
|
||||
$main-background: white;
|
||||
$darkened-background: whitesmoke;
|
||||
|
||||
@import './_variables.scss';
|
||||
#app {
|
||||
background-color: $main-color;
|
||||
background-size: cover;
|
||||
|
@ -225,9 +222,10 @@ status.ng-enter.ng-enter-active {
|
|||
}
|
||||
|
||||
.fa {
|
||||
color: $main-color;
|
||||
color: grey;
|
||||
}
|
||||
|
||||
|
||||
.status-actions {
|
||||
width: 50%;
|
||||
display: flex;
|
||||
|
|
6
src/_variables.scss
Normal file
6
src/_variables.scss
Normal file
|
@ -0,0 +1,6 @@
|
|||
$main-color: #f58d2c;
|
||||
$main-background: white;
|
||||
$darkened-background: whitesmoke;
|
||||
$green: #0fa00f;
|
||||
$blue: #0095ff;
|
||||
|
|
@ -7,8 +7,15 @@
|
|||
|
||||
<script src="./favorite_button.js" ></script>
|
||||
|
||||
<style>
|
||||
.favorite-button {
|
||||
cursor: pointer
|
||||
}
|
||||
<style lang='scss'>
|
||||
@import '../../_variables.scss';
|
||||
.favorite-button {
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
color: $main-color;
|
||||
}
|
||||
}
|
||||
.icon-star {
|
||||
color: $main-color;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -11,11 +11,24 @@ const mediaUpload = {
|
|||
const file = target.files[0]
|
||||
const formData = new FormData()
|
||||
formData.append('media', file)
|
||||
|
||||
self.$emit('uploading')
|
||||
self.uploading = true
|
||||
|
||||
statusPosterService.uploadMedia({ store, formData })
|
||||
.then((fileData) => {
|
||||
self.$emit('uploaded', fileData)
|
||||
self.uploading = false
|
||||
}, (error) => {
|
||||
self.$emit('upload-failed')
|
||||
self.uploading = false
|
||||
})
|
||||
})
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
uploading: false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<template>
|
||||
<div class="media-upload">
|
||||
<label class="btn btn-default">
|
||||
<i class="fa icon-upload"></i>
|
||||
<i class="fa icon-spin4 animate-spin" v-if="uploading"></i>
|
||||
<i class="fa icon-upload" v-if="!uploading"></i>
|
||||
<input type=file style="position: fixed; top: -100em"></input>
|
||||
</label>
|
||||
</div>
|
||||
|
|
|
@ -7,12 +7,16 @@
|
|||
|
||||
<script src="./retweet_button.js" ></script>
|
||||
|
||||
<style>
|
||||
.icon-retweet {
|
||||
cursor: pointer
|
||||
}
|
||||
.retweeted {
|
||||
<style lang='scss'>
|
||||
@import '../../_variables.scss';
|
||||
.icon-retweet {
|
||||
cursor: pointer;
|
||||
&:hover {
|
||||
color: $green;
|
||||
}
|
||||
}
|
||||
.retweeted {
|
||||
cursor: auto;
|
||||
color: green;
|
||||
}
|
||||
color: $green;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -51,7 +51,8 @@
|
|||
<script src="./status.js" ></script>
|
||||
|
||||
<style lang="scss">
|
||||
.status-el {
|
||||
@import '../../_variables.scss';
|
||||
.status-el {
|
||||
hyphens: auto;
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
|
@ -66,9 +67,13 @@
|
|||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.status-actions {
|
||||
.status-actions {
|
||||
padding-top: 5px;
|
||||
}
|
||||
}
|
||||
|
||||
.icon-reply:hover {
|
||||
color: $blue;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue