mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Require single quotes
This commit is contained in:
172
src/constants.js
172
src/constants.js
@ -28,106 +28,106 @@ const DIRECTORIES = {
|
||||
};
|
||||
|
||||
const UNSAFE_EXTENSIONS = [
|
||||
".php",
|
||||
".exe",
|
||||
".com",
|
||||
".dll",
|
||||
".pif",
|
||||
".application",
|
||||
".gadget",
|
||||
".msi",
|
||||
".jar",
|
||||
".cmd",
|
||||
".bat",
|
||||
".reg",
|
||||
".sh",
|
||||
".py",
|
||||
".js",
|
||||
".jse",
|
||||
".jsp",
|
||||
".pdf",
|
||||
".html",
|
||||
".htm",
|
||||
".hta",
|
||||
".vb",
|
||||
".vbs",
|
||||
".vbe",
|
||||
".cpl",
|
||||
".msc",
|
||||
".scr",
|
||||
".sql",
|
||||
".iso",
|
||||
".img",
|
||||
".dmg",
|
||||
".ps1",
|
||||
".ps1xml",
|
||||
".ps2",
|
||||
".ps2xml",
|
||||
".psc1",
|
||||
".psc2",
|
||||
".msh",
|
||||
".msh1",
|
||||
".msh2",
|
||||
".mshxml",
|
||||
".msh1xml",
|
||||
".msh2xml",
|
||||
".scf",
|
||||
".lnk",
|
||||
".inf",
|
||||
".reg",
|
||||
".doc",
|
||||
".docm",
|
||||
".docx",
|
||||
".dot",
|
||||
".dotm",
|
||||
".dotx",
|
||||
".xls",
|
||||
".xlsm",
|
||||
".xlsx",
|
||||
".xlt",
|
||||
".xltm",
|
||||
".xltx",
|
||||
".xlam",
|
||||
".ppt",
|
||||
".pptm",
|
||||
".pptx",
|
||||
".pot",
|
||||
".potm",
|
||||
".potx",
|
||||
".ppam",
|
||||
".ppsx",
|
||||
".ppsm",
|
||||
".pps",
|
||||
".ppam",
|
||||
".sldx",
|
||||
".sldm",
|
||||
".ws",
|
||||
'.php',
|
||||
'.exe',
|
||||
'.com',
|
||||
'.dll',
|
||||
'.pif',
|
||||
'.application',
|
||||
'.gadget',
|
||||
'.msi',
|
||||
'.jar',
|
||||
'.cmd',
|
||||
'.bat',
|
||||
'.reg',
|
||||
'.sh',
|
||||
'.py',
|
||||
'.js',
|
||||
'.jse',
|
||||
'.jsp',
|
||||
'.pdf',
|
||||
'.html',
|
||||
'.htm',
|
||||
'.hta',
|
||||
'.vb',
|
||||
'.vbs',
|
||||
'.vbe',
|
||||
'.cpl',
|
||||
'.msc',
|
||||
'.scr',
|
||||
'.sql',
|
||||
'.iso',
|
||||
'.img',
|
||||
'.dmg',
|
||||
'.ps1',
|
||||
'.ps1xml',
|
||||
'.ps2',
|
||||
'.ps2xml',
|
||||
'.psc1',
|
||||
'.psc2',
|
||||
'.msh',
|
||||
'.msh1',
|
||||
'.msh2',
|
||||
'.mshxml',
|
||||
'.msh1xml',
|
||||
'.msh2xml',
|
||||
'.scf',
|
||||
'.lnk',
|
||||
'.inf',
|
||||
'.reg',
|
||||
'.doc',
|
||||
'.docm',
|
||||
'.docx',
|
||||
'.dot',
|
||||
'.dotm',
|
||||
'.dotx',
|
||||
'.xls',
|
||||
'.xlsm',
|
||||
'.xlsx',
|
||||
'.xlt',
|
||||
'.xltm',
|
||||
'.xltx',
|
||||
'.xlam',
|
||||
'.ppt',
|
||||
'.pptm',
|
||||
'.pptx',
|
||||
'.pot',
|
||||
'.potm',
|
||||
'.potx',
|
||||
'.ppam',
|
||||
'.ppsx',
|
||||
'.ppsm',
|
||||
'.pps',
|
||||
'.ppam',
|
||||
'.sldx',
|
||||
'.sldm',
|
||||
'.ws',
|
||||
];
|
||||
|
||||
const PALM_SAFETY = [
|
||||
{
|
||||
category: "HARM_CATEGORY_DEROGATORY",
|
||||
threshold: "BLOCK_NONE"
|
||||
category: 'HARM_CATEGORY_DEROGATORY',
|
||||
threshold: 'BLOCK_NONE'
|
||||
},
|
||||
{
|
||||
category: "HARM_CATEGORY_TOXICITY",
|
||||
threshold: "BLOCK_NONE"
|
||||
category: 'HARM_CATEGORY_TOXICITY',
|
||||
threshold: 'BLOCK_NONE'
|
||||
},
|
||||
{
|
||||
category: "HARM_CATEGORY_VIOLENCE",
|
||||
threshold: "BLOCK_NONE"
|
||||
category: 'HARM_CATEGORY_VIOLENCE',
|
||||
threshold: 'BLOCK_NONE'
|
||||
},
|
||||
{
|
||||
category: "HARM_CATEGORY_SEXUAL",
|
||||
threshold: "BLOCK_NONE"
|
||||
category: 'HARM_CATEGORY_SEXUAL',
|
||||
threshold: 'BLOCK_NONE'
|
||||
},
|
||||
{
|
||||
category: "HARM_CATEGORY_MEDICAL",
|
||||
threshold: "BLOCK_NONE"
|
||||
category: 'HARM_CATEGORY_MEDICAL',
|
||||
threshold: 'BLOCK_NONE'
|
||||
},
|
||||
{
|
||||
category: "HARM_CATEGORY_DANGEROUS",
|
||||
threshold: "BLOCK_NONE"
|
||||
category: 'HARM_CATEGORY_DANGEROUS',
|
||||
threshold: 'BLOCK_NONE'
|
||||
}
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user