Compare commits

...

6 Commits

Author SHA1 Message Date
Rosalina 6dd721bbab
add link_url to stat.ink body 2023-12-03 17:54:59 -05:00
Rosalina 5ac9362df9
better cli args 2023-12-03 17:54:35 -05:00
Rosalina 07ac720d73
prompt for api key 2023-12-03 17:53:13 -05:00
Rosalina 0352665076
Merge remote-tracking branch 'upstream/main' into splashcat-exporter 2023-12-03 17:51:18 -05:00
imspace 454f294045 feat: add 6.0.0 special 2023-12-02 21:39:22 +08:00
imspace 209e5e75ed Revert "fix: use old NSO app version"
This reverts commit 02c1c92191.
2023-12-02 21:04:03 +08:00
6 changed files with 27 additions and 5 deletions

View File

@ -1,3 +1,7 @@
## 0.4.12
feat: add 6.0.0 special
## 0.4.11
chore: update `WEB_VIEW_VERSION` and queries

View File

@ -9,7 +9,7 @@
},
"package": {
"productName": "s3si-ts",
"version": "0.4.11"
"version": "0.4.12"
},
"tauri": {
"allowlist": {

View File

@ -30,7 +30,7 @@ Options:
--profile-path <path>, -p Path to config file (default: ./profile.json)
--exporter <exporter>, -e Exporter list to use (default: stat.ink)
Multiple exporters can be separated by commas
(e.g. "stat.ink,file,mongodb")
(e.g. "stat.ink,file,mongodb,splashcat")
--list-method When set to "latest", the latest 50 matches will be obtained.
When set to "all", matches of all modes will be obtained with a maximum of 250 matches (5 modes x 50 matches).
When set to "auto", the latest 50 matches will be obtained. If 50 matches have not been uploaded yet, matches will be obtained from the list of all modes.

View File

@ -28,7 +28,7 @@ export type Opts = {
export const DEFAULT_OPTS: Opts = {
profilePath: "./profile.json",
exporter: "stat.ink",
exporter: "stat.ink,splashcat",
noProgress: false,
monitor: false,
withSummary: false,
@ -244,6 +244,19 @@ export class App {
}
if (exporters.includes("splashcat")) {
if (!state.splashcatApiKey) {
const key = (await this.env.prompts.prompt(
"Splashcat API key is not set. Please enter below.",
)).trim();
if (!key) {
this.env.logger.error("API key is required.");
Deno.exit(1);
}
await this.profile.writeState({
...state,
splashcatApiKey: key,
});
}
out.push(new SplashcatExporter({
env: this.env,
uploadMode: this.opts.monitor ? "Monitoring" : "Manual",

View File

@ -2,9 +2,9 @@ import type { StatInkPostBody, VsHistoryDetail } from "./types.ts";
export const AGENT_NAME = "splashcat / s3si.ts";
export const AGENT_VERSION = "1.1.1";
export const S3SI_VERSION = "0.4.11";
export const S3SI_VERSION = "0.4.12";
export const COMBINED_VERSION = `${AGENT_VERSION}/${S3SI_VERSION}`;
export const NSOAPP_VERSION = "2.7.1";
export const NSOAPP_VERSION = "2.8.0";
export const WEB_VIEW_VERSION = "6.0.0-e135295b";
export enum Queries {
HomeQuery =
@ -109,6 +109,10 @@ export const SPLATNET3_STATINK_MAP: {
"sameride",
"380e541b5bc5e49d77ff1a616f1343aeba01d500fee36aaddf8f09d74bd3d3bc":
"tripletornado",
"8a7ee88a06407f4be1595ef8af4d2d2ac22bbf213a622cd19bbfaf4d0f36bcd7":
"teioika",
"a75eac34675bc0d4bd9ca9977cf22472848f89e28e08ee986b4461a3f2af28fc":
"ultra_chakuchi",
},
WATER_LEVEL_MAP: {
0: "low",

View File

@ -785,6 +785,7 @@ export type StatInkCoopPostBody = {
};
export type StatInkPostBody = {
link_url?: string;
test?: "yes" | "no";
uuid: string;
lobby: