Skip to content

Instantly share code, notes, and snippets.

View laurisstepanovs's full-sized avatar
🇱🇻

Lauris laurisstepanovs

🇱🇻
View GitHub Profile
import {
getAttributeValueByBreakpoint,
stringSnakeToCamel,
getObjectPropertyValueByKey,
EventHandlerUtil,
throttle,
} from '../_utils/index'
export class SwapperStore {
static store: Map<string, SwapperComponent> = new Map()
import objectPath from "object-path";
import { config } from "@/layouts/default-layout/config/helper";
import { useBodyStore } from "@/stores/body";
import { useConfigStore } from "@/stores/config";
class LayoutService {
public static bodyStore: any;
public static configStore: any;
/**
import {
DataUtil,
ElementAnimateUtil,
ElementStyleUtil,
EventHandlerUtil,
getAttributeValueByBreakpoint,
getCSS,
getElementOffset,
getObjectPropertyValueByKey,
getScrollTop,
<link id="main-css" rel="stylesheet" href="/style.bundle.css">
<link id="main-css" rel="stylesheet" href="/style.bundle.css">
/* eslint-disable no-undef */
const path = require("path");
const WebpackRTLPlugin = require("webpack-rtl-plugin");
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const RemovePlugin = require("remove-files-webpack-plugin");
// global variables
// eslint-disable-next-line no-undef
const distPath = `${path.resolve(__dirname)}/src/assets/rtl`;
const entries = { style: "./src/assets/sass/style.scss" };
import {Link} from 'react-router-dom'
import clsx from 'clsx'
import {useLayout} from '../../core'
import {toAbsoluteUrl} from '../../../helpers'
import {AsideMenu} from './AsideMenu'
import {AsideUserMenu} from '../../../partials'
import {useThemeMode} from '../../../partials/layout/theme-mode/ThemeModeProvider'
import { MenuComponent } from '../../../assets/ts/components'
const AsideDefault = () => {
@laurisstepanovs
laurisstepanovs / tsconfig.json
Created September 20, 2023 21:48
tsconfig.json
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"noImplicitAny": false,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
const menuRef = ref<HTMLElement | null>(null);
const menuInst = ref<MenuComponent | null>(null);
onMounted(() => {
setTimeout(() => {
console.log("rstarst");
if (menuRef.value) {
menuInst.value = MenuComponent.getInstance(menuRef.value);
menuInst.value?.on("kt.menu.dropdown.show", function () {
{
"name": "demo1",
"version": "8.2.0",
"private": true,
"homepage": "/metronic8/react/demo1",
"dependencies": {
"@formatjs/intl-pluralrules": "5.2.4",
"@formatjs/intl-relativetimeformat": "11.2.4",
"@fortawesome/fontawesome-free": "6.1.1",
"@popperjs/core": "^2.11.6",