This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
forked from new-frontiers-14/frontier-station-14
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'corvax/master' into 04-23-typing-indicator
- Loading branch information
Showing
3,904 changed files
with
1,627,770 additions
and
1,555,441 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -1,55 +1,55 @@ | ||
name: PR Changelogs | ||
concurrency: commit_action | ||
on: | ||
pull_request_target: | ||
types: [closed] | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | ||
CHANGELOG_DIR: Resources/Changelog/Changelog.yml | ||
PR_NUMBER: ${{ github.event.number }} | ||
|
||
jobs: | ||
changelog: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout Master | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.BOT_TOKEN }} | ||
ref: master | ||
|
||
- name: Setup Git | ||
run: | | ||
git config --global user.name "${{ vars.CHANGELOG_USER }}" | ||
git config --global user.email "${{ vars.CHANGELOG_EMAIL }}" | ||
shell: bash | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install Dependencies | ||
run: | | ||
cd "Tools/changelog" | ||
npm install | ||
shell: bash | ||
|
||
- name: Generate Changelog | ||
run: | | ||
cd "Tools/changelog" | ||
node changelog.js | ||
shell: bash | ||
|
||
- name: Commit Changelog | ||
run: | | ||
git pull origin master | ||
git add *.yml | ||
git commit -m "${{ vars.CHANGELOG_MESSAGE }} (#${{ env.PR_NUMBER }})" | ||
git push | ||
shell: bash | ||
continue-on-error: true | ||
name: PR Changelogs | ||
concurrency: commit_action | ||
on: | ||
pull_request_target: | ||
types: [closed] | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} | ||
CHANGELOG_DIR: Resources/Changelog/Changelog.yml | ||
PR_NUMBER: ${{ github.event.number }} | ||
|
||
jobs: | ||
changelog: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.merged == true | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout Master | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.BOT_TOKEN }} | ||
ref: master | ||
|
||
- name: Setup Git | ||
run: | | ||
git config --global user.name "${{ vars.CHANGELOG_USER }}" | ||
git config --global user.email "${{ vars.CHANGELOG_EMAIL }}" | ||
shell: bash | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18.x | ||
|
||
- name: Install Dependencies | ||
run: | | ||
cd "Tools/changelog" | ||
npm install | ||
shell: bash | ||
|
||
- name: Generate Changelog | ||
run: | | ||
cd "Tools/changelog" | ||
node changelog.js | ||
shell: bash | ||
|
||
- name: Commit Changelog | ||
run: | | ||
git pull origin master | ||
git add *.yml | ||
git commit -m "${{ vars.CHANGELOG_MESSAGE }} (#${{ env.PR_NUMBER }})" | ||
git push | ||
shell: bash | ||
continue-on-error: true |
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,15 @@ | ||
name: CRLF Check | ||
|
||
on: | ||
pull_request: | ||
types: [ opened, reopened, synchronize, ready_for_review ] | ||
|
||
jobs: | ||
build: | ||
name: CRLF Check | ||
if: github.event.pull_request.draft == false | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Check for CRLF | ||
run: Tools/check_crlf.py |
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,4 +1,4 @@ | ||
name: Close PR's on master | ||
name: Close PRs on master | ||
|
||
on: | ||
pull_request_target: | ||
|
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,13 @@ | ||
name: "Labels: Untriaged" | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
|
||
jobs: | ||
add_label: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions-ecosystem/action-add-labels@v1 | ||
with: | ||
labels: "Status: Untriaged" |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<GridContainer xmlns="https://spacestation14.io" | ||
Columns="5" | ||
HorizontalAlignment="Center"> | ||
</GridContainer> |
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,52 @@ | ||
using System.Linq; | ||
using Robust.Client.AutoGenerated; | ||
using Robust.Client.UserInterface; | ||
using Robust.Client.UserInterface.Controls; | ||
using Robust.Client.UserInterface.XAML; | ||
using Robust.Shared.Prototypes; | ||
using Content.Shared.Access; | ||
using Content.Shared.Access.Systems; | ||
|
||
namespace Content.Client.Access.UI; | ||
|
||
[GenerateTypedNameReferences] | ||
public sealed partial class AccessLevelControl : GridContainer | ||
{ | ||
public readonly Dictionary<ProtoId<AccessLevelPrototype>, Button> ButtonsList = new(); | ||
|
||
public AccessLevelControl() | ||
{ | ||
RobustXamlLoader.Load(this); | ||
} | ||
|
||
public void Populate(List<ProtoId<AccessLevelPrototype>> accessLevels, IPrototypeManager prototypeManager) | ||
{ | ||
foreach (var access in accessLevels) | ||
{ | ||
if (!prototypeManager.TryIndex(access, out var accessLevel)) | ||
{ | ||
Logger.Error($"Unable to find accesslevel for {access}"); | ||
continue; | ||
} | ||
|
||
var newButton = new Button | ||
{ | ||
Text = accessLevel.GetAccessLevelName(), | ||
ToggleMode = true, | ||
}; | ||
AddChild(newButton); | ||
ButtonsList.Add(accessLevel.ID, newButton); | ||
} | ||
} | ||
|
||
public void UpdateState( | ||
List<ProtoId<AccessLevelPrototype>> pressedList, | ||
List<ProtoId<AccessLevelPrototype>>? enabledList = null) | ||
{ | ||
foreach (var (accessName, button) in ButtonsList) | ||
{ | ||
button.Pressed = pressedList.Contains(accessName); | ||
button.Disabled = !(enabledList?.Contains(accessName) ?? true); | ||
} | ||
} | ||
} |
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.