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
[4/5] 🔗 Linking dependencies... | |
warning "eslint-config-oclif-typescript > [email protected]" has incorrect peer dependency "eslint@^5.3.0". | |
warning "eslint-config-oclif-typescript > @typescript-eslint/[email protected]" has incorrect peer dependency "eslint@^5.0.0 || ^6.0.0". | |
warning "eslint-config-oclif-typescript > @typescript-eslint/[email protected]" has incorrect peer dependency "eslint@^5.0.0 || ^6.0.0". | |
<--- Last few GCs ---> | |
[13300:0x128008000] 54578 ms: Mark-sweep 4042.3 (4135.2) -> 4028.0 (4134.4) MB, 758.5 / 0.0 ms (average mu = 0.128, current mu = 0.054) allocation failure scavenge might not succeed | |
[13300:0x128008000] 55066 ms: Mark-sweep 4043.8 (4134.4) -> 4031.1 (4137.7) MB, 461.7 / 0.0 ms (average mu = 0.103, current mu = 0.053) allocation failure scavenge might not succeed |
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
lottie (): void { | |
if (!process.browser || !window.lottie) return | |
const lottie = window.lottie | |
const container = this.$refs.darkMode as HTMLElement | |
this.darkMode = lottie.loadAnimation({ | |
container, | |
renderer: 'svg', | |
path: '/json/darkMode.json', | |
loop: false, | |
autoplay: false, |
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
<? | |
Schema::create('orders', function (Blueprint $table) { | |
$table->id(); | |
$table->string('table')->nullable(); | |
$table->foreignIdFor(Rst::class)->constrained(); | |
$table->foreignIdFor(Loc::class)->constrained(); | |
}); | |
Schema::create('order_menu', function (Blueprint $table) { |
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
static priceFromCartChoices (rst: Rst, menuId: number, cartChoices: CartChoices, quantity: number) { | |
const options = this.choicesCombined(rst, menuId).map(c => c.options).flat() as Options | |
const ids = cartChoices.map(c => c.options).flat() | |
const selects = options.filter(o => ids.includes(o.id) && o.price) as OptionsWithPrices | |
const extras = selects.reduce((a, b) => a + b.price, 0) | |
return (this.menuFromId(rst, menuId).price + extras) * quantity | |
} |
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="w-64 h-52 flex justify-center items-center border-2 border-gray-300 border-dashed rounded-md"> | |
<div class="space-y-1 text-center"> | |
<icon-images class="mx-auto w-12 h-12" /> | |
<div class="flex text-sm text-gray-600"> | |
<label for="file-upload" class="relative cursor-pointer bg-white rounded-md font-medium text-fuchsia-600 hover:text-indigo-500 focus-within:outline-none focus-within:ring-2 focus-within:ring-offset-2 focus-within:ring-indigo-500"> | |
<span>Upload an image</span> | |
<input | |
id="file-upload" | |
name="file-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
<? | |
public function store(Request $request): Response|JsonResponse | |
{ | |
$this | |
->option('file', 'required|file|max:10000000') | |
->option('type', 'nullable|in:' . Image::ABLES) | |
->option('id', 'nullable') | |
->verify(); | |
/** @var UploadedFile $file */ |
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
<? | |
public function test() | |
{ | |
if ($this->hook->type === 'discord') { | |
Http::post( | |
$this->hook->url, | |
[ | |
'username' => 'fume', | |
'avatar_url' => 'https://fume.app/fume-light-full.png', | |
'embeds' => [ |
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
<?php | |
namespace App\Services; | |
class IndefiniteArticle | |
{ | |
public static function a($text): string | |
{ | |
return self::indefiniteArticleForm($text); |
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
ERROR in client/pages/rst/_rst/menu/create.vue:54:16 | |
TS2769: No overload matches this call. | |
Overload 1 of 2, '(options?: (object & ComponentOptions<Vue, DataDef<((this: Readonly<unknown> & Vue) => { label: string; state: PushButtonState; rst: Rst | undefined; }) & Omit<Record<string, any>, keyof VueConstructor<...>>, unknown, Vue>, { ...; }, unknown, RecordPropsDefinition<...>, unknown> & ThisType<...> & { ...; }) | undefined): ExtendedVue<...>', gave the following error. | |
Type '[{ getRst(): Promise<Rst>; crumbs(crumbs: BreadCrumbs): void; } & VueConstructor<Vue>]' is not assignable to type '(VueConstructor<Vue> | ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<...>, DefaultProps>)[] & [...]'. | |
Type '[{ getRst(): Promise<Rst>; crumbs(crumbs: BreadCrumbs): void; } & VueConstructor<Vue>]' is not assignable to type '[Record<string, any>, Record<string, any>]'. | |
Source has 1 element(s) but target requires 2. | |
Overload 2 of 2, '(options?: (object & Co |
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
on: | |
push: | |
branches: | |
- develop | |
jobs: | |
fume-develop: | |
name: Deploy with Fume | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 |