mirror of
				https://github.com/flynx/pWiki.git
				synced 2025-11-04 13:00:10 +00:00 
			
		
		
		
	tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									9343c4f0c4
								
							
						
					
					
						commit
						a0152c4192
					
				@ -341,8 +341,18 @@ object.Constructor('BasePage', {
 | 
			
		||||
 | 
			
		||||
	// tags...
 | 
			
		||||
	//
 | 
			
		||||
	/*
 | 
			
		||||
	get tags(){ return async function(){
 | 
			
		||||
		return (await this.data).tags ?? [] }.call(this) },
 | 
			
		||||
	/*/
 | 
			
		||||
	get tags(){
 | 
			
		||||
		var tags = this.store.tags
 | 
			
		||||
		var path = pwpath.sanitize(this.path)
 | 
			
		||||
		return tags instanceof Promise ?
 | 
			
		||||
			tags.then(function(tags){
 | 
			
		||||
				return tags.paths[path] ?? [] })
 | 
			
		||||
			: this.store.tags.paths[path] ?? [] },
 | 
			
		||||
	//*/
 | 
			
		||||
	set tags(value){ return async function(){
 | 
			
		||||
		this.data = {
 | 
			
		||||
			...(await this.data),
 | 
			
		||||
@ -2067,6 +2077,9 @@ module.System = {
 | 
			
		||||
	stores: function(){
 | 
			
		||||
		return Object.keys(this.store.substores ?? {}) },
 | 
			
		||||
 | 
			
		||||
	tagslist: function(){
 | 
			
		||||
		return this.tags },
 | 
			
		||||
 | 
			
		||||
	// page parts...
 | 
			
		||||
	//
 | 
			
		||||
	'line-separator': { text: '<br>' },
 | 
			
		||||
 | 
			
		||||
@ -380,7 +380,11 @@ require(['./browser'], function(browser){
 | 
			
		||||
				lnk.addEventListener('click', refresh) } })
 | 
			
		||||
 | 
			
		||||
	// wait for stuff to finish...
 | 
			
		||||
	browser.setup.then(function(){
 | 
			
		||||
	browser.setup.then(async function(){
 | 
			
		||||
		// index...
 | 
			
		||||
		await logTime(
 | 
			
		||||
			pwiki.store.index(), 
 | 
			
		||||
			'Indexing')
 | 
			
		||||
		// show current page...
 | 
			
		||||
		pwiki.location = decodeURI(location.hash).slice(1) }) }) 
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user