1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-02 15:38:15 +00:00

Feature/gallery view (#6578)

* add gallery view, display images in grid layout

* remove redundant code

* clean up redundant code, improve responsive gallery

* improve gaps in gallery
This commit is contained in:
Aries
2024-08-21 17:14:57 +08:00
committed by GitHub
parent 6f5f1f0e05
commit ce3ffff54d
21 changed files with 254 additions and 46 deletions

View File

@@ -112,9 +112,9 @@ class MetadataManagerAPI {
return this.req.get(url);
};
addView = (repoID, name) => {
addView = (repoID, name, type = 'table') => {
const url = this.server + '/api/v2.1/repos/' + repoID + '/metadata/views/';
const params = { name };
const params = { name, type };
return this._sendPostRequest(url, params, { headers: { 'Content-type': 'application/json' } });
};