@firecms/core 3.0.0-alpha.7
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 +21 -0
- package/README.md +175 -0
- package/dist/index.es.js +27346 -0
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.js +1611 -0
- package/dist/index.umd.js.map +1 -0
- package/package.json +144 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 FireCMS
|
|
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,175 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://firecms.co/img/dark_mode.webp" alt="Intro video" style="max-width: 100%;"/>
|
|
3
|
+
</p>
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://firecms.co">
|
|
7
|
+
<img src="https://firecms.co/img/logo_small.png" width="240px" alt="FireCMS logo" />
|
|
8
|
+
</a>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<h1 align="center">FireCMS</h1>
|
|
12
|
+
<h3 align="center">Awesome Firebase/Firestore-based headless CMS</h3>
|
|
13
|
+
<p align="center"><a href="https://demo.firecms.co">Live demo</a></p>
|
|
14
|
+
|
|
15
|
+
<br />
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
[](https://www.npmjs.com/package/firecms) [](https://standardjs.com)
|
|
19
|
+
|
|
20
|
+
Designed by developers for developers, FireCMS is a headless CMS and admin panel
|
|
21
|
+
that seamlessly integrates with **Firebase and Firestore** by default, but is
|
|
22
|
+
also
|
|
23
|
+
compatible with any backend.
|
|
24
|
+
|
|
25
|
+
Effortlessly generate **CRUD views** based on your configuration. FireCMS is
|
|
26
|
+
simple
|
|
27
|
+
to set up for standard cases and easy to extend and customize for more specific
|
|
28
|
+
needs.
|
|
29
|
+
|
|
30
|
+
Built to produce collection and form views that naturally align with the
|
|
31
|
+
collection/document model, FireCMS covers a wide range of basic and advanced use
|
|
32
|
+
cases. With extensibility in mind, it's easy to create your own views or modify
|
|
33
|
+
existing ones.
|
|
34
|
+
|
|
35
|
+
FireCMS does **not impose any data structure** restrictions, ensuring a smooth,
|
|
36
|
+
out-of-the-box experience for any project.
|
|
37
|
+
|
|
38
|
+
### Core technologies
|
|
39
|
+
|
|
40
|
+
FireCMS is based on this great technologies:
|
|
41
|
+
|
|
42
|
+
- Typescript
|
|
43
|
+
- Firebase SDK 9
|
|
44
|
+
- React + React Router 6
|
|
45
|
+
- Material UI 5
|
|
46
|
+
- Formik + Yup
|
|
47
|
+
|
|
48
|
+
### Quickstart
|
|
49
|
+
|
|
50
|
+
The easiest way to get going is to check our quickstart guide! You will just
|
|
51
|
+
need to follow some quick steps:
|
|
52
|
+
|
|
53
|
+
https://firecms.co/docs/quickstart
|
|
54
|
+
|
|
55
|
+
### Demo
|
|
56
|
+
|
|
57
|
+
Check the demo with all the core functionalities.
|
|
58
|
+
|
|
59
|
+
https://demo.firecms.co
|
|
60
|
+
|
|
61
|
+
> You can modify the data, but it gets periodically restored.
|
|
62
|
+
|
|
63
|
+
### Changelog
|
|
64
|
+
|
|
65
|
+
https://firecms.co/docs/changelog
|
|
66
|
+
|
|
67
|
+
## Features
|
|
68
|
+
|
|
69
|
+
FireCMS has been meticulously crafted to make it incredibly easy for developers
|
|
70
|
+
to build a CMS/admin tool while offering an excellent data editing experience
|
|
71
|
+
and a user-friendly interface for marketers and content managers.
|
|
72
|
+
|
|
73
|
+
### 🏓 Exceptional Spreadsheet View
|
|
74
|
+
|
|
75
|
+
We've developed a highly efficient windowed **spreadsheet view** for
|
|
76
|
+
collections, allowing inline editing for most common fields, as well as popup
|
|
77
|
+
views for other cases and your custom field implementations.
|
|
78
|
+
|
|
79
|
+
Featuring **real-time** support, FireCMS is perfect for apps that require
|
|
80
|
+
constant updates. It also supports **text search** (through an external provider
|
|
81
|
+
like Algolia, if using Firestore), **filtering and sorting**, and **exporting**
|
|
82
|
+
data.
|
|
83
|
+
|
|
84
|
+
### ✨ Robust Forms
|
|
85
|
+
|
|
86
|
+

|
|
87
|
+
|
|
88
|
+
When editing an entity, FireCMS offers a nested system of side dialogs for
|
|
89
|
+
navigating through **subcollections** and accessing custom views (such as custom
|
|
90
|
+
forms or blog previews). This functionality can also be accessed
|
|
91
|
+
programmatically using the `useSideEntityController` hook.
|
|
92
|
+
|
|
93
|
+
FireCMS includes **over 15 built-in fields** with numerous customization and
|
|
94
|
+
validation options. The components have been carefully designed for an
|
|
95
|
+
outstanding user experience, including advanced features like **references** to
|
|
96
|
+
other collections, **markdown**, and **array reordering**.
|
|
97
|
+
|
|
98
|
+
For unsupported use cases, create your own **custom field** as a React
|
|
99
|
+
component.
|
|
100
|
+
|
|
101
|
+
FireCMS also supports **conditional fields** in forms, allowing you to define
|
|
102
|
+
rules for active fields based on your logic.
|
|
103
|
+
|
|
104
|
+
### 👮 Authentication, Permissions, and Role System
|
|
105
|
+
|
|
106
|
+
Define which navigation views users can see and the operations (create, edit,
|
|
107
|
+
delete) they can perform based on your role system. You can even configure this
|
|
108
|
+
on a per-entity or collection level.
|
|
109
|
+
|
|
110
|
+
By default, FireCMS supports all Firebase authorization mechanisms, but you can
|
|
111
|
+
implement your own.
|
|
112
|
+
|
|
113
|
+
### 🏹 Relational Support
|
|
114
|
+
|
|
115
|
+
Define references to entities in other collections and benefit from the
|
|
116
|
+
integrated reference fields and shortcuts.
|
|
117
|
+
|
|
118
|
+
You can also define subcollections at the entity level for nesting data in a
|
|
119
|
+
collection/document/collection model.
|
|
120
|
+
|
|
121
|
+
### 🆒 Real-Time Data
|
|
122
|
+
|
|
123
|
+
Every view in the CMS supports real-time data, making it suitable for displaying
|
|
124
|
+
constantly updated information.
|
|
125
|
+
|
|
126
|
+
Forms also support this feature, with any modified value in the database being
|
|
127
|
+
updated in any open form view as long as it hasn't been touched by the user.
|
|
128
|
+
This enables advanced cases where a Cloud Function is triggered after saving an
|
|
129
|
+
entity, modifying some values, and requiring real-time updates.
|
|
130
|
+
|
|
131
|
+
### 🗂️ File Storage
|
|
132
|
+
|
|
133
|
+
FireCMS supports uploading files to Firebase Storage out of the box and provides
|
|
134
|
+
specific fields for handling single and multiple file uploads, as well as
|
|
135
|
+
reordering.
|
|
136
|
+
|
|
137
|
+
You can replace the Firebase Storage implementation with your own.
|
|
138
|
+
|
|
139
|
+
## Included example
|
|
140
|
+
|
|
141
|
+
You can access the code for the demo project under
|
|
142
|
+
[`example`](https://github.com/FireCMSco/firecms/tree/master/example). It includes
|
|
143
|
+
every feature provided by this CMS.
|
|
144
|
+
|
|
145
|
+
Keep in mind you need to update the dependencies in that project if you want to
|
|
146
|
+
use it as it is, without linking it to the library source code. More details in
|
|
147
|
+
its README
|
|
148
|
+
|
|
149
|
+
## Contact and support
|
|
150
|
+
|
|
151
|
+
If you need general support, you can open a GitHub issue.
|
|
152
|
+
|
|
153
|
+
Do you need consulting setting up your Firestore-based CMS in no time? We are
|
|
154
|
+
happy to help!
|
|
155
|
+
`hello@firecms.co`
|
|
156
|
+
|
|
157
|
+
## Development
|
|
158
|
+
|
|
159
|
+
If you would like to make changes to the source, feel free to submit a PR!
|
|
160
|
+
|
|
161
|
+
When developing, the core library can be found under `lib`.
|
|
162
|
+
There is an example project in the folder `example`.
|
|
163
|
+
|
|
164
|
+
In order to run the project, you need to create a file
|
|
165
|
+
called `firebase_config.ts`
|
|
166
|
+
in `example/src`.
|
|
167
|
+
|
|
168
|
+
That file needs to export a valid Firebase config, that you can get
|
|
169
|
+
from your Firebase console when creating a webapp for your project.
|
|
170
|
+
|
|
171
|
+
Then simply run `yarn` and `yarn dev`
|
|
172
|
+
|
|
173
|
+
## License
|
|
174
|
+
|
|
175
|
+
MIT © [FireCMS](https://github.com/FireCMSco)
|