mirror of
https://github.com/strapi/strapi.git
synced 2025-12-16 17:53:53 +00:00
Clean logs
This commit is contained in:
parent
30c70deb3b
commit
9967a30932
52
examples/getstarted/api/date-t/config/routes.json
Normal file
52
examples/getstarted/api/date-t/config/routes.json
Normal file
@ -0,0 +1,52 @@
|
||||
{
|
||||
"routes": [
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/date-ts",
|
||||
"handler": "date-t.find",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/date-ts/count",
|
||||
"handler": "date-t.count",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"path": "/date-ts/:id",
|
||||
"handler": "date-t.findOne",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"path": "/date-ts",
|
||||
"handler": "date-t.create",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "PUT",
|
||||
"path": "/date-ts/:id",
|
||||
"handler": "date-t.update",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"method": "DELETE",
|
||||
"path": "/date-ts/:id",
|
||||
"handler": "date-t.delete",
|
||||
"config": {
|
||||
"policies": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
8
examples/getstarted/api/date-t/controllers/date-t.js
Normal file
8
examples/getstarted/api/date-t/controllers/date-t.js
Normal file
@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/concepts/controllers.html#core-controllers)
|
||||
* to customize this controller
|
||||
*/
|
||||
|
||||
module.exports = {};
|
||||
44
examples/getstarted/api/date-t/models/date-t.js
Normal file
44
examples/getstarted/api/date-t/models/date-t.js
Normal file
@ -0,0 +1,44 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Lifecycle callbacks for the `date-t` model.
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
// Before saving a value.
|
||||
// Fired before an `insert` or `update` query.
|
||||
// beforeSave: async (model, attrs, options) => {},
|
||||
// After saving a value.
|
||||
// Fired after an `insert` or `update` query.
|
||||
// afterSave: async (model, response, options) => {},
|
||||
// Before fetching a value.
|
||||
// Fired before a `fetch` operation.
|
||||
// beforeFetch: async (model, columns, options) => {},
|
||||
// After fetching a value.
|
||||
// Fired after a `fetch` operation.
|
||||
// afterFetch: async (model, response, options) => {},
|
||||
// Before fetching all values.
|
||||
// Fired before a `fetchAll` operation.
|
||||
// beforeFetchAll: async (model, columns, options) => {},
|
||||
// After fetching all values.
|
||||
// Fired after a `fetchAll` operation.
|
||||
// afterFetchAll: async (model, response, options) => {},
|
||||
// Before creating a value.
|
||||
// Fired before an `insert` query.
|
||||
// beforeCreate: async (model, attrs, options) => {},
|
||||
// After creating a value.
|
||||
// Fired after an `insert` query.
|
||||
// afterCreate: async (model, attrs, options) => {},
|
||||
// Before updating a value.
|
||||
// Fired before an `update` query.
|
||||
// beforeUpdate: async (model, attrs, options) => {},
|
||||
// After updating a value.
|
||||
// Fired after an `update` query.
|
||||
// afterUpdate: async (model, attrs, options) => {},
|
||||
// Before destroying a value.
|
||||
// Fired before a `delete` query.
|
||||
// beforeDestroy: async (model, attrs, options) => {},
|
||||
// After destroying a value.
|
||||
// Fired after a `delete` query.
|
||||
// afterDestroy: async (model, attrs, options) => {}
|
||||
};
|
||||
22
examples/getstarted/api/date-t/models/date-t.settings.json
Normal file
22
examples/getstarted/api/date-t/models/date-t.settings.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"connection": "default",
|
||||
"collectionName": "date_ts",
|
||||
"info": {
|
||||
"name": "date t"
|
||||
},
|
||||
"options": {
|
||||
"increments": true,
|
||||
"timestamps": true
|
||||
},
|
||||
"attributes": {
|
||||
"date": {
|
||||
"type": "date"
|
||||
},
|
||||
"datetime": {
|
||||
"type": "datetime"
|
||||
},
|
||||
"time": {
|
||||
"type": "time"
|
||||
}
|
||||
}
|
||||
}
|
||||
8
examples/getstarted/api/date-t/services/date-t.js
Normal file
8
examples/getstarted/api/date-t/services/date-t.js
Normal file
@ -0,0 +1,8 @@
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/concepts/services.html#core-services)
|
||||
* to customize this service
|
||||
*/
|
||||
|
||||
module.exports = {};
|
||||
@ -26,7 +26,7 @@
|
||||
"@buffetjs/custom": "^1.1.1",
|
||||
"@buffetjs/icons": "^1.1.1",
|
||||
"@buffetjs/styles": "^1.1.1",
|
||||
"@buffetjs/utils": "^1.1.1",
|
||||
"@buffetjs/utils": "^1.1.0",
|
||||
"@fortawesome/fontawesome-free": "^5.11.2",
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.25",
|
||||
"@fortawesome/free-brands-svg-icons": "^5.11.2",
|
||||
|
||||
@ -15,7 +15,7 @@ const DynamicComponentCard = ({
|
||||
onClick={e => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
console.log('oooo');
|
||||
|
||||
onClick(componentUid);
|
||||
}}
|
||||
>
|
||||
|
||||
@ -205,7 +205,7 @@ const Item = ({
|
||||
showRightCarret = false;
|
||||
}
|
||||
}
|
||||
console.log(type);
|
||||
|
||||
return (
|
||||
<DraggedFieldWithPreview
|
||||
goTo={goTo}
|
||||
|
||||
@ -22,6 +22,7 @@ const cleanData = (retrievedData, currentSchema, componentsSchema) => {
|
||||
cleanedData = value;
|
||||
break;
|
||||
case 'date':
|
||||
case 'datetime':
|
||||
cleanedData =
|
||||
value && value._isAMomentObject === true
|
||||
? value.toISOString()
|
||||
|
||||
@ -282,8 +282,6 @@ function ListView({
|
||||
actions: headerAction,
|
||||
};
|
||||
|
||||
console.log(getSearchParams());
|
||||
|
||||
return (
|
||||
<>
|
||||
<ListViewProvider
|
||||
|
||||
@ -5,7 +5,6 @@ const uploadFiles = require('../../utils/upload-files');
|
||||
|
||||
module.exports = async (ctx, next) => {
|
||||
const { model } = ctx.params;
|
||||
console.log({ model });
|
||||
|
||||
const ct = strapi.contentTypes[model];
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user