Commit 17a30ef3 by Gaurav Dev

contact us backend

1 parent 591cd5a5

497 Bytes | W: | H:

2.3 KB | W: | H:

favicon.png
favicon.png
favicon.png
favicon.png
  • 2-up
  • Swipe
  • Onion skin
import AuthLogo from "../extensions/logo.png";
import favicon from "../extensions/favicon.ico";
const config = {
auth: {
logo: AuthLogo
},
menu: {
logo: AuthLogo
},
head: {
favicon: favicon
},
// Disable video tutorials
tutorials: false,
// Disable notifications about new Strapi releases
notifications: { releases: false },
translations: {
en: {
"app.components.LeftMenu.navbrand.title": "Jasani Group",
"app.components.LeftMenu.navbrand.title": "Jasani Group",
"app.components.LeftMenu.navbrand.subtitle": "",
"Auth.form.welcome.title": "Welcome to Jasani Group",
"Auth.form.welcome.subtitle": "Log in to your App"
}
},
locales: [
// 'ar',
// 'fr',
// 'cs',
// 'de',
// 'dk',
// 'es',
// 'he',
// 'id',
// 'it',
// 'ja',
// 'ko',
// 'ms',
// 'nl',
// 'no',
// 'pl',
// 'pt-BR',
// 'pt',
// 'ru',
// 'sk',
// 'sv',
// 'th',
// 'tr',
// 'uk',
// 'vi',
// 'zh-Hans',
// 'zh',
],
};
const bootstrap = (app) => {
console.log(app);
};
export default {
config,
bootstrap,
};
{
"kind": "singleType",
"collectionName": "contactuses",
"info": {
"singularName": "contactus",
"pluralName": "contactuses",
"displayName": "contactus",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"Banner": {
"type": "component",
"repeatable": false,
"component": "layout.banner"
},
"Country": {
"type": "component",
"repeatable": true,
"component": "layout.countrys"
},
"mapUrl": {
"type": "blocks"
}
}
}
'use strict';
/**
* contactus controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::contactus.contactus');
'use strict';
/**
* contactus router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::contactus.contactus');
'use strict';
/**
* contactus service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::contactus.contactus');
...@@ -20,6 +20,9 @@ ...@@ -20,6 +20,9 @@
}, },
"addressUrl": { "addressUrl": {
"type": "text" "type": "text"
},
"title": {
"type": "string"
} }
} }
} }
No preview for this file type
...@@ -26,6 +26,7 @@ export interface LayoutAddress extends Schema.Component { ...@@ -26,6 +26,7 @@ export interface LayoutAddress extends Schema.Component {
address: Attribute.Text; address: Attribute.Text;
phoneNumber: Attribute.String; phoneNumber: Attribute.String;
addressUrl: Attribute.Text; addressUrl: Attribute.Text;
title: Attribute.String;
}; };
} }
......
...@@ -788,6 +788,39 @@ export interface PluginUsersPermissionsUser extends Schema.CollectionType { ...@@ -788,6 +788,39 @@ export interface PluginUsersPermissionsUser extends Schema.CollectionType {
}; };
} }
export interface ApiContactusContactus extends Schema.SingleType {
collectionName: 'contactuses';
info: {
singularName: 'contactus';
pluralName: 'contactuses';
displayName: 'contactus';
description: '';
};
options: {
draftAndPublish: true;
};
attributes: {
Banner: Attribute.Component<'layout.banner'>;
Country: Attribute.Component<'layout.countrys', true>;
mapUrl: Attribute.Blocks;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
createdBy: Attribute.Relation<
'api::contactus.contactus',
'oneToOne',
'admin::user'
> &
Attribute.Private;
updatedBy: Attribute.Relation<
'api::contactus.contactus',
'oneToOne',
'admin::user'
> &
Attribute.Private;
};
}
export interface ApiDiamondDiamond extends Schema.SingleType { export interface ApiDiamondDiamond extends Schema.SingleType {
collectionName: 'diamonds'; collectionName: 'diamonds';
info: { info: {
...@@ -965,6 +998,7 @@ declare module '@strapi/types' { ...@@ -965,6 +998,7 @@ declare module '@strapi/types' {
'plugin::users-permissions.permission': PluginUsersPermissionsPermission; 'plugin::users-permissions.permission': PluginUsersPermissionsPermission;
'plugin::users-permissions.role': PluginUsersPermissionsRole; 'plugin::users-permissions.role': PluginUsersPermissionsRole;
'plugin::users-permissions.user': PluginUsersPermissionsUser; 'plugin::users-permissions.user': PluginUsersPermissionsUser;
'api::contactus.contactus': ApiContactusContactus;
'api::diamond.diamond': ApiDiamondDiamond; 'api::diamond.diamond': ApiDiamondDiamond;
'api::discover.discover': ApiDiscoverDiscover; 'api::discover.discover': ApiDiscoverDiscover;
'api::jewellery.jewellery': ApiJewelleryJewellery; 'api::jewellery.jewellery': ApiJewelleryJewellery;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!