diff --git a/CLAUDE_GIT_INTEGRATION.md b/CLAUDE_GIT_INTEGRATION.md new file mode 100644 index 0000000..6a56dd3 --- /dev/null +++ b/CLAUDE_GIT_INTEGRATION.md @@ -0,0 +1,91 @@ +# Claude Code Git Integration + +This document explains how to use the custom git commands created for Claude Code to summarize file changes and commit them with proper attribution. + +## Installation + +The custom git command has been installed in your system with the following components: + +1. A `git-claude` script in `~/bin/` directory +2. A git alias `claude` that points to the script +3. A git hook that automatically summarizes changes in commit messages + +## Usage + +### 1. Summarize Changes + +To get a summary of current changes in your repository: + +```bash +git claude summarize +``` + +This command will show: +- Staged changes (files ready to be committed) +- Unstaged changes (modified files not yet staged) +- Untracked files (new files not yet added to git) + +### 2. Commit with Claude Signature + +To commit changes with the proper Claude Code signature: + +```bash +git claude commit "Your commit message here" +``` + +This command will: +- Stage all changes if none are currently staged +- Create a commit with your message +- Automatically add the Claude Code signature: + ``` + 🤖 Generated with [Claude Code](https://claude.ai/code) + + Co-Authored-By: Claude + ``` + +### 3. Using Standard Git Commands + +You can also use standard git commands which will now include Claude Code summaries: + +```bash +# Standard git add and commit +git add . +git commit -m "Your message" + +# The prepare-commit-msg hook will automatically add a summary +``` + +## How It Works + +1. **Git Hook**: The `prepare-commit-msg` hook in `.git/hooks/` automatically adds a summary of changes to your commit messages. + +2. **Custom Command**: The `git-claude` script provides a convenient interface for common Claude Code workflows. + +3. **Git Alias**: The `git claude` alias allows you to use `git claude` instead of `git-claude`. + +## Examples + +```bash +# Get a summary of current changes +git claude summarize + +# Commit changes with a custom message +git claude commit "Add new user authentication feature" + +# Commit changes with default message +git claude commit +``` + +## Troubleshooting + +If you encounter any issues: + +1. Make sure the `~/bin/` directory is in your PATH +2. Verify the script is executable: `chmod +x ~/bin/git-claude` +3. Check that the git alias is properly configured: `git config --get-regexp alias.claude` + +## Customization + +You can customize the behavior by modifying the scripts in: +- `~/bin/git-claude` - Main script +- `.git/hooks/prepare-commit-msg` - Commit message hook \ No newline at end of file diff --git a/商家端web/2.1 营销工具/2.1.1 会员功能/积分商城/积分兑换商城.html b/商家端web/2.1 营销工具/2.1.1 会员功能/积分商城/积分兑换商城.html index b7fb890..f04a277 100644 --- a/商家端web/2.1 营销工具/2.1.1 会员功能/积分商城/积分兑换商城.html +++ b/商家端web/2.1 营销工具/2.1.1 会员功能/积分商城/积分兑换商城.html @@ -176,6 +176,99 @@ color: #c82333; } + .switch { + position: relative; + display: inline-block; + width: 44px; + height: 24px; + } + + .switch input { + opacity: 0; + width: 0; + height: 0; + } + + .slider { + position: absolute; + cursor: pointer; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: #ccc; + -webkit-transition: .4s; + transition: .4s; + border-radius: 24px; + } + + .slider:before { + position: absolute; + content: ""; + height: 18px; + width: 18px; + left: 3px; + bottom: 3px; + background-color: white; + -webkit-transition: .4s; + transition: .4s; + border-radius: 50%; + } + + input:checked + .slider { + background-color: #2196F3; + } + + input:focus + .slider { + box-shadow: 0 0 1px #2196F3; + } + + input:checked + .slider:before { + -webkit-transform: translateX(20px); + -ms-transform: translateX(20px); + transform: translateX(20px); + } + + .tabs { + margin-bottom: 20px; + } + + .tab-buttons { + display: flex; + border-bottom: 1px dashed #ccc; + background-color: #fafafa; + } + + .tab-button { + padding: 12px 24px; + background: none; + border: none; + border-bottom: 2px solid transparent; + cursor: pointer; + font-size: 14px; + color: #666; + transition: all 0.2s; + } + + .tab-button:hover { + color: #333; + background-color: #f0f0f0; + } + + .tab-button.active { + color: #007bff; + border-bottom-color: #007bff; + background-color: white; + } + + .tab-content { + display: none; + } + + .tab-content.active { + display: block; + } + @media (max-width: 768px) { .search-row { flex-direction: column; @@ -201,7 +294,15 @@
积分商城
-
+
+
+ + +
+
+ +
+
@@ -242,9 +343,11 @@ 规格名称 归属店铺 商品原价 + 原有商品状态 积分使用模式 剩余库存 - 操作 + 启用状态 + 操作 @@ -257,12 +360,18 @@ 小份 生生蔬菜店 ¥5.00 + 上架 积分换购 10 + + +
-
@@ -275,12 +384,18 @@ 大份 生生蔬菜店 ¥8.00 + 上架 积分优惠购 10 + + +
-
@@ -293,12 +408,18 @@ 无 生生蔬菜店 ¥3.50 + 下架 积分换购 2 + + +
-
@@ -311,12 +432,18 @@ 大份 生生蔬菜店 ¥12.00 + 上架 双倍积分 5 + + +
-
@@ -329,12 +456,18 @@ 中份 生生蔬菜店 ¥6.00 + 上架 双倍积分 8 + + +
-
@@ -347,18 +480,185 @@ 大份 生生蔬菜店 ¥4.50 + 上架 双倍积分 15 + + +
-
+
+ +
+
+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+
+ + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + 商品ID商品名称归属店铺商品原价原有商品状态操作
+ + 001黑木耳生生蔬菜店¥5.00上架 +
+ +
+
+ + 002黑木耳生生蔬菜店¥8.00上架 +
+ +
+
+ + 003番茄生生蔬菜店¥3.50下架 +
+ +
+
+ + 004冬瓜生生蔬菜店¥12.00上架 +
+ +
+
+ + 005土豆生生蔬菜店¥6.00上架 +
+ +
+
+ + 006白萝卜生生蔬菜店¥4.50上架 +
+ +
+
+
+
+ + - \ No newline at end of file +Test line diff --git a/大妈集市.rp b/大妈集市.rp index b54659a..32ea7cb 100644 Binary files a/大妈集市.rp and b/大妈集市.rp differ