Hro
Hro
Explore posts from servers
NNuxt
Created by Hro on 11/16/2024 in #❓・help
Fresh project with nuxt ui pro and pnpm
looks like it's going wrong here: https://github.com/nuxt-modules/tailwindcss/blob/4a050097a359f61def5ce7ef782b42829a352b31/src/resolvers.ts#L97 For now I have added a assets/css/tailwind.css file with the same contents
10 replies
NNuxt
Created by Hro on 11/16/2024 in #❓・help
Fresh project with nuxt ui pro and pnpm
"/Volumes/Sites/dartsspace/node_modules/tailwindcss/tailwind.css" should be pointing at the project folder node modules instead
10 replies
NNuxt
Created by Hro on 11/16/2024 in #❓・help
Fresh project with nuxt ui pro and pnpm
Managed to resolve the obeve with using npm workspaces. However during nuxt dev I now run into this:
Internal server error: Failed to resolve import "/Volumes/Sites/dartsspace/node_modules/tailwindcss/tailwind.css" from "virtual:nuxt:/Volumes/Sites/dartsspace/frontend/app/.nuxt/css.mjs". Does the file exist?
Internal server error: Failed to resolve import "/Volumes/Sites/dartsspace/node_modules/tailwindcss/tailwind.css" from "virtual:nuxt:/Volumes/Sites/dartsspace/frontend/app/.nuxt/css.mjs". Does the file exist?
10 replies
NNuxt
Created by Hro on 11/16/2024 in #❓・help
Fresh project with nuxt ui pro and pnpm
I was trying to do this as a standalone folder, there everything works pefect. So looks like a pnpm monorepo issue.
10 replies
NNuxt
Created by Hro on 6/21/2024 in #❓・help
How to close programmatically opened nuxt ui modal from within the modal
Thank you. Used a custom callback to solve this 👍
3 replies
FFilament
Created by Hro on 1/8/2024 in #❓┊help
history.replaceState error in safari when having many components with actions
Also, but unrelated, components with actions have quite a performance drawback. I have changed quite a bit to use another modal to overcome that.
4 replies
FFilament
Created by Hro on 1/8/2024 in #❓┊help
history.replaceState error in safari when having many components with actions
So it seems it tries to do this for every component having actions.
4 replies
FFilament
Created by Hro on 1/8/2024 in #❓┊help
history.replaceState error in safari when having many components with actions
Pinned down to
/**
* @var mixed
*/
#[Url(as: 'action')]
public $defaultAction = null;

/**
* @var mixed
*/
#[Url(as: 'actionArguments')]
public $defaultActionArguments = null;
/**
* @var mixed
*/
#[Url(as: 'action')]
public $defaultAction = null;

/**
* @var mixed
*/
#[Url(as: 'actionArguments')]
public $defaultActionArguments = null;
4 replies
FFilament
Created by Hro on 8/4/2023 in #❓┊help
Optional tenancy registration
Hey @pboivin ! As far as I have seen it is not really possible as all routes are wrapped with the tenancy route argument. That means that there should always be a tenant attached to a logged in user. Might dig deeper later, but for now I have just implemented some redirects for users that do not attach to a specific tenant.
4 replies
FFilament
Created by Hro on 8/4/2023 in #❓┊help
Optional tenancy registration
Or better maybe, to be able to exclude certain pages/resources from tenancy
4 replies
FFilament
Created by ba_mbi_07 on 5/10/2023 in #❓┊help
filter is not working in this case
Try to check if $state is not an empty value before you filter.
8 replies
FFilament
Created by ba_mbi_07 on 5/10/2023 in #❓┊help
filter is not working in this case
because the default state is null I guess? so perhaps it filters all where meta_value = null?
8 replies
TCTwill CMS
Created by agnonym on 4/18/2023 in #👊support
[3.0.0] Block class - getBlockTitle()
10 replies
TCTwill CMS
Created by agnonym on 4/18/2023 in #👊support
[3.0.0] Block class - getBlockTitle()
I'll have to check this. Will try to do it in the afternoon
10 replies
FFilament
Created by AlexAnder on 3/24/2023 in #❓┊help
Repeater in repeater eager load
26 replies
FFilament
Created by Hro on 4/25/2023 in #❓┊help
Getting the attached and parent record in a relation manager hook
$record I believe I cannot get when attaching (User $record works fine for create after). I am doing this for now:
Tables\Actions\AttachAction::make()->after(function ($data, UsersRelationManager $livewire) {
$user = User::find($data['recordId']);
$unit = $livewire->ownerRecord;
}),
Tables\Actions\AttachAction::make()->after(function ($data, UsersRelationManager $livewire) {
$user = User::find($data['recordId']);
$unit = $livewire->ownerRecord;
}),
11 replies
TCTwill CMS
Created by agnonym on 4/18/2023 in #👊support
[3.0.0] Block class - getBlockTitle()
public static function getBlockTitle(?Block $block = null): string
{
return Str::replace('Block', '', Str::afterLast(static::class, '\\'));
}
public static function getBlockTitle(?Block $block = null): string
{
return Str::replace('Block', '', Str::afterLast(static::class, '\\'));
}
10 replies
TCTwill CMS
Created by agnonym on 4/18/2023 in #👊support
[3.0.0] Block class - getBlockTitle()
you should be able to still use the method to set a title
10 replies
TCTwill CMS
Created by agnonym on 4/18/2023 in #👊support
[3.0.0] Block class - getBlockTitle()
it is indeed always null. I know why I added is as an optional argument but never really implemented it I think 🤦‍♂️
10 replies