color editing

This commit is contained in:
Jori Lallo
2017-10-29 23:22:46 -07:00
parent a1bfde7aec
commit e70a8c2495
18 changed files with 261 additions and 16 deletions

View File

@ -22,6 +22,7 @@ const Collection = sequelize.define(
urlId: { type: DataTypes.STRING, unique: true },
name: DataTypes.STRING,
description: DataTypes.STRING,
color: DataTypes.STRING,
type: {
type: DataTypes.STRING,
validate: { isIn: allowedCollectionTypes },

View File

@ -5,7 +5,7 @@ import randomstring from 'randomstring';
import isUUID from 'validator/lib/isUUID';
import { DataTypes, sequelize } from '../sequelize';
import parseTitle from '../../shared/parseTitle';
import parseTitle from '../../shared/utils/parseTitle.js';
import Revision from './Revision';
const URL_REGEX = /^[a-zA-Z0-9-]*-([a-zA-Z0-9]{10,15})$/;