mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-04-25 14:57:07 -04:00
v3 UI
This commit is contained in:
parent
99feff549d
commit
5894b4fd95
1183 changed files with 91622 additions and 4978 deletions
15
frontend/gulp/helpers/html-annotate-loader.js
Normal file
15
frontend/gulp/helpers/html-annotate-loader.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
const path = require('path');
|
||||
const rootPath = path.resolve(__dirname + '/../../src/');
|
||||
module.exports = function(source) {
|
||||
if (this.cacheable) {
|
||||
this.cacheable();
|
||||
}
|
||||
|
||||
const resourcePath = this.resourcePath.replace(rootPath, '');
|
||||
const wrappedSource =`
|
||||
<!-- begin ${resourcePath} -->
|
||||
${source}
|
||||
<!-- end ${resourcePath} -->`;
|
||||
|
||||
return wrappedSource;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue