tablefilter 0.7.4 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/starter.html +2 -2
- package/dist/tablefilter/style/colsVisibility.css +1 -1
- package/dist/tablefilter/style/filtersVisibility.css +1 -1
- package/dist/tablefilter/style/tablefilter.css +1 -1
- package/dist/tablefilter/style/themes/default/default.css +1 -1
- package/dist/tablefilter/style/themes/mytheme/mytheme.css +1 -1
- package/dist/tablefilter/style/themes/skyblue/skyblue.css +1 -1
- package/dist/tablefilter/style/themes/transparent/transparent.css +1 -1
- package/dist/tablefilter/tablefilter.js +1 -1
- package/dist/tablefilter/tf-1-2aa33b10e0e549020c12.js +1 -0
- package/dist/tablefilter/tf-1-bc5a8b07e0d66035b05b.js +1 -0
- package/dist/tablefilter/tf-2-025e1e774794d5827df8.js +6 -0
- package/dist/tablefilter.cjs.js +17614 -0
- package/dist/tablefilter.esm.js +17617 -0
- package/dist/tablefilter.umd.js +17620 -0
- package/index.js +16 -1
- package/package.json +21 -5
- package/src/components/attributes.js +59 -0
- package/src/components/table-filter.js +391 -0
- package/src/components/tf-clear-button.js +95 -0
- package/src/components/tf-rows-counter.js +79 -0
- package/src/components/tf-status.js +101 -0
- package/src/extensions/sort/sort.js +8 -1
- package/src/modules/clearButton.js +65 -11
- package/src/modules/rowsCounter.js +48 -25
- package/src/modules/statusBar.js +62 -30
- package/src/sanitize.js +25 -0
- package/src/tablefilter.js +39 -6
- package/.editorconfig +0 -15
- package/.esdoc.json +0 -14
- package/.eslintrc +0 -37
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -38
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -36
- package/.github/ISSUE_TEMPLATE/support.md +0 -17
- package/.github/dependabot.yml +0 -10
- package/.github/workflows/build-deploy.yml +0 -113
- package/AGENTS.md +0 -36
- package/CONTRIBUTING.md +0 -128
- package/Gruntfile.js +0 -252
- package/PULL_REQUEST_TEMPLATE.md +0 -24
- package/ROADMAP/README.md +0 -29
- package/ROADMAP/hybrid-migration-strategy.md +0 -234
- package/ROADMAP/key-decisions-review.md +0 -213
- package/ROADMAP/preliminary-and-milestone-0.8.0-plan.md +0 -308
- package/ROADMAP/v1-webcomponents-investigation.md +0 -516
- package/dist/tablefilter/tf-1-d2360db09a424b1ed633.js +0 -1
- package/static/demos-assets/img_best-price.png +0 -0
- package/static/demos-assets/img_great-deal.png +0 -0
- package/static/demos-assets/img_maintenance.jpg +0 -0
- package/static/demos-assets/img_new-edition.png +0 -0
- package/static/demos-assets/img_sold-out.png +0 -0
- package/static/partials/books-table-with-images.html +0 -328
- package/static/partials/books.html +0 -273
- package/static/partials/countries-by-continent.html +0 -2592
- package/static/partials/countries-table-tiny.html +0 -436
- package/static/partials/countries-table.html +0 -12954
- package/static/partials/dummy-table-with-totals-footer.html +0 -353
- package/static/partials/dummy-table.html +0 -503
- package/static/partials/pre-inline-script.html +0 -17
- package/static/partials/pre.html +0 -1
- package/static/partials/style.html +0 -23
- package/static/partials/table-with-grouped-headers.html +0 -9258
- package/static/partials/tablefilter-script.html +0 -1
- package/static/style/active-header.styl +0 -10
- package/static/style/alternating-rows.styl +0 -8
- package/static/style/config.styl +0 -44
- package/static/style/extensions/colsVisibility.styl +0 -71
- package/static/style/extensions/filtersVisibility.styl +0 -18
- package/static/style/ezedittable.styl +0 -93
- package/static/style/filter-checklist.styl +0 -52
- package/static/style/filters.styl +0 -111
- package/static/style/grid-layout.styl +0 -130
- package/static/style/help.styl +0 -57
- package/static/style/keyword.styl +0 -8
- package/static/style/loader.styl +0 -16
- package/static/style/mixins/arrow.styl +0 -63
- package/static/style/mixins/box-shadow.styl +0 -8
- package/static/style/mixins/empty-content.styl +0 -7
- package/static/style/noresults.styl +0 -14
- package/static/style/paging.styl +0 -73
- package/static/style/reset-button.styl +0 -21
- package/static/style/rows-counter.styl +0 -17
- package/static/style/sort.styl +0 -20
- package/static/style/status-bar.styl +0 -16
- package/static/style/table.styl +0 -44
- package/static/style/tablefilter.styl +0 -18
- package/static/style/themes/blank.png +0 -0
- package/static/style/themes/btn_clear_filters.png +0 -0
- package/static/style/themes/btn_filter.png +0 -0
- package/static/style/themes/btn_first_page.gif +0 -0
- package/static/style/themes/btn_last_page.gif +0 -0
- package/static/style/themes/btn_next_page.gif +0 -0
- package/static/style/themes/btn_previous_page.gif +0 -0
- package/static/style/themes/default/default.styl +0 -137
- package/static/style/themes/default/images/bg_infDiv.jpg +0 -0
- package/static/style/themes/default/images/bg_th.jpg +0 -0
- package/static/style/themes/default/images/btn_eraser.gif +0 -0
- package/static/style/themes/default/images/btn_first_page.gif +0 -0
- package/static/style/themes/default/images/btn_last_page.gif +0 -0
- package/static/style/themes/default/images/btn_next_page.gif +0 -0
- package/static/style/themes/default/images/btn_over_eraser.gif +0 -0
- package/static/style/themes/default/images/btn_over_first_page.gif +0 -0
- package/static/style/themes/default/images/btn_over_last_page.gif +0 -0
- package/static/style/themes/default/images/btn_over_next_page.gif +0 -0
- package/static/style/themes/default/images/btn_over_previous_page.gif +0 -0
- package/static/style/themes/default/images/btn_previous_page.gif +0 -0
- package/static/style/themes/default/images/img_loading.gif +0 -0
- package/static/style/themes/downsimple.png +0 -0
- package/static/style/themes/icn_clp.png +0 -0
- package/static/style/themes/icn_exp.png +0 -0
- package/static/style/themes/icn_filter.gif +0 -0
- package/static/style/themes/icn_filterActive.gif +0 -0
- package/static/style/themes/mytheme/images/bg_headers.jpg +0 -0
- package/static/style/themes/mytheme/images/bg_infDiv.jpg +0 -0
- package/static/style/themes/mytheme/images/btn_filter.png +0 -0
- package/static/style/themes/mytheme/images/btn_first_page.gif +0 -0
- package/static/style/themes/mytheme/images/btn_last_page.gif +0 -0
- package/static/style/themes/mytheme/images/btn_next_page.gif +0 -0
- package/static/style/themes/mytheme/images/btn_previous_page.gif +0 -0
- package/static/style/themes/mytheme/images/img_loading.gif +0 -0
- package/static/style/themes/mytheme/mytheme.styl +0 -152
- package/static/style/themes/skyblue/images/bg_skyblue.gif +0 -0
- package/static/style/themes/skyblue/images/btn_first_page.gif +0 -0
- package/static/style/themes/skyblue/images/btn_last_page.gif +0 -0
- package/static/style/themes/skyblue/images/btn_next_page.gif +0 -0
- package/static/style/themes/skyblue/images/btn_prev_page.gif +0 -0
- package/static/style/themes/skyblue/images/icn_clear_filters.png +0 -0
- package/static/style/themes/skyblue/images/img_loading.gif +0 -0
- package/static/style/themes/skyblue/skyblue.styl +0 -195
- package/static/style/themes/transparent/images/btn_first_page.gif +0 -0
- package/static/style/themes/transparent/images/btn_last_page.gif +0 -0
- package/static/style/themes/transparent/images/btn_next_page.gif +0 -0
- package/static/style/themes/transparent/images/btn_prev_page.gif +0 -0
- package/static/style/themes/transparent/images/icn_clear_filters.png +0 -0
- package/static/style/themes/transparent/images/img_loading.gif +0 -0
- package/static/style/themes/transparent/transparent.styl +0 -205
- package/static/style/themes/upsimple.png +0 -0
- package/static/style/toolbar.styl +0 -58
- package/static/templates/advanced-grid-editable.html +0 -140
- package/static/templates/advanced-grid-selection.html +0 -93
- package/static/templates/auto-filter.html +0 -46
- package/static/templates/columns-visibility.html +0 -67
- package/static/templates/data-types.html +0 -123
- package/static/templates/demo.html +0 -62
- package/static/templates/external-filters-visibility-commad.html +0 -49
- package/static/templates/external-filters.html +0 -125
- package/static/templates/filter-images.html +0 -91
- package/static/templates/filters-visibility.html +0 -45
- package/static/templates/grid-layout.html +0 -51
- package/static/templates/grouped-headers.html +0 -78
- package/static/templates/linked-filters-disabled.html +0 -56
- package/static/templates/linked-filters.html +0 -45
- package/static/templates/load-filters-on-demand.html +0 -42
- package/static/templates/pagination.html +0 -78
- package/static/templates/requirejs.html +0 -53
- package/static/templates/starter.html +0 -61
- package/static/templates/theme-roller.html +0 -106
- package/test/libs/polyfill.js +0 -359
- package/test/libs/qunit/qunit.css +0 -237
- package/test/libs/qunit/qunit.js +0 -2495
- package/test/test-active-columns.html +0 -80
- package/test/test-active-columns.js +0 -318
- package/test/test-alternate-rows.html +0 -80
- package/test/test-alternate-rows.js +0 -335
- package/test/test-api.html +0 -141
- package/test/test-api.js +0 -795
- package/test/test-auto-filter.html +0 -80
- package/test/test-auto-filter.js +0 -43
- package/test/test-callbacks.html +0 -78
- package/test/test-callbacks.js +0 -58
- package/test/test-case-sensitive-query.html +0 -78
- package/test/test-case-sensitive-query.js +0 -39
- package/test/test-cell-parser.html +0 -109
- package/test/test-cell-parser.js +0 -80
- package/test/test-checklist.html +0 -78
- package/test/test-checklist.js +0 -267
- package/test/test-clear-button.html +0 -79
- package/test/test-clear-button.js +0 -182
- package/test/test-col-ops-grid-layout.html +0 -129
- package/test/test-col-ops-grid-layout.js +0 -134
- package/test/test-col-ops-paging.html +0 -129
- package/test/test-col-ops-paging.js +0 -154
- package/test/test-col-ops.html +0 -129
- package/test/test-col-ops.js +0 -337
- package/test/test-col-widths.html +0 -80
- package/test/test-col-widths.js +0 -40
- package/test/test-cols-visibility-grid-layout.html +0 -80
- package/test/test-cols-visibility-grid-layout.js +0 -165
- package/test/test-cols-visibility.html +0 -80
- package/test/test-cols-visibility.js +0 -121
- package/test/test-custom-options.html +0 -80
- package/test/test-custom-options.js +0 -139
- package/test/test-data-types.html +0 -377
- package/test/test-data-types.js +0 -392
- package/test/test-date-type.html +0 -356
- package/test/test-date-type.js +0 -159
- package/test/test-disable-enter-key.html +0 -78
- package/test/test-disable-enter-key.js +0 -29
- package/test/test-disable-filter-onchange.html +0 -78
- package/test/test-disable-filter-onchange.js +0 -40
- package/test/test-dom-changes.html +0 -78
- package/test/test-dom-changes.js +0 -166
- package/test/test-dropdown.html +0 -78
- package/test/test-dropdown.js +0 -246
- package/test/test-emitter.html +0 -78
- package/test/test-emitter.js +0 -57
- package/test/test-empty-cells-filtering.html +0 -8696
- package/test/test-empty-cells-filtering.js +0 -45
- package/test/test-exact-query-match.html +0 -78
- package/test/test-exact-query-match.js +0 -56
- package/test/test-excluded-rows.html +0 -92
- package/test/test-excluded-rows.js +0 -129
- package/test/test-external-filters.html +0 -100
- package/test/test-external-filters.js +0 -219
- package/test/test-filter-html-elements.html +0 -88
- package/test/test-filter-html-elements.js +0 -63
- package/test/test-filter-operators.html +0 -80
- package/test/test-filter-operators.js +0 -264
- package/test/test-filtering.html +0 -53
- package/test/test-filtering.js +0 -293
- package/test/test-filters-visibility-grid-layout.html +0 -80
- package/test/test-filters-visibility-grid-layout.js +0 -50
- package/test/test-filters-visibility-with-button.html +0 -80
- package/test/test-filters-visibility-with-button.js +0 -48
- package/test/test-filters-visibility.html +0 -80
- package/test/test-filters-visibility.js +0 -48
- package/test/test-grid-layout.html +0 -7736
- package/test/test-grid-layout.js +0 -39
- package/test/test-grouped-headers.html +0 -154
- package/test/test-grouped-headers.js +0 -107
- package/test/test-hash.html +0 -78
- package/test/test-hash.js +0 -88
- package/test/test-help-responsive.html +0 -79
- package/test/test-help-responsive.js +0 -70
- package/test/test-help.html +0 -78
- package/test/test-help.js +0 -217
- package/test/test-highlight-keywords.html +0 -78
- package/test/test-highlight-keywords.js +0 -94
- package/test/test-ignore-diacritics.html +0 -67
- package/test/test-ignore-diacritics.js +0 -117
- package/test/test-integration-paging-sort.html +0 -80
- package/test/test-integration-paging-sort.js +0 -60
- package/test/test-linked-filters-disabled-options-grid-layout.html +0 -80
- package/test/test-linked-filters-disabled-options-grid-layout.js +0 -73
- package/test/test-linked-filters-grid-layout.html +0 -80
- package/test/test-linked-filters-grid-layout.js +0 -72
- package/test/test-linked-filters-load-filters-on-demand.html +0 -80
- package/test/test-linked-filters-load-filters-on-demand.js +0 -99
- package/test/test-linked-filters-paging.html +0 -80
- package/test/test-linked-filters-paging.js +0 -99
- package/test/test-linked-filters.html +0 -80
- package/test/test-linked-filters.js +0 -138
- package/test/test-load-filters-on-demand.html +0 -78
- package/test/test-load-filters-on-demand.js +0 -124
- package/test/test-loader.html +0 -79
- package/test/test-loader.js +0 -159
- package/test/test-no-config.html +0 -80
- package/test/test-no-config.js +0 -63
- package/test/test-no-filters.html +0 -80
- package/test/test-no-filters.js +0 -172
- package/test/test-no-headers.html +0 -71
- package/test/test-no-headers.js +0 -99
- package/test/test-no-results-message.html +0 -262
- package/test/test-no-results-message.js +0 -222
- package/test/test-no-rows.html +0 -19
- package/test/test-no-rows.js +0 -10
- package/test/test-one-row.html +0 -29
- package/test/test-one-row.js +0 -18
- package/test/test-paging.html +0 -78
- package/test/test-paging.js +0 -273
- package/test/test-popup-filter-one-row.html +0 -38
- package/test/test-popup-filter-one-row.js +0 -138
- package/test/test-popup-filter.html +0 -78
- package/test/test-popup-filter.js +0 -384
- package/test/test-popup-filters-grouped-headers.html +0 -104
- package/test/test-popup-filters-grouped-headers.js +0 -206
- package/test/test-rows-counter.html +0 -78
- package/test/test-rows-counter.js +0 -112
- package/test/test-single-filter.html +0 -79
- package/test/test-single-filter.js +0 -138
- package/test/test-sort-custom-sorter.html +0 -244
- package/test/test-sort-custom-sorter.js +0 -74
- package/test/test-sort-grid-layout.html +0 -143
- package/test/test-sort-grid-layout.js +0 -86
- package/test/test-sort-key.html +0 -244
- package/test/test-sort-key.js +0 -67
- package/test/test-sort.html +0 -143
- package/test/test-sort.js +0 -126
- package/test/test-state.html +0 -78
- package/test/test-state.js +0 -369
- package/test/test-status-bar.html +0 -79
- package/test/test-status-bar.js +0 -146
- package/test/test-storage-cookie.html +0 -78
- package/test/test-storage-cookie.js +0 -82
- package/test/test-storage-local.html +0 -78
- package/test/test-storage-local.js +0 -82
- package/test/test-tfoot.html +0 -96
- package/test/test-tfoot.js +0 -123
- package/test/test-thead.html +0 -80
- package/test/test-thead.js +0 -69
- package/test/test-toolbar.html +0 -81
- package/test/test-toolbar.js +0 -218
- package/test/test-uneven-rows.html +0 -95
- package/test/test-uneven-rows.js +0 -61
- package/test/test-watermark.html +0 -80
- package/test/test-watermark.js +0 -103
- package/test/test.html +0 -141
- package/test/test.js +0 -162
- package/webpack.config.js +0 -87
- package/webpack.dev.config.js +0 -25
- package/webpack.test.config.js +0 -44
package/.eslintrc
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"parser": "babel-eslint",
|
|
3
|
-
"parserOptions": {
|
|
4
|
-
"sourceType": "module",
|
|
5
|
-
"ecmaFeatures": { "modules": true }
|
|
6
|
-
},
|
|
7
|
-
"rules": {
|
|
8
|
-
"max-len": [2, 80, 2, {"ignoreUrls": true}],
|
|
9
|
-
"indent": [2, 4, {"SwitchCase": 1}],
|
|
10
|
-
"semi": ["error", "always"],
|
|
11
|
-
"no-trailing-spaces": 2,
|
|
12
|
-
"no-multi-spaces": 2,
|
|
13
|
-
"array-bracket-spacing": 2,
|
|
14
|
-
"keyword-spacing": ["error", { "after": true, "before": true }],
|
|
15
|
-
"max-depth": [2, 7],
|
|
16
|
-
"max-statements": [2, 133],
|
|
17
|
-
"complexity": [2, 45],
|
|
18
|
-
"no-unused-vars": 2,
|
|
19
|
-
"no-eval": 2,
|
|
20
|
-
"no-underscore-dangle": 0,
|
|
21
|
-
"no-loop-func": 2,
|
|
22
|
-
"no-floating-decimal": 2,
|
|
23
|
-
"curly": 2,
|
|
24
|
-
"eqeqeq": [2, "smart"],
|
|
25
|
-
"quotes": [2, "single"],
|
|
26
|
-
"new-cap": 2,
|
|
27
|
-
"radix": [2, "always"]
|
|
28
|
-
},
|
|
29
|
-
"env": {
|
|
30
|
-
"es6": true,
|
|
31
|
-
"browser": true,
|
|
32
|
-
"node": false
|
|
33
|
-
},
|
|
34
|
-
"globals": {
|
|
35
|
-
"__webpack_public_path__": false
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Bug report
|
|
3
|
-
about: Create a report to help us improve
|
|
4
|
-
title: ''
|
|
5
|
-
labels: bug
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Describe the bug**
|
|
11
|
-
A clear and concise description of what the bug is.
|
|
12
|
-
|
|
13
|
-
**Reproduction steps:**
|
|
14
|
-
Steps to reproduce the behavior:
|
|
15
|
-
1. [First Step]
|
|
16
|
-
2. [Second Step]
|
|
17
|
-
3. [Other Steps...]
|
|
18
|
-
|
|
19
|
-
**Expected behavior**
|
|
20
|
-
A clear and concise description of what you expected to happen.
|
|
21
|
-
|
|
22
|
-
**Observed behavior:**
|
|
23
|
-
A clear and concise description of observed behavior.
|
|
24
|
-
|
|
25
|
-
**Screenshots**
|
|
26
|
-
If applicable, add screenshots to help explain your problem.
|
|
27
|
-

|
|
28
|
-
|
|
29
|
-
**TableFilter version:** [Enter TableFilter version here]
|
|
30
|
-
**Browser and version:** [Enter Browser name and version here]
|
|
31
|
-
**OS and version:** [Enter OS name and version here]
|
|
32
|
-
**Device:** [e.g. iPhone6]
|
|
33
|
-
|
|
34
|
-
**Additional information/context:**
|
|
35
|
-
Add any other context about the problem here.
|
|
36
|
-
|
|
37
|
-
* Problem started happening recently, didn't happen in an older version of TableFilter: [Yes/No] if yes [version here]
|
|
38
|
-
* Problem can be reliably reproduced, doesn't happen randomly: [Yes/No]
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Feature request
|
|
3
|
-
about: Suggest an idea for this project
|
|
4
|
-
title: ''
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
**Enhancement/feature description**
|
|
11
|
-
[A clear and concise description of what the problem is. Ex. I'm always frustrated when ...]
|
|
12
|
-
|
|
13
|
-
**Steps which explain the enhancement/feature**
|
|
14
|
-
1. [First Step]
|
|
15
|
-
2. [Second Step]
|
|
16
|
-
3. [Other Steps...]
|
|
17
|
-
|
|
18
|
-
**Current and suggested behavior**
|
|
19
|
-
[Describe current and suggested behavior here]
|
|
20
|
-
|
|
21
|
-
**Why would the enhancement be useful to most users**
|
|
22
|
-
[Explain why the enhancement would be useful to most users]
|
|
23
|
-
|
|
24
|
-
**Screenshots and GIFs**
|
|
25
|
-

|
|
26
|
-
|
|
27
|
-
**Additional context**
|
|
28
|
-
[Add any other context or screenshots about the feature request here.]
|
|
29
|
-
|
|
30
|
-
**Describe alternatives you've considered**
|
|
31
|
-
A clear and concise description of any alternative solutions or features you've considered.
|
|
32
|
-
|
|
33
|
-
**TableFilter Version:** [Enter TableFilter version here]
|
|
34
|
-
**Browser and version:** [Enter Browser name and version here]
|
|
35
|
-
**OS and version:** [Enter OS name and version here]
|
|
36
|
-
**Device:** [e.g. iPhone6]
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: Support
|
|
3
|
-
about: I need support with TableFilter
|
|
4
|
-
title: ''
|
|
5
|
-
labels: ''
|
|
6
|
-
assignees: ''
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
For usage and support questions, please check out resources below, you might find an answer:
|
|
11
|
-
|
|
12
|
-
- https://www.tablefilter.com/
|
|
13
|
-
- https://www.tablefilter.com/docs/
|
|
14
|
-
- https://www.tablefilter.com/examples.html
|
|
15
|
-
- https://github.com/koalyptus/TableFilter/wiki/
|
|
16
|
-
- https://github.com/koalyptus/TableFilter/issues?q=is%3Aissue+is%3Aclosed
|
|
17
|
-
- https://codepen.io/koalyptus/pens/public/
|
package/.github/dependabot.yml
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
name: Build and deploy
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- master
|
|
7
|
-
pull_request:
|
|
8
|
-
branches:
|
|
9
|
-
- master
|
|
10
|
-
|
|
11
|
-
permissions:
|
|
12
|
-
contents: read
|
|
13
|
-
|
|
14
|
-
jobs:
|
|
15
|
-
build:
|
|
16
|
-
runs-on: ubuntu-latest
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v4
|
|
19
|
-
with:
|
|
20
|
-
fetch-depth: 0
|
|
21
|
-
|
|
22
|
-
- uses: actions/setup-node@v4
|
|
23
|
-
with:
|
|
24
|
-
node-version: 24
|
|
25
|
-
|
|
26
|
-
- name: Pin npm version
|
|
27
|
-
run: |
|
|
28
|
-
npm install --global npm@12.0.1
|
|
29
|
-
npm --version
|
|
30
|
-
|
|
31
|
-
- name: Install dependencies
|
|
32
|
-
run: npm install --no-audit --no-fund
|
|
33
|
-
|
|
34
|
-
- uses: actions/setup-node@v4
|
|
35
|
-
with:
|
|
36
|
-
node-version: 8.9.4
|
|
37
|
-
|
|
38
|
-
- name: Test
|
|
39
|
-
run: npm test
|
|
40
|
-
|
|
41
|
-
- name: Upload coverage
|
|
42
|
-
run: npm run codecov
|
|
43
|
-
|
|
44
|
-
- uses: actions/setup-node@v4
|
|
45
|
-
with:
|
|
46
|
-
node-version: 24
|
|
47
|
-
|
|
48
|
-
- name: Build deployment files
|
|
49
|
-
run: npm run build:all
|
|
50
|
-
env:
|
|
51
|
-
NODE_OPTIONS: --openssl-legacy-provider
|
|
52
|
-
|
|
53
|
-
- name: Upload deployment files
|
|
54
|
-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
|
55
|
-
uses: actions/upload-artifact@v4
|
|
56
|
-
with:
|
|
57
|
-
name: website-files
|
|
58
|
-
path: |
|
|
59
|
-
dist/
|
|
60
|
-
docs/
|
|
61
|
-
if-no-files-found: error
|
|
62
|
-
retention-days: 1
|
|
63
|
-
|
|
64
|
-
deploy:
|
|
65
|
-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
|
66
|
-
needs: build
|
|
67
|
-
runs-on: ubuntu-latest
|
|
68
|
-
permissions:
|
|
69
|
-
contents: write
|
|
70
|
-
steps:
|
|
71
|
-
- uses: actions/checkout@v4
|
|
72
|
-
with:
|
|
73
|
-
fetch-depth: 0
|
|
74
|
-
|
|
75
|
-
- uses: actions/download-artifact@v4
|
|
76
|
-
with:
|
|
77
|
-
name: website-files
|
|
78
|
-
|
|
79
|
-
- name: Configure AWS credentials
|
|
80
|
-
uses: aws-actions/configure-aws-credentials@v4
|
|
81
|
-
with:
|
|
82
|
-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
83
|
-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
84
|
-
aws-region: ${{ vars.AWS_DEFAULT_REGION }}
|
|
85
|
-
|
|
86
|
-
- name: Publish version release
|
|
87
|
-
env:
|
|
88
|
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
89
|
-
run: |
|
|
90
|
-
set -euo pipefail
|
|
91
|
-
version=$(node -p "require('./package.json').version")
|
|
92
|
-
if ! git show-ref --verify --quiet "refs/tags/$version"; then
|
|
93
|
-
latest_tag="$(git describe --tags --abbrev=0 2>/dev/null || true)"
|
|
94
|
-
if [ "$latest_tag" != "$version" ]; then
|
|
95
|
-
git config user.name "koalyptus"
|
|
96
|
-
git config user.email "maxgug@hotmail.com"
|
|
97
|
-
git tag -a "$version" -m "Generated tag from GitHub Actions run $GITHUB_RUN_NUMBER"
|
|
98
|
-
git push origin "refs/tags/$version"
|
|
99
|
-
fi
|
|
100
|
-
fi
|
|
101
|
-
|
|
102
|
-
if ! gh release view "$version" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
|
|
103
|
-
gh release create "$version" \
|
|
104
|
-
--repo "$GITHUB_REPOSITORY" \
|
|
105
|
-
--title "$version" \
|
|
106
|
-
--notes ""
|
|
107
|
-
fi
|
|
108
|
-
|
|
109
|
-
- name: Deploy distribution to S3
|
|
110
|
-
run: aws s3 sync dist/ "s3://www.tablefilter.com/"
|
|
111
|
-
|
|
112
|
-
- name: Deploy documentation to S3
|
|
113
|
-
run: aws s3 sync docs/ "s3://www.tablefilter.com/"
|
package/AGENTS.md
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
# Agent guidelines
|
|
2
|
-
|
|
3
|
-
Work is tracked in the "TableFilter v1.0.0 Modernization" GitHub Project and
|
|
4
|
-
planned in [ROADMAP/](./ROADMAP/README.md). One issue = one small PR.
|
|
5
|
-
|
|
6
|
-
## Temporary code and follow-ups
|
|
7
|
-
|
|
8
|
-
When a change leaves temporary code behind (compat aliases, shims, duplicated
|
|
9
|
-
logic that a later task removes):
|
|
10
|
-
|
|
11
|
-
1. Mark it with a `TODO(#<issue>)` comment that links the issue that removes it:
|
|
12
|
-
`// TODO(#881): remove once contains() uses the native helper`
|
|
13
|
-
2. Add a checklist item to that issue naming the symbol to delete, plus a
|
|
14
|
-
check such as `grep "TODO(#881)" src` returning nothing.
|
|
15
|
-
3. The issue that removes the code must delete the TODO in the same PR.
|
|
16
|
-
|
|
17
|
-
Never leave a bare `TODO` without an issue number.
|
|
18
|
-
|
|
19
|
-
## Commits and PRs
|
|
20
|
-
|
|
21
|
-
- Commit and open PRs as the agent bot (see the `agent-git-setup` and
|
|
22
|
-
`agent-github-access` skills); work in a linked worktree, not the main checkout.
|
|
23
|
-
- Reference the issue in the PR body. Use `Refs #n` when the issue needs a
|
|
24
|
-
follow-up, `Closes #n` when the PR completes it (this closes the issue and
|
|
25
|
-
moves it to Done on the board).
|
|
26
|
-
|
|
27
|
-
## Running tests locally
|
|
28
|
-
|
|
29
|
-
The test toolchain (grunt-qunit, PhantomJS, Babel 6) is about ten years old and
|
|
30
|
-
breaks on current Node. CI runs `npm test` on Node 8.9.4 and builds on Node 24
|
|
31
|
-
with `NODE_OPTIONS=--openssl-legacy-provider`. Match that locally.
|
|
32
|
-
|
|
33
|
-
## Versioning
|
|
34
|
-
|
|
35
|
-
Do not bump the `package.json` version in feature PRs. Versions change only in
|
|
36
|
-
the milestone "Release vX.Y.Z" issue.
|
package/CONTRIBUTING.md
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
# Contributing to TableFilter
|
|
2
|
-
:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
|
|
3
|
-
|
|
4
|
-
## Reporting bugs
|
|
5
|
-
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/).
|
|
6
|
-
Create an issue and provide the following information.
|
|
7
|
-
|
|
8
|
-
Explain the problem and include additional details to help maintainers reproduce
|
|
9
|
-
the problem:
|
|
10
|
-
|
|
11
|
-
* **Use a clear, concise and descriptive title** for the issue to identify the
|
|
12
|
-
problem.
|
|
13
|
-
* **Describe the exact steps which reproduce the problem** in as many details
|
|
14
|
-
as possible.
|
|
15
|
-
* **Provide specific examples to demonstrate the steps**. Include links to
|
|
16
|
-
files or GitHub projects, or copy/pasteable snippets, which you use in those
|
|
17
|
-
examples. If you're providing snippets in the issue, use
|
|
18
|
-
[Markdown code blocks](https://guides.github.com/features/mastering-markdown/#GitHub-flavored-markdown).
|
|
19
|
-
Do not paste large snippets completely unrelated to the issue.
|
|
20
|
-
* **Describe the behavior you observed after following the steps** and point
|
|
21
|
-
out what exactly is the problem with that behavior.
|
|
22
|
-
* **Explain which behavior you expected to see instead and why.**
|
|
23
|
-
* Do not hesitate to **include screenshots and animated GIFs** which show you
|
|
24
|
-
following the described steps and clearly demonstrate the problem.
|
|
25
|
-
You can use [this tool](http://www.cockos.com/licecap/) to record GIFs on macOS
|
|
26
|
-
and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or
|
|
27
|
-
[this tool](https://github.com/GNOME/byzanz) on Linux.
|
|
28
|
-
|
|
29
|
-
### Template for submitting bug reports
|
|
30
|
-
|
|
31
|
-
[Short description of problem here]
|
|
32
|
-
|
|
33
|
-
**Reproduction steps:**
|
|
34
|
-
|
|
35
|
-
1. [First Step]
|
|
36
|
-
2. [Second Step]
|
|
37
|
-
3. [Other Steps...]
|
|
38
|
-
|
|
39
|
-
**Expected behavior:**
|
|
40
|
-
|
|
41
|
-
[Describe expected behavior here]
|
|
42
|
-
|
|
43
|
-
**Observed behavior:**
|
|
44
|
-
|
|
45
|
-
[Describe observed behavior here]
|
|
46
|
-
|
|
47
|
-
**Screenshots and GIFs**
|
|
48
|
-
|
|
49
|
-

|
|
51
|
-
|
|
52
|
-
**TableFilter version:** [Enter TableFilter version here]
|
|
53
|
-
**Browser and version:** [Enter Browser name and version here]
|
|
54
|
-
**OS and version:** [Enter OS name and version here]
|
|
55
|
-
|
|
56
|
-
**Additional information:**
|
|
57
|
-
|
|
58
|
-
* Problem started happening recently, didn't happen in an older version of
|
|
59
|
-
TableFilter: [Yes/No]
|
|
60
|
-
* Problem can be reliably reproduced, doesn't happen randomly: [Yes/No]
|
|
61
|
-
|
|
62
|
-
## Suggesting enhancements and features
|
|
63
|
-
Enhancement and feature suggestions are tracked as
|
|
64
|
-
[GitHub issues](https://guides.github.com/features/issues/).
|
|
65
|
-
Create an issue and provide the following information:
|
|
66
|
-
|
|
67
|
-
* **Use a clear and descriptive title** for the issue to identify the
|
|
68
|
-
suggestion.
|
|
69
|
-
* **Provide a step-by-step description of the suggested enhancement/feature**
|
|
70
|
-
in as many details as possible.
|
|
71
|
-
* When applicable **describe the current behavior** and
|
|
72
|
-
**explain which behavior you expected to see instead** and why.
|
|
73
|
-
* **Include screenshots and animated GIFs** which help you demonstrate the
|
|
74
|
-
steps or point out the part of TableFilter which the suggestion is related to.
|
|
75
|
-
You can use [this tool](http://www.cockos.com/licecap/) to record GIFs on macOS
|
|
76
|
-
and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or
|
|
77
|
-
[this tool](https://github.com/GNOME/byzanz) on Linux.
|
|
78
|
-
* **Explain why this enhancement would be useful** to most TableFilter users.
|
|
79
|
-
|
|
80
|
-
### Template for submitting enhancement and feature suggestions
|
|
81
|
-
|
|
82
|
-
[Short description of suggestion]
|
|
83
|
-
|
|
84
|
-
**Steps which explain the enhancement/feature**
|
|
85
|
-
|
|
86
|
-
1. [First Step]
|
|
87
|
-
2. [Second Step]
|
|
88
|
-
3. [Other Steps...]
|
|
89
|
-
|
|
90
|
-
**Current and suggested behavior**
|
|
91
|
-
|
|
92
|
-
[Describe current and suggested behavior here]
|
|
93
|
-
|
|
94
|
-
**Why would the enhancement be useful to most users**
|
|
95
|
-
|
|
96
|
-
[Explain why the enhancement would be useful to most users]
|
|
97
|
-
|
|
98
|
-
**Screenshots and GIFs**
|
|
99
|
-
|
|
100
|
-

|
|
102
|
-
|
|
103
|
-
**TableFilter Version:** [Enter TableFilter version here]
|
|
104
|
-
**Browser and version:** [Enter Browser name and version here]
|
|
105
|
-
**OS and version:** [Enter OS name and version here]
|
|
106
|
-
|
|
107
|
-
## Code contribution
|
|
108
|
-
TableFilter welcomes contributions from anyone and everyone. If you want to get
|
|
109
|
-
your hands dirty:
|
|
110
|
-
|
|
111
|
-
### Pull requests
|
|
112
|
-
In general, we follow the "fork-and-pull" Git workflow.
|
|
113
|
-
|
|
114
|
-
1. **Fork** the repo on GitHub
|
|
115
|
-
2. **Clone** the project to your own machine
|
|
116
|
-
3. **Commit** changes to your own branch
|
|
117
|
-
- 3.1. **Add** unit tests covering your change in the `test` folder
|
|
118
|
-
- 3.2. **Run** the tests with the `npm run eslint test` command
|
|
119
|
-
- 3.3. **Ensure** build is working with `npm run dist` command
|
|
120
|
-
4. **Push** your work back up to your fork
|
|
121
|
-
5. Submit a **Pull request** so that we can review your changes
|
|
122
|
-
|
|
123
|
-
NOTE: Be sure to merge the latest from "upstream" before making a pull request!
|
|
124
|
-
|
|
125
|
-
## Donations
|
|
126
|
-
Support this project by donating [here](http://www.tablefilter.com/donate.html).
|
|
127
|
-
Thanks to all those who supported this project in the past and those who will
|
|
128
|
-
in the future!
|
package/Gruntfile.js
DELETED
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
module.exports = function (grunt) {
|
|
2
|
-
var fs = require('fs');
|
|
3
|
-
var path = require('path');
|
|
4
|
-
var testDir = 'test';
|
|
5
|
-
var testHost = 'http://localhost:8000/';
|
|
6
|
-
var pkg = grunt.file.readJSON('package.json');
|
|
7
|
-
|
|
8
|
-
grunt.initConfig({
|
|
9
|
-
|
|
10
|
-
qunit: {
|
|
11
|
-
options: {
|
|
12
|
-
'--web-security': 'no',
|
|
13
|
-
coverage: {
|
|
14
|
-
disposeCollector: true,
|
|
15
|
-
src: ['dist/tablefilter/*.js'],
|
|
16
|
-
instrumentedFiles: 'report/temp/',
|
|
17
|
-
htmlReport: 'report/coverage',
|
|
18
|
-
coberturaReport: 'report/',
|
|
19
|
-
lcovReport: 'report/',
|
|
20
|
-
jsonReport: 'report',
|
|
21
|
-
linesThresholdPct: 80
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
all: {
|
|
25
|
-
options: {
|
|
26
|
-
urls: getTestFiles(testDir, testHost)
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
only: {
|
|
30
|
-
options: {
|
|
31
|
-
urls: []
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
connect: {
|
|
37
|
-
server: {
|
|
38
|
-
options: {
|
|
39
|
-
port: 8000,
|
|
40
|
-
base: '.'
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
|
|
45
|
-
copy: {
|
|
46
|
-
dist: {
|
|
47
|
-
src: [
|
|
48
|
-
'**',
|
|
49
|
-
'!**/*.styl',
|
|
50
|
-
'!**/extensions/**',
|
|
51
|
-
'!**/mixins/**'
|
|
52
|
-
],
|
|
53
|
-
cwd: 'static/style',
|
|
54
|
-
dest: 'dist/tablefilter/style',
|
|
55
|
-
expand: true
|
|
56
|
-
},
|
|
57
|
-
templates: {
|
|
58
|
-
src: ['**'],
|
|
59
|
-
cwd: 'static/templates',
|
|
60
|
-
dest: 'demos',
|
|
61
|
-
expand: true
|
|
62
|
-
},
|
|
63
|
-
assets: {
|
|
64
|
-
src: ['**'],
|
|
65
|
-
cwd: 'static/demos-assets',
|
|
66
|
-
dest: 'demos/assets',
|
|
67
|
-
expand: true
|
|
68
|
-
},
|
|
69
|
-
starter: {
|
|
70
|
-
src: ['demos/starter.html'],
|
|
71
|
-
dest: 'dist/starter.html'
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
'string-replace': {
|
|
76
|
-
demos: {
|
|
77
|
-
files: { 'demos/': 'demos/*.html' },
|
|
78
|
-
options: {
|
|
79
|
-
replacements: [
|
|
80
|
-
{
|
|
81
|
-
pattern: /{NAME}/ig,
|
|
82
|
-
replacement: pkg.name
|
|
83
|
-
}, {
|
|
84
|
-
pattern: /{VERSION}/ig,
|
|
85
|
-
replacement: pkg.version
|
|
86
|
-
}, {
|
|
87
|
-
pattern: /{EZEDITTABLE_LINK}/ig,
|
|
88
|
-
replacement: '<a href="http://edittable.free.fr/' +
|
|
89
|
-
'zip.php?f=ezEditTable.zip&p=1"' +
|
|
90
|
-
'target="_blank" title="ezEditTable is a ' +
|
|
91
|
-
'javascript code aimed at enhancing regular ' +
|
|
92
|
-
'HTML tables by adding features such as ' +
|
|
93
|
-
'inline editing components, advanced ' +
|
|
94
|
-
'selection and keyboard navigation ' +
|
|
95
|
-
'- Developed by ' + pkg.author.name + '">' +
|
|
96
|
-
'ezEditTable</a>'
|
|
97
|
-
}, {
|
|
98
|
-
pattern: /<!-- @import (.*?) -->/ig,
|
|
99
|
-
replacement: function (match, p1) {
|
|
100
|
-
return grunt.file.read('static/' + p1);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
clean: ['demos/starter.html'],
|
|
109
|
-
|
|
110
|
-
watch: {
|
|
111
|
-
app: {
|
|
112
|
-
files: ['src/**/*', 'static/style/**/*'],
|
|
113
|
-
tasks: ['dev'],
|
|
114
|
-
options: {
|
|
115
|
-
spawn: false
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
templates: {
|
|
119
|
-
files: ['static/templates/**/*', 'static/partials/**/*'],
|
|
120
|
-
tasks: ['build-demos'],
|
|
121
|
-
options: {
|
|
122
|
-
spawn: false
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
// temporary shell commands while decommissioning grunt
|
|
128
|
-
shell: {
|
|
129
|
-
eslint: {
|
|
130
|
-
command: 'npm run lint'
|
|
131
|
-
},
|
|
132
|
-
esdoc: {
|
|
133
|
-
command: 'npm run esdoc'
|
|
134
|
-
},
|
|
135
|
-
build: {
|
|
136
|
-
command: 'npm run build'
|
|
137
|
-
},
|
|
138
|
-
dev: {
|
|
139
|
-
command: 'npm run dev'
|
|
140
|
-
},
|
|
141
|
-
test: {
|
|
142
|
-
command: 'npm run build:test'
|
|
143
|
-
},
|
|
144
|
-
'build-css': {
|
|
145
|
-
command: 'npm run build:css'
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
grunt.loadNpmTasks('grunt-contrib-copy');
|
|
151
|
-
grunt.loadNpmTasks('grunt-contrib-clean');
|
|
152
|
-
grunt.loadNpmTasks('grunt-contrib-watch');
|
|
153
|
-
grunt.loadNpmTasks('grunt-string-replace');
|
|
154
|
-
grunt.loadNpmTasks('grunt-contrib-connect');
|
|
155
|
-
grunt.loadNpmTasks('grunt-shell');
|
|
156
|
-
grunt.loadNpmTasks('grunt-qunit-istanbul');
|
|
157
|
-
|
|
158
|
-
grunt.registerTask('eslint', ['shell:eslint']);
|
|
159
|
-
grunt.registerTask('esdoc', ['shell:esdoc']);
|
|
160
|
-
|
|
161
|
-
grunt.registerTask('default', ['test', 'build', 'build-demos']);
|
|
162
|
-
|
|
163
|
-
// Dev dev/build/watch cycle
|
|
164
|
-
grunt.registerTask('dev',
|
|
165
|
-
['eslint', 'shell:dev', 'copy:dist', 'shell:build-css', 'watch:app']);
|
|
166
|
-
|
|
167
|
-
// Production build
|
|
168
|
-
grunt.registerTask('build',
|
|
169
|
-
['eslint', 'shell:build', 'copy:dist', 'shell:build-css']);
|
|
170
|
-
|
|
171
|
-
// Build demos
|
|
172
|
-
grunt.registerTask('dev-demos', ['build-demos', 'watch:templates']);
|
|
173
|
-
grunt.registerTask('build-demos', ['copy:templates', 'copy:assets',
|
|
174
|
-
'string-replace:demos', 'copy:starter', 'clean']);
|
|
175
|
-
|
|
176
|
-
// Build tests
|
|
177
|
-
grunt.registerTask('build-test',
|
|
178
|
-
['eslint', 'shell:test', 'copy:dist', 'shell:build-css']);
|
|
179
|
-
|
|
180
|
-
// Tests with coverage
|
|
181
|
-
grunt.registerTask('test', ['build-test', 'connect', 'qunit:all']);
|
|
182
|
-
|
|
183
|
-
// Build all for deployment from travis
|
|
184
|
-
grunt.registerTask('build-all', 'Prepare for deployment', [
|
|
185
|
-
'build', 'build-demos', 'esdoc'
|
|
186
|
-
]);
|
|
187
|
-
|
|
188
|
-
// Custom task running QUnit tests for specified files.
|
|
189
|
-
// Usage example: grunt test-only:test.html,test-help.html
|
|
190
|
-
grunt.registerTask('test-only',
|
|
191
|
-
'A task that runs only specified tests.',
|
|
192
|
-
function (tests) {
|
|
193
|
-
if (!tests) {
|
|
194
|
-
return;
|
|
195
|
-
}
|
|
196
|
-
tests = tests.split(',');
|
|
197
|
-
var res = [];
|
|
198
|
-
|
|
199
|
-
tests.forEach(function (itm) {
|
|
200
|
-
var filePath = path.resolve(testDir, itm);
|
|
201
|
-
var parts = filePath.split(path.sep);
|
|
202
|
-
res.push(buildTestUrl(testHost, testDir, parts));
|
|
203
|
-
});
|
|
204
|
-
|
|
205
|
-
grunt.task.run('connect');
|
|
206
|
-
grunt.config('qunit.only.options.urls', res);
|
|
207
|
-
grunt.task.run('qunit:only');
|
|
208
|
-
}
|
|
209
|
-
);
|
|
210
|
-
|
|
211
|
-
function isTestFile(pth) {
|
|
212
|
-
var allowedExts = ['.html', '.htm'];
|
|
213
|
-
for (var i = 0, len = allowedExts.length; i < len; i++) {
|
|
214
|
-
var ext = allowedExts[i];
|
|
215
|
-
if (pth.indexOf(ext) !== -1) {
|
|
216
|
-
return true;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
return false;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
function buildTestUrl(host, testDir, parts) {
|
|
223
|
-
var idx = parts.indexOf(testDir);
|
|
224
|
-
var fileIdx = parts.length;
|
|
225
|
-
var relParts = parts.slice(idx, fileIdx);
|
|
226
|
-
return host.concat(relParts.join('/'));
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
// Returns the list of test files from the test folder for qunit task
|
|
230
|
-
function getTestFiles(testDir, host) {
|
|
231
|
-
var getFiles = function (dir, host) {
|
|
232
|
-
var res = [];
|
|
233
|
-
var items = fs.readdirSync(dir);
|
|
234
|
-
|
|
235
|
-
items.forEach(function (itm) {
|
|
236
|
-
var fileOrDir = path.resolve(dir, itm);
|
|
237
|
-
if (isTestFile(fileOrDir)) {
|
|
238
|
-
var parts = fileOrDir.split(path.sep);
|
|
239
|
-
res.push(buildTestUrl(host, testDir, parts));
|
|
240
|
-
} else {
|
|
241
|
-
if (fs.lstatSync(fileOrDir).isDirectory()) {
|
|
242
|
-
res = res.concat(getFiles(fileOrDir, host));
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
|
|
247
|
-
return res;
|
|
248
|
-
};
|
|
249
|
-
|
|
250
|
-
return getFiles(testDir, host);
|
|
251
|
-
}
|
|
252
|
-
};
|