Skip to content

Commit

Permalink
Edit mark
Browse files Browse the repository at this point in the history
  • Loading branch information
mei23 committed Sep 28, 2023
1 parent 4de9078 commit 50d8b00
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 7 deletions.
9 changes: 5 additions & 4 deletions src/client/app/common/views/components/note-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<span class="mobile" v-if="note.viaMobile"><fa icon="mobile-alt"/></span>
<router-link v-if="noteUrl.startsWith('/')" class="created-at" :to="noteUrl"><mk-time :time="note.createdAt"/></router-link>
<a v-else class="created-at" :href="noteUrl"><mk-time :time="note.createdAt"/></a>
<span class="edited" v-if="note.updatedAt != null"><fa :icon="faEdit"/></span>
<x-visibility-icon class="visibility" :v="note.visibility" :localOnly="note.localOnly" :copyOnce="note.copyOnce"/>
<span class="remote" title="Remote post" v-if="note.user.host != null"><fa :icon="faGlobeAmericas"/></span>
</div>
Expand All @@ -18,7 +19,7 @@
<script lang="ts">
import Vue from 'vue';
import i18n from '../../../i18n';
import { faGlobeAmericas } from '@fortawesome/free-solid-svg-icons';
import { faGlobeAmericas, faEdit } from '@fortawesome/free-solid-svg-icons';
import XVisibilityIcon from '../../../common/views/components/visibility-icon.vue';
import XUserBadges from '../../../common/views/components/user-badges.vue';
import getAcct from '../../../../../misc/acct/render';
Expand All @@ -31,7 +32,7 @@ export default Vue.extend({
},
data() {
return {
faGlobeAmericas,
faGlobeAmericas, faEdit,
}
},
props: {
Expand Down Expand Up @@ -102,8 +103,8 @@ export default Vue.extend({
> *
color var(--noteHeaderInfo)
> .mobile
margin-right 8px
> .edited
margin-left 8px
> .visibility
margin-left 0.5em
Expand Down
8 changes: 7 additions & 1 deletion src/client/app/desktop/views/components/note-detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@
{{ }}
<mk-time :time="appearNote.createdAt" mode="detail"/>
</router-link>
<div class="time" v-if="appearNote.updatedAt != null">
<fa :icon="faEdit"/>
{{ }}
<mk-time :time="appearNote.updatedAt" mode="detail"/>
</div>
<div class="visibility-info">
<x-visibility-icon class="visibility" :v="appearNote.visibility" :localOnly="appearNote.localOnly" :copyOnce="appearNote.copyOnce" :withText="true"/>
</div>
Expand Down Expand Up @@ -108,6 +113,7 @@ import XSub from './note.sub.vue';
import noteSubscriber from '../../../common/scripts/note-subscriber';
import noteMixin from '../../../common/scripts/note-mixin';
import { faClock, faLaugh } from '@fortawesome/free-regular-svg-icons';
import { faEdit } from '@fortawesome/free-solid-svg-icons';
import XVisibilityIcon from '../../../common/views/components/visibility-icon.vue';
import XInstanceInfo from '../../../common/views/components/instance-info.vue';
Expand All @@ -134,7 +140,7 @@ export default Vue.extend({
data() {
return {
faClock, faLaugh,
faClock, faLaugh, faEdit,
conversation: [],
conversationFetching: false,
replies: []
Expand Down
8 changes: 7 additions & 1 deletion src/client/app/desktop/views/components/note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@
{{ }}
<mk-time :time="appearNote.createdAt" mode="detail"/>
</router-link>
<div v-if="detail && appearNote.updatedAt != null" class="time">
<fa :icon="faEdit"/>
{{ }}
<mk-time :time="appearNote.updatedAt" mode="detail"/>
</div>
<div v-if="detail" class="visibility-info">
<x-visibility-icon class="visibility" :v="appearNote.visibility" :localOnly="appearNote.localOnly" :copyOnce="appearNote.copyOnce" :withText="true"/>
</div>
Expand Down Expand Up @@ -122,6 +127,7 @@ import XSub from './note.sub.vue';
import noteMixin from '../../../common/scripts/note-mixin';
import noteSubscriber from '../../../common/scripts/note-subscriber';
import { faClock, faLaugh } from '@fortawesome/free-regular-svg-icons';
import { faEdit } from '@fortawesome/free-solid-svg-icons';
import XInstanceInfo from '../../../common/views/components/instance-info.vue';
import XVisibilityIcon from '../../../common/views/components/visibility-icon.vue';
Expand Down Expand Up @@ -182,7 +188,7 @@ export default Vue.extend({
data() {
return {
faClock, faLaugh,
faClock, faLaugh, faEdit,
conversation: [],
replies: []
};
Expand Down
8 changes: 7 additions & 1 deletion src/client/app/mobile/views/components/note-detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
{{ }}
<mk-time :time="appearNote.createdAt" mode="detail"/>
</router-link>
<div class="time" v-if="appearNote.updatedAt != null">
<fa :icon="faEdit"/>
{{ }}
<mk-time :time="appearNote.updatedAt" mode="detail"/>
</div>
<div class="visibility-info">
<x-visibility-icon class="visibility" :v="appearNote.visibility" :localOnly="appearNote.localOnly" :copyOnce="appearNote.copyOnce" :withText="true"/>
</div>
Expand Down Expand Up @@ -107,6 +112,7 @@ import XSub from './note.sub.vue';
import noteSubscriber from '../../../common/scripts/note-subscriber';
import noteMixin from '../../../common/scripts/note-mixin';
import { faClock, faLaugh } from '@fortawesome/free-regular-svg-icons';
import { faEdit } from '@fortawesome/free-solid-svg-icons';
import XVisibilityIcon from '../../../common/views/components/visibility-icon.vue';
import XInstanceInfo from '../../../common/views/components/instance-info.vue';
Expand All @@ -133,7 +139,7 @@ export default Vue.extend({
data() {
return {
faClock, faLaugh,
faClock, faLaugh, faEdit,
conversation: [],
conversationFetching: false,
replies: []
Expand Down

0 comments on commit 50d8b00

Please sign in to comment.