Skip to content

Commit e4e00fb

Browse files
authored
Merge pull request #99 from 7Cav/development
Bring dev to main
2 parents 2a2f878 + d237e76 commit e4e00fb

16 files changed

Lines changed: 213 additions & 51 deletions

File tree

.github/workflows/lint_format.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ jobs:
2424
- name: Prettier
2525
uses: creyD/prettier_action@v4.3
2626
with:
27-
prettier_options: "--check {**/*,*}.{js,jsx,json,html,css,yml,yaml}"
27+
prettier_options: "--check {**/*,*}.{js,jsx,json,html,css}"
2828
prettier_version: "2.8.8"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: (DO NOT USE) Old Production Deployment
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
14+
- name: Setup SSH
15+
uses: webfactory/ssh-agent@v0.9.0
16+
with:
17+
ssh-private-key: ${{ secrets.THE_KEY }}
18+
19+
- name: Deploy to Server
20+
run: |
21+
ssh -o StrictHostKeyChecking=no thehub@traycer.7cav.us << 'EOF'
22+
cd /etc/compose/apps/adr
23+
git pull origin main
24+
cd /etc/compose/apps/
25+
docker compose down
26+
docker compose up -d
27+
EOF

.github/workflows/prod_deploy.yml

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,45 @@
1-
name: Production Deployment
1+
name: Production Deploy
22

33
on:
4-
push:
5-
branches:
6-
- main
4+
release:
5+
types: [published]
76

87
jobs:
9-
deploy:
8+
build:
109
runs-on: ubuntu-latest
1110

1211
steps:
1312
- name: Checkout code
1413
uses: actions/checkout@v4
14+
with:
15+
ref: ${{ github.event.inputs.branch }}
16+
17+
- name: Log in to Docker Hub
18+
uses: docker/login-action@v3
19+
with:
20+
username: ${{ secrets.DOCKER_USERNAME }}
21+
password: ${{ secrets.DOCKER_PASSWORD }}
22+
23+
- name: Build and Push Client Docker Image
24+
uses: docker/build-push-action@v5
25+
with:
26+
context: ./client
27+
file: ./client/client.Dockerfile
28+
push: true
29+
tags: |
30+
7cav/apps_client:${{ github.ref_name }}
31+
7cav/apps_client:latest
1532
16-
- name: Setup SSH
17-
uses: webfactory/ssh-agent@v0.9.0
33+
- name: Build and Push Server Docker Image
34+
uses: docker/build-push-action@v5
1835
with:
19-
ssh-private-key: ${{ secrets.THE_KEY }}
36+
context: ./server
37+
file: ./server/server.Dockerfile
38+
push: true
39+
tags: |
40+
7cav/apps_server:${{ github.ref_name }}
41+
7cav/apps_server:latest
2042
21-
- name: Deploy to Server
43+
- name: Force Watchtower Update
2244
run: |
23-
ssh -o StrictHostKeyChecking=no thehub@traycer.7cav.us << 'EOF'
24-
cd /etc/compose/apps/adr
25-
git pull origin main
26-
cd /etc/compose/apps/
27-
docker compose down
28-
docker compose up -d
29-
EOF
45+
curl -H "Authorization: Bearer ${{ secrets.WATCHER_KEY }}" https://watcher.7cav.us/v1/update

client/app/adr/modules/ArrayMap.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ milpac link, name and rank, and position title.*/
77

88
function ArrayMap(props) {
99
let inputArray = props.inputArray;
10-
console.log(inputArray);
1110

1211
return (
1312
<table>

client/app/adr/modules/MilpacParse.jsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ function MilpacParse(props) {
1010
const rosterGroups = props.rosterGroups;
1111
let milpacArray = props.milpacArray;
1212

13-
console.log(rosterGroups);
14-
1513
const uniqueNamesSet = new Set();
1614

1715
let returnArray = [];
@@ -121,8 +119,6 @@ function MilpacParse(props) {
121119
return aIndex - bIndex;
122120
});
123121

124-
console.log(returnArray);
125-
126122
return (
127123
<div className="ParseBox">
128124
<div className="CounterSubtitle">

client/app/reusableModules/BilletBank.jsx

Lines changed: 68 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,79 @@ const charlie1 = [
183183
"344",
184184
];
185185

186+
const delta1 = [
187+
"1060",
188+
"1061",
189+
"1062",
190+
"1063",
191+
"1064",
192+
"1065",
193+
"1066",
194+
"1067",
195+
"1068",
196+
"1069",
197+
"1070",
198+
"1071",
199+
"1072",
200+
"1073",
201+
"1074",
202+
"1075",
203+
"1076",
204+
"1077",
205+
"1078",
206+
"1079",
207+
"1080",
208+
"1081",
209+
"1082",
210+
"1083",
211+
"1084",
212+
"1085",
213+
"1086",
214+
"1087",
215+
"1088",
216+
"1089",
217+
"1090",
218+
"1091",
219+
"1092",
220+
"1093",
221+
"1094",
222+
"1095",
223+
"1096",
224+
"1097",
225+
"1098",
226+
"1099",
227+
"1100",
228+
"1101",
229+
"1102",
230+
"1103",
231+
"1104",
232+
"1105",
233+
"1106",
234+
"1107",
235+
"1108",
236+
"1109",
237+
"1110",
238+
"1111",
239+
"1112",
240+
"1113",
241+
"1114",
242+
"1115",
243+
"1116",
244+
"1117",
245+
"1118",
246+
"1119",
247+
"1120",
248+
"1121",
249+
];
250+
186251
const oneSeven = {
187-
positionIds: [oneSevenCommand, alpha1, bravo1, charlie1],
252+
positionIds: [oneSevenCommand, alpha1, bravo1, charlie1, delta1],
188253
positionTitles: [
189254
"1-7 Headquarters",
190255
"Alpha Company",
191256
"Bravo Troop",
192257
"Charlie Company",
258+
"Delta Company",
193259
],
194260
collapsibleTitle: "First Battalion",
195261
};
@@ -1087,6 +1153,7 @@ const billetBank = {
10871153
alpha1,
10881154
bravo1,
10891155
charlie1,
1156+
delta1,
10901157
twoSevenCommand,
10911158
alpha2,
10921159
bravo2,

client/app/rosterstatistics/modules/statistics.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ class Statistics extends Component {
108108
"#b61217",
109109
"#b61217",
110110
"#b61217",
111+
"#b61217",
111112
"#2a487c",
112113
"#2a487c",
113114
"#2a487c",

client/app/rosterstatistics/page.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ export default async function RosterStatistics() {
5151
lists.alpha1,
5252
lists.bravo1,
5353
lists.charlie1,
54+
lists.delta1,
5455
lists.twoSevenCommand,
5556
lists.alpha2,
5657
lists.bravo2,
@@ -75,6 +76,7 @@ export default async function RosterStatistics() {
7576
"Alpha Company 1-7",
7677
"Bravo Troop 1-7",
7778
"Charlie Company 1-7",
79+
"Delta Company 1-7",
7880
"2-7 Headquarters",
7981
"Alpha Company 2-7",
8082
"Bravo Company 2-7",
@@ -105,13 +107,15 @@ export default async function RosterStatistics() {
105107
lists.alpha1,
106108
lists.bravo1,
107109
lists.charlie1,
110+
lists.delta1,
108111
]}
109112
centerLabel="Total 1-7 Strength"
110113
labelArray={[
111114
"1-7 Headquarters",
112115
"Alpha Company",
113116
"Bravo Troop",
114117
"Charlie Company",
118+
"Delta Company",
115119
]}
116120
milpacArray={milpacArray}
117121
/>

client/app/uniformbuilder/modules/AwardClasses.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export class MedalWithValor extends Medal {
7373
export class RibbonDonationLogic extends Ribbon {
7474
constructor(data, AwardRegistry) {
7575
super(data, AwardRegistry);
76+
this.ribbonTrueAttachmentCount = 1;
7677
}
7778

7879
incrementAwardCount() {

client/app/uniformbuilder/modules/canvas.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ function Canvas(props) {
351351
let fontSize = 18;
352352
const dy = 313;
353353

354-
if (userData.nameTag.length < 8) {
354+
if (userData.nameTag.length < 9) {
355355
tagWidth = 101;
356356
tagHeight = 40;
357357
selector = "short";

0 commit comments

Comments
 (0)