thpatch / touhoupatchcenter Goto Github PK
View Code? Open in Web Editor NEWCreates a thcrap server from MediaWiki pages.
License: The Unlicense
Creates a thcrap server from MediaWiki pages.
License: The Unlicense
Similar code exists in our Translate fork, but upstream now uses getPageLanguage, so it makes more sense to just set up a PageContentLanguage hook in our LocalSettings like so:
$wgHooks['PageContentLanguage'][] = function( Title $title, &$pageLang, $userLang ) {
global $wgLanguageCode;
$pageLang = Language::factory( $title->getNamespace() !== NS_MAIN ? $wgLanguageCode : 'ja' );
}
Should probably not run this hook when Translate's own hook is activated (in_array( $namespace, $wgTranslateMessageNamespaces );
)
We moved base_tsa from MediaWiki to Github 9 years ago, yet we still have way too much stuff that this move made obsolete. Things like https://browse.thpatch.net/lang_ja/th185.js , https://browse.thpatch.net/lang_ja/th14.v1.00b.js , or the entirety of https://browse.thpatch.net/base_tsa/ don't have any reason to exist anymore. Most of them are also terribly outdated, which means they're quite likely to break things if they're used.
We should work on removing them. For each file (or section of a file), it can be done in 3 steps:
Sometimes, you won't have to do all 3 steps. For example, lang_ja/th185.js doesn't have the "replace the MediaWiki page" step because we still want our nice-looking header on the wiki, we just want it to not generate any patch file. Or lang_ja/th14.v1.00b.js doesn't have the "remove the generation code" step because that code is also used by the skipgame patch, which is still hosted on MediaWiki (we could move it to Github, but that's another question).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.