strapi-plugin-firebase-authentication 1.0.0
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/LICENSE.md +21 -0
- package/README.md +63 -0
- package/dist/_chunks/App-CSI6Err4.mjs +5081 -0
- package/dist/_chunks/App-ucyQ3wQ0.js +5062 -0
- package/dist/_chunks/api-DsC4NiMF.mjs +25 -0
- package/dist/_chunks/api-_NrpM6KB.js +24 -0
- package/dist/_chunks/en-BRmJb_fY.mjs +18 -0
- package/dist/_chunks/en-Blu7bBKM.js +18 -0
- package/dist/_chunks/index-BavxEoR2.js +109 -0
- package/dist/_chunks/index-C4tASYZr.js +164 -0
- package/dist/_chunks/index-D6wh_wve.mjs +110 -0
- package/dist/_chunks/index-DJDpecNi.mjs +164 -0
- package/dist/admin/index.js +3 -0
- package/dist/admin/index.mjs +4 -0
- package/dist/admin/src/components/DynamicTable/FirebaseTable.d.ts +12 -0
- package/dist/admin/src/components/DynamicTable/FirebaseTableRows/FirebaseTableRows.d.ts +13 -0
- package/dist/admin/src/components/DynamicTable/TableHeaders.d.ts +13 -0
- package/dist/admin/src/components/Initializer.d.ts +5 -0
- package/dist/admin/src/components/PluginIcon.d.ts +2 -0
- package/dist/admin/src/components/SearchURLQuery/SearchURLQuery.d.ts +18 -0
- package/dist/admin/src/components/UserManagement/DeleteAccount.d.ts +9 -0
- package/dist/admin/src/components/UserManagement/ResetPassword.d.ts +8 -0
- package/dist/admin/src/hooks/useQueryParams.d.ts +9 -0
- package/dist/admin/src/index.d.ts +13 -0
- package/dist/admin/src/pages/App.d.ts +3 -0
- package/dist/admin/src/pages/HomePage.d.ts +1 -0
- package/dist/admin/src/pages/ListView/PaginationFooter/index.d.ts +5 -0
- package/dist/admin/src/pages/ListView/index.d.ts +10 -0
- package/dist/admin/src/pages/Settings/DeleteJsonConfigurationDialogue.d.ts +7 -0
- package/dist/admin/src/pages/Settings/api.d.ts +4 -0
- package/dist/admin/src/pages/Settings/index.d.ts +2 -0
- package/dist/admin/src/pages/utils/api.d.ts +34 -0
- package/dist/admin/src/permissions.d.ts +6 -0
- package/dist/admin/src/pluginId.d.ts +2 -0
- package/dist/admin/src/services/index.d.ts +1 -0
- package/dist/admin/src/utils/getTranslation.d.ts +2 -0
- package/dist/admin/src/utils/prefixPluginTranslations.d.ts +2 -0
- package/dist/admin/src/utils/provider.d.ts +1 -0
- package/dist/model/Meta.d.ts +9 -0
- package/dist/model/Request.d.ts +5 -0
- package/dist/model/User.d.ts +44 -0
- package/dist/server/index.js +25959 -0
- package/dist/server/index.mjs +25946 -0
- package/dist/server/src/bootstrap.d.ts +5 -0
- package/dist/server/src/config/index.d.ts +20 -0
- package/dist/server/src/constants/errors.d.ts +3 -0
- package/dist/server/src/content-types/index.d.ts +30 -0
- package/dist/server/src/controllers/firebase-auth-configuration.d.ts +7 -0
- package/dist/server/src/controllers/firebaseController.d.ts +7 -0
- package/dist/server/src/controllers/index.d.ts +26 -0
- package/dist/server/src/controllers/settingsController.d.ts +9 -0
- package/dist/server/src/controllers/userController.d.ts +11 -0
- package/dist/server/src/destroy.d.ts +5 -0
- package/dist/server/src/firebaseAuth/types.d.ts +4 -0
- package/dist/server/src/index.d.ts +176 -0
- package/dist/server/src/middlewares/index.d.ts +2 -0
- package/dist/server/src/policies/index.d.ts +2 -0
- package/dist/server/src/register.d.ts +5 -0
- package/dist/server/src/routes/admin.d.ts +12 -0
- package/dist/server/src/routes/content-api.d.ts +12 -0
- package/dist/server/src/routes/content-internal-api.d.ts +11 -0
- package/dist/server/src/routes/firebase-auth-configuration.d.ts +5 -0
- package/dist/server/src/routes/index.d.ts +35 -0
- package/dist/server/src/routes/settingsRoutes.d.ts +9 -0
- package/dist/server/src/services/firebase-auth-configuration.d.ts +7 -0
- package/dist/server/src/services/firebaseService.d.ts +29 -0
- package/dist/server/src/services/index.d.ts +68 -0
- package/dist/server/src/services/settingsService.d.ts +15 -0
- package/dist/server/src/services/userService.d.ts +25 -0
- package/dist/server/src/utils/check-valid-json.d.ts +2 -0
- package/dist/server/src/utils/fetch-me.d.ts +10 -0
- package/dist/server/src/utils/get-user-by-id.d.ts +6 -0
- package/dist/server/src/utils/index.d.ts +8 -0
- package/dist/server/src/utils/paginate.d.ts +12 -0
- package/dist/server/src/utils/promiseHandler.d.ts +7 -0
- package/dist/server/src/utils/sanitize-user.d.ts +7 -0
- package/dist/server/src/utils/users.d.ts +2 -0
- package/package.json +93 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Behon Baker.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<img src="/Gen Types Logo.png" style="height: 70px; margin: 0px; border-radius: 12px;" />
|
|
2
|
+
|
|
3
|
+
# Strapi Plugin Gen Types
|
|
4
|
+
|
|
5
|
+
Generate types for the different collections, single types & components found in your application.
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
> This plugin is still in development. Please use with caution.
|
|
10
|
+
|
|
11
|
+
> This plugin will not run in production. It is only meant to be used in development.
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
yarn add strapi-plugin-firebase-auth
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install strapi-plugin-firebase-auth
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Configuration
|
|
24
|
+
|
|
25
|
+
You can configure the plugin by updating the `config/plugins.ts` file in your Strapi project.
|
|
26
|
+
|
|
27
|
+
The following options are available:
|
|
28
|
+
|
|
29
|
+
- `singleFile` - Whether to generate a single file for all types or separate files for each collection. Default: `false`
|
|
30
|
+
|
|
31
|
+
```typescript
|
|
32
|
+
// config/plugins.ts
|
|
33
|
+
export default ({ env }) => ({
|
|
34
|
+
"firebase-auth": {
|
|
35
|
+
enabled: true,
|
|
36
|
+
config: {
|
|
37
|
+
FIREBASE_JSON_ENCRYPTION_KEY: env("FIREBASE_JSON_ENCRYPTION_KEY", "your-default-key"),
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The plugin will generate types for the collections found in the `api` folder of your Strapi project.
|
|
44
|
+
|
|
45
|
+
It will also add a few extra interfaces like `User`, `Role`, `Media` etc.
|
|
46
|
+
|
|
47
|
+
## Admin UI
|
|
48
|
+
|
|
49
|
+
The plugin will add a new menu item `Generated Types`. This page will show the generated interfaces.
|
|
50
|
+
|
|
51
|
+
You can expand each interface to see the fields and their types.
|
|
52
|
+
|
|
53
|
+
Clicking on the copy button will copy the interface to your clipboard.
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
MIT
|
|
58
|
+
|
|
59
|
+
## Contributing
|
|
60
|
+
|
|
61
|
+
I am super new to React. I prefer Nuxt. I am not sure if how I implemented the Admin UI is the best way to do it. I would appreciate any help in improving it. Thanks.
|
|
62
|
+
|
|
63
|
+
Just fork the repo and create a PR. I will be happy to merge it.
|