Coder Social home page Coder Social logo

hotkeys's Introduction

HOT KEYS - архив сочетаний клавиш

Учебный проект студентов ОП «Дизайн и Программирование» НИУ ВШЭ [B21DZ09-Project-4-2]

Начало работы

  1. Клонируйте репозиторий
git clone https://github.com/HSEADC/HOTKEYS.git
  1. Зайдите в папку проекта
cd HOTKEYS
  1. Установите зависимости
pnpm i
  1. Запустите сервер для разработки
pnpm start
  1. Сделайте билд
pnpm build
  1. При изменении файла hotkeys.json запустите пре-рендер и генерацию страниц шорткатов shortcuts.html
pnpm render && pnpm generate

Добавление шорткатов

Описание

Файл hotkeys.json содержит данные о шорткатах для проекта. Каждый шорткат представлен в формате JSON и содержит информацию о его свойствах и использовании.

Расположение файла

Файл hotkeys.json находится в папке /src/lib/data/ в корневой директории проекта.

Добавление новых шорткатов

Чтобы добавить новые шорткаты в файл hotkeys.json, выполните следующие шаги:

  1. Откройте файл hotkeys.json, расположенный в папке /src/lib/data/ проекта.
  2. Создайте новый ключ для JSON объекта, используя приведенную выше структуру шортката.
{
  "link": "new-shortcut",
  "selected": "Новая категория",
  "text": "Описание нового шортката",
  "windows": "Ctrl+N",
  "macos": "Cmd+N",
  "popular": true,
  "useful": true,
  "simple": true,
  "complex": false,
  "target": "application",
  "page_title": "Название нового шортката",
  "page_win": "Описание для Windows на странице",
  "page_mac": "Описание для macOS на странице",
  "page_xl_span": "Крупный текст",
  "page_xl": "Описание крупного текста на странице",
  "page_l_start": "Начало описания длинного текста",
  "page_l_center": "Середина описания длинного текста",
  "page_l_end": "Окончание описания длинного текста",
  "page_l_win_first": "Ctrl",
  "page_l_win_second": "N",
  "page_l_mac_first": "Cmd",
  "page_l_mac_second": "N"
}

hotkeys's People

Contributors

bozzhik avatar zakharday avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.