fng-jq-upload 0.12.0-beta.33 → 0.12.0-beta.331
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/.github/workflows/main.workflow.yaml +41 -0
- package/.jshintrc +5 -4
- package/.prettierrc.json +4 -0
- package/{Gruntfile.js → Gruntfile.cjs} +15 -5
- package/app/fng-jq-upload.js +388 -178
- package/css/override-blueimp.css +20 -1
- package/dist/fng-jq-upload.js +388 -178
- package/dist/fng-jq-upload.min.js +1 -1
- package/lib/fng-jq-upload.js +404 -144
- package/lib/fng-jq-upload.ts +413 -151
- package/lib/index.d.ts +1 -0
- package/package.json +80 -35
- package/patches/liftup+3.0.1.patch +13 -0
- package/templates/fileform.html +18 -14
- package/test/api/apiSpec.js +81 -99
- package/test/{karma.conf.js → karma.conf.cjs} +9 -2
- package/test/models/applicant.js +8 -8
- package/tsconfig.json +3 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: Run build and test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches-ignore:
|
|
6
|
+
- 'next'
|
|
7
|
+
- 'www'
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
build:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
|
|
16
|
+
- name: Set up Node.js
|
|
17
|
+
uses: actions/setup-node@v3
|
|
18
|
+
with:
|
|
19
|
+
node-version: 24.x
|
|
20
|
+
|
|
21
|
+
- name: Install Chrome
|
|
22
|
+
uses: browser-actions/setup-chrome@v1
|
|
23
|
+
with:
|
|
24
|
+
chrome-version: 'latest'
|
|
25
|
+
|
|
26
|
+
- name: Start MongoDB
|
|
27
|
+
uses: supercharge/mongodb-github-action@1.10.0
|
|
28
|
+
with:
|
|
29
|
+
mongodb-version: 6.0
|
|
30
|
+
|
|
31
|
+
- name: Setup mongodb-tools
|
|
32
|
+
run: |
|
|
33
|
+
wget https://fastdl.mongodb.org/tools/db/mongodb-database-tools-ubuntu2204-x86_64-100.6.1.deb
|
|
34
|
+
sudo apt install ./mongodb-database-tools-*-100.6.1.deb
|
|
35
|
+
mongorestore --version
|
|
36
|
+
|
|
37
|
+
- name: Install dependencies
|
|
38
|
+
run: npm install
|
|
39
|
+
|
|
40
|
+
- name: Run tests
|
|
41
|
+
run: npm test
|
package/.jshintrc
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"node": true,
|
|
3
3
|
"browser": true,
|
|
4
|
-
"
|
|
4
|
+
"esversion": 11,
|
|
5
|
+
"module": true,
|
|
5
6
|
"bitwise": true,
|
|
6
7
|
"camelcase": true,
|
|
7
8
|
"curly": true,
|
|
@@ -31,11 +32,11 @@
|
|
|
31
32
|
"loopfunc": true,
|
|
32
33
|
"sub": true,
|
|
33
34
|
"globals": {
|
|
34
|
-
"angular"
|
|
35
|
+
"angular": false,
|
|
35
36
|
"jasmine": false,
|
|
36
37
|
"inject": false,
|
|
37
38
|
"alert": false,
|
|
38
|
-
"_"
|
|
39
|
+
"_": true,
|
|
39
40
|
"xit": false,
|
|
40
41
|
"xdescribe": false,
|
|
41
42
|
"it": false,
|
|
@@ -47,5 +48,5 @@
|
|
|
47
48
|
"before": false,
|
|
48
49
|
"after": false,
|
|
49
50
|
"expect": false
|
|
50
|
-
|
|
51
|
+
}
|
|
51
52
|
}
|
package/.prettierrc.json
ADDED
|
@@ -52,14 +52,23 @@ module.exports = function (grunt) {
|
|
|
52
52
|
|
|
53
53
|
mochaTest: {
|
|
54
54
|
options: {
|
|
55
|
-
reporter: 'dot'
|
|
55
|
+
reporter: 'dot',
|
|
56
|
+
'forbid-only': true,
|
|
56
57
|
},
|
|
57
|
-
all
|
|
58
|
+
all: {
|
|
58
59
|
src: [
|
|
59
60
|
'test/api/**/*.js'
|
|
60
61
|
]
|
|
61
62
|
}
|
|
62
|
-
}
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
karma: {
|
|
66
|
+
unit: {
|
|
67
|
+
configFile: 'test/karma.conf.cjs',
|
|
68
|
+
singleRun: true
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
|
|
63
72
|
});
|
|
64
73
|
|
|
65
74
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
@@ -67,9 +76,10 @@ module.exports = function (grunt) {
|
|
|
67
76
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
68
77
|
grunt.loadNpmTasks('grunt-angular-templates');
|
|
69
78
|
grunt.loadNpmTasks('grunt-mocha-test');
|
|
79
|
+
grunt.loadNpmTasks('grunt-karma');
|
|
70
80
|
|
|
71
|
-
grunt.registerTask('test', ['jshint', 'mochaTest']);
|
|
81
|
+
grunt.registerTask('test', ['jshint', 'mochaTest', 'karma']);
|
|
72
82
|
grunt.registerTask('build', ['ngtemplates', 'concat', 'uglify']);
|
|
73
83
|
grunt.registerTask('default', ['test']);
|
|
74
84
|
|
|
75
|
-
};
|
|
85
|
+
};
|