Skip to content

Commit ef338e4

Browse files
authored
Merge pull request #2 from infernalstudios/main
Update workflows and add recursive objectives (or/not)
2 parents ee23451 + 9e3ae22 commit ef338e4

7 files changed

Lines changed: 734 additions & 495 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: Checkout Repository
10-
uses: actions/checkout@v2
10+
uses: actions/checkout@v4
1111

1212
- name: Use Node.js v22
13-
uses: actions/setup-node@v2
13+
uses: actions/setup-node@v4
1414
with:
1515
node-version: "22.x"
1616
registry-url: "https://registry.npmjs.org"
@@ -20,7 +20,7 @@ jobs:
2020
run: echo "::set-output name=dir::$(yarn cache dir)"
2121

2222
- name: Get Cache
23-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2424
id: yarn-cache
2525
with:
2626
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -38,10 +38,10 @@ jobs:
3838
runs-on: ubuntu-latest
3939
steps:
4040
- name: Checkout Repository
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v4
4242

4343
- name: Use Node.js v22
44-
uses: actions/setup-node@v2
44+
uses: actions/setup-node@v4
4545
with:
4646
node-version: "22.x"
4747
registry-url: "https://registry.npmjs.org"
@@ -51,7 +51,7 @@ jobs:
5151
run: echo "::set-output name=dir::$(yarn cache dir)"
5252

5353
- name: Get Cache
54-
uses: actions/cache@v2
54+
uses: actions/cache@v4
5555
id: yarn-cache
5656
with:
5757
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -69,10 +69,10 @@ jobs:
6969
runs-on: ubuntu-latest
7070
steps:
7171
- name: Checkout Repository
72-
uses: actions/checkout@v2
72+
uses: actions/checkout@v4
7373

7474
- name: Use Node.js v22
75-
uses: actions/setup-node@v2
75+
uses: actions/setup-node@v4
7676
with:
7777
node-version: "22.x"
7878
registry-url: "https://registry.npmjs.org"
@@ -82,7 +82,7 @@ jobs:
8282
run: echo "::set-output name=dir::$(yarn cache dir)"
8383

8484
- name: Get Cache
85-
uses: actions/cache@v2
85+
uses: actions/cache@v4
8686
id: yarn-cache
8787
with:
8888
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -100,10 +100,10 @@ jobs:
100100
# runs-on: ubuntu-latest
101101
# steps:
102102
# - name: Checkout Repository
103-
# uses: actions/checkout@v2
103+
# uses: actions/checkout@v4
104104

105105
# - name: Use Node.js v22
106-
# uses: actions/setup-node@v2
106+
# uses: actions/setup-node@v4
107107
# with:
108108
# node-version: '16.x'
109109
# registry-url: 'https://registry.npmjs.org'
@@ -132,7 +132,7 @@ jobs:
132132
needs: [build, format, lint]
133133
steps:
134134
- name: Use NodeJS v16
135-
uses: actions/setup-node@v2
135+
uses: actions/setup-node@v4
136136
with:
137137
node-version: "16"
138138

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
environment: production
1111
steps:
1212
- name: Checkout Repository
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

1515
- name: Get temporary file for SSH key
1616
id: mktemp

public/css/questlog.css

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,43 @@ textarea.form-input {
137137
overflow-y: auto;
138138
overflow-x: hidden;
139139
}
140+
141+
.input-group {
142+
align-items: flex-start;
143+
}
144+
145+
.input-group .input-group-addon {
146+
height: 1.8rem;
147+
display: flex;
148+
align-items: center;
149+
margin-top: 0;
150+
}
151+
152+
.input-group > .objective-list,
153+
.input-group > .card {
154+
flex: 1 1 auto;
155+
width: 100%;
156+
}
157+
158+
.objective-list {
159+
display: flex;
160+
flex-direction: column;
161+
gap: 0.5rem;
162+
}
163+
164+
.objective-list .d-flex {
165+
align-items: flex-start;
166+
width: 100%;
167+
}
168+
169+
.objective-list .btn-action {
170+
margin-top: 0.1rem;
171+
margin-left: 0.5rem !important;
172+
}
173+
174+
.input-group .popover {
175+
margin-top: 0;
176+
height: 1.8rem;
177+
display: flex;
178+
align-items: center;
179+
}

public/script/questlog.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,8 @@
22
import { _createElement, _fragment } from "simple-jsx-handler";
33
declare const React: JSX.IntrinsicElements;
44

5-
import {
6-
Objective,
7-
OBJECTIVE_TYPES,
8-
ObjectiveDisplay,
9-
Quest,
10-
Renderable,
11-
Reward,
12-
REWARD_TYPES,
13-
RewardDisplay,
14-
} from "./questlog/types";
5+
import { Objective, ObjectiveDisplay, Quest, Renderable, Reward, RewardDisplay } from "./questlog/types";
6+
import { OBJECTIVE_TYPES, REWARD_TYPES } from "./questlog/definitions";
157
import { createField } from "./questlog/field";
168
import { removeNode } from "./util";
179
import { SOUNDS } from "./questlog/data";

0 commit comments

Comments
 (0)