@punch-in/strapi-admin 1.2.15 → 1.2.17

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.
Files changed (36) hide show
  1. package/admin/src/components/GlobalStyle/index.js +19 -0
  2. package/admin/src/components/LeftMenu/LeftMenuLinkHeader/Title.js +1 -0
  3. package/admin/src/components/LeftMenu/LeftMenuLinkSection/LeftMenuListLink.js +8 -1
  4. package/admin/src/components/LeftMenu/LinksContainer/index.js +2 -0
  5. package/admin/src/containers/HomePage/PunchInToday.js +1 -40
  6. package/admin/src/containers/HomePage/RollCall.js +355 -0
  7. package/admin/src/containers/HomePage/VisitorApprovals.js +295 -0
  8. package/admin/src/containers/HomePage/components.js +122 -1
  9. package/admin/src/containers/HomePage/index.js +4 -0
  10. package/admin/src/containers/HomePage/punchUtils.js +42 -0
  11. package/admin/src/containers/LocaleToggle/Wrapper.js +4 -0
  12. package/admin/src/translations/en.json +18 -1
  13. package/package.json +1 -1
  14. package/strapi-admin/node_modules/is-wsl/index.d.ts +0 -15
  15. package/strapi-admin/node_modules/is-wsl/index.js +0 -31
  16. package/strapi-admin/node_modules/is-wsl/license +0 -9
  17. package/strapi-admin/node_modules/is-wsl/package.json +0 -77
  18. package/strapi-admin/node_modules/is-wsl/readme.md +0 -36
  19. package/strapi-admin/node_modules/qs/.editorconfig +0 -39
  20. package/strapi-admin/node_modules/qs/.eslintignore +0 -2
  21. package/strapi-admin/node_modules/qs/.eslintrc +0 -35
  22. package/strapi-admin/node_modules/qs/.github/FUNDING.yml +0 -12
  23. package/strapi-admin/node_modules/qs/.nycrc +0 -13
  24. package/strapi-admin/node_modules/qs/CHANGELOG.md +0 -372
  25. package/strapi-admin/node_modules/qs/LICENSE.md +0 -29
  26. package/strapi-admin/node_modules/qs/README.md +0 -611
  27. package/strapi-admin/node_modules/qs/dist/qs.js +0 -1903
  28. package/strapi-admin/node_modules/qs/lib/formats.js +0 -23
  29. package/strapi-admin/node_modules/qs/lib/index.js +0 -11
  30. package/strapi-admin/node_modules/qs/lib/parse.js +0 -263
  31. package/strapi-admin/node_modules/qs/lib/stringify.js +0 -290
  32. package/strapi-admin/node_modules/qs/lib/utils.js +0 -251
  33. package/strapi-admin/node_modules/qs/package.json +0 -100
  34. package/strapi-admin/node_modules/qs/test/parse.js +0 -781
  35. package/strapi-admin/node_modules/qs/test/stringify.js +0 -848
  36. package/strapi-admin/node_modules/qs/test/utils.js +0 -136
@@ -1,251 +0,0 @@
1
- 'use strict';
2
-
3
- var formats = require('./formats');
4
-
5
- var has = Object.prototype.hasOwnProperty;
6
- var isArray = Array.isArray;
7
-
8
- var hexTable = (function () {
9
- var array = [];
10
- for (var i = 0; i < 256; ++i) {
11
- array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
12
- }
13
-
14
- return array;
15
- }());
16
-
17
- var compactQueue = function compactQueue(queue) {
18
- while (queue.length > 1) {
19
- var item = queue.pop();
20
- var obj = item.obj[item.prop];
21
-
22
- if (isArray(obj)) {
23
- var compacted = [];
24
-
25
- for (var j = 0; j < obj.length; ++j) {
26
- if (typeof obj[j] !== 'undefined') {
27
- compacted.push(obj[j]);
28
- }
29
- }
30
-
31
- item.obj[item.prop] = compacted;
32
- }
33
- }
34
- };
35
-
36
- var arrayToObject = function arrayToObject(source, options) {
37
- var obj = options && options.plainObjects ? Object.create(null) : {};
38
- for (var i = 0; i < source.length; ++i) {
39
- if (typeof source[i] !== 'undefined') {
40
- obj[i] = source[i];
41
- }
42
- }
43
-
44
- return obj;
45
- };
46
-
47
- var merge = function merge(target, source, options) {
48
- /* eslint no-param-reassign: 0 */
49
- if (!source) {
50
- return target;
51
- }
52
-
53
- if (typeof source !== 'object') {
54
- if (isArray(target)) {
55
- target.push(source);
56
- } else if (target && typeof target === 'object') {
57
- if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
58
- target[source] = true;
59
- }
60
- } else {
61
- return [target, source];
62
- }
63
-
64
- return target;
65
- }
66
-
67
- if (!target || typeof target !== 'object') {
68
- return [target].concat(source);
69
- }
70
-
71
- var mergeTarget = target;
72
- if (isArray(target) && !isArray(source)) {
73
- mergeTarget = arrayToObject(target, options);
74
- }
75
-
76
- if (isArray(target) && isArray(source)) {
77
- source.forEach(function (item, i) {
78
- if (has.call(target, i)) {
79
- var targetItem = target[i];
80
- if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
81
- target[i] = merge(targetItem, item, options);
82
- } else {
83
- target.push(item);
84
- }
85
- } else {
86
- target[i] = item;
87
- }
88
- });
89
- return target;
90
- }
91
-
92
- return Object.keys(source).reduce(function (acc, key) {
93
- var value = source[key];
94
-
95
- if (has.call(acc, key)) {
96
- acc[key] = merge(acc[key], value, options);
97
- } else {
98
- acc[key] = value;
99
- }
100
- return acc;
101
- }, mergeTarget);
102
- };
103
-
104
- var assign = function assignSingleSource(target, source) {
105
- return Object.keys(source).reduce(function (acc, key) {
106
- acc[key] = source[key];
107
- return acc;
108
- }, target);
109
- };
110
-
111
- var decode = function (str, decoder, charset) {
112
- var strWithoutPlus = str.replace(/\+/g, ' ');
113
- if (charset === 'iso-8859-1') {
114
- // unescape never throws, no try...catch needed:
115
- return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
116
- }
117
- // utf-8
118
- try {
119
- return decodeURIComponent(strWithoutPlus);
120
- } catch (e) {
121
- return strWithoutPlus;
122
- }
123
- };
124
-
125
- var encode = function encode(str, defaultEncoder, charset, kind, format) {
126
- // This code was originally written by Brian White (mscdex) for the io.js core querystring library.
127
- // It has been adapted here for stricter adherence to RFC 3986
128
- if (str.length === 0) {
129
- return str;
130
- }
131
-
132
- var string = str;
133
- if (typeof str === 'symbol') {
134
- string = Symbol.prototype.toString.call(str);
135
- } else if (typeof str !== 'string') {
136
- string = String(str);
137
- }
138
-
139
- if (charset === 'iso-8859-1') {
140
- return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
141
- return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
142
- });
143
- }
144
-
145
- var out = '';
146
- for (var i = 0; i < string.length; ++i) {
147
- var c = string.charCodeAt(i);
148
-
149
- if (
150
- c === 0x2D // -
151
- || c === 0x2E // .
152
- || c === 0x5F // _
153
- || c === 0x7E // ~
154
- || (c >= 0x30 && c <= 0x39) // 0-9
155
- || (c >= 0x41 && c <= 0x5A) // a-z
156
- || (c >= 0x61 && c <= 0x7A) // A-Z
157
- || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
158
- ) {
159
- out += string.charAt(i);
160
- continue;
161
- }
162
-
163
- if (c < 0x80) {
164
- out = out + hexTable[c];
165
- continue;
166
- }
167
-
168
- if (c < 0x800) {
169
- out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
170
- continue;
171
- }
172
-
173
- if (c < 0xD800 || c >= 0xE000) {
174
- out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
175
- continue;
176
- }
177
-
178
- i += 1;
179
- c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
180
- out += hexTable[0xF0 | (c >> 18)]
181
- + hexTable[0x80 | ((c >> 12) & 0x3F)]
182
- + hexTable[0x80 | ((c >> 6) & 0x3F)]
183
- + hexTable[0x80 | (c & 0x3F)];
184
- }
185
-
186
- return out;
187
- };
188
-
189
- var compact = function compact(value) {
190
- var queue = [{ obj: { o: value }, prop: 'o' }];
191
- var refs = [];
192
-
193
- for (var i = 0; i < queue.length; ++i) {
194
- var item = queue[i];
195
- var obj = item.obj[item.prop];
196
-
197
- var keys = Object.keys(obj);
198
- for (var j = 0; j < keys.length; ++j) {
199
- var key = keys[j];
200
- var val = obj[key];
201
- if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
202
- queue.push({ obj: obj, prop: key });
203
- refs.push(val);
204
- }
205
- }
206
- }
207
-
208
- compactQueue(queue);
209
-
210
- return value;
211
- };
212
-
213
- var isRegExp = function isRegExp(obj) {
214
- return Object.prototype.toString.call(obj) === '[object RegExp]';
215
- };
216
-
217
- var isBuffer = function isBuffer(obj) {
218
- if (!obj || typeof obj !== 'object') {
219
- return false;
220
- }
221
-
222
- return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
223
- };
224
-
225
- var combine = function combine(a, b) {
226
- return [].concat(a, b);
227
- };
228
-
229
- var maybeMap = function maybeMap(val, fn) {
230
- if (isArray(val)) {
231
- var mapped = [];
232
- for (var i = 0; i < val.length; i += 1) {
233
- mapped.push(fn(val[i]));
234
- }
235
- return mapped;
236
- }
237
- return fn(val);
238
- };
239
-
240
- module.exports = {
241
- arrayToObject: arrayToObject,
242
- assign: assign,
243
- combine: combine,
244
- compact: compact,
245
- decode: decode,
246
- encode: encode,
247
- isBuffer: isBuffer,
248
- isRegExp: isRegExp,
249
- maybeMap: maybeMap,
250
- merge: merge
251
- };
@@ -1,100 +0,0 @@
1
- {
2
- "_from": "qs@6.10.1",
3
- "_id": "qs@6.10.1",
4
- "_inBundle": false,
5
- "_integrity": "sha512-M528Hph6wsSVOBiYUnGf+K/7w0hNshs/duGsNXPUCLH5XAqjEtiPGwNONLV0tBH8NoGb0mvD5JubnUTrujKDTg==",
6
- "_location": "/@punch-in/strapi-admin/qs",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "version",
10
- "registry": true,
11
- "raw": "qs@6.10.1",
12
- "name": "qs",
13
- "escapedName": "qs",
14
- "rawSpec": "6.10.1",
15
- "saveSpec": null,
16
- "fetchSpec": "6.10.1"
17
- },
18
- "_requiredBy": [
19
- "/@punch-in/strapi-admin"
20
- ],
21
- "_resolved": "https://registry.npmjs.org/qs/-/qs-6.10.1.tgz",
22
- "_shasum": "4931482fa8d647a5aab799c5271d2133b981fb6a",
23
- "_spec": "qs@6.10.1",
24
- "_where": "/webapps/strapiProject/3.6.8/defaultProject/node_modules/@punch-in/strapi-admin",
25
- "bugs": {
26
- "url": "https://github.com/ljharb/qs/issues"
27
- },
28
- "bundleDependencies": false,
29
- "contributors": [
30
- {
31
- "name": "Jordan Harband",
32
- "email": "ljharb@gmail.com",
33
- "url": "http://ljharb.codes"
34
- }
35
- ],
36
- "dependencies": {
37
- "side-channel": "^1.0.4"
38
- },
39
- "deprecated": false,
40
- "description": "A querystring parser that supports nesting and arrays, with a depth limit",
41
- "devDependencies": {
42
- "@ljharb/eslint-config": "^17.5.1",
43
- "aud": "^1.1.4",
44
- "browserify": "^16.5.2",
45
- "eclint": "^2.8.1",
46
- "eslint": "^7.22.0",
47
- "evalmd": "^0.0.19",
48
- "for-each": "^0.3.3",
49
- "has-symbols": "^1.0.2",
50
- "iconv-lite": "^0.5.1",
51
- "in-publish": "^2.0.1",
52
- "mkdirp": "^0.5.5",
53
- "nyc": "^10.3.2",
54
- "object-inspect": "^1.9.0",
55
- "qs-iconv": "^1.0.4",
56
- "safe-publish-latest": "^1.1.4",
57
- "safer-buffer": "^2.1.2",
58
- "tape": "^5.2.2"
59
- },
60
- "engines": {
61
- "node": ">=0.6"
62
- },
63
- "funding": {
64
- "url": "https://github.com/sponsors/ljharb"
65
- },
66
- "greenkeeper": {
67
- "ignore": [
68
- "iconv-lite",
69
- "mkdirp"
70
- ]
71
- },
72
- "homepage": "https://github.com/ljharb/qs",
73
- "keywords": [
74
- "querystring",
75
- "qs",
76
- "query",
77
- "url",
78
- "parse",
79
- "stringify"
80
- ],
81
- "license": "BSD-3-Clause",
82
- "main": "lib/index.js",
83
- "name": "qs",
84
- "repository": {
85
- "type": "git",
86
- "url": "git+https://github.com/ljharb/qs.git"
87
- },
88
- "scripts": {
89
- "dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js",
90
- "lint": "eslint lib/*.js test/*.js",
91
- "postlint": "eclint check * lib/* test/* !dist/*",
92
- "posttest": "aud --production",
93
- "prepublish": "safe-publish-latest && (not-in-publish || npm run dist)",
94
- "pretest": "npm run --silent readme && npm run --silent lint",
95
- "readme": "evalmd README.md",
96
- "test": "npm run tests-only",
97
- "tests-only": "nyc tape 'test/**/*.js'"
98
- },
99
- "version": "6.10.1"
100
- }