-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(name change): change battlefield to doublecheck
- Loading branch information
Showing
41 changed files
with
180 additions
and
180 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"description": "A web app for Wikipedians to fight vandalism together.", | ||
"repository": "[email protected]:google/wikiloop-battlefield.git", | ||
"logo": "https://raw.githubusercontent.com/google/wikiloop-battlefield/master/assets/wikiloop-battlefield-logo.png", | ||
"keywords": ["wikiloop", "wikipedia", "wikiloop-battlefield", "counter-vandalism", "anti-vandalism", "vandalism"], | ||
"repository": "[email protected]:google/wikiloop-doublecheck.git", | ||
"logo": "https://raw.githubusercontent.com/google/wikiloop-doublecheck/master/assets/wikiloop-doublecheck-logo.png", | ||
"keywords": ["wikiloop", "wikipedia", "wikiloop-doublecheck", "counter-vandalism", "anti-vandalism", "vandalism"], | ||
"addons": [ | ||
"mongolab" | ||
], | ||
|
@@ -45,7 +45,7 @@ | |
} | ||
}, | ||
"success_url": "/", | ||
"name": "wikiloop-battlefield", | ||
"name": "wikiloop-doublecheck", | ||
"scripts": { | ||
}, | ||
"stack": "heroku-18" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,14 +66,14 @@ export class UsageReportCronJob { | |
"<>":"tr","html":[ | ||
// TODO(xinbenlv): currently only supports English but will expand. | ||
{"<>": "td", html: "<a href='http:https://en.wikipedia.org/wiki/User:${_id.wikiUserName}'>User:${_id.wikiUserName}</a>"}, | ||
{"<>": "td", html: "<a href='http:https://battlefield.wikiloop.org/marked/?wikiUserName=${_id.wikiUserName}'>${count}</a>"} | ||
{"<>": "td", html: "<a href='http:https://doublecheck.wikiloop.org/marked/?wikiUserName=${_id.wikiUserName}'>${count}</a>"} | ||
] | ||
}); | ||
let info = await transporter.sendMail({ | ||
from: `WikiLoop Battlefield Mailer <[email protected]>`, // sender address | ||
from: `WikiLoop DoubleCheck Mailer <[email protected]>`, // sender address | ||
replyTo: '[email protected]', | ||
to: process.env.REPORT_RECEIVER, // list of receivers | ||
subject: `Usage Report (${frequency}) for WikiLoop Battlefield at ${formatedDate}`, // Subject line | ||
subject: `Usage Report (${frequency}) for WikiLoop DoubleCheck at ${formatedDate}`, // Subject line | ||
text: JSON.stringify(report, null, 2), // plain text body | ||
html: html // html body | ||
}); | ||
|
@@ -111,9 +111,9 @@ export class AwardBarnStarCronJob { | |
private static awardBarnstarMsg = async (mwMailer, user, frequency, endDate, isReal) => { | ||
await mwMailer.mail( | ||
isReal ? `User_talk:${user}` : `User:Xinbenlv/Sandbox/User_talk:${user}`, | ||
`== The WikiLoop Battlefield ${frequency} barnstar ==\n` + | ||
`{{subst:Xinbenlv/WikiLoop Battlefield Champion|user=${user}|enddate=${endDate}|timerange=${frequency}}}`, | ||
`Awarding The WikiLoop Battlefield ${frequency} barnstar to ${user} ending on ${endDate}`); | ||
`== The WikiLoop DoubleCheck ${frequency} barnstar ==\n` + | ||
`{{subst:Xinbenlv/WikiLoop DoubleCheck Champion|user=${user}|enddate=${endDate}|timerange=${frequency}}}`, | ||
`Awarding The WikiLoop DoubleCheck ${frequency} barnstar to ${user} ending on ${endDate}`); | ||
}; | ||
|
||
public static awardBarnstar = async function (frequency:string) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.