Skip to content

Commit 9aa6500

Browse files
committed
Initial Commit!
0 parents  commit 9aa6500

File tree

187 files changed

+104118
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

187 files changed

+104118
-0
lines changed

.editorconfig

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
trim_trailing_whitespace = true
7+
insert_final_newline = false
8+
9+
[*.{lua,xml,toc,luacheckrc}]
10+
indent_style = tab
11+
tab_width = 4
12+
13+
[*.{lua,xml,toc}]
14+
insert_final_newline = true
15+
16+
[*/Libs/**.{lua,xml,toc}]
17+
trim_trailing_whitespace = false
18+
insert_final_newline = none
19+
20+
[*.{md,yml,gitattributes,gitignore}]
21+
indent_style = space
22+
indent_size = 2

.gitattributes

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.github export-ignore
2+
.gitattributes export-ignore
3+
.gitignore export-ignore
4+
.luacheckrc export-ignore
5+
.travis.yml export-ignore
6+
.editorconfig export-ignore
7+
README.md export-ignore
8+
CHANGELOG.md export-ignore
9+
CITATION.cff export-ignore
10+
11+
* text=auto
12+
*.gitattributes text eol=lf
13+
*.lua text eol=lf
14+
*.toc text eol=lf
15+
*.xml text eol=lf
16+
*.md text eol=lf
17+
18+
# GitHub
19+
.github text
20+
.gitattributes text
21+
*.md text
22+
23+
# Source files
24+
*.lua text
25+
*.xml text
26+
*.toc text
27+
28+
# Fonts
29+
*.ttf binary
30+
31+
# Sounds
32+
*.ogg binary
33+
*.mp3 binary
34+
*.wav binary
35+
36+
# Textures
37+
*.blp binary
38+
*.tga binary

.github/FUNDING.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# These are supported funding model platforms
2+
3+
ko_fi: bkader
4+
liberapay: bkader
5+
custom: https://www.buymeacoffee.com/bkader

.github/ISSUE_TEMPLATE/bug_report.yml

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: "🪲 Bug Report"
2+
description: Create a report to help us improve this project
3+
title: "[Bug]: "
4+
labels: ["type: bug"]
5+
assignees:
6+
- bkader
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Please search for existing issues before creating a new one.
12+
13+
- type: checkboxes
14+
attributes:
15+
label: Are you using the latest version of the addon?
16+
options:
17+
- label: "Yes"
18+
- label: "No"
19+
validations:
20+
required: true
21+
22+
- type: input
23+
attributes:
24+
label: Addon Version
25+
description: "`/skada version` to check your current version (including the date and time)."
26+
placeholder: "Version: 1.8.84 - Date: 2023-02-21 @ 22:03 UTC"
27+
validations:
28+
required: true
29+
30+
- type: checkboxes
31+
attributes:
32+
label: Did you try having only this addon enabled?
33+
options:
34+
- label: "Yes"
35+
- label: "No"
36+
validations:
37+
required: true
38+
39+
- type: textarea
40+
attributes:
41+
label: Current Behavior
42+
description: A concise description of what you're experiencing.
43+
validations:
44+
required: true
45+
46+
- type: textarea
47+
attributes:
48+
label: Expected Behavior
49+
description: What did you expect to happen?
50+
validations:
51+
required: true
52+
53+
- type: textarea
54+
attributes:
55+
label: Lua Error
56+
description: "Paste your LUA error if you have any (enable error reporting: `/console scriptErrors 1`)"
57+
validations:
58+
required: false
59+
60+
- type: textarea
61+
attributes:
62+
label: Reproduction Steps
63+
description: Please list out the steps to reproduce your bug.
64+
placeholder: |
65+
1. Go to...
66+
2. With this config...
67+
3. Click on '...'
68+
4. See error...
69+
validations:
70+
required: true
71+
72+
- type: input
73+
attributes:
74+
label: Last Good Version
75+
description: |
76+
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
77+
placeholder: "MM/DD/YYYY"
78+
validations:
79+
required: false
80+
81+
- type: textarea
82+
attributes:
83+
label: Screenshots
84+
description: If applicable, add screenshots to help explain your problem.
85+
placeholder: Click here to attach your screenshots via the editor button in the top right.
86+
validations:
87+
required: false

.github/ISSUE_TEMPLATE/config.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Discord
4+
url: https://discord.gg/a8z5CyS3eW
5+
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."
6+
- name: Wrath of the Lich King (3.3.5)
7+
url: https://github.com/bkader/Skada-WoTLK/issues/new/choose
8+
about: Private Servers
9+
- name: Cataclysm (4.x.x)
10+
url: https://github.com/bkader/Skada-Cata/issues/new/choose
11+
about: Private Servers
12+
- name: Dragonflight and Classic Wrath
13+
url: https://github.com/bkader/Skada-Damage-Meter/issues/new/choose
14+
about: Retail
+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "✨ Feature Request"
2+
description: "Suggest an idea for this project"
3+
title: "[Request]: "
4+
labels: ["type: feature request"]
5+
assignees:
6+
- bkader
7+
body:
8+
- type: textarea
9+
attributes:
10+
label: Is your feature request related to a problem? Please describe.
11+
description: A clear and concise description of what the problem is.
12+
placeholder: The addon is not [...]
13+
validations:
14+
required: true
15+
16+
- type: textarea
17+
attributes:
18+
label: Desired Solution
19+
description: Describe the solution you'd like
20+
placeholder: The addon should [...]
21+
validations:
22+
required: true
23+
24+
- type: textarea
25+
attributes:
26+
label: Describe alternatives you've considered
27+
description: A clear and concise description of any alternative solutions or features you've considered or seen elsewhere
28+
placeholder: I saw the addon X doing Y [...]
29+
validations:
30+
required: false
31+
32+
- type: textarea
33+
attributes:
34+
label: Anything else?
35+
description: |
36+
Links? References? Streams? Anything that will give us more context about the issue you are encountering!
37+
Tip: You can attach images or video files by clicking this area to highlight it and then dragging files in.
38+
validations:
39+
required: false

.github/workflows/lint-pr.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: lint
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "**.lua"
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
12+
env:
13+
LUA_VERSION: 5.1.5
14+
LUAROCKS_VERSION: 2.4.2
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Cache Lua
21+
uses: actions/cache@v1
22+
id: luacache
23+
with:
24+
path: .lua
25+
key: ${{ runner.os }}-lua-${{ env.LUA_VERSION }}
26+
restore-keys: |
27+
${{ runner.os }}-lua-${{ env.LUA_VERSION }}
28+
29+
- name: Cache LuaRocks
30+
uses: actions/cache@v1
31+
id: luarockscache
32+
with:
33+
path: .luarocks
34+
key: ${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }}
35+
restore-keys: |
36+
${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }}
37+
38+
- name: Install Lua
39+
if: steps.luacache.outputs.cache-hit != 'true'
40+
run: |
41+
sudo apt-get install libreadline-dev libncurses-dev
42+
wget https://www.lua.org/ftp/lua-${{ env.LUA_VERSION }}.tar.gz -O - | tar -xzf -
43+
cd lua-${{ env.LUA_VERSION }}
44+
make linux
45+
make -j INSTALL_TOP=$GITHUB_WORKSPACE/.lua install
46+
rm -rf $GITHUB_WORKSPACE/lua-${{ env.LUA_VERSION }}
47+
48+
- name: Install LuaRocks and Luacheck
49+
if: steps.luarockscache.outputs.cache-hit != 'true'
50+
run: |
51+
wget https://luarocks.org/releases/luarocks-${{ env.LUAROCKS_VERSION }}.tar.gz -O - | tar -xzf -
52+
cd luarocks-${{ env.LUAROCKS_VERSION }}
53+
./configure --with-lua-bin=$GITHUB_WORKSPACE/.lua/bin --prefix=$GITHUB_WORKSPACE/.luarocks
54+
make build
55+
make install
56+
PATH=$PATH:$GITHUB_WORKSPACE/.luarocks/bin
57+
luarocks install luacheck
58+
luarocks install lanes
59+
rm -rf $GITHUB_WORKSPACE/luarocks-${{ env.LUAROCKS_VERSION }}
60+
61+
- name: Luacheck
62+
run: .luarocks/bin/luacheck . -q

.github/workflows/lint.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: lint
2+
3+
on:
4+
push:
5+
paths:
6+
- ".github/workflows/**.yml"
7+
- "**.lua"
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
env:
14+
LUA_VERSION: 5.1.5
15+
LUAROCKS_VERSION: 2.4.2
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
21+
- name: Cache Lua
22+
uses: actions/cache@v2
23+
id: luacache
24+
with:
25+
path: .lua
26+
key: ${{ runner.os }}-lua-${{ env.LUA_VERSION }}
27+
restore-keys: |
28+
${{ runner.os }}-lua-${{ env.LUA_VERSION }}
29+
30+
- name: Cache LuaRocks
31+
uses: actions/cache@v2
32+
id: luarockscache
33+
with:
34+
path: .luarocks
35+
key: ${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }}
36+
restore-keys: ${{ runner.os }}-luarocks-${{ env.LUAROCKS_VERSION }}
37+
38+
- name: Install Lua
39+
if: steps.luacache.outputs.cache-hit != 'true'
40+
run: |
41+
sudo apt-get install libreadline-dev libncurses-dev
42+
wget https://www.lua.org/ftp/lua-${{ env.LUA_VERSION }}.tar.gz -O - | tar -xzf -
43+
cd lua-${{ env.LUA_VERSION }}
44+
make linux
45+
make -j INSTALL_TOP=$GITHUB_WORKSPACE/.lua install
46+
rm -rf $GITHUB_WORKSPACE/lua-${{ env.LUA_VERSION }}
47+
48+
- name: Install LuaRocks and Luacheck
49+
if: steps.luarockscache.outputs.cache-hit != 'true'
50+
run: |
51+
wget https://luarocks.org/releases/luarocks-${{ env.LUAROCKS_VERSION }}.tar.gz -O - | tar -xzf -
52+
cd luarocks-${{ env.LUAROCKS_VERSION }}
53+
./configure --with-lua-bin=$GITHUB_WORKSPACE/.lua/bin --prefix=$GITHUB_WORKSPACE/.luarocks
54+
make build
55+
make install
56+
PATH=$PATH:$GITHUB_WORKSPACE/.luarocks/bin
57+
luarocks install luacheck
58+
luarocks install lanes
59+
rm -rf $GITHUB_WORKSPACE/luarocks-${{ env.LUAROCKS_VERSION }}
60+
61+
- name: Luacheck
62+
run: .luarocks/bin/luacheck . -q

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
_dev
2+
Makefile
3+
*_bak*.*
4+
*.zip
5+
*.7z
6+
*.sublime-project
7+
*.sublime-workspace
8+
*.todolist

0 commit comments

Comments
 (0)