mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Remove clear from start, add relations to seed
This commit is contained in:
7
package-lock.json
generated
7
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "directus",
|
||||
"version": "0.1.0-preview.9",
|
||||
"version": "0.1.0-preview.10",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@@ -1306,11 +1306,6 @@
|
||||
"integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==",
|
||||
"dev": true
|
||||
},
|
||||
"clear": {
|
||||
"version": "0.1.0",
|
||||
"resolved": "https://registry.npmjs.org/clear/-/clear-0.1.0.tgz",
|
||||
"integrity": "sha512-qMjRnoL+JDPJHeLePZJuao6+8orzHMGP04A8CdwCNsKhRbOnKRjefxONR7bwILT3MHecxKBjHkKL/tkZ8r4Uzw=="
|
||||
},
|
||||
"cli-cursor": {
|
||||
"version": "3.1.0",
|
||||
"resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz",
|
||||
|
||||
@@ -48,7 +48,6 @@
|
||||
"busboy": "^0.3.1",
|
||||
"camelcase": "^6.0.0",
|
||||
"chalk": "^4.1.0",
|
||||
"clear": "^0.1.0",
|
||||
"commander": "^5.1.0",
|
||||
"cookie-parser": "^1.4.5",
|
||||
"dotenv": "^8.2.0",
|
||||
|
||||
@@ -1,14 +1,11 @@
|
||||
import logger from '../../logger';
|
||||
import getPort from 'get-port';
|
||||
import clear from 'clear';
|
||||
import dotenv from 'dotenv';
|
||||
|
||||
export default async function start() {
|
||||
dotenv.config();
|
||||
const app = require('../../app').default;
|
||||
|
||||
clear();
|
||||
|
||||
const port = process.env.PORT || (await getPort({ port: 3000 }));
|
||||
|
||||
app.listen(port, () => {
|
||||
|
||||
@@ -1438,3 +1438,67 @@ rows:
|
||||
placeholder: Enter a secure token...
|
||||
sort: 16
|
||||
width: full
|
||||
|
||||
directus_permissions:
|
||||
- collection: directus_settings
|
||||
operation: read
|
||||
permissions: {}
|
||||
fields:
|
||||
- project_name
|
||||
- project_url
|
||||
- project_logo
|
||||
- project_color
|
||||
- project_foreground
|
||||
- project_background
|
||||
- project_note
|
||||
|
||||
directus_relations:
|
||||
- many_collection: directus_users
|
||||
many_field: role
|
||||
many_primary: id
|
||||
one_collection: directus_roles
|
||||
one_field: users
|
||||
one_primary: id
|
||||
- many_collection: directus_users
|
||||
many_field: avatar
|
||||
many_primary: id
|
||||
one_collection: directus_files
|
||||
one_primary: id
|
||||
- many_collection: directus_revisions
|
||||
many_field: activity
|
||||
many_primary: id
|
||||
one_collection: directus_activity
|
||||
one_field: revisions
|
||||
one_primary: id
|
||||
- many_collection: directus_presets
|
||||
many_field: user
|
||||
many_primary: id
|
||||
one_collection: directus_users
|
||||
one_primary: id
|
||||
- many_collection: directus_folders
|
||||
many_field: parent_folder
|
||||
many_primary: id
|
||||
one_collection: directus_folders
|
||||
one_primary: id
|
||||
- many_collection: directus_files
|
||||
many_field: folder
|
||||
many_primary: id
|
||||
one_collection: directus_folders
|
||||
one_primary: id
|
||||
- many_collection: directus_files
|
||||
many_field: uploaded_by
|
||||
many_primary: id
|
||||
one_collection: directus_users
|
||||
one_primary: id
|
||||
- many_collection: directus_fields
|
||||
many_field: collection
|
||||
many_primary: id
|
||||
one_collection: directus_collections
|
||||
one_field: fields
|
||||
one_primary: id
|
||||
- many_collection: directus_activity
|
||||
many_field: action_by
|
||||
many_primary: id
|
||||
one_collection: directus_users
|
||||
one_field: fields
|
||||
one_primary: id
|
||||
|
||||
Reference in New Issue
Block a user