mirror of
				https://github.com/9001/copyparty.git
				synced 2025-11-04 05:43:17 +00:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					f7dbd95a54 | 
@@ -1,8 +1,8 @@
 | 
				
			|||||||
# coding: utf-8
 | 
					# coding: utf-8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VERSION = (0, 11, 42)
 | 
					VERSION = (0, 11, 43)
 | 
				
			||||||
CODENAME = "the grid"
 | 
					CODENAME = "the grid"
 | 
				
			||||||
BUILD_DT = (2021, 7, 18)
 | 
					BUILD_DT = (2021, 7, 19)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
S_VERSION = ".".join(map(str, VERSION))
 | 
					S_VERSION = ".".join(map(str, VERSION))
 | 
				
			||||||
S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)
 | 
					S_BUILD_DT = "{0:04d}-{1:02d}-{2:02d}".format(*BUILD_DT)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1146,7 +1146,7 @@ var audio_eq = (function () {
 | 
				
			|||||||
				v = parseFloat(vs);
 | 
									v = parseFloat(vs);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (isNaN(v) || v + '' != vs)
 | 
								if (isNaN(v) || v + '' != vs)
 | 
				
			||||||
				throw 42;
 | 
									throw new Error('inval band');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			if (isNaN(band))
 | 
								if (isNaN(band))
 | 
				
			||||||
				r.amp = Math.round((v + step * 0.2) * 100) / 100;
 | 
									r.amp = Math.round((v + step * 0.2) * 100) / 100;
 | 
				
			||||||
@@ -2954,7 +2954,7 @@ var arcfmt = (function () {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
			var ofs = href.lastIndexOf('?');
 | 
								var ofs = href.lastIndexOf('?');
 | 
				
			||||||
			if (ofs < 0)
 | 
								if (ofs < 0)
 | 
				
			||||||
				throw 'missing arg in url';
 | 
									throw new Error('missing arg in url');
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			o.setAttribute("href", href.slice(0, ofs + 1) + arg);
 | 
								o.setAttribute("href", href.slice(0, ofs + 1) + arg);
 | 
				
			||||||
			o.textContent = fmt.split('_')[0];
 | 
								o.textContent = fmt.split('_')[0];
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -290,8 +290,7 @@ function U2pvis(act, btns) {
 | 
				
			|||||||
                if (this.is_act(this.tab[a].in))
 | 
					                if (this.is_act(this.tab[a].in))
 | 
				
			||||||
                    console.log("tab %d/%d = sz %s", a, aa, this.tab[a].bt);
 | 
					                    console.log("tab %d/%d = sz %s", a, aa, this.tab[a].bt);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            console.log("a");
 | 
					            throw new Error('see console');
 | 
				
			||||||
            throw 42;
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        obj.innerHTML = fo.hp;
 | 
					        obj.innerHTML = fo.hp;
 | 
				
			||||||
@@ -304,15 +303,8 @@ function U2pvis(act, btns) {
 | 
				
			|||||||
            oldcat = fo.in,
 | 
					            oldcat = fo.in,
 | 
				
			||||||
            bz_act = this.act == "bz";
 | 
					            bz_act = this.act == "bz";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if (oldcat == newcat) {
 | 
					        if (oldcat == newcat)
 | 
				
			||||||
            throw 42;
 | 
					            return;
 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        //console.log("oldcat %s %d, newcat %s %d, head=%d, tail=%d, file=%d, act.old=%s, act.new=%s, bz_act=%s",
 | 
					 | 
				
			||||||
        //    oldcat, this.ctr[oldcat],
 | 
					 | 
				
			||||||
        //    newcat, this.ctr[newcat],
 | 
					 | 
				
			||||||
        //    this.head, this.tail, nfile,
 | 
					 | 
				
			||||||
        //    this.is_act(oldcat), this.is_act(newcat), bz_act);
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        fo.in = newcat;
 | 
					        fo.in = newcat;
 | 
				
			||||||
        this.ctr[oldcat]--;
 | 
					        this.ctr[oldcat]--;
 | 
				
			||||||
@@ -468,6 +460,12 @@ function U2pvis(act, btns) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					function fsearch_explain(e) {
 | 
				
			||||||
 | 
					    ev(e);
 | 
				
			||||||
 | 
					    alert('you are currently in file-search mode\n\nswitch to upload-mode by clicking the green magnifying glass (next to the big yellow search button), and then refresh\n\nsorry');
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function up2k_init(subtle) {
 | 
					function up2k_init(subtle) {
 | 
				
			||||||
    // show modal message
 | 
					    // show modal message
 | 
				
			||||||
    function showmodal(msg) {
 | 
					    function showmodal(msg) {
 | 
				
			||||||
@@ -1298,8 +1296,10 @@ function up2k_init(subtle) {
 | 
				
			|||||||
                        smsg = '';
 | 
					                        smsg = '';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                    if (!response || !response.hits || !response.hits.length) {
 | 
					                    if (!response || !response.hits || !response.hits.length) {
 | 
				
			||||||
                        msg = 'not found on server';
 | 
					 | 
				
			||||||
                        smsg = '404';
 | 
					                        smsg = '404';
 | 
				
			||||||
 | 
					                        msg = 'not found on server';
 | 
				
			||||||
 | 
					                        if (has(perms, 'write'))
 | 
				
			||||||
 | 
					                            msg += ' <a href="#" onclick="fsearch_explain()" class="fsearch_explain">(explain)</a>';
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    else {
 | 
					                    else {
 | 
				
			||||||
                        smsg = 'found';
 | 
					                        smsg = 'found';
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -257,6 +257,11 @@ html.light #u2foot .warn span {
 | 
				
			|||||||
	float: right;
 | 
						float: right;
 | 
				
			||||||
	margin-bottom: -.3em;
 | 
						margin-bottom: -.3em;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					.fsearch_explain {
 | 
				
			||||||
 | 
						padding-left: .7em;
 | 
				
			||||||
 | 
						font-size: 1.1em;
 | 
				
			||||||
 | 
						line-height: 0;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user