authscape 1.0.123 → 1.0.125
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/.babelrc +3 -0
- package/index.js +1417 -0
- package/package.json +41 -28
- package/readme.md +1 -0
- package/{components → src/components}/Datatable.js +0 -1
- package/{components → src/components}/FileUploader.js +10 -13
- package/README.md +0 -34
- package/jsconfig.json +0 -7
- package/next.config.js +0 -4
- /package/{services → src/services}/apiService.js +0 -0
- /package/{services → src/services}/authService.js +0 -0
- /package/{services → src/services}/authorizationComponent.js +0 -0
- /package/{services → src/services}/signInValidator.js +0 -0
- /package/{services → src/services}/slug.js +0 -0
- /package/{services → src/services}/storeWithExpiry.js +0 -0
package/package.json
CHANGED
|
@@ -1,28 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "authscape",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
},
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"@
|
|
14
|
-
"@
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "authscape",
|
|
3
|
+
"version": "1.0.125",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"build": "npx babel src --out-file index.js"
|
|
9
|
+
},
|
|
10
|
+
"author": "zuechb",
|
|
11
|
+
"license": "ISC",
|
|
12
|
+
"peerDependencies": {
|
|
13
|
+
"@stripe/react-stripe-js": "^1.9.0",
|
|
14
|
+
"@stripe/stripe-js": "^1.32.0",
|
|
15
|
+
"axios": "^0.27.2",
|
|
16
|
+
"js-file-download": "^0.4.12",
|
|
17
|
+
"nookies": "^2.5.2",
|
|
18
|
+
"react": "^18.2.0",
|
|
19
|
+
"react-data-table-component": "^7.5.2",
|
|
20
|
+
"react-dom": "^18.2.0"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@babel/cli": "^7.21.5",
|
|
24
|
+
"@babel/core": "^7.22.1",
|
|
25
|
+
"@babel/preset-env": "^7.22.2",
|
|
26
|
+
"@babel/preset-react": "^7.0.0",
|
|
27
|
+
"react": "^18.2.0",
|
|
28
|
+
"react-dom": "^18.2.0"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@stripe/react-stripe-js": "^1.9.0",
|
|
32
|
+
"@stripe/stripe-js": "^1.32.0",
|
|
33
|
+
"axios": "^0.27.2",
|
|
34
|
+
"eslint-config-next": "^13.3.2",
|
|
35
|
+
"js-file-download": "^0.4.12",
|
|
36
|
+
"next": "^13.3.2",
|
|
37
|
+
"nookies": "^2.5.2",
|
|
38
|
+
"query-string": "^7.1.1",
|
|
39
|
+
"react-data-table-component": "^7.5.2"
|
|
40
|
+
}
|
|
41
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Working on docs...
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
1
|
import React, { useState, useRef, useEffect } from "react";
|
|
4
|
-
import { apiService } from "../services/authService";
|
|
5
2
|
import LinearProgress from "@mui/material/LinearProgress";
|
|
6
3
|
import { Box } from "@mui/system";
|
|
7
4
|
import { Grid } from "@mui/material";
|
|
@@ -22,7 +19,8 @@ import Tooltip from '@mui/material/Tooltip';
|
|
|
22
19
|
import Backdrop from '@mui/material/Backdrop';
|
|
23
20
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
24
21
|
|
|
25
|
-
|
|
22
|
+
|
|
23
|
+
const FileUploader = ({
|
|
26
24
|
url,
|
|
27
25
|
params,
|
|
28
26
|
multiple = false,
|
|
@@ -31,8 +29,8 @@ export default function FileUploader({
|
|
|
31
29
|
isHidden = false,
|
|
32
30
|
refOveride = null,
|
|
33
31
|
primaryColor = "#000",
|
|
34
|
-
|
|
35
|
-
}) {
|
|
32
|
+
onConfirmDelete = null
|
|
33
|
+
}) => {
|
|
36
34
|
// Declare a new state variable, which we'll call "count"
|
|
37
35
|
const [message, setMessage] = useState("");
|
|
38
36
|
const [loaded, setLoaded] = useState(0);
|
|
@@ -324,14 +322,11 @@ export default function FileUploader({
|
|
|
324
322
|
<Button
|
|
325
323
|
onClick={async () => {
|
|
326
324
|
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
if (response != null && response.status == 200) {
|
|
331
|
-
setViewDeleteDialog(false);
|
|
332
|
-
await reloadFiles();
|
|
325
|
+
if (onConfirmDelete != null)
|
|
326
|
+
{
|
|
327
|
+
onConfirmDelete();
|
|
333
328
|
}
|
|
334
|
-
|
|
329
|
+
|
|
335
330
|
}}
|
|
336
331
|
autoFocus
|
|
337
332
|
>
|
|
@@ -346,3 +341,5 @@ export default function FileUploader({
|
|
|
346
341
|
</Box>
|
|
347
342
|
);
|
|
348
343
|
}
|
|
344
|
+
|
|
345
|
+
export default FileUploader;
|
package/README.md
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
|
|
2
|
-
|
|
3
|
-
## Getting Started
|
|
4
|
-
|
|
5
|
-
First, run the development server:
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm run dev
|
|
9
|
-
# or
|
|
10
|
-
yarn dev
|
|
11
|
-
# or
|
|
12
|
-
pnpm dev
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
|
16
|
-
|
|
17
|
-
You can start editing the page by modifying `app/page.js`. The page auto-updates as you edit the file.
|
|
18
|
-
|
|
19
|
-
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
|
|
20
|
-
|
|
21
|
-
## Learn More
|
|
22
|
-
|
|
23
|
-
To learn more about Next.js, take a look at the following resources:
|
|
24
|
-
|
|
25
|
-
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
|
26
|
-
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
|
27
|
-
|
|
28
|
-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
|
|
29
|
-
|
|
30
|
-
## Deploy on Vercel
|
|
31
|
-
|
|
32
|
-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
|
33
|
-
|
|
34
|
-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
|
package/jsconfig.json
DELETED
package/next.config.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|