mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Remove temporary vector stuff as the sister PR makes it obsolete.
This commit is contained in:
parent
6978436b07
commit
40e4ae9759
18
reskindex.js
18
reskindex.js
@ -45,22 +45,4 @@ for (var i = 0; i < files.length; ++i) {
|
||||
strm.uncork();
|
||||
}
|
||||
|
||||
// Temporary Vector transition
|
||||
var vectorViewsPath = path.join('src', 'skins', 'vector', 'views');
|
||||
if (fs.existsSync(vectorViewsPath)) {
|
||||
strm.write('\n');
|
||||
strm.write('// Old, unported Vector views:\n');
|
||||
var files = glob.sync('**/*.js', {cwd: vectorViewsPath});
|
||||
for (var i = 0; i < files.length; ++i) {
|
||||
var file = files[i].replace('.js', '');
|
||||
|
||||
var moduleName = (file.replace(/\//g, '.'));
|
||||
|
||||
strm.write("module.exports.components['"+moduleName+"'] = require('./skins/vector/views/"+file+"');");
|
||||
strm.write('\n');
|
||||
strm.uncork();
|
||||
}
|
||||
}
|
||||
|
||||
strm.end();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user