Port 5eeb40bdbe
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
local
parent
e8fc445e14
commit
e6a7cfd12e
33 changed files with 168 additions and 120 deletions
@ -1,8 +1,9 @@ |
||||
import { createAction } from '@reduxjs/toolkit'; |
||||
|
||||
import type { LayoutType } from '../is_mobile'; |
||||
|
||||
type ChangeLayoutPayload = { |
||||
interface ChangeLayoutPayload { |
||||
layout: LayoutType; |
||||
}; |
||||
} |
||||
export const changeLayout = |
||||
createAction<ChangeLayoutPayload>('APP_LAYOUT_CHANGE'); |
||||
|
@ -1,9 +1,9 @@ |
||||
import 'packs/public-path'; |
||||
import { start } from '@rails/ujs'; |
||||
|
||||
start(); |
||||
|
||||
import 'flavours/glitch/styles/index.scss'; |
||||
|
||||
start(); |
||||
|
||||
// This ensures that webpack compiles our images.
|
||||
require.context('../images', true); |
||||
|
@ -1,8 +1,9 @@ |
||||
export function uuid(a?: string): string { |
||||
return a |
||||
? ( |
||||
(a as any as number) ^ |
||||
((Math.random() * 16) >> ((a as any as number) / 4)) |
||||
(a as unknown as number) ^ |
||||
((Math.random() * 16) >> ((a as unknown as number) / 4)) |
||||
).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