Skip to content

Instantly share code, notes, and snippets.

View mushfiqweb's full-sized avatar

Mushfiqur Rahman mushfiqweb

View GitHub Profile
@mushfiqweb
mushfiqweb / 26-Nov-2023.bash
Created January 16, 2024 06:53
26-Nov-2023
[stage-0 12/16] ADD .env.example /var/www/html/.env 0.0s
=> ERROR [stage-0 13/16] RUN composer install && composer dump-autoload && composer clear-cache 0.6s
------
> [stage-0 13/16] RUN composer install && composer dump-autoload && composer clear-cache:
#0 0.377 Composer plugins have been disabled for safety in this non-interactive session. Set COMPOSER_ALLOW_SUPERUSER=1 if you want to allow plugins to run as root/super user.
@mushfiqweb
mushfiqweb / menu.md
Created August 14, 2023 11:25
Elster navigationConfig ISSUE

Hello,

I hope this message finds you well. I wanted to share some feedback regarding the template I recently purchased last week.

Overall, the template seems well-organized and promising. However, I couldn't help but notice that there's an absence of examples showcasing multilevel parent-child menus. The current example in the template only includes a single level of parent-child menu relationships. I've been exploring the navigationConfig and its submenu items, and it appears that when I pass menu items to the submenu array and set the type to NAV_ITEM_TYPE_COLLAPSE for the parent, it creates only one level of nesting.

For clarity, I'm sharing my navigationConfig setup below:

const navigationConfig: NavigationTree[] = [
    {
@mushfiqweb
mushfiqweb / MenuJSON.js
Last active May 8, 2023 10:06
MenuJSON.js
const navigationConfig = [
{
id: "apps.ecommerce",
title: "ECommerce",
type: "collapse",
icon: "heroicons-outline:shopping-cart",
children: [
{
id: "e-commerce-products",
@mushfiqweb
mushfiqweb / Redux.Toolkit.Simple.app.tsx
Last active February 6, 2023 09:03
Simple Example of Redux Toolkit using TypeScript, React and extraReducers
import React from 'react';
import { useSelector, useDispatch } from 'react-redux';
import { createSlice, createAsyncThunk } from '@reduxjs/toolkit';
interface User {
id: number;
name: string;
}
const fetchUser = createAsyncThunk('users/fetchUser', async (id: number) => {
@mushfiqweb
mushfiqweb / mushfiqwebOhMyPOSH.json
Last active December 1, 2022 05:11
My config file to oh-my-posh for Windows Terminal.
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{.Folder}}",
"blocks": [
{
"alignment": "left",
"segments": [
{
"foreground": "#26C6DA",
"style": "plain",
@mushfiqweb
mushfiqweb / mushfiqwebPowerShellProfile.ps1
Last active October 16, 2023 06:28
My Windows Terminal Setup: PowerShel Profile
function Import-Module-With-Measure {
param ($ModuleName)
$import = Measure-Command {
Import-Module $ModuleName
}
Write-Host "$ModuleName took $($import.TotalMilliseconds) ms"
}
oh-my-posh --init --shell pwsh --config https://gist.githubusercontent.com/mushfiqweb/a761862a60ebfd809d234d711172d7a5/raw/7078718e31a6190b64dfef7084530d32cacafb64/mushfiqwebOhMyPOSH.json | Invoke-Expression
@mushfiqweb
mushfiqweb / WinReg.reg
Created July 8, 2021 05:42
Windows Registry Editor for Installing Windows 11
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\UI\Selection] “UIContentType”=”Mainline”
“UIRing”=”External”
“UIBranch”=”Dev”
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability]
BranchName”=”Dev”
“ContentType”=”Mainline”
“Ring”=”External”
import Loader from '../components/Loader'
import UserError from '../components/UserError'
import useUser from '../hooks/useUser';
const Header = ({ id }) => {
const { user, error, loading } = useUser(id);
if (loading) return <Loader />
if (error) return <UserError />
import Loader from '../components/Loader'
import UserError from '../components/UserError'
import useUser from '../hooks/useUser';
const UserProfile = ({ id }) => {
const { user, error, loading } = useUser(id);
if (loading) return <Loader />
if (error) return <UserError />