Compare commits
3
Commits
e46f01885b
...
f0611a50b5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0611a50b5 | ||
|
|
dfd0139dc5 | ||
|
|
1a0fda71f5 |
@@ -10,34 +10,14 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
runs-on: MOMP
|
runs-on: MOMP-AUTODOC
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: https://gitea.com/actions/checkout@v4
|
uses: https://gitea.com/actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Electron system dependencies
|
|
||||||
run: |
|
|
||||||
apt-get update
|
|
||||||
apt-get install -y \
|
|
||||||
xvfb \
|
|
||||||
libnspr4 \
|
|
||||||
libnss3 \
|
|
||||||
libatk1.0-0 \
|
|
||||||
libatk-bridge2.0-0 \
|
|
||||||
libcups2 \
|
|
||||||
libdrm2 \
|
|
||||||
libgtk-3-0 \
|
|
||||||
libx11-xcb1 \
|
|
||||||
libxcomposite1 \
|
|
||||||
libxdamage1 \
|
|
||||||
libxrandr2 \
|
|
||||||
libgbm1 \
|
|
||||||
libxss1 \
|
|
||||||
libasound2
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci --cache ~/.npm --prefer-offline
|
||||||
|
|
||||||
- name: Run template tests
|
- name: Run template tests
|
||||||
env:
|
env:
|
||||||
|
|||||||
+1
-11
@@ -191,17 +191,7 @@ class StepForgeApp {
|
|||||||
const guide = await api.library.create({ title: 'Untitled capture' });
|
const guide = await api.library.create({ title: 'Untitled capture' });
|
||||||
await this.refreshData();
|
await this.refreshData();
|
||||||
await this.openGuide(guide.guideId);
|
await this.openGuide(guide.guideId);
|
||||||
const state = await this.armCaptureSession(guide.guideId);
|
await this.armCaptureSession(guide.guideId);
|
||||||
const hotkey = this.state.settings?.capture?.hotkeyCapture;
|
|
||||||
let how;
|
|
||||||
if (state.clickCapture) {
|
|
||||||
how = 'every click will grab a step';
|
|
||||||
} else if (state.intervalSec > 0) {
|
|
||||||
how = `a step will be grabbed every ${state.intervalSec}s`;
|
|
||||||
} else {
|
|
||||||
how = hotkey ? `press ${hotkey} to grab steps` : 'use Shoot to grab steps';
|
|
||||||
}
|
|
||||||
toast(`Click "Start recording" in the red bar when you're ready — ${how}. StepForge tucks away; use the red tray icon to pause or finish.`);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
async openExistingWorkspace() {
|
async openExistingWorkspace() {
|
||||||
|
|||||||
@@ -1322,7 +1322,6 @@ class GuideEditor {
|
|||||||
|
|
||||||
async startCaptureSession() {
|
async startCaptureSession() {
|
||||||
await api.capture.session({ action: 'start', guideId: this.guideId });
|
await api.capture.session({ action: 'start', guideId: this.guideId });
|
||||||
this.onToast('Capture session ready — click "Start recording" in the red bar when you\'re set.');
|
|
||||||
this.emitMeta();
|
this.emitMeta();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user