revert: 回滚文件模板功能

This commit is contained in:
xream
2024-01-14 12:33:36 +08:00
parent 5ecce27f4e
commit 27a14bb255
5 changed files with 1 additions and 260 deletions

View File

@@ -3,7 +3,6 @@ import { ProxyUtils } from '@/core/proxy-utils';
import { findByName } from '@/utils/database';
import { success, failed } from './response';
import download from '@/utils/download';
import { render } from '@/utils/tpl';
import { SUBS_KEY } from '@/constants';
import $ from '@/core/app';
@@ -64,10 +63,6 @@ async function previewFile(req, res) {
.filter((i) => i != null && i !== '')
.join('\n');
if (file.isTpl) {
filesContent = await render(filesContent);
}
// apply processors
const processed =
Array.isArray(file.process) && file.process.length > 0