-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "почему нельзя мерджить на сайте..."
- Loading branch information
Showing
1,051 changed files
with
142,078 additions
and
163,066 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
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 |
---|---|---|
|
@@ -31,7 +31,7 @@ jobs: | |
chmod 600 ~/.ssh/id_rsa | ||
echo "HOST *" > ~/.ssh/config | ||
echo "StrictHostKeyChecking no" >> ~/.ssh/config | ||
git clone [email protected]:corvax-nexus/secrets.git Secrets | ||
git -c submodule.Secrets.update=checkout submodule update --init | ||
cp -R Secrets/Resources/Prototypes Resources/Prototypes/CorvaxSecrets | ||
cp -R Secrets/Resources/ServerPrototypes Resources/Prototypes/CorvaxSecretsServer | ||
cp -R Secrets/Resources/Locale Resources/Locale/ru-RU/corvax-secrets | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"omnisharp.analyzeOpenDocumentsOnly": true, | ||
"dotnet.defaultSolution": "SpaceStation14.sln", | ||
"dotnet.preferCSharpExtension": true | ||
"dotnet.defaultSolution": "SpaceStation14.sln" | ||
} |
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
6 changes: 6 additions & 0 deletions
6
Content.Client/Administration/UI/Tabs/BabyJailTab/BabyJailStatusWindow.xaml
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<controls:BabyJailStatusWindow | ||
xmlns="https://spacestation14.io" | ||
xmlns:controls="clr-namespace:Content.Client.Administration.UI.Tabs.BabyJailTab" | ||
Title="{Loc admin-ui-baby-jail-window-title}"> | ||
<RichTextLabel Name="MessageLabel" Access="Public" /> | ||
</controls:BabyJailStatusWindow> |
21 changes: 21 additions & 0 deletions
21
Content.Client/Administration/UI/Tabs/BabyJailTab/BabyJailStatusWindow.xaml.cs
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using Content.Client.Message; | ||
using Content.Client.UserInterface.Controls; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface.CustomControls; | ||
using Robust.Client.UserInterface.XAML; | ||
|
||
namespace Content.Client.Administration.UI.Tabs.BabyJailTab; | ||
|
||
/* | ||
* TODO: Remove me once a more mature gateway process is established. This code is only being issued as a stopgap to help with potential tiding in the immediate future. | ||
*/ | ||
|
||
[GenerateTypedNameReferences] | ||
public sealed partial class BabyJailStatusWindow : FancyWindow | ||
{ | ||
public BabyJailStatusWindow() | ||
{ | ||
RobustXamlLoader.Load(this); | ||
MessageLabel.SetMarkup(Loc.GetString("admin-ui-baby-jail-is-enabled")); | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Content.Client/Administration/UI/Tabs/BabyJailTab/BabyJailTab.xaml
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<controls:BabyJailTab | ||
xmlns="https://spacestation14.io" | ||
xmlns:controls="clr-namespace:Content.Client.Administration.UI.Tabs.BabyJailTab" | ||
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls" | ||
Margin="4"> | ||
<BoxContainer Orientation="Vertical"> | ||
<cc:CommandButton Name="EnabledButton" Command="babyjail" ToggleMode="True" | ||
Text="{Loc admin-ui-baby-jail-disabled}" | ||
ToolTip="{Loc admin-ui-baby-jail-tooltip}" /> | ||
<cc:CommandButton Name="ShowReasonButton" Command="babyjail_show_reason" | ||
ToggleMode="True" Text="{Loc admin-ui-baby-jail-show-reason}" | ||
ToolTip="{Loc admin-ui-baby-jail-show-reason-tooltip}" /> | ||
<BoxContainer Orientation="Vertical" Margin="0 10 0 0"> | ||
<BoxContainer Orientation="Horizontal" Margin="2"> | ||
<Label Text="{Loc admin-ui-baby-jail-max-account-age}" MinWidth="175" /> | ||
<LineEdit Name="MaxAccountAge" MinWidth="50" Margin="0 0 5 0" /> | ||
<Label Text="{Loc generic-minutes}" /> | ||
</BoxContainer> | ||
<BoxContainer Orientation="Horizontal" Margin="2"> | ||
<Label Text="{Loc admin-ui-baby-jail-max-overall-minutes}" MinWidth="175" /> | ||
<LineEdit Name="MaxOverallMinutes" MinWidth="50" Margin="0 0 5 0" /> | ||
<Label Text="{Loc generic-minutes}" /> | ||
</BoxContainer> | ||
</BoxContainer> | ||
</BoxContainer> | ||
</controls:BabyJailTab> |
75 changes: 75 additions & 0 deletions
75
Content.Client/Administration/UI/Tabs/BabyJailTab/BabyJailTab.xaml.cs
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
using Content.Shared.Administration.Events; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface; | ||
using Robust.Client.UserInterface.XAML; | ||
using Robust.Shared.Console; | ||
|
||
/* | ||
* TODO: Remove me once a more mature gateway process is established. This code is only being issued as a stopgap to help with potential tiding in the immediate future. | ||
*/ | ||
|
||
namespace Content.Client.Administration.UI.Tabs.BabyJailTab; | ||
|
||
[GenerateTypedNameReferences] | ||
public sealed partial class BabyJailTab : Control | ||
{ | ||
[Dependency] private readonly IConsoleHost _console = default!; | ||
|
||
private string _maxAccountAge; | ||
private string _maxOverallMinutes; | ||
|
||
public BabyJailTab() | ||
{ | ||
RobustXamlLoader.Load(this); | ||
IoCManager.InjectDependencies(this); | ||
|
||
MaxAccountAge.OnTextEntered += args => SendMaxAccountAge(args.Text); | ||
MaxAccountAge.OnFocusExit += args => SendMaxAccountAge(args.Text); | ||
_maxAccountAge = MaxAccountAge.Text; | ||
|
||
MaxOverallMinutes.OnTextEntered += args => SendMaxOverallMinutes(args.Text); | ||
MaxOverallMinutes.OnFocusExit += args => SendMaxOverallMinutes(args.Text); | ||
_maxOverallMinutes = MaxOverallMinutes.Text; | ||
} | ||
|
||
private void SendMaxAccountAge(string text) | ||
{ | ||
if (string.IsNullOrWhiteSpace(text) || | ||
text == _maxAccountAge || | ||
!int.TryParse(text, out var minutes)) | ||
{ | ||
return; | ||
} | ||
|
||
_console.ExecuteCommand($"babyjail_max_account_age {minutes}"); | ||
} | ||
|
||
private void SendMaxOverallMinutes(string text) | ||
{ | ||
if (string.IsNullOrWhiteSpace(text) || | ||
text == _maxOverallMinutes || | ||
!int.TryParse(text, out var minutes)) | ||
{ | ||
return; | ||
} | ||
|
||
_console.ExecuteCommand($"babyjail_max_overall_minutes {minutes}"); | ||
} | ||
|
||
public void UpdateStatus(BabyJailStatus status) | ||
{ | ||
EnabledButton.Pressed = status.Enabled; | ||
EnabledButton.Text = Loc.GetString(status.Enabled | ||
? "admin-ui-baby-jail-enabled" | ||
: "admin-ui-baby-jail-disabled" | ||
); | ||
EnabledButton.ModulateSelfOverride = status.Enabled ? Color.Red : null; | ||
ShowReasonButton.Pressed = status.ShowReason; | ||
|
||
MaxAccountAge.Text = status.MaxAccountAgeMinutes.ToString(); | ||
_maxAccountAge = MaxAccountAge.Text; | ||
|
||
MaxOverallMinutes.Text = status.MaxOverallMinutes.ToString(); | ||
_maxOverallMinutes = MaxOverallMinutes.Text; | ||
} | ||
} |
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.