Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
102 changes: 51 additions & 51 deletions shared/version.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,51 @@
export const APP_VERSION = "0.0.5";

export const getVersionLabel = (options = {}) => {
const prefix = typeof options.prefix === "string" ? options.prefix : "v";
return `${prefix}${APP_VERSION}`;
};

const sharedVersionApi = {
APP_VERSION,
getVersionLabel
};

if (typeof globalThis !== "undefined") {
const existingInfo = globalThis.WorkoutTimeAppInfo ?? {};
globalThis.WorkoutTimeAppInfo = {
...existingInfo,
version: APP_VERSION,
getVersionLabel
};
}

if (
typeof document !== "undefined" &&
typeof document.dispatchEvent === "function"
) {
const eventDetail = {
version: APP_VERSION,
label: getVersionLabel({ prefix: "v" })
};

try {
document.dispatchEvent(
new CustomEvent("workouttime:version-ready", { detail: eventDetail })
);
} catch (error) {
try {
const fallbackEvent = document.createEvent("CustomEvent");
fallbackEvent.initCustomEvent(
"workouttime:version-ready",
false,
false,
eventDetail
);
document.dispatchEvent(fallbackEvent);
} catch (fallbackError) {
document.dispatchEvent(new Event("workouttime:version-ready"));
}
}
}

export default sharedVersionApi;
export const APP_VERSION = "0.0.6";
export const getVersionLabel = (options = {}) => {
const prefix = typeof options.prefix === "string" ? options.prefix : "v";
return `${prefix}${APP_VERSION}`;
};
const sharedVersionApi = {
APP_VERSION,
getVersionLabel
};
if (typeof globalThis !== "undefined") {
const existingInfo = globalThis.WorkoutTimeAppInfo ?? {};
globalThis.WorkoutTimeAppInfo = {
...existingInfo,
version: APP_VERSION,
getVersionLabel
};
}
if (
typeof document !== "undefined" &&
typeof document.dispatchEvent === "function"
) {
const eventDetail = {
version: APP_VERSION,
label: getVersionLabel({ prefix: "v" })
};
try {
document.dispatchEvent(
new CustomEvent("workouttime:version-ready", { detail: eventDetail })
);
} catch (error) {
try {
const fallbackEvent = document.createEvent("CustomEvent");
fallbackEvent.initCustomEvent(
"workouttime:version-ready",
false,
false,
eventDetail
);
document.dispatchEvent(fallbackEvent);
} catch (fallbackError) {
document.dispatchEvent(new Event("workouttime:version-ready"));
}
}
}
export default sharedVersionApi;
Binary file added workout-time/AudioCue/01_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/02_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/03_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/04_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/05_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/06_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/07_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/08_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/10_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/11_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/12_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/13_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/14_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/15_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/16_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/17_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/18_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/19_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/20_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/21_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/22_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/23_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/24_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/25_repcount.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/Beast Mode.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/Calibrate your LIft.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/Maxed Out.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/New Personal Record.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/Start Lifting.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/Strength Unlocked.mp3
Binary file not shown.
Binary file added workout-time/AudioCue/The Grind Continues.mp3
Binary file not shown.
Binary file not shown.
Binary file added workout-time/AudioCue/crowd cheering.mp3
Binary file not shown.
Loading