This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="notifications" :style="notificationStyle"> | |
<div class="notifications__top"> | |
<TransitionGroup name="notificationViewFade"> | |
<LoadSavedPlanNotification | |
v-if="notificationState[NOTIFICATION_TYPES.LOAD_IDB_CONFIG]?.open" | |
:payload=" | |
notificationState[NOTIFICATION_TYPES.LOAD_IDB_CONFIG].payload! | |
" | |
:close="() => close(NOTIFICATION_TYPES.LOAD_IDB_CONFIG)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rtcConfig = { iceServers: [{ urls: 'stun:stun.l.google.com:19302' }] } | |
const createOfferFromSdp = (sdp: string): RTCSessionDescriptionInit => { | |
return { | |
type: 'offer', | |
sdp, | |
} | |
} | |
const createAnswerFromSdp = (sdp: string): RTCSessionDescriptionInit => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Test helpcenter visibility based on initData on mobile', () => { | |
const { configurator, roomdesigner, disable } = | |
FALLBACK_INIT_DATA.featureFlags.helpcenter; | |
it.each` | |
configurator | roomdesigner | disable | isPlanner | expected | reason | |
${configurator} | ${roomdesigner} | ${disable} | ${true} | ${true} | ${'default behavior for planner should be visible'} | |
${configurator} | ${roomdesigner} | ${disable} | ${false} | ${false} | ${'default behavior for configurator should not be visible'} | |
${true} | ${true} | ${false} | ${false} | ${true} | ${'should show in configurator if explicitly enabled'} | |
${true} | ${false} | ${false} | ${true} | ${false} | ${'should not show in planner if explicitly disabled'} | |
${true} | ${true} | ${true} | ${true} | ${false} | ${'disable: true should never show helpcenter'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { acceptHMRUpdate, defineStore } from 'pinia' | |
import { computed, ref } from 'vue' | |
import type { Room } from '/@/interfaces' | |
import { hideFaviconNotification } from '/@/utils/toggleFaviconNotification' | |
interface Rooms { | |
[key: string]: Room | |
} | |
export const useRoomsStore = defineStore('rooms', () => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{$CLEO .cs} | |
script_name 'SN' | |
:SN_11 | |
wait 0 | |
1@ = Actor.CurrentCar($PLAYER_ACTOR) | |
if and | |
0449: actor $PLAYER_ACTOR in_a_car | |
00E1: player 0 pressed_key 17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<canvas ref="chartRef" class="main-canvas"></canvas> | |
</template> | |
<script setup lang="ts"> | |
import { ref, onMounted } from 'vue' | |
import {transparentize, rand, CHART_COLORS} from './utils/utils.js' | |
import ChartStreaming from 'chartjs-plugin-streaming'; | |
import { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// using 'application/*' doesn't do the trick but adding as many mimetypes and filetypes as you can seems to get the serviceworker to accept them if they are listed explicitly. | |
import mimeDb from 'mime-db' | |
import fileTypes from './src/utils/fileTypes' // from https://github.com/dyne/file-extension-list/blob/master/pub/extensions.json | |
const allFileTypesAndMimes = () => { | |
return process.env.NODE_ENV === 'production' | |
? [...Object.keys(mimeDb), ...fileTypes] | |
: [] | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div | |
class="file-drop overlay" | |
@dragover="handleDrag" | |
@dragleave="toggleFileDrop" | |
@drop="handleDrop" | |
></div> | |
<div class="file-drop-text"> | |
<h1>Upload File</h1> | |
<i-feather-upload /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelector('#element').dispatchEvent(new MouseEvent('mouseover', {bubbles: true})) |
NewerOlder