[mod] move links
This commit is contained in:
		
							parent
							
								
									8d47b8c9c3
								
							
						
					
					
						commit
						b001d124f6
					
				
					 6 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -7,13 +7,14 @@
 | 
			
		|||
 | 
			
		||||
fish.local {
 | 
			
		||||
        encode zstd gzip
 | 
			
		||||
        root .
 | 
			
		||||
        file_server browse
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
n2-plus.local {
 | 
			
		||||
        encode zstd gzip
 | 
			
		||||
        templates
 | 
			
		||||
        root links
 | 
			
		||||
        file_server browse
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
Caddy
 | 
			
		||||
 | 
			
		||||
needs plugins
 | 
			
		||||
| 
						 | 
				
			
			@ -1,3 +1,4 @@
 | 
			
		|||
# hack file:// load
 | 
			
		||||
if (/^file:\/\/\//.test(location.href)) {
 | 
			
		||||
    let path = './';
 | 
			
		||||
    let orig = fetch;
 | 
			
		||||
| 
						 | 
				
			
			@ -46,7 +47,7 @@ var app = new Vue({
 | 
			
		|||
  methods:{
 | 
			
		||||
	  load() {
 | 
			
		||||
		      this.hits += 1
 | 
			
		||||
			  fetch("data.json")
 | 
			
		||||
			  fetch("links.json")
 | 
			
		||||
		        .then(response => response.json())
 | 
			
		||||
		        .then(data => (this.json = data));
 | 
			
		||||
           }
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue