mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-10-31 02:50:08 +00:00 
			
		
		
		
	notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									94d65f6064
								
							
						
					
					
						commit
						988abb3cbf
					
				
							
								
								
									
										19
									
								
								pwiki2.js
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								pwiki2.js
									
									
									
									
									
								
							| @ -290,9 +290,14 @@ var store = | |||||||
| module.store = { | module.store = { | ||||||
| 	__proto__: BaseStore, | 	__proto__: BaseStore, | ||||||
| 
 | 
 | ||||||
| 	// base actions (virtual pages)...
 | 	// metadata...
 | ||||||
|  | 	//
 | ||||||
| 	'System/path': function(page){ | 	'System/path': function(page){ | ||||||
| 		return this.get('..').path }, | 		return this.get('..').path }, | ||||||
|  | 	'System/location': function(page){ | ||||||
|  | 		return this.get('..').path }, | ||||||
|  | 	'System/resolved': function(page){ | ||||||
|  | 		return this.get('..').match() }, | ||||||
| 	'System/dir': function(page){ | 	'System/dir': function(page){ | ||||||
| 		return this.get('..').dir }, | 		return this.get('..').dir }, | ||||||
| 	'System/name': function(page){ | 	'System/name': function(page){ | ||||||
| @ -303,10 +308,14 @@ module.store = { | |||||||
| 		return p.title  | 		return p.title  | ||||||
| 			?? p.name }, | 			?? p.name }, | ||||||
| 
 | 
 | ||||||
| 
 | 	// actions...
 | ||||||
| 	// XXX other things to do...
 |  | ||||||
| 	// 		- title
 |  | ||||||
| 	//
 | 	//
 | ||||||
|  | 	// XXX System/subpaths
 | ||||||
|  | 	// XXX System/sort
 | ||||||
|  | 	// XXX System/reverse
 | ||||||
|  | 	// XXX System/delete
 | ||||||
|  | 	// XXX System/back
 | ||||||
|  | 	// XXX System/forward
 | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| @ -368,6 +377,8 @@ object.Constructor('BasePage', { | |||||||
| 	//set name(value){ },
 | 	//set name(value){ },
 | ||||||
| 	get dir(){ | 	get dir(){ | ||||||
| 		return module.path.relative(this.location, '..') }, | 		return module.path.relative(this.location, '..') }, | ||||||
|  | 	// XXX should writing to this move the page???
 | ||||||
|  | 	//set dir(value){ },
 | ||||||
| 
 | 
 | ||||||
| 	//* XXX HISTORY...
 | 	//* XXX HISTORY...
 | ||||||
| 	// NOTE: set this to false to disable history...
 | 	// NOTE: set this to false to disable history...
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user