Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
gaurav
/
jasani_backend
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Registry
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit e0485c70
authored
2024-09-09 19:01:10 +0530
by
Gaurav Dev
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
download asstes added
1 parent
45f24a4a
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
128 additions
and
0 deletions
src/api/download-asset/content-types/download-asset/schema.json
src/api/download-asset/controllers/download-asset.js
src/api/download-asset/routes/download-asset.js
src/api/download-asset/services/download-asset.js
src/components/download-asset/assets.json
types/generated/components.d.ts
types/generated/contentTypes.d.ts
src/api/download-asset/content-types/download-asset/schema.json
0 → 100644
View file @
e0485c7
{
"kind"
:
"singleType"
,
"collectionName"
:
"download_assets"
,
"info"
:
{
"singularName"
:
"download-asset"
,
"pluralName"
:
"download-assets"
,
"displayName"
:
"Download Asset"
,
"description"
:
""
},
"options"
:
{
"draftAndPublish"
:
true
},
"pluginOptions"
:
{},
"attributes"
:
{
"Assets"
:
{
"displayName"
:
"Assets"
,
"type"
:
"component"
,
"repeatable"
:
true
,
"component"
:
"download-asset.assets"
}
}
}
src/api/download-asset/controllers/download-asset.js
0 → 100644
View file @
e0485c7
'use strict'
;
/**
* download-asset controller
*/
const
{
createCoreController
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreController
(
'api::download-asset.download-asset'
);
src/api/download-asset/routes/download-asset.js
0 → 100644
View file @
e0485c7
'use strict'
;
/**
* download-asset router
*/
const
{
createCoreRouter
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreRouter
(
'api::download-asset.download-asset'
);
src/api/download-asset/services/download-asset.js
0 → 100644
View file @
e0485c7
'use strict'
;
/**
* download-asset service
*/
const
{
createCoreService
}
=
require
(
'@strapi/strapi'
).
factories
;
module
.
exports
=
createCoreService
(
'api::download-asset.download-asset'
);
src/components/download-asset/assets.json
0 → 100644
View file @
e0485c7
{
"collectionName"
:
"components_download_asset_assets"
,
"info"
:
{
"displayName"
:
"Assets"
,
"description"
:
""
},
"options"
:
{},
"attributes"
:
{
"title"
:
{
"type"
:
"string"
},
"pdf"
:
{
"allowedTypes"
:
[
"images"
,
"files"
,
"videos"
,
"audios"
],
"type"
:
"media"
,
"multiple"
:
false
},
"icon"
:
{
"allowedTypes"
:
[
"images"
,
"files"
,
"videos"
,
"audios"
],
"type"
:
"media"
,
"multiple"
:
false
}
}
}
types/generated/components.d.ts
View file @
e0485c7
import
type
{
Schema
,
Attribute
}
from
'@strapi/strapi'
;
export
interface
DownloadAssetAssets
extends
Schema
.
Component
{
collectionName
:
'components_download_asset_assets'
;
info
:
{
displayName
:
'Assets'
;
description
:
''
;
};
attributes
:
{
title
:
Attribute
.
String
;
pdf
:
Attribute
.
Media
<
'images'
|
'files'
|
'videos'
|
'audios'
>
;
icon
:
Attribute
.
Media
<
'images'
|
'files'
|
'videos'
|
'audios'
>
;
};
}
export
interface
LayoutAboutJasani
extends
Schema
.
Component
{
collectionName
:
'components_layout_about_jasanis'
;
info
:
{
...
...
@@ -572,6 +585,7 @@ export interface LayoutWorldwide extends Schema.Component {
declare
module
'@strapi/types'
{
export
module
Shared
{
export
interface
Components
{
'download-asset.assets'
:
DownloadAssetAssets
;
'layout.about-jasani'
:
LayoutAboutJasani
;
'layout.address'
:
LayoutAddress
;
'layout.areas-of-focus'
:
LayoutAreasOfFocus
;
...
...
types/generated/contentTypes.d.ts
View file @
e0485c7
...
...
@@ -895,6 +895,37 @@ export interface ApiDiscoverDiscover extends Schema.SingleType {
};
}
export
interface
ApiDownloadAssetDownloadAsset
extends
Schema
.
SingleType
{
collectionName
:
'download_assets'
;
info
:
{
singularName
:
'download-asset'
;
pluralName
:
'download-assets'
;
displayName
:
'Download Asset'
;
description
:
''
;
};
options
:
{
draftAndPublish
:
true
;
};
attributes
:
{
Assets
:
Attribute
.
Component
<
'download-asset.assets'
,
true
>
;
createdAt
:
Attribute
.
DateTime
;
updatedAt
:
Attribute
.
DateTime
;
publishedAt
:
Attribute
.
DateTime
;
createdBy
:
Attribute
.
Relation
<
'api::download-asset.download-asset'
,
'oneToOne'
,
'admin::user'
>
&
Attribute
.
Private
;
updatedBy
:
Attribute
.
Relation
<
'api::download-asset.download-asset'
,
'oneToOne'
,
'admin::user'
>
&
Attribute
.
Private
;
};
}
export
interface
ApiJewelleryJewellery
extends
Schema
.
SingleType
{
collectionName
:
'jewelleries'
;
info
:
{
...
...
@@ -1001,6 +1032,7 @@ declare module '@strapi/types' {
'api::contactus.contactus'
:
ApiContactusContactus
;
'api::diamond.diamond'
:
ApiDiamondDiamond
;
'api::discover.discover'
:
ApiDiscoverDiscover
;
'api::download-asset.download-asset'
:
ApiDownloadAssetDownloadAsset
;
'api::jewellery.jewellery'
:
ApiJewelleryJewellery
;
'api::sustainability.sustainability'
:
ApiSustainabilitySustainability
;
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment