Markus-Rost il y a 4 ans
Parent
commit
2be4e53817
3 fichiers modifiés avec 3 ajouts et 12 suppressions
  1. 1 1
      dashboard/oauth.js
  2. 1 1
      util/default.json
  3. 1 10
      util/wiki.js

+ 1 - 1
dashboard/oauth.js

@@ -36,7 +36,7 @@ function dashboard_login(res, dashboardLang, state, action) {
 		const allLangs = ${JSON.stringify(allLangs)};
 	`).insertBefore('script#langjs');
 	$('head title').text(dashboardLang.get('general.login') + ' – ' + dashboardLang.get('general.title'));
-	$('#login-botton span, .channel#login div').text(dashboardLang.get('general.login'));
+	$('#login-button span, .channel#login div').text(dashboardLang.get('general.login'));
 	$('.channel#invite-wikibot div').text(dashboardLang.get('general.invite'));
 	$('.guild#invite a').attr('alt', dashboardLang.get('general.invite'));
 	$('#support span').text(dashboardLang.get('general.support'));

+ 1 - 1
util/default.json

@@ -18,7 +18,7 @@
 		},
 		"verification": {
 			"default": 10,
-			"patreon": 15
+			"patreon": 25
 		},
 		"rcgcdw": {
 			"default": 1,

+ 1 - 10
util/wiki.js

@@ -123,15 +123,6 @@ class Wiki extends URL {
 		].includes( message.replace( /Unexpected token < in JSON at position 0 in "([^ ]+)"/, '$1' ) );
 	}
 
-	/**
-	 * Get an URI encoded link.
-	 * @param {String} [title] - Name of the page.
-	 * @returns {String}
-	 */
-	toDescLink(title = this.mainpage) {
-		return this.articleURL.href.replace( '$1', encodeURIComponent( title.replace( / /g, '_' ) ) );
-	}
-
 	/**
 	 * Get a page link.
 	 * @param {String} [title] - Name of the page.
@@ -156,7 +147,7 @@ class Wiki extends URL {
 			link.searchParams.append(name, value);
 		} );
 		let output = decodeURI( link ).replace( /\\/g, '%5C' ).replace( /@(here|everyone)/g, '%40$1' ) + Wiki.toSection(fragment);
-		if ( isMarkdown ) return output.replace( /[()]/g, '\\$&' );
+		if ( isMarkdown ) return output.replace( /\(/g, '%28' ).replace( /\)/g, '%29' );
 		else return output;
 	}