Skip to content

Commit

Permalink
Initial Commit!
Browse files Browse the repository at this point in the history
  • Loading branch information
bkader committed Mar 16, 2024
0 parents commit d96890c
Show file tree
Hide file tree
Showing 188 changed files with 104,117 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
root = true

[*]
charset = utf-8
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = false

[*.{lua,xml,toc,luacheckrc}]
indent_style = tab
tab_width = 4

[*.{lua,xml,toc}]
insert_final_newline = true

[*/Libs/**.{lua,xml,toc}]
trim_trailing_whitespace = false
insert_final_newline = none

[*.{md,yml,gitattributes,gitignore}]
indent_style = space
indent_size = 2
37 changes: 37 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
.github export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.luacheckrc export-ignore
.travis.yml export-ignore
.editorconfig export-ignore
README.md export-ignore
CHANGELOG.md export-ignore
CITATION.cff export-ignore

* text=auto
*.gitattributes text eol=lf
*.lua text eol=lf
*.toc text eol=lf
*.xml text eol=lf

# GitHub
.github text
.gitattributes text
*.md text

# Source files
*.lua text
*.xml text
*.toc text

# Fonts
*.ttf binary

# Sounds
*.ogg binary
*.mp3 binary
*.wav binary

# Textures
*.blp binary
*.tga binary
5 changes: 5 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# These are supported funding model platforms

ko_fi: bkader
liberapay: bkader
custom: https://www.buymeacoffee.com/bkader
87 changes: 87 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: "🪲 Bug Report"
description: Create a report to help us improve this project
title: "[Bug]: "
labels: ["type: bug"]
assignees:
- bkader
body:
- type: markdown
attributes:
value: |
Please search for existing issues before creating a new one.
- type: checkboxes
attributes:
label: Are you using the latest version of the addon?
options:
- label: "Yes"
- label: "No"
validations:
required: true

- type: input
attributes:
label: Addon Version
description: "`/skada version` to check your current version (including the date and time)."
placeholder: "Version: 1.8.84 - Date: 2023-02-21 @ 22:03 UTC"
validations:
required: true

- type: checkboxes
attributes:
label: Did you try having only this addon enabled?
options:
- label: "Yes"
- label: "No"
validations:
required: true

- type: textarea
attributes:
label: Current Behavior
description: A concise description of what you're experiencing.
validations:
required: true

- type: textarea
attributes:
label: Expected Behavior
description: What did you expect to happen?
validations:
required: true

- type: textarea
attributes:
label: Lua Error
description: "Paste your LUA error if you have any (enable error reporting: `/console scriptErrors 1`)"
validations:
required: false

- type: textarea
attributes:
label: Reproduction Steps
description: Please list out the steps to reproduce your bug.
placeholder: |
1. Go to...
2. With this config...
3. Click on '...'
4. See error...
validations:
required: true

- type: input
attributes:
label: Last Good Version
description: |
Was it working in a previous version? If yes, which update did it stop working? If you don't know, when was the last date you were aware it was working
placeholder: "MM/DD/YYYY"
validations:
required: false

- type: textarea
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem.
placeholder: Click here to attach your screenshots via the editor button in the top right.
validations:
required: false
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
blank_issues_enabled: false
contact_links:
- name: Discord
url: https://discord.gg/a8z5CyS3eW
about: "Github issues are ONLY for bug reports and feature requests. Check #skada-faq and #skada-support channels on Discord before creating a new issue."
- name: Wrath of the Lich King (3.3.5)
url: https://github.com/bkader/Skada-WoTLK/issues/new/choose
about: Private Servers
- name: Cataclysm (4.x.x)
url: https://github.com/bkader/Skada-Cata/issues/new/choose
about: Private Servers
- name: Dragonflight and Classic Wrath
url: https://github.com/bkader/Skada-Damage-Meter/issues/new/choose
about: Retail
39 changes: 39 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: "✨ Feature Request"
description: "Suggest an idea for this project"
title: "[Request]: "
labels: ["type: feature request"]
assignees:
- bkader
body:
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe.
description: A clear and concise description of what the problem is.
placeholder: The addon is not [...]
validations:
required: true

- type: textarea
attributes:
label: Desired Solution
description: Describe the solution you'd like
placeholder: The addon should [...]
validations:
required: true

- type: textarea
attributes:
label: Describe alternatives you've considered
description: A clear and concise description of any alternative solutions or features you've considered or seen elsewhere
placeholder: I saw the addon X doing Y [...]
validations:
required: false

- type: textarea
attributes:
label: Anything else?
description: |
Links? References? Streams? Anything that will give us more context about the issue you are encountering!
Tip: You can attach images or video files by clicking this area to highlight it and then dragging files in.
validations:
required: false
62 changes: 62 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: lint

on:
pull_request:
paths:
- "**.lua"

jobs:
lint:
runs-on: ubuntu-latest

env:
LUA_VERSION: 5.1.5
LUAROCKS_VERSION: 2.4.2

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache Lua
uses: actions/cache@v1
id: luacache
with:
path: .lua
key: ${{ runner.os }}-lua-${{ env.LUA_VERSION }}
restore-keys: |
${{ runner.os }}-lua-${{ env.LUA_VERSION }}
- name: Cache LuaRocks
uses: actions/cache@v1
id: luarockscache
with:
path: .luarocks
key: ${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }}
restore-keys: |
${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }}
- name: Install Lua
if: steps.luacache.outputs.cache-hit != 'true'
run: |
sudo apt-get install libreadline-dev libncurses-dev
wget https://www.lua.org/ftp/lua-${{ env.LUA_VERSION }}.tar.gz -O - | tar -xzf -
cd lua-${{ env.LUA_VERSION }}
make linux
make -j INSTALL_TOP=$GITHUB_WORKSPACE/.lua install
rm -rf $GITHUB_WORKSPACE/lua-${{ env.LUA_VERSION }}
- name: Install LuaRocks and Luacheck
if: steps.luarockscache.outputs.cache-hit != 'true'
run: |
wget https://luarocks.org/releases/luarocks-${{ env.LUAROCKS_VERSION }}.tar.gz -O - | tar -xzf -
cd luarocks-${{ env.LUAROCKS_VERSION }}
./configure --with-lua-bin=$GITHUB_WORKSPACE/.lua/bin --prefix=$GITHUB_WORKSPACE/.luarocks
make build
make install
PATH=$PATH:$GITHUB_WORKSPACE/.luarocks/bin
luarocks install luacheck
luarocks install lanes
rm -rf $GITHUB_WORKSPACE/luarocks-${{ env.LUAROCKS_VERSION }}
- name: Luacheck
run: .luarocks/bin/luacheck . -q
62 changes: 62 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: lint

on:
push:
paths:
- ".github/workflows/**.yml"
- "**.lua"

jobs:
lint:
runs-on: ubuntu-latest

env:
LUA_VERSION: 5.1.5
LUAROCKS_VERSION: 2.4.2

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache Lua
uses: actions/cache@v2
id: luacache
with:
path: .lua
key: ${{ runner.os }}-lua-${{ env.LUA_VERSION }}
restore-keys: |
${{ runner.os }}-lua-${{ env.LUA_VERSION }}
- name: Cache LuaRocks
uses: actions/cache@v2
id: luarockscache
with:
path: .luarocks
key: ${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }}
restore-keys: ${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }}

- name: Install Lua
if: steps.luacache.outputs.cache-hit != 'true'
run: |
sudo apt-get install libreadline-dev libncurses-dev
wget https://www.lua.org/ftp/lua-${{ env.LUA_VERSION }}.tar.gz -O - | tar -xzf -
cd lua-${{ env.LUA_VERSION }}
make linux
make -j INSTALL_TOP=$GITHUB_WORKSPACE/.lua install
rm -rf $GITHUB_WORKSPACE/lua-${{ env.LUA_VERSION }}
- name: Install LuaRocks and Luacheck
if: steps.luarockscache.outputs.cache-hit != 'true'
run: |
wget https://luarocks.org/releases/luarocks-${{ env.LUAROCKS_VERSION }}.tar.gz -O - | tar -xzf -
cd luarocks-${{ env.LUAROCKS_VERSION }}
./configure --with-lua-bin=$GITHUB_WORKSPACE/.lua/bin --prefix=$GITHUB_WORKSPACE/.luarocks
make build
make install
PATH=$PATH:$GITHUB_WORKSPACE/.luarocks/bin
luarocks install luacheck
luarocks install lanes
rm -rf $GITHUB_WORKSPACE/luarocks-${{ env.LUAROCKS_VERSION }}
- name: Luacheck
run: .luarocks/bin/luacheck . -q
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
_dev
Makefile
*_bak*.*
*.zip
*.7z
*.sublime-project
*.sublime-workspace
*.todolist
Loading

0 comments on commit d96890c

Please sign in to comment.