adapt-security / adapt-authoring-assets-old Goto Github PK
View Code? Open in Web Editor NEWModule for handling Adapt asset data and files
Module for handling Adapt asset data and files
Will probably need to discuss to decide on a sensible value for this.
i.e. abstractApiModule.js#L108-L132
We also need a way to be able to update the asset DB records.
Will obviously still need the asset specific endpoints:
This'll remove the need for createdAt
, createdBy
and tags
fields.
Yesterday @taylortom mentioned that only a few assets are shown at frontend, then I've tested locally and it worked fine locally, I'm wondering if it caused because audio and zip file doesn't have a thumbnail.
What should we do with Thumbnails for Audio and Zip files?
Are there any examples of how we use tags module, like how to tag and remove tag...
To allow querying via body data (this will come by default if we switch to the api code #8)
A user should be able to upload a zip file that contain multiple files. These assets would effectively work as a single item for the purposes of selection and build.
This is not part of MVP requirements and probably requires a more detailed proposal.
schemas are not yet integrated properly
The main thing I'm thinking here is to maybe merge the serve and thumb routes into one, and specify the thumb/size as a query string?
Think this should be discussed on the call.
api/assets/serve/1234567890?thumb=true
Would need to be added in conjunction with #9.
(would remove need for _isDeleted).
It would be nice to generate the poster image (video placeholder) just on video upload. Initially it's no big deal and can be done together with thumbnail generation. But some work remains to be done when it comes to the component implementation and we may have to offer an option to let the user replace it later on by a custom version.
Should be thumbnailMaxHeight
This may be an issue with my config settings, but I'm getting files uploaded to the root authoring tool folder. This should be configurable (probably with a default value). Probably shouldn't go in temp, as the expectation here is that temp can in theory be deleted at any point.
i.e. asset
=> assets
Have just properly set up the linter on my machine, and noticed there are various issues.
Nothing major, but might be worth discussing the approach for this at the next meeting.
So no need to hard-code any defaults in the js (e.g. importaudios.js#L5-L16)
During unzip process, the module will create a temp folder to saving the unzipped files, should we delete this temp folder with temp files after the process is finished?
This issue if for tasks in addition to the basic asset upload/download.
If we upload multi-files, we will get empty objects.
Using the current value as default.
https://docs.google.com/document/d/19veTYxGN96B30pt80gaPam25hxoRkseaxnBpo5sAYLk/edit#
- `/` `GET`
- `/:id` `PUT`
- `/serve/:id` `GET`
- `/thumb/:id` `GET`
- `/trash/:id` `PUT`
- `/query` `POST`
- `/:id?` `GET`
- `/:id` `PUT`, `DELETE`
- `/serve/:id?thumb=true` `GET`
- `/query` `POST`
If we switch to using the adapt-authoring-middleware, it can be done via that (#11).
File uploads should instead go via MiddlewareModule#fileUploadParser. See AdaptFrameworkUtils#handleImportFile for a usage example.
The config module should make sure any defaults in the config schema are populated already.
I'm getting an issue when uploading a single asset to [POST] {{server_host}}:{{server_port}}/api/assets
If I try and post a single asset (.jpeg) I get the following error:
error server status code must be a number
Could be related to this line.
Some of these will be picked up by the linter (https://github.com/adapt-security/adapt-authoring-assets/issues/6). But some general points:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.