Skip to content

Commit d201d36

Browse files
committed
chore: update CHANGELOG and module.json for version 1.0.3 release
1 parent d8c22a6 commit d201d36

File tree

3 files changed

+140
-36
lines changed

3 files changed

+140
-36
lines changed

CHANGELOG.md

Lines changed: 47 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,61 @@
11
# Changelog
22

3-
Todas as mudanças notáveis deste projeto serão documentadas neste arquivo.
3+
All notable changes to this project will be documented in this file.
44

5-
O formato é baseado em [Keep a Changelog](https://keepachangelog.com/pt-BR/1.0.0/),
6-
e este projeto adere ao [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.0.3] - 2024-XX-XX
9+
10+
### Changed
11+
12+
- 🔄 Converted HTML to jQuery for Foundry VTT v13 compatibility
13+
- 📦 Updated manifest to version 1.0.3
14+
15+
### Fixed
16+
17+
- ✅ Improved compatibility with Foundry VTT v13
18+
19+
---
720

821
## [1.0.0] - 2024-01-XX
922

10-
### Adicionado
11-
12-
-Interface moderna para seleção de tokens empilhados
13-
- 🎯 Ícone único combinando grupo de usuários + mira
14-
- 🎨 Design premium similar ao painel de condições do Foundry
15-
- 📊 Contador visual mostrando quantos tokens estão empilhados
16-
- 🖱️ Seleção inteligente que traz o token para frente automaticamente
17-
- 📱 Posicionamento inteligente do painel (não sai da tela)
18-
- ⌨️ Suporte a múltiplas formas de fechar (ESC, clique fora, seleção)
19-
- 🔄 Sistema de restauração automática do z-index
20-
- 📋 Informações detalhadas dos tokens (nome, tipo, HP)
21-
- 🎭 Animações suaves e feedback visual
22-
- 📜 Scrollbar customizada para muitos tokens
23-
- 🔧 Compatibilidade com Foundry VTT v11-v12
24-
25-
### Funcionalidades
26-
27-
- **Token HUD Integration**: Botão aparece automaticamente quando há tokens empilhados
28-
- **Drag & Drop**: Token selecionado pode ser movido imediatamente
29-
- **Visual Feedback**: Notificações confirmando ações
30-
- **Responsive Design**: Interface se adapta ao tamanho da tela
31-
- **Performance**: Otimizado para não afetar performance do jogo
23+
### Added
24+
25+
-Modern interface for selecting stacked tokens
26+
- 🎯 Unique icon combining user group + crosshairs
27+
- 🎨 Premium design similar to Foundry's condition panel
28+
- 📊 Visual counter showing how many tokens are stacked
29+
- 🖱️ Smart selection that automatically brings token to front
30+
- 📱 Smart panel positioning (stays within screen bounds)
31+
- ⌨️ Support for multiple ways to close (ESC, click outside, selection)
32+
- 🔄 Automatic z-index restoration system
33+
- 📋 Detailed token information (name, type, HP)
34+
- 🎭 Smooth animations and visual feedback
35+
- 📜 Custom scrollbar for many tokens
36+
- 🔧 Compatibility with Foundry VTT v11-v12
37+
38+
### Features
39+
40+
- **Token HUD Integration**: Button automatically appears when tokens are stacked
41+
- **Drag & Drop**: Selected token can be moved immediately
42+
- **Visual Feedback**: Notifications confirming actions
43+
- **Responsive Design**: Interface adapts to screen size
44+
- **Performance**: Optimized to not affect game performance
3245

3346
---
3447

35-
## [Não Lançado]
48+
## [Unreleased]
3649

37-
### Planejado
50+
### Planned
3851

39-
- 🌐 Suporte a múltiplos idiomas
40-
- ⚙️ Configurações do módulo
41-
- 🎨 Temas customizáveis
42-
- 📊 Estatísticas de uso
43-
- 🔍 Filtros de tokens
44-
- 🎮 Atalhos de teclado
52+
- 🌐 Multi-language support
53+
- ⚙️ Module settings
54+
- 🎨 Customizable themes
55+
- 📊 Usage statistics
56+
- 🔍 Token filters
57+
- 🎮 Keyboard shortcuts
4558

4659
---
4760

48-
_Formato baseado em [Keep a Changelog](https://keepachangelog.com/)_
61+
_Format based on [Keep a Changelog](https://keepachangelog.com/)_

module.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
"maximum": "13"
1919
},
2020
"url": "https://github.com/Sub-Dev/token-stack-selector",
21-
"manifest": "https://github.com/Sub-Dev/token-stack-selector/releases/download/v1.0.2/module.json",
22-
"download": "https://github.com/Sub-Dev/token-stack-selector/releases/download/v1.0.2/token-stack-selector-1.0.2.zip",
21+
"manifest": "https://github.com/Sub-Dev/token-stack-selector/releases/download/v1.0.3/module.json",
22+
"download": "https://github.com/Sub-Dev/token-stack-selector/releases/download/v1.0.3/token-stack-selector-1.0.3.zip",
2323
"bugs": "https://github.com/Sub-Dev/token-stack-selector/issues",
2424
"changelog": "https://github.com/Sub-Dev/token-stack-selector/releases",
2525
"readme": "https://github.com/Sub-Dev/token-stack-selector/blob/master/README.md",

release.sh

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
#!/bin/bash
2+
3+
# Script de Release para Token Stack Selector
4+
# Uso: ./release.sh [versão] [mensagem]
5+
# Exemplo: ./release.sh 1.0.4 "Correção de bugs"
6+
7+
set -e
8+
9+
# Cores para output
10+
RED='\033[0;31m'
11+
GREEN='\033[0;32m'
12+
YELLOW='\033[1;33m'
13+
NC='\033[0m' # No Color
14+
15+
# Verifica se está na branch master
16+
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)
17+
if [ "$CURRENT_BRANCH" != "master" ]; then
18+
echo -e "${RED}Erro: Você precisa estar na branch master para criar uma release${NC}"
19+
exit 1
20+
fi
21+
22+
# Verifica se há mudanças não commitadas
23+
if ! git diff-index --quiet HEAD --; then
24+
echo -e "${RED}Erro: Há mudanças não commitadas. Por favor, faça commit ou stash antes de criar uma release.${NC}"
25+
exit 1
26+
fi
27+
28+
# Puxa as últimas mudanças
29+
echo -e "${YELLOW}Puxando últimas mudanças do repositório remoto...${NC}"
30+
git pull origin master
31+
32+
# Obtém a versão atual do module.json
33+
CURRENT_VERSION=$(grep -o '"version": "[^"]*"' module.json | cut -d'"' -f4)
34+
echo -e "${GREEN}Versão atual: ${CURRENT_VERSION}${NC}"
35+
36+
# Se a versão foi fornecida como argumento, usa ela, senão usa a do module.json
37+
if [ -z "$1" ]; then
38+
NEW_VERSION=$CURRENT_VERSION
39+
echo -e "${YELLOW}Nenhuma versão fornecida, usando versão do module.json: ${NEW_VERSION}${NC}"
40+
else
41+
NEW_VERSION=$1
42+
echo -e "${YELLOW}Atualizando module.json para versão: ${NEW_VERSION}${NC}"
43+
44+
# Atualiza a versão no module.json
45+
if [[ "$OSTYPE" == "darwin"* ]]; then
46+
# macOS
47+
sed -i '' "s/\"version\": \"[^\"]*\"/\"version\": \"${NEW_VERSION}\"/" module.json
48+
sed -i '' "s/v[0-9]\+\.[0-9]\+\.[0-9]\+/v${NEW_VERSION}/g" module.json
49+
else
50+
# Linux/Git Bash
51+
sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"${NEW_VERSION}\"/" module.json
52+
sed -i "s/v[0-9]\+\.[0-9]\+\.[0-9]\+/v${NEW_VERSION}/g" module.json
53+
fi
54+
fi
55+
56+
# Verifica se a tag já existe
57+
if git rev-parse "v${NEW_VERSION}" >/dev/null 2>&1; then
58+
echo -e "${RED}Erro: A tag v${NEW_VERSION} já existe!${NC}"
59+
exit 1
60+
fi
61+
62+
# Mensagem de release
63+
RELEASE_MESSAGE=${2:-"Release v${NEW_VERSION}"}
64+
65+
echo -e "${GREEN}=== Criando Release v${NEW_VERSION} ===${NC}"
66+
echo -e "${YELLOW}Mensagem: ${RELEASE_MESSAGE}${NC}"
67+
68+
# Faz commit das mudanças se houver
69+
if ! git diff-index --quiet HEAD --; then
70+
echo -e "${YELLOW}Fazendo commit das mudanças...${NC}"
71+
git add module.json CHANGELOG.md
72+
git commit -m "chore: bump version to ${NEW_VERSION}"
73+
fi
74+
75+
# Cria a tag
76+
echo -e "${YELLOW}Criando tag v${NEW_VERSION}...${NC}"
77+
git tag -a "v${NEW_VERSION}" -m "${RELEASE_MESSAGE}"
78+
79+
# Push das mudanças e tags
80+
echo -e "${YELLOW}Enviando mudanças e tags para o repositório remoto...${NC}"
81+
git push origin master
82+
git push origin "v${NEW_VERSION}"
83+
84+
echo -e "${GREEN}✓ Release v${NEW_VERSION} criada com sucesso!${NC}"
85+
echo -e "${YELLOW}Próximos passos:${NC}"
86+
echo -e "1. Vá para https://github.com/Sub-Dev/token-stack-selector/releases/new"
87+
echo -e "2. Selecione a tag v${NEW_VERSION}"
88+
echo -e "3. Adicione as notas de release baseadas no CHANGELOG.md"
89+
echo -e "4. Anexe o arquivo ZIP do módulo (se necessário)"
90+
echo -e "5. Publique a release"
91+

0 commit comments

Comments
 (0)