You've already forked joplin
							
							
				mirror of
				https://github.com/laurent22/joplin.git
				synced 2025-10-31 00:07:48 +02:00 
			
		
		
		
	Minor changes
This commit is contained in:
		| @@ -7,7 +7,7 @@ | ||||
|     "url": "https://github.com/laurent22/joplin" | ||||
|   }, | ||||
|   "url": "git://github.com/laurent22/joplin.git", | ||||
|   "version": "0.8.40", | ||||
|   "version": "0.8.41", | ||||
|   "bin": { | ||||
|     "joplin": "./main_launcher.js" | ||||
|   }, | ||||
|   | ||||
| @@ -90,8 +90,8 @@ android { | ||||
| 		applicationId "net.cozic.joplin" | ||||
| 		minSdkVersion 16 | ||||
| 		targetSdkVersion 22 | ||||
| 		versionCode 11 | ||||
| 		versionName "0.8.9" | ||||
| 		versionCode 12 | ||||
| 		versionName "0.8.10" | ||||
| 		ndk { | ||||
| 			abiFilters "armeabi-v7a", "x86" | ||||
| 		} | ||||
|   | ||||
| @@ -310,6 +310,13 @@ class BaseItem extends BaseModel { | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	static modelTypeToClassName(type) { | ||||
| 		for (let i = 0; i < BaseItem.syncItemDefinitions_.length; i++) { | ||||
| 			if (BaseItem.syncItemDefinitions_[i].type == type) return BaseItem.syncItemDefinitions_[i].className; | ||||
| 		} | ||||
| 		throw new Error('Invalid type: ' + type); | ||||
| 	} | ||||
|  | ||||
| } | ||||
|  | ||||
| // Also update: | ||||
|   | ||||
| @@ -59,7 +59,11 @@ class ReportService { | ||||
| 		section.title = _('Folders'); | ||||
| 		section.body = []; | ||||
|  | ||||
| 		let folders = await Folder.all(); | ||||
| 		let folders = await Folder.all({ | ||||
| 			orderBy: 'title', | ||||
| 			caseInsensitive: true, | ||||
| 		}); | ||||
|  | ||||
| 		for (let i = 0; i < folders.length; i++) { | ||||
| 			let folder = folders[i]; | ||||
| 			section.body.push(_('%s: %d notes', folders[i].title, await Folder.noteCount(folders[i].id))); | ||||
|   | ||||
| @@ -1,3 +1,4 @@ | ||||
| import fs from 'fs-extra'; | ||||
| import { shim } from 'lib/shim.js'; | ||||
| import { GeolocationNode } from 'lib/geolocation-node.js'; | ||||
|  | ||||
|   | ||||
| @@ -46,6 +46,11 @@ class Synchronizer { | ||||
| 		line.push(action); | ||||
| 		line.push(reason); | ||||
|  | ||||
| 		let type = local && local.type_ ? local.type_ : null; | ||||
| 		if (!type) type = remote && remote.type_ ? remote.type_ : null; | ||||
|  | ||||
| 		if (type) line.push(BaseItem.modelTypeToClassName(type)); | ||||
|  | ||||
| 		if (local) { | ||||
| 			let s = []; | ||||
| 			s.push(local.id); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user