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
<?php | |
/* | |
* This file is part of Flarum. | |
* | |
* For detailed copyright and license information, please view the | |
* LICENSE file that was distributed with this source code. | |
*/ | |
namespace Flarum\Extension; |
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
import highlight from 'flarum/helpers/highlight'; | |
import avatar from 'flarum/helpers/avatar'; | |
import username from 'flarum/helpers/username'; | |
export default class UserSearchSource { | |
view(query) { | |
if (!query || query.length < 3 || this.loading) return; | |
if (!app.cache.byobuResults) { | |
app.cache.byobuResults = []; |
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
<?php | |
echo "########################################################\nWelcome to the beta 7 to beta 8 Flarum update utility\n########################################################\n\n"; | |
echo "Before we start, make sure you have disabled all of your 3rd party extensions\n"; | |
echo "If you do not disable them before running this utility, your forum WILL BREAK!\n"; | |
echo "Have you disabled your 3rd party extensions? (Type 'yes'): "; | |
$input = rtrim(fgets(STDIN)); | |
if (strtolower($input) !== 'yes') { | |
exit(1); |
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
/* | |
OpenLayers.js -- OpenLayers Map Viewer Library | |
Copyright (c) 2006-2013 by OpenLayers Contributors | |
Published under the 2-clause BSD license. | |
See https://openlayers.org/dev/license.txt for the full text of the license, and https://openlayers.org/dev/authors.txt for full list of contributors. | |
Includes compressed code under the following licenses: |
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
#!/usr/bin/env bash | |
echo 'Converting, please wait...' | |
find . -name '*.js' -print0 | xargs -0 sed -iBackup -e 's/fa fa-/fas fa-/g' | |
find . -name "*.jsBackup" -type f -delete | |
echo 'Done!' |
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
#!/usr/bin/env bash | |
echo -e "Script created by \e[1;31mCDK2020\e[0m" | |
echo 'Converting, please wait...' | |
find . -name '*.php' -print0 | xargs -0 sed -iBackup -e 's/Flarum\\?Core\\Notification\\NotificationInterface/Flarum\\Notification\\NotificationInterface/g' | |
find . -name '*.php' -print0 | xargs -0 sed -iBackup -e 's/Flarum\\?Core\\Notification\\NotificationMailer/Flarum\\Notification\\NotificationMailer/g' | |
find . -name '*.php' -print0 | xargs -0 sed -iBackup -e 's/Flarum\\?Core\\Notification\\NotificationServiceProvider/Flarum\\Notification\\NotificationServiceProvider/g' | |
find . -name '*.php' -print0 | xargs -0 sed -iBackup -e 's/Flarum\\?Core\\Notification\\NotificationSyncer/Flarum\\Notification\\NotificationSyncer/g' |
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 code | |
<?php | |
/** | |
* This file is part of reflar/reactions | |
* | |
* Copyright (c) ReFlar. | |
* | |
* http://reflar.io |