This file contains hidden or 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
| Options FollowSymLinks | |
| AddDefaultCharset utf-8 | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| # the main rewrite rule for the frontend application | |
| RewriteCond %{REQUEST_URI} !^/(backend/web|admin) | |
| RewriteRule !^frontend/web /frontend/web%{REQUEST_URI} [L] |
This file contains hidden or 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 | |
| /** | |
| * @author Alexey Samoylov <[email protected]> | |
| */ | |
| namespace common\components; | |
| use yii\data\DataProviderInterface; | |
| class MapDataProvider implements DataProviderInterface | |
| { |
This file contains hidden or 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
| /** | |
| * @param $url | |
| * @return string | |
| * @throws \yii\base\InvalidConfigException | |
| */ | |
| public static function getAssetUrl($url) | |
| { | |
| $class = ArrayHelper::getValue([ | |
| 'app-frontend' => \frontend\assets\AppAsset::class, | |
| ], \Yii::$app->id); |
This file contains hidden or 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
| func initConfig() { | |
| viper.SetConfigType("toml") | |
| cobra.CheckErr(viper.ReadConfig(bytes.NewBuffer(defaultConfig))) | |
| cobra.CheckErr(viper.BindPFlags(rootCmd.PersistentFlags())) | |
| viper.SetEnvPrefix(envPrefix) | |
| viper.SetEnvKeyReplacer(strings.NewReplacer(".", "_")) | |
| cobra.CheckErr(viper.BindPFlag("log.level", rootCmd.PersistentFlags().Lookup("level"))) | |
| cobra.CheckErr(viper.BindPFlag("log.pretty", rootCmd.PersistentFlags().Lookup("pretty"))) |
This file contains hidden or 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
| package fxrunner | |
| import ( | |
| "context" | |
| "fmt" | |
| "os/signal" | |
| "syscall" | |
| "time" | |
| "go.uber.org/fx" |
This file contains hidden or 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
| # ------------------------------------------------------------------ | |
| # Disallowed / Restricted Content Definitions | |
| # ------------------------------------------------------------------ | |
| 1️⃣ Extremist Propaganda | |
| • Violent extremism: content that encourages or glorifies violence. | |
| • Hate‑based movements: content that promotes hatred toward protected groups. | |
| • Political extremist ideology: content that incites violent or discriminatory actions. | |
| 2️⃣ Conspiracy Theories (No Evidence) |
OlderNewer