forked from space-wizards/space-station-14
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/Alwayswannahunt/space-sta…
…tion-220 into ninja-targets
- Loading branch information
Showing
1,289 changed files
with
865,009 additions
and
325,333 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,7 +1,4 @@ | ||
contact_links: | ||
- name: Предложение | ||
url: https://discord.station14.ru | ||
about: Свои предложения можете оставлять в соответствующем канале Discord. | ||
- name: Сообщить об уязвимости | ||
url: https://discord.station14.ru | ||
about: Пожалуйста, сообщайте о серьезных эксплойтах и уязвимостях безопасности Morty#7384 (369476049836310528) в Discord. | ||
- name: Предложение или идея | ||
url: https://discord.gg/ss220 | ||
about: Свои предложения или идеи вы можете оставить в соответствующем Discord канале "#ss14-Трекер". |
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,47 @@ | ||
name: Сообщить о проблеме с игровой картой | ||
description: Если заметили недочёты на игровых картах | ||
title: "[MI] На карте проблема в " | ||
labels: [] | ||
assignees: | ||
- UrPrice | ||
body: | ||
- type: markdown | ||
id: markdown_with_multiline_content | ||
attributes: | ||
value: | | ||
## Приветствую! | ||
Эта страница замещает старый сбор фидбека по игровым картам. Теперь всё происходит гораздо проще, | ||
вы всегда можете оставить свой фидбек на этой странице, использую одну и ту же форму фидбека. | ||
Вам **не нужно искать нужный тред в дискорде**, чтобы сообщить о проблеме, так как теперь достаточно | ||
**выбрать карту из предложенных вариантов**, либо указать, что ваша проблема не по теме карты. | ||
Вы всё также можете прикрепить описание и изображение. | ||
## Начнём! | ||
validations: | ||
required: false | ||
- type: dropdown | ||
id: map | ||
attributes: | ||
label: Выберите игровую карту | ||
description: Из выпадающего списка выберите ту игровую карту, на которой вы столкнулись с проблемой. Если карта вам неизвестна или проблема связана с чем-либо другим, оставьте "Другое". | ||
options: | ||
- Frankenstein | ||
- Axioma | ||
- Donuts | ||
- Eclipse | ||
- Astro | ||
- Другое | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Опишите кратко о том, какую проблему вы обнаружили | ||
placeholder: Например, "На карте Axioma отсутствуют кулеры в юридическом отделе." | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: Прикрепите изображение описанной вами проблемы | ||
placeholder: "Сюда его можно просто вставить: Ctrl+V" | ||
validations: | ||
required: false |
This file was deleted.
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 |
---|---|---|
|
@@ -30,3 +30,4 @@ | |
"Changes: C#": | ||
- changed-files: | ||
- any-glob-to-any-file: '**/*.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
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
51 changes: 51 additions & 0 deletions
51
.github/workflows/labeler-mapping-issues-and-untriaged.yml
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,51 @@ | ||
name: "Mapping issues" | ||
|
||
on: | ||
issues: | ||
type: [opened] | ||
|
||
jobs: | ||
add-labels-and-assigness: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check option and add label | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const issueBody = context.payload.issue.body; | ||
const options = { | ||
'Frankenstein': {label: 'MI: Frankenstein', assignee: 'UrPrice' }, | ||
'Axioma': {label: 'MI: Axioma', assignee: 'NightmareStalker'}, | ||
'Donuts': {label: 'MI: Donuts', assignee: 'spo9k'}, | ||
'Eclipse': {label: 'MI: Eclipse', assignee: 'AliceValestray'}, | ||
'Astro': {label: 'MI: Astro', assignee: 'UrPrice'}, | ||
'Другое': {label: 'MI: Other', assignee: 'UrPrice'} | ||
}; | ||
let selectedOption = null; | ||
for (const option in options){ | ||
if (issueBody.includes(option)) { | ||
selectedOption = options[option]; | ||
break; | ||
} | ||
} | ||
if (selectedOption) { | ||
await github.rest.issues.addLabels({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
labels: [selectedOption.label] | ||
}); // added label | ||
await github.rest.issues.addAssignees({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
assignees: [selectedOption.assignee] | ||
}); // added assignee | ||
} else { | ||
await github.rest.issues.addLabels({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
issue_number: context.issue.number, | ||
labels: ["Status: Needs Labels"] | ||
}); // add "Status: Needs Labels" | ||
} |
This file was deleted.
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
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
40 changes: 40 additions & 0 deletions
40
Content.Client/Atmos/Consoles/AtmosMonitoringConsoleBoundUserInterface.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,40 @@ | ||
using Content.Shared.Atmos.Components; | ||
|
||
namespace Content.Client.Atmos.Consoles; | ||
|
||
public sealed class AtmosMonitoringConsoleBoundUserInterface : BoundUserInterface | ||
{ | ||
[ViewVariables] | ||
private AtmosMonitoringConsoleWindow? _menu; | ||
|
||
public AtmosMonitoringConsoleBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) { } | ||
|
||
protected override void Open() | ||
{ | ||
base.Open(); | ||
|
||
_menu = new AtmosMonitoringConsoleWindow(this, Owner); | ||
_menu.OpenCentered(); | ||
_menu.OnClose += Close; | ||
} | ||
|
||
protected override void UpdateState(BoundUserInterfaceState state) | ||
{ | ||
base.UpdateState(state); | ||
|
||
if (state is not AtmosMonitoringConsoleBoundInterfaceState castState) | ||
return; | ||
|
||
EntMan.TryGetComponent<TransformComponent>(Owner, out var xform); | ||
_menu?.UpdateUI(xform?.Coordinates, castState.AtmosNetworks); | ||
} | ||
|
||
protected override void Dispose(bool disposing) | ||
{ | ||
base.Dispose(disposing); | ||
if (!disposing) | ||
return; | ||
|
||
_menu?.Dispose(); | ||
} | ||
} |
Oops, something went wrong.