@thepalaceproject/circulation-admin 0.0.0-post.1
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/.eslintrc +59 -0
- package/.node-version +1 -0
- package/.nvmrc +1 -0
- package/.prettierrc.json +10 -0
- package/.sass-lint.yml +37 -0
- package/CHANGELOG.md +946 -0
- package/README.md +155 -0
- package/dist/060b2710bdbbe3dfe48b58d59bd5f1fb.svg +288 -0
- package/dist/0db1520f47986b6c755a.svg +1 -0
- package/dist/1e59d2330b4c6deb84b3.ttf +0 -0
- package/dist/20fd1704ea223900efa9.woff2 +0 -0
- package/dist/4692b9ec53fd5972caa2.ttf +0 -0
- package/dist/5be1347c682810f199c7.eot +0 -0
- package/dist/6563aa3790be8329e4f2.svg +1 -0
- package/dist/82b1212e45a2bc35dd73.woff +0 -0
- package/dist/8b43027f47b20503057d.eot +0 -0
- package/dist/PalaceCollectionManagerLogo.svg +122 -0
- package/dist/be810be3a3e14c682a25.woff2 +0 -0
- package/dist/c1e38fd9e0e74ba58f7a2b77ef29fdd3.svg +2671 -0
- package/dist/circulation-admin.css +6841 -0
- package/dist/circulation-admin.js +2 -0
- package/dist/circulation-admin.js.LICENSE.txt +153 -0
- package/dist/f691f37e57f04c152e23.woff +0 -0
- package/jest.config.js +15 -0
- package/jest.polyfills.js +12 -0
- package/nightwatch.json +58 -0
- package/package.json +155 -0
- package/pull_request_template.md +22 -0
- package/requirements-ci.txt +1 -0
- package/testReporter.js +31 -0
- package/tests/__data__/statisticsApiResponseData.ts +327 -0
- package/tests/__mocks__/fileMock.js +1 -0
- package/tests/__mocks__/styleMock.js +1 -0
- package/tests/browser/README.md +19 -0
- package/tests/browser/assertions/noError.js +38 -0
- package/tests/browser/commands/goHome.js +13 -0
- package/tests/browser/commands/signIn.js +18 -0
- package/tests/browser/globals.js.sample +5 -0
- package/tests/browser/navigate.js +294 -0
- package/tests/browser/pages/book.js +21 -0
- package/tests/browser/pages/catalog.js +24 -0
- package/tests/browser/pages/login.js +11 -0
- package/tests/browser/redirect.js +104 -0
- package/tests/browser/signInFailure.js +22 -0
- package/tests/jest/README.md +6 -0
- package/tests/jest/api/admin.test.ts +60 -0
- package/tests/jest/businessRules/roleBasedAccess.test.ts +250 -0
- package/tests/jest/components/AdvancedSearchBuilder.test.tsx +38 -0
- package/tests/jest/components/BookEditor.test.tsx +240 -0
- package/tests/jest/components/CirculationEventsDownload.test.tsx +65 -0
- package/tests/jest/components/CustomLists.test.tsx +203 -0
- package/tests/jest/components/EditableInput.test.tsx +64 -0
- package/tests/jest/components/IndividualAdminEditForm.test.tsx +128 -0
- package/tests/jest/components/InventoryReportRequestModal.test.tsx +652 -0
- package/tests/jest/components/Lane.test.tsx +78 -0
- package/tests/jest/components/LaneEditor.test.tsx +148 -0
- package/tests/jest/components/ProtocolFormField.test.tsx +37 -0
- package/tests/jest/components/QuicksightDashboard.test.tsx +67 -0
- package/tests/jest/components/Stats.test.tsx +699 -0
- package/tests/jest/context/AppContext.test.tsx +113 -0
- package/tests/jest/features/book.test.ts +396 -0
- package/tests/jest/jest-setup.ts +1 -0
- package/tests/jest/sample/sample.test.js +3 -0
- package/tests/jest/testUtils/renderWithContext.tsx +38 -0
- package/tests/jest/testUtils/withProviders.tsx +92 -0
- package/tests/jest/utils/NoCacheDataFetcher.test.ts +75 -0
- package/tsconfig.json +25 -0
- package/tslint.json +56 -0
- package/webpack.common.js +72 -0
- package/webpack.dev-server.config.js +215 -0
- package/webpack.dev.config.js +9 -0
- package/webpack.prod.config.js +8 -0
package/.eslintrc
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": [
|
|
3
|
+
"eslint:recommended",
|
|
4
|
+
"plugin:@typescript-eslint/eslint-recommended",
|
|
5
|
+
"plugin:@typescript-eslint/recommended",
|
|
6
|
+
"plugin:react/recommended",
|
|
7
|
+
"plugin:jsx-a11y/strict",
|
|
8
|
+
"prettier",
|
|
9
|
+
"prettier/@typescript-eslint",
|
|
10
|
+
"plugin:prettier/recommended",
|
|
11
|
+
"prettier/react"
|
|
12
|
+
],
|
|
13
|
+
"parser": "@typescript-eslint/parser",
|
|
14
|
+
"parserOptions": {
|
|
15
|
+
"project": "tsconfig.json",
|
|
16
|
+
"sourceType": "module",
|
|
17
|
+
"ecmaFeatures": {
|
|
18
|
+
"jsx": true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"env": {
|
|
22
|
+
"browser": true,
|
|
23
|
+
"node": true,
|
|
24
|
+
"es6": true,
|
|
25
|
+
"jest": true
|
|
26
|
+
},
|
|
27
|
+
"rules": {
|
|
28
|
+
"import/extensions": 0,
|
|
29
|
+
"global-require": 0,
|
|
30
|
+
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".ts", ".tsx"] }],
|
|
31
|
+
"react/jsx-props-no-spreading": 0,
|
|
32
|
+
"@typescript-eslint/no-explicit-any": 0,
|
|
33
|
+
"no-useless-escape": 0,
|
|
34
|
+
"@typescript-eslint/explicit-function-return-type": 0,
|
|
35
|
+
"react/prop-types": 0,
|
|
36
|
+
"@typescript-eslint/camelcase": 0,
|
|
37
|
+
"react/no-string-refs": 0,
|
|
38
|
+
"jsx-a11y/label-has-associated-control": 0,
|
|
39
|
+
"react/no-find-dom-node": 0,
|
|
40
|
+
"jsx-a11y/label-has-for": 0,
|
|
41
|
+
"react/no-unescaped-entities": 0,
|
|
42
|
+
"@typescript-eslint/no-inferrable-types": 0
|
|
43
|
+
},
|
|
44
|
+
"settings": {
|
|
45
|
+
"react": {
|
|
46
|
+
"version": "detect"
|
|
47
|
+
},
|
|
48
|
+
"import/resolver": {
|
|
49
|
+
"node": {
|
|
50
|
+
"extensions": [
|
|
51
|
+
".js",
|
|
52
|
+
".jsx",
|
|
53
|
+
".ts",
|
|
54
|
+
".tsx"
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
package/.node-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
20.18.3
|
package/.nvmrc
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
v20
|
package/.prettierrc.json
ADDED
package/.sass-lint.yml
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Linter Options
|
|
2
|
+
options:
|
|
3
|
+
# Don't merge default rules
|
|
4
|
+
merge-default-rules: false
|
|
5
|
+
# File Options
|
|
6
|
+
files:
|
|
7
|
+
include: 'src/stylesheets/**/*.scss'
|
|
8
|
+
# Rule Configuration
|
|
9
|
+
rules:
|
|
10
|
+
extends-before-mixins: 2
|
|
11
|
+
extends-before-declarations: 2
|
|
12
|
+
placeholder-in-extend: 2
|
|
13
|
+
mixins-before-declarations:
|
|
14
|
+
- 2
|
|
15
|
+
-
|
|
16
|
+
exclude:
|
|
17
|
+
- breakpoint
|
|
18
|
+
- mq
|
|
19
|
+
|
|
20
|
+
no-warn: 2
|
|
21
|
+
no-debug: 2
|
|
22
|
+
no-ids: 2
|
|
23
|
+
no-important: 2
|
|
24
|
+
hex-notation:
|
|
25
|
+
- 2
|
|
26
|
+
-
|
|
27
|
+
style: uppercase
|
|
28
|
+
indentation:
|
|
29
|
+
- 2
|
|
30
|
+
-
|
|
31
|
+
size: 2
|
|
32
|
+
property-sort-order:
|
|
33
|
+
- 2
|
|
34
|
+
-
|
|
35
|
+
order:
|
|
36
|
+
- display
|
|
37
|
+
ignore-custom-properties: true
|