Skip to content

Commit 35679a1

Browse files
author
Ajit Kumar
committed
fix(plugin last update)
1 parent a8e0e45 commit 35679a1

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

client/components/plugins/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function Plugin({
9393
<strong>{version}</strong>
9494
</small>
9595
</p>
96-
<small>Updated {updatedAt ? since(updatedAt) : 'never'}</small>
96+
<small>{updatedAt ? `Updated ${since(updatedAt)}` : ' '}</small>
9797
<Actions id={id} isAdmin={isAdmin} user={userId} pluginsUser={pluginUser} />
9898
</div>
9999
</a>

client/pages/plugin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default async function Plugin({ id: pluginId, section = 'description' })
101101
<div className='info-container'>
102102
<div className='info'>
103103
<strong>{name}</strong>
104-
<small>Updated {updatedAt ? since(updatedAt) : 'never'}</small>
104+
{updatedAt && <small>Updated {since(updatedAt)}</small>}
105105
</div>
106106
<div className='info'>
107107
<span className='chip'>v {version}</span>

server/schemas/plugin.v0.1.0.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"required": ["name"]
2929
},
30-
"changelogs": {
30+
"changelog": {
3131
"description": "Path or URL to the changelog file documenting version updates and modifications.",
3232
"type": "string"
3333
},
@@ -62,14 +62,6 @@
6262
},
6363
"uniqueItems": true
6464
},
65-
"files": {
66-
"description": "An array listing the files to be included in the plugin zip file.",
67-
"type": "array",
68-
"items": {
69-
"type": "string"
70-
},
71-
"uniqueItems": true
72-
},
7365
"icon": {
7466
"description": "Path to the icon.png file, serving as the visual representation of the plugin. Icon file size must less than or equal to 50Kb",
7567
"type": "string"
@@ -106,7 +98,7 @@
10698
"type": "integer"
10799
},
108100
"readme": {
109-
"description": "Path to the readme.md file, providing documentation and information about the plugin.",
101+
"description": "Path or URL to the readme.md file, providing documentation and information about the plugin.",
110102
"type": "string"
111103
},
112104
"version": {
@@ -123,5 +115,5 @@
123115
"type": "string"
124116
}
125117
},
126-
"required": ["id", "name", "main", "version", "readme", "icon", "author"]
118+
"required": ["id", "name", "main", "version", "icon", "author"]
127119
}

0 commit comments

Comments
 (0)