1 Commits

Author SHA1 Message Date
di3forme
fb85cc1e12 Fix for YOURLS 1.9.2 and updated README 2025-03-16 02:35:55 +03:00
4 changed files with 17 additions and 36 deletions

View File

@@ -27,7 +27,7 @@ The tables and graphs have a horizontal scroll on mobile when the viewport becom
## Installing ## Installing
1. First install the YOURLS scripts and database. 1. First install the YOURLS scripts and database.
2. Download or clone this repo into the plugins folder in your YOURLS install `user/plugins/`. 2. Download or clone this repo into the plugins folder in your YOURLS install `user/plugins/`. Make sure the folder is called `air66theme` to reduce potential issues.
3. Login into the admin area of YOURLS and activate the plugin. 3. Login into the admin area of YOURLS and activate the plugin.
4. The Air 66 Admin Theme is now active. 4. The Air 66 Admin Theme is now active.

View File

@@ -77,7 +77,7 @@ $( document ).ready(function() {
// Update footer // Update footer
var content = $(this).html(); var content = $(this).html();
var i = 77 var i = 77
var updated_content = "Running on" + content.slice(13, i) + '& <a href="https://air66design.com/" title="Air 66 Design Ltd" target="_blank">Air 66 Design Ltd</a>' + content.slice(i-1) var updated_content = "Running on " + content.slice(13, i) + ' & <a href="https://air66design.com/" title="Air 66 Design Ltd" target="_blank">Air 66 Design Ltd</a>' + content.slice(i)
$(this).html(updated_content); $(this).html(updated_content);
} }
}); });

2
dist/main.js vendored
View File

@@ -1 +1 @@
$(document).ready(function(){var a;a=$("meta[name=pluginURL]").attr("content")?$("meta[name=pluginURL]").attr("content"):"/user/plugins/air66Theme",$("body").hasClass("login")&&$("#login").prepend('<img class="air66-logo" src="'+a+'/dist/images/a66-logo.svg" alt="Air 66 Design Ltd Logo">'),$("header[role=banner]").hide(),$("header[role=banner]").remove(),$("#admin_menu_help_link").remove(),$("#admin_menu").append('<li class="admin_menu_toplevel"><a href="https://air66design.com" target="_blank">Contact Air 66 Design</a></li>'),$("body").prepend($('<header class="site-header">').load(a+"/dist/html/header.php",function(){if($(".site-header").append('<div class="air66-logo-wrap"><a class="air66-logo-link" href="https://air66design.com" target="_blank"><img class="air66-logo" src="'+a+'/dist/images/a66-logo-wh.svg" alt="Air 66 Design Ltd Logo"></a></div>'),$("body").prepend('<div class="nav-overlay"></div>'),$("#menu-icon").click(function(){$(this).toggleClass("open"),$("nav, .nav-overlay").toggleClass("nav-open")}),$("body").hasClass("index")){$("#new_url").hide();var e=$("#nonce-add").val();$("#new_url").remove(),$(".index").prepend($('<div class="form-wrap">').load(a+"/dist/html/form.php",function(){$("#nonce-add").val(e)}))}})),$('link[rel="shortcut icon"]').attr("href",a+"/dist/images/favicon.ico"),$("#main_table").wrap("<div class='table-responsive'></div>"),$("#main_table").addClass("table"),$("p").each(function(e){if(/Display/.test($(this).text())||/Overall/.test($(this).text()))$("main").append("<p>"+$(this).html()+"</p>"),$(this).remove();else if(/Powered by/.test($(this).text())){var a=$(this).html(),t="Running on"+a.slice(13,77)+'& <a href="https://air66design.com/" title="Air 66 Design Ltd" target="_blank">Air 66 Design Ltd</a>'+a.slice(76);$(this).html(t)}}),$("#stat_tab_stats, #stat_tab_location, #stat_tab_sources, #stat_tab_share").wrapAll('<div class="tab-scroll"></div>'),$("#admin_menu_help_link").remove()}); $(document).ready(function(){var a;a=$("meta[name=pluginURL]").attr("content")?$("meta[name=pluginURL]").attr("content"):"/user/plugins/air66theme",$("body").hasClass("login")&&$("#login").prepend('<img class="air66-logo" src="'+a+'/dist/images/a66-logo.svg" alt="Air 66 Design Ltd Logo">'),$("header[role=banner]").hide(),$("header[role=banner]").remove(),$("#admin_menu_help_link").remove(),$("#admin_menu").append('<li class="admin_menu_toplevel"><a href="https://air66design.com" target="_blank">Contact Air 66 Design</a></li>'),$("body").prepend($('<header class="site-header">').load(a+"/dist/html/header.php",function(){if($(".site-header").append('<div class="air66-logo-wrap"><a class="air66-logo-link" href="https://air66design.com" target="_blank"><img class="air66-logo" src="'+a+'/dist/images/a66-logo-wh.svg" alt="Air 66 Design Ltd Logo"></a></div>'),$("body").prepend('<div class="nav-overlay"></div>'),$("#menu-icon").click(function(){$(this).toggleClass("open"),$("nav, .nav-overlay").toggleClass("nav-open")}),$("body").hasClass("index")){$("#new_url").hide();var e=$("#nonce-add").val();$("#new_url").remove(),$(".index").prepend($('<div class="form-wrap">').load(a+"/dist/html/form.php",function(){$("#nonce-add").val(e)}))}})),$('link[rel="shortcut icon"]').attr("href",a+"/dist/images/favicon.ico"),$("#main_table").wrap("<div class='table-responsive'></div>"),$("#main_table").addClass("table"),$("p").each(function(e){if(/Display/.test($(this).text())||/Overall/.test($(this).text()))$("main").append("<p>"+$(this).html()+"</p>"),$(this).remove();else if(/Powered by/.test($(this).text())){var a=$(this).html(),t="Running on "+a.slice(13,77)+' & <a href="https://air66design.com/" title="Air 66 Design Ltd" target="_blank">Air 66 Design Ltd</a>'+a.slice(77);$(this).html(t)}}),$("#stat_tab_stats, #stat_tab_location, #stat_tab_sources, #stat_tab_share").wrapAll('<div class="tab-scroll"></div>'),$("#admin_menu_help_link").remove()});

47
package-lock.json generated
View File

@@ -1809,8 +1809,7 @@
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"aproba": { "aproba": {
"version": "1.2.0", "version": "1.2.0",
@@ -1831,14 +1830,12 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
@@ -1853,20 +1850,17 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
@@ -1983,8 +1977,7 @@
"inherits": { "inherits": {
"version": "2.0.3", "version": "2.0.3",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
@@ -1996,7 +1989,6 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
@@ -2011,7 +2003,6 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
@@ -2019,14 +2010,12 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.3.5", "version": "2.3.5",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.2", "safe-buffer": "^5.1.2",
"yallist": "^3.0.0" "yallist": "^3.0.0"
@@ -2045,7 +2034,6 @@
"version": "0.5.1", "version": "0.5.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
} }
@@ -2126,8 +2114,7 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
@@ -2139,7 +2126,6 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
@@ -2225,8 +2211,7 @@
"safe-buffer": { "safe-buffer": {
"version": "5.1.2", "version": "5.1.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"safer-buffer": { "safer-buffer": {
"version": "2.1.2", "version": "2.1.2",
@@ -2262,7 +2247,6 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",
@@ -2282,7 +2266,6 @@
"version": "3.0.1", "version": "3.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "^2.0.0"
} }
@@ -2326,14 +2309,12 @@
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"yallist": { "yallist": {
"version": "3.0.3", "version": "3.0.3",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
} }
} }
}, },
@@ -4102,9 +4083,9 @@
"dev": true "dev": true
}, },
"path-parse": { "path-parse": {
"version": "1.0.7", "version": "1.0.6",
"resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz",
"integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==",
"dev": true "dev": true
}, },
"path-root": { "path-root": {