Port 5eeb40bdbe
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
th-downstream
parent
e8fc445e14
commit
e6a7cfd12e
@ -1,8 +1,9 @@
|
|||||||
import { createAction } from '@reduxjs/toolkit';
|
import { createAction } from '@reduxjs/toolkit';
|
||||||
|
|
||||||
import type { LayoutType } from '../is_mobile';
|
import type { LayoutType } from '../is_mobile';
|
||||||
|
|
||||||
type ChangeLayoutPayload = {
|
interface ChangeLayoutPayload {
|
||||||
layout: LayoutType;
|
layout: LayoutType;
|
||||||
};
|
}
|
||||||
export const changeLayout =
|
export const changeLayout =
|
||||||
createAction<ChangeLayoutPayload>('APP_LAYOUT_CHANGE');
|
createAction<ChangeLayoutPayload>('APP_LAYOUT_CHANGE');
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import 'packs/public-path';
|
import 'packs/public-path';
|
||||||
import { start } from '@rails/ujs';
|
import { start } from '@rails/ujs';
|
||||||
|
|
||||||
start();
|
|
||||||
|
|
||||||
import 'flavours/glitch/styles/index.scss';
|
import 'flavours/glitch/styles/index.scss';
|
||||||
|
|
||||||
|
start();
|
||||||
|
|
||||||
// This ensures that webpack compiles our images.
|
// This ensures that webpack compiles our images.
|
||||||
require.context('../images', true);
|
require.context('../images', true);
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
export function uuid(a?: string): string {
|
export function uuid(a?: string): string {
|
||||||
return a
|
return a
|
||||||
? (
|
? (
|
||||||
(a as any as number) ^
|
(a as unknown as number) ^
|
||||||
((Math.random() * 16) >> ((a as any as number) / 4))
|
((Math.random() * 16) >> ((a as unknown as number) / 4))
|
||||||
).toString(16)
|
).toString(16)
|
||||||
: ('' + 1e7 + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, uuid);
|
: // eslint-disable-next-line @typescript-eslint/restrict-plus-operands
|
||||||
|
('' + 1e7 + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, uuid);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in new issue