Skip to content

Instantly share code, notes, and snippets.

View razbakov's full-sized avatar
🖖
Hi

Aleksey Razbakov razbakov

🖖
Hi
View GitHub Profile
@razbakov
razbakov / AGENTS.md
Created March 6, 2026 16:31
Commit Message Rules

commit.txt Format

When changing code, update commit.txt in the repo root with the commit message. Do NOT run git commands to stage or commit — the user handles that manually.

  • Use Conventional Commits format directly (not markdown, not a description of changes).
  • First line: PROJ-123: <type>(<optional scope>): <short summary> (max 72 chars), PROJ-123 is a jira issue number (only if known, otherwise skip)
  • Blank line, then optional body explaining why (wrap at ~80 chars).
  • The file is gitignored.
  • If commit.txt already exists, the user has not committed yet — read it first, then merge/summarize the new changes together with the existing message so the file always covers all uncommitted changes since the last git commit.

Project Overview

See README.md for details

Rules

  • Do one thing at a time, and suggest Next Steps. Let human review and confirm before proceeding.
  • Next steps should be very short and simple, without overexplanation.
  • In the document-first phase, when brainstorming or documenting, make change in one file and write next steps in the document, wait for confirmation.
  • ALWAYS run tests with test database so that user don't loose data.
@razbakov
razbakov / auto-form-registration.vue
Created June 4, 2024 19:51
shadcn-vue: AutoForm: registration
<script setup lang="ts">
defineProps({
register: Boolean,
});
import { useForm } from "vee-validate";
import { toTypedSchema } from "@vee-validate/zod";
import * as z from "zod";
import { toast } from "vue-sonner";
@razbakov
razbakov / 01.form-builder.zod-schema.vue
Last active June 4, 2024 19:10
Form Builder: zod schema
<template>
<AdminForm
v-model:item="item"
:collection="collection"
:title="edit"
:fields="fields"
:schema="schema"
@close="editing = false"
/>
</template>
@razbakov
razbakov / 01.form-builder.json-schema.vue
Last active June 4, 2024 19:10
Form Builder: json array of fields
<template>
<TForm
v-model="profile"
:fields="profileFields"
class="border-t mt-4 pt-4 space-y-4"
@save="saveProfile"
/>
</template>
<script setup>
@razbakov
razbakov / wd-form.vue
Created February 7, 2024 10:34
Vue Form Component
<template>
<form @submit.prevent="submit">
<slot />
</form>
</template>
<script>
import Vue from 'vue'
import { onMounted, ref } from '@nuxtjs/composition-api'
git fetch --all
git push origin HEAD
WORK_BRANCH=`git rev-parse --abbrev-ref HEAD`
git checkout development
git rebase origin/development
git merge $WORK_BRANCH --no-edit
git push origin HEAD
git checkout $WORK_BRANCH

get AJQ-15x15-ZM

{
  product: {
    DecimalsAllowed: false,
    Description1: 'Ablauf ESS Aqua Jewel Quattro 15x15cm ES',
    Description2: '"Zero+Edelst. gebürstet" swh 30/35/50mm',
    GTIN: '',
    PicturePath: 'https://ablexprod.blob.core.windows.net/ablexprodcontainer/8eb882af3664f584682df48d6401b5f7',
<template>
<input
v-model="userValue"
:pattern="pattern"
v-bind="$attrs"
type="tel"
@focus="focus"
@keydown="keyDown"
@blur="update"
>
import { reactive, toRefs, computed } from '@vue/composition-api'
import Vue from 'vue'
import firebase from 'firebase/app'
import 'firebase/auth'
import 'firebase/firestore'
const state = Vue.observable({
loading: true,
signingIn: false,
uid: null,