valeriavg / nomocms Goto Github PK
View Code? Open in Web Editor NEW[WIP] Content management system
[WIP] Content management system
Currently, Dashboard uses fuse-box
, which can't handle monaco-editor
web workers and has a couple of other issues.
Since most of the Dashboard uses React-oriented components, maybe Dashboard should be re-created from CRA to make things simpler and cleaner
Hi there, I follow this project since you are one of the very few people that uses typed
. Browsing your code I noticed a function called ensureCredentials
which uses credentialsType
to validate email and password. Since I use typed
to do the same thing on my own projects, I created two extra add-ons to deal with emails and passwords that may worth you checking them out. typed-email uses RFC822 compliant regex to validate emails. It also trims and lowercase them before validation. typed-password enforces a set of rules that a password must pass to be considered valid (useful for account creation). Anyways, here is an example:
import * as T from 'typed'
import * as P from 'typed-password'
import { email } from 'typed-email'
const password = P.password(
P.nospace, // don't allow whitespaces
P.min(8), // at least 8 characters
P.max(20), // at most 20 characters
P.upper(), // at least 1 uppercase letter
P.lower(), // at least 1 lowercase letter
P.digit(), // at least 1 digit
P.symbol() // at least 1 special character
)
const credentialsType = T.object({
email,
password,
})
Hope you find them useful.
Setup code linter in the project and run linter action.
Also, optionally, setup pre-commit hook with eslint --fix
Reference: typescript-eslint
The project is missing some nice features from Jest like Snapshots, watch and filter & etc.
By default, if no Spaces/S3 settings are provided, a user can upload an image and include it in base64
.
If there's file storage connected - a user should be able to upload it.
In order to render a list of sub-pages in a template, the user should be able to retrieve them with API.
Hi,
I suspect migration files name syntax stops repository cloning (at least using Github Desktop, did not try command line).
Logs (Windows)
Cloning into 'X:\**\**\nomocms'...
remote: Enumerating objects: 4897, done.
remote: Counting objects: 100% (1249/1249), done.
remote: Compressing objects: 100% (683/683), done.
remote: Total 4897 (delta 881), reused 804 (delta 556), pack-reused 3648
Receiving objects: 100% (4897/4897), 5.41 MiB | 2.37 MiB/s, done.
Resolving deltas: 100% (3134/3134), done.
error: invalid path 'modules/account/migrations/2021-10-24T13:52:01.538Z-init_accounts.ts'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
If I'm right, could you update the corresponding file ? (Maybe replace the :
char ?)
Line 18 in f80080f
Thank you
Initially, AMP CMS used Redis as it's primary database, but because AMP CMS is intended to be used primarily with Digital Ocean APP Platform, the decision was made to change the database to PostgreSQL
Primarily, due to the lack of disk data persistence on Digital Ocean managed Redis.
And, additionally, to simplify setup with the "Deploy to Digital Ocean" button
Digital Ocean APP Platform supports up to 3 static websites for free, which would help with:
User should be able to group pages in "folders", for example, to create "blog" or "videos".
Nested pages should be able to inherit default folder settings, for example, template or YAML parameters.
The folders are also pages and can render a list of its child pages
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.