mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
revert Bailey datetime PR
This commit is contained in:
20122
package-lock.json
generated
20122
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
38780
website/client/package-lock.json
generated
38780
website/client/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -20,11 +20,9 @@
|
|||||||
class="draft"
|
class="draft"
|
||||||
>DRAFT</small>
|
>DRAFT</small>
|
||||||
<h2 class="title">
|
<h2 class="title">
|
||||||
{{ post.title.toUpperCase() }}
|
{{ getPostDate(post) }} - {{ post.title.toUpperCase() }}
|
||||||
</h2>
|
</h2>
|
||||||
<small>
|
|
||||||
{{ getPostedOn(post) }}
|
|
||||||
</small>
|
|
||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
<div v-html="renderMarkdown(post.text)"></div>
|
<div v-html="renderMarkdown(post.text)"></div>
|
||||||
@@ -53,8 +51,7 @@ h1 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
text-align: left;
|
display: inline;
|
||||||
margin-bottom: 4px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.draft {
|
.draft {
|
||||||
@@ -68,7 +65,7 @@ h1 {
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import moment from 'moment-timezone';
|
import moment from 'moment';
|
||||||
import habiticaMarkdown from 'habitica-markdown';
|
import habiticaMarkdown from 'habitica-markdown';
|
||||||
import { mapState } from '@/libs/store';
|
import { mapState } from '@/libs/store';
|
||||||
import seasonalNPC from '@/mixins/seasonalNPC';
|
import seasonalNPC from '@/mixins/seasonalNPC';
|
||||||
@@ -108,12 +105,9 @@ export default {
|
|||||||
renderMarkdown (text) {
|
renderMarkdown (text) {
|
||||||
return habiticaMarkdown.unsafeHTMLRender(text);
|
return habiticaMarkdown.unsafeHTMLRender(text);
|
||||||
},
|
},
|
||||||
getPostedOn (post) {
|
getPostDate (post) {
|
||||||
const publishDate = moment(post.publishDate)
|
const format = this.user ? this.user.preferences.dateFormat.toUpperCase() : 'MM/DD/yyyy';
|
||||||
.utcOffset(-300)
|
return moment(post.publishDate).format(format);
|
||||||
.format(this.user.preferences.dateFormat.toUpperCase());
|
|
||||||
const publishTime = moment(post.publishDate).tz('America/New_York').format('LT z');
|
|
||||||
return this.$t('newStuffPostedOn', { publishDate, publishTime });
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -83,7 +83,6 @@
|
|||||||
"invalidQuantity": "Quantity to purchase must be a positive whole number.",
|
"invalidQuantity": "Quantity to purchase must be a positive whole number.",
|
||||||
"USD": "(USD)",
|
"USD": "(USD)",
|
||||||
"newStuff": "New Stuff by Bailey",
|
"newStuff": "New Stuff by Bailey",
|
||||||
"newStuffPostedOn": "Posted on <%= publishDate %>, <%= publishTime %>",
|
|
||||||
"newBaileyUpdate": "New Bailey Update!",
|
"newBaileyUpdate": "New Bailey Update!",
|
||||||
"tellMeLater": "Tell Me Later",
|
"tellMeLater": "Tell Me Later",
|
||||||
"dismissAlert": "Dismiss This Alert",
|
"dismissAlert": "Dismiss This Alert",
|
||||||
|
|||||||
Reference in New Issue
Block a user