mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
upgrade to 1.6.5
This commit is contained in:
parent
7cc7bb1abc
commit
8d27f3cf03
3 changed files with 276 additions and 0 deletions
48
src/locales/pms.json
Normal file
48
src/locales/pms.json
Normal file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
"@metadata": {
|
||||
"authors": [
|
||||
"Borichèt"
|
||||
]
|
||||
},
|
||||
"index.newPad": "Feuj neuv",
|
||||
"index.createOpenPad": "o creé/duverté un feuj antitolà:",
|
||||
"pad.toolbar.bold.title": "Grassèt (Ctrl+B)",
|
||||
"pad.toolbar.italic.title": "Corsiv (Ctrl+I)",
|
||||
"pad.toolbar.underline.title": "Sotlignà (Ctrl+U)",
|
||||
"pad.toolbar.strikethrough.title": "Barà (Ctrl+5)",
|
||||
"pad.toolbar.ol.title": "Lista ordinà (Ctrl+Shift+N)",
|
||||
"pad.toolbar.ul.title": "Lista nen ordinà (Ctrl+Shift+L)",
|
||||
"pad.toolbar.indent.title": "Andenté (TAB)",
|
||||
"pad.toolbar.unindent.title": "Disandenté (Maj+TAB)",
|
||||
"pad.toolbar.undo.title": "Anulé (Ctrl+Z)",
|
||||
"pad.toolbar.redo.title": "Ristabilì (Ctrl+Y)",
|
||||
"pad.toolbar.clearAuthorship.title": "Dëscancelé ij color ch'a identìfico j'autor (Ctrl+Shift+C)",
|
||||
"pad.toolbar.import_export.title": "Amporté/Esporté da/vers dij formà d'archivi diferent",
|
||||
"pad.toolbar.timeslider.title": "Stòria dinàmica",
|
||||
"pad.toolbar.savedRevision.title": "Argistré la revision",
|
||||
"pad.toolbar.settings.title": "Paràmeter",
|
||||
"pad.toolbar.embed.title": "Partagé e antëgré ës feuj",
|
||||
"pad.toolbar.showusers.title": "Smon-e j'utent ansima a 's feuj",
|
||||
"pad.colorpicker.save": "Argistré",
|
||||
"pad.colorpicker.cancel": "Anulé",
|
||||
"pad.loading": "Antramentr ch'as caria…",
|
||||
"pad.noCookie": "Ël bëscotin a l'é nen ëstàit trovà. Për piasì, ch'a autorisa ij bëscotin su sò navigador!",
|
||||
"pad.passwordRequired": "A l'ha da manca ëd na ciav për acede a cost feuj-sì",
|
||||
"pad.permissionDenied": "A l'ha nen ël përmess d'acede a 's feuj-sì",
|
||||
"pad.wrongPassword": "Soa ciav a l'era nen giusta",
|
||||
"pad.settings.padSettings": "Paràmeter dël feuj",
|
||||
"pad.settings.myView": "Mia vista",
|
||||
"pad.settings.stickychat": "Ciaciarade sempe an slë scren",
|
||||
"pad.settings.chatandusers": "Smon-e le ciaciarade e j'utent",
|
||||
"pad.settings.colorcheck": "Color d'identificassion",
|
||||
"pad.settings.linenocheck": "Nùmer ëd linia",
|
||||
"pad.settings.rtlcheck": "Ël contnù, dev-lo esse lesù da drita a snistra?",
|
||||
"pad.settings.fontType": "Sòrt ëd caràter:",
|
||||
"pad.settings.globalView": "Vista d'ansem",
|
||||
"pad.settings.language": "Lenga:",
|
||||
"pad.importExport.import_export": "Amporté/Esporté",
|
||||
"pad.importExport.import": "Carié n'archivi o document ëd test",
|
||||
"pad.importExport.importSuccessful": "Bele fàit!",
|
||||
"pad.importExport.export": "Esporté ël feuj atual coma:",
|
||||
"pad.importExport.exportetherpad": "Etherpad"
|
||||
}
|
83
src/node/hooks/express/isValidJSONPName.js
Normal file
83
src/node/hooks/express/isValidJSONPName.js
Normal file
|
@ -0,0 +1,83 @@
|
|||
const RESERVED_WORDS = [
|
||||
'abstract',
|
||||
'arguments',
|
||||
'await',
|
||||
'boolean',
|
||||
'break',
|
||||
'byte',
|
||||
'case',
|
||||
'catch',
|
||||
'char',
|
||||
'class',
|
||||
'const',
|
||||
'continue',
|
||||
'debugger',
|
||||
'default',
|
||||
'delete',
|
||||
'do',
|
||||
'double',
|
||||
'else',
|
||||
'enum',
|
||||
'eval',
|
||||
'export',
|
||||
'extends',
|
||||
'false',
|
||||
'final',
|
||||
'finally',
|
||||
'float',
|
||||
'for',
|
||||
'function',
|
||||
'goto',
|
||||
'if',
|
||||
'implements',
|
||||
'import',
|
||||
'in',
|
||||
'instanceof',
|
||||
'int',
|
||||
'interface',
|
||||
'let',
|
||||
'long',
|
||||
'native',
|
||||
'new',
|
||||
'null',
|
||||
'package',
|
||||
'private',
|
||||
'protected',
|
||||
'public',
|
||||
'return',
|
||||
'short',
|
||||
'static',
|
||||
'super',
|
||||
'switch',
|
||||
'synchronized',
|
||||
'this',
|
||||
'throw',
|
||||
'throws',
|
||||
'transient',
|
||||
'true',
|
||||
'try',
|
||||
'typeof',
|
||||
'var',
|
||||
'void',
|
||||
'volatile',
|
||||
'while',
|
||||
'with',
|
||||
'yield'
|
||||
];
|
||||
|
||||
const regex = /^[a-zA-Z_$][0-9a-zA-Z_$]*(?:\[(?:".+"|\'.+\'|\d+)\])*?$/;
|
||||
|
||||
module.exports.check = function(inputStr) {
|
||||
var isValid = true;
|
||||
inputStr.split(".").forEach(function(part) {
|
||||
if (!regex.test(part)) {
|
||||
isValid = false;
|
||||
}
|
||||
|
||||
if (RESERVED_WORDS.indexOf(part) !== -1) {
|
||||
isValid = false;
|
||||
}
|
||||
});
|
||||
|
||||
return isValid;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue