mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	fix setup on non-root paths #404
This commit is contained in:
		
							parent
							
								
									522f71cb91
								
							
						
					
					
						commit
						a16aaf7a81
					
				
							
								
								
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										2
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "trilium",
 | 
					  "name": "trilium",
 | 
				
			||||||
  "version": "0.37.2",
 | 
					  "version": "0.37.3",
 | 
				
			||||||
  "lockfileVersion": 1,
 | 
					  "lockfileVersion": 1,
 | 
				
			||||||
  "requires": true,
 | 
					  "requires": true,
 | 
				
			||||||
  "dependencies": {
 | 
					  "dependencies": {
 | 
				
			||||||
 | 
				
			|||||||
@ -76,12 +76,12 @@ function SetupModel() {
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            // not using server.js because it loads too many dependencies
 | 
					            // not using server.js because it loads too many dependencies
 | 
				
			||||||
            $.post('/api/setup/new-document', {
 | 
					            $.post('api/setup/new-document', {
 | 
				
			||||||
                username: username,
 | 
					                username: username,
 | 
				
			||||||
                password: password1,
 | 
					                password: password1,
 | 
				
			||||||
                theme: theme
 | 
					                theme: theme
 | 
				
			||||||
            }).then(() => {
 | 
					            }).then(() => {
 | 
				
			||||||
                window.location.replace("/");
 | 
					                window.location.replace("./");
 | 
				
			||||||
            });
 | 
					            });
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        else if (this.setupType() === 'sync-from-server') {
 | 
					        else if (this.setupType() === 'sync-from-server') {
 | 
				
			||||||
@ -128,10 +128,10 @@ function SetupModel() {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
async function checkOutstandingSyncs() {
 | 
					async function checkOutstandingSyncs() {
 | 
				
			||||||
    const { stats, initialized } = await $.get('/api/sync/stats');
 | 
					    const { stats, initialized } = await $.get('api/sync/stats');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (initialized) {
 | 
					    if (initialized) {
 | 
				
			||||||
        window.location.replace("/");
 | 
					        window.location.replace("./");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const totalOutstandingSyncs = stats.outstandingPushes + stats.outstandingPulls;
 | 
					    const totalOutstandingSyncs = stats.outstandingPushes + stats.outstandingPulls;
 | 
				
			||||||
 | 
				
			|||||||
@ -138,7 +138,6 @@
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<script type="text/javascript">
 | 
					<script type="text/javascript">
 | 
				
			||||||
    const baseApiUrl = 'api/';
 | 
					 | 
				
			||||||
    const glob = {
 | 
					    const glob = {
 | 
				
			||||||
        sourceId: ''
 | 
					        sourceId: ''
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user