Skip to content

Commit

Permalink
Updated packages + fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
McFizh committed Aug 2, 2024
1 parent e3e7aba commit 2922939
Show file tree
Hide file tree
Showing 17 changed files with 1,762 additions and 3,100 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '14.x'
node-version: "22.x"
- run: npm ci
- run: npm test
6 changes: 4 additions & 2 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
### Changelog

- **v2.0.0** - xx.xx.2023
- **v2.0.0** - 2.8.2024

- Refactored folder structure
- Added support for jquery3 and removed support for jquery 1 & 2
- Added support for jquery 3 and removed support for versions 1 & 2
- Updated packages + build tools
- Removed bower
- Replaced travis with github actions
- Updated qunit from 1 to 2
- Partial code clean (vars to let/const)

- **v1.3.1** - 15.3.2016

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Pekka Harjamäki
Copyright (c) 2024 Pekka Harjamäki

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ Official homepage of slimtable: [https://slimtable.mcfish.org](https://slimtable

### Supported jQuery version

- jQuery >= 3.0
- jQuery >= 3.6

### Supported browsers

- FireFox 102+
- Chrome 103+
- IE Edge 103+
- FireFox 110+
- Chrome 113+
- IE Edge 113+

Might work with other browsers, but these are the ones that are officially supported.

Expand Down
1 change: 1 addition & 0 deletions demo/dist
49 changes: 49 additions & 0 deletions demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Slimtable demo</title>

<!-- Load jquery 3.7 -->
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="dist/js/slimtable.min.js"></script>
<link rel="stylesheet" href="dist/css/slimtable.css">
</head>
<body>

<table id='demoTable'>
<thead>
<tr>
<th>ID</th>
<th>First name</th>
<th>Last name</th>
<th>Age</th>
<th>Iq</th>
<th>Company</th>
</tr>
</thead>

<tbody>
<tr data-id="1"><td>1</td><td>Alisa</td><td>Smith</td><td>34</td><td>142.6</td><td>Unemployed</td></tr>
<tr data-id="1"><td>2</td><td>Eamon</td><td>Jones</td><td>26</td><td>108,3</td><td>Example corp</td></tr>
<tr data-id="1"><td>3</td><td>David</td><td>Brown</td><td>22</td><td>135,4</td><td>Example corp</td></tr>
<tr data-id="1"><td>4</td><td>Joseph</td><td>Taylor</td><td>43</td><td>141.1</td><td>Example corp</td></tr>
<tr data-id="1"><td>5</td><td>Thomas</td><td>Moore</td><td>67</td><td>109.7</td><td>Nextgen corp</td></tr>
<tr data-id="1"><td>6</td><td>Daniel</td><td>White</td><td>19</td><td>197,3</td><td>Unemployed</td></tr>
<tr data-id="1"><td>7</td><td>Steven</td><td>Harris</td><td>38</td><td>109.6</td><td>Nextgen corp</td></tr>
<tr data-id="1"><td>8</td><td>Brian</td><td>Clark</td><td>82</td><td>-50,2</td><td>Metalking</td></tr>
<tr data-id="1"><td>9</td><td>Kevin</td><td>Lewis</td><td>71</td><td>121.3</td><td>Metalking</td></tr>
<tr data-id="1"><td>10</td><td>Jason</td><td>Allen</td><td>58</td><td>128.2</td><td>Example corp</td></tr>
<tr data-id="1"><td>11</td><td>Mary</td><td>Walker</td><td>32</td><td>138.10</td><td>Prevgen</td></tr>
<tr data-id="1"><td>12</td><td>Lisa</td><td>Young</td><td>33</td><td>119.784</td><td>Example corp</td></tr>
<tr data-id="1"><td>13</td><td>Nancy</td><td>King</td><td>64</td><td>140.929</td><td>Fakecorp</td></tr>
<tr data-id="1"><td>14</td><td>Brian</td><td>White</td><td>38</td><td>-33.2</td><td>Prevgen</td></tr>
<tr data-id="1"><td>15</td><td>Stewen</td><td></td><td>22</td><td>141.21</td><td>Fakecorp</td></tr>
</tbody>

</table>
<script>
$("#demoTable").slimtable();
</script>
</body>
</html>
7 changes: 4 additions & 3 deletions dist/js/slimtable.min.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ module.exports = function (grunt) {
},

qunit: {
all: ["tests/*.html"],
options: {
puppeteer: {
args: [ "--disable-web-security" ]
}
},
all: ["tests/*.html"]
},
});

Expand Down
Loading

0 comments on commit 2922939

Please sign in to comment.