How to use the evt.getAllAttachsLocalUrlPrefix function in evt

To help you get started, we’ve selected a few evt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github leanote / desktop-app / node_modules / note.js View on Github external
fixNoteContentForSend: function(content) {
		if(!content) {
			return content;
		}

		// console.log(Evt.localUrl + '/api/file/getImage');
		// console.log(content);
		var reg = new RegExp(Evt.getImageLocalUrlPrefix(), 'g');
		content = content.replace(reg, Evt.leanoteUrl + '/api/file/getImage');

		var reg2 = new RegExp(Evt.getAttachLocalUrlPrefix(), 'g');
		content = content.replace(reg2, Evt.leanoteUrl + '/api/file/getAttach');

		var reg3 = new RegExp(Evt.getAllAttachsLocalUrlPrefix(), 'g');
		content = content.replace(reg3, Evt.leanoteUrl + '/api/file/getAllAttachs');

		return content;
	},
github leanote / desktop-app / node_modules / note.js View on Github external
var reg0 = new RegExp(url + '/file/outputImage', 'g');
		content = content.replace(reg0, Evt.getImageLocalUrlPrefix());

		var reg = new RegExp(url + '/api/file/getImage', 'g');
		content = content.replace(reg, Evt.getImageLocalUrlPrefix());

		var reg2 = new RegExp(url + '/api/file/getAttach', 'g');
		content = content.replace(reg2, Evt.getAttachLocalUrlPrefix());

		var reg3 = new RegExp(url + '/attach/download?attachId', 'g');
		content = content.replace(reg3, Evt.getAttachLocalUrlPrefix() + '?fileId');

		// 无用
		// api/file/getAllAttachs?noteId=xxxxxxxxx, 这里的noteId是服务器上的noteId啊
		var reg4 = new RegExp(url + '/api/file/getAllAttachs', 'g');
		content = content.replace(reg4, Evt.getAllAttachsLocalUrlPrefix());

		return content;
	},