TAMULib / CAP

MIT License
3 stars 2 forks source link

Sprint2 b 03812 plaintext viewer #85

Closed jeremythuff closed 5 years ago

jeremythuff commented 5 years ago

Resolves B-03812: As a curator, I would like a plaintext viewer template to view plaintext files.

This adds a new component, the plaintext-loader, which is used by the plaintextViewer template to load plaintext directly from the targeted repository. This assumes that the targeted repository will honor the get request by returning the data at res.data.

This uses pre tags, with modified styling to ensure word wrapping, and angular's built-in json filter for formatting.

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 33.553% when pulling b9918db04444a170e25c5e64aa71dee34af9bcb8 on sprint2-B-03812-plaintext-viewer into 91acfb4e6c4e698a1b0040d48fe04b663342d757 on sprint2-staging.