Merge branch 'main' into a-move-mobile
This commit is contained in:
commit
4665ad3dd7
8
.github/workflows/tests.yml
vendored
8
.github/workflows/tests.yml
vendored
@ -179,7 +179,7 @@ jobs:
|
||||
name: core frontend (${{ matrix.browser }})
|
||||
runs-on: ubuntu-latest
|
||||
container: discourse/discourse_test:slim-browsers
|
||||
timeout-minutes: 30
|
||||
timeout-minutes: 35
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
@ -223,16 +223,16 @@ jobs:
|
||||
if: ${{ always() }}
|
||||
working-directory: ./app/assets/javascripts/discourse
|
||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=1 --launch "${{ matrix.browser }}" --random
|
||||
timeout-minutes: 20
|
||||
timeout-minutes: 15
|
||||
|
||||
- name: Core QUnit 2
|
||||
if: ${{ always() }}
|
||||
working-directory: ./app/assets/javascripts/discourse
|
||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=2 --launch "${{ matrix.browser }}" --random
|
||||
timeout-minutes: 20
|
||||
timeout-minutes: 15
|
||||
|
||||
- name: Core QUnit 3
|
||||
if: ${{ always() }}
|
||||
working-directory: ./app/assets/javascripts/discourse
|
||||
run: sudo -E -u discourse -H yarn ember exam --path /tmp/emberbuild --split=3 --partition=3 --launch "${{ matrix.browser }}" --random
|
||||
timeout-minutes: 20
|
||||
timeout-minutes: 15
|
||||
|
||||
@ -127,8 +127,8 @@ export default Component.extend({
|
||||
},
|
||||
|
||||
_loadLastUsedCustomDatetime() {
|
||||
let lastTime = localStorage.lastCustomTime;
|
||||
let lastDate = localStorage.lastCustomDate;
|
||||
const lastTime = this.keyValueStore.lastCustomTime;
|
||||
const lastDate = this.keyValueStore.lastCustomDate;
|
||||
|
||||
if (lastTime && lastDate) {
|
||||
let parsed = parseCustomDatetime(lastDate, lastTime, this.userTimezone);
|
||||
@ -242,8 +242,8 @@ export default Component.extend({
|
||||
if (customDatetime.isValid() && this.customDate) {
|
||||
dateTime = customDatetime;
|
||||
|
||||
localStorage.lastCustomTime = this.customTime;
|
||||
localStorage.lastCustomDate = this.customDate;
|
||||
this.keyValueStore.lastCustomTime = this.customTime;
|
||||
this.keyValueStore.lastCustomDate = this.customDate;
|
||||
}
|
||||
} else {
|
||||
dateTime = this.options.findBy("id", type).time;
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
import { isTesting } from "discourse-common/config/environment";
|
||||
|
||||
const TEST_KEY_PREFIX = "__test_";
|
||||
|
||||
// A simple key value store that uses LocalStorage
|
||||
let safeLocalStorage;
|
||||
|
||||
@ -20,7 +22,7 @@ export default class KeyValueStore {
|
||||
context = null;
|
||||
|
||||
constructor(ctx) {
|
||||
this.context = isTesting() ? `test_${ctx}` : ctx;
|
||||
this.context = isTesting() ? `${TEST_KEY_PREFIX}${ctx}` : ctx;
|
||||
}
|
||||
|
||||
abandonLocal() {
|
||||
|
||||
@ -1,3 +1,8 @@
|
||||
.user-status-message-description {
|
||||
margin-left: 0.1em;
|
||||
color: var(--primary-800);
|
||||
}
|
||||
|
||||
.user-status-message-tooltip {
|
||||
.emoji {
|
||||
width: 1em;
|
||||
|
||||
Reference in New Issue
Block a user