GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - KazanExpress/frontend-devtools

BranchesTags
Open more actions menu

Latest commit

 

History

34 Commits
34 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.yarn
.yarn
 
 
public
public
 
 
src
src
 
 
tests/unit
tests/unit
 
 
.browserslistrc
.browserslistrc
 
 
.drone.yml
.drone.yml
 
 
.eslintrc.js
.eslintrc.js
 
 
.gitignore
.gitignore
 
 
.npmrc
.npmrc
 
 
.nvmrc
.nvmrc
 
 
.yarnrc.yml
.yarnrc.yml
 
 
README.md
README.md
 
 
babel.config.js
babel.config.js
 
 
jest.config.js
jest.config.js
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vue.config.js
vue.config.js
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Frontend Devtools

Использование

  1. Войти в nexus

Confluence

нужно выполнить npx npm-cli-login как в документации, чтобы потом установить этот пакет

  1. Установить пакет
npm i -D @market-tech/frontend-devtools
  1. Подключить компонент и стили
import '@kazanexpress/frontend-devtools/dist/KeDevtools.css';
import KeDevtools from '@kazanexpress/frontend-devtools';
  1. Использовать
<KeDevtools
  :items="devtoolsItems"
  local-storage-key="ke-devtools-example"
  @init="onInit"
  @change="onChange"
>
  <template #item-example-save="{ active }">
    <span class="example" :class="{  active: active }">
      save local
    </span>
  </template>
</KeDevtools>

Полный пример использования в ./src/App.vue

Props

types required default
items TDevtoolsItem[] true
localStorageKey string false 'ke-devtools'

Events

name payload description
change TChangePayload Вызывается при каждом клике на элемент панели
init string[] Вызывается при mounted компонента, передавая все активные флаги

Slots

name description
before Слот для вставки контента, до панели
after Слот для вставки контента, после панели
activator Слот для активатора панели, по дефолту есть иконка
item-{key} Динамичный слот, формируется из переданного списка элементов. Скоуп: active – состояние активности флага

Types

export type TDevtoolsItem<T = string> = {
  key: T;
  saveLocal?: boolean; // default true
  defaultActive?: boolean; // default false
};

export type TChangePayload<T = string> = {
  key: T;
  value: boolean;
};

Разработка

Для разработки

yarn install
yarn serve

Для публикации

yarn build-bundle

После надо закоммитить изменения и создать новый релиз в гитхабе

About

No description or website provided.

Topics

frontend

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.