spot: upgrade wxt, properly reset offscreen page
This commit is contained in:
parent
3410aec605
commit
52a208024d
9 changed files with 1526 additions and 22 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
@tailwind base;
|
@import "tailwindcss";
|
||||||
@tailwind components;
|
@plugin "daisyui" {
|
||||||
@tailwind utilities;
|
themes: light --default;
|
||||||
|
}
|
||||||
|
|
|
||||||
1500
spot/bun.lock
Normal file
1500
spot/bun.lock
Normal file
File diff suppressed because it is too large
Load diff
BIN
spot/bun.lockb
BIN
spot/bun.lockb
Binary file not shown.
|
|
@ -1,7 +1,7 @@
|
||||||
import { createSignal, onCleanup, createEffect } from "solid-js";
|
import { createSignal, onCleanup, createEffect } from "solid-js";
|
||||||
import { STATES, formatMsToTime } from "~/entrypoints/content/utils";
|
import { STATES, formatMsToTime } from "~/entrypoints/content/utils";
|
||||||
import micOn from "~/assets/mic-on.svg";
|
import micOn from "~/assets/mic-on.svg";
|
||||||
import { createDraggable } from "@neodrag/solid";
|
import { createDraggable } from '@neodrag/solid';
|
||||||
|
|
||||||
interface IRControls {
|
interface IRControls {
|
||||||
pause: () => void;
|
pause: () => void;
|
||||||
|
|
@ -144,7 +144,7 @@ function RecordingControls({
|
||||||
{recording() ? (
|
{recording() ? (
|
||||||
<button
|
<button
|
||||||
class={
|
class={
|
||||||
"btn btn-sm btn-ghost btn-circle tooltip tooltip-top flex items-center bg-black/20 hover:bg-black/70"
|
"btn btn-sm btn-ghost btn-circle tooltip tooltip-top flex items-center bg-black/20 hover:text-white hover:bg-black/70"
|
||||||
}
|
}
|
||||||
data-tip="Pause Recording"
|
data-tip="Pause Recording"
|
||||||
onClick={onPause}
|
onClick={onPause}
|
||||||
|
|
@ -168,7 +168,7 @@ function RecordingControls({
|
||||||
) : (
|
) : (
|
||||||
<button
|
<button
|
||||||
class={
|
class={
|
||||||
"btn btn-sm btn-ghost btn-circle tooltip tooltip-top flex items-center bg-black/70 hover:bg-black"
|
"btn btn-sm btn-ghost btn-circle tooltip tooltip-top flex items-center bg-black/70 hover:text-white hover:bg-black"
|
||||||
}
|
}
|
||||||
data-tip="Resume Recording"
|
data-tip="Resume Recording"
|
||||||
onClick={onResume}
|
onClick={onResume}
|
||||||
|
|
@ -199,7 +199,7 @@ function RecordingControls({
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class={`btn btn-sm btn-circle btn-ghost tooltip tooltip-top flex items-center ${
|
class={`btn btn-sm btn-circle btn-ghost tooltip hover:text-white tooltip-top flex items-center ${
|
||||||
mic() ? "bg-black/20" : "bg-black"
|
mic() ? "bg-black/20" : "bg-black"
|
||||||
}`}
|
}`}
|
||||||
data-tip={
|
data-tip={
|
||||||
|
|
@ -263,7 +263,7 @@ function RecordingControls({
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class={
|
class={
|
||||||
"btn btn-sm btn-ghost btn-circle tooltip tooltip-top flex items-center bg-black/20 hover:bg-black/70"
|
"btn btn-sm btn-ghost btn-circle tooltip tooltip-top flex items-center hover:text-white bg-black/20 hover:bg-black/70"
|
||||||
}
|
}
|
||||||
data-tip="Restart Recording"
|
data-tip="Restart Recording"
|
||||||
onClick={onRestartEv}
|
onClick={onRestartEv}
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ export default defineContentScript({
|
||||||
}
|
}
|
||||||
const ui = await createShadowRootUi(ctx, {
|
const ui = await createShadowRootUi(ctx, {
|
||||||
name: "spot-ui",
|
name: "spot-ui",
|
||||||
|
inheritStyles: true,
|
||||||
position: "inline",
|
position: "inline",
|
||||||
anchor: "body",
|
anchor: "body",
|
||||||
append: "first",
|
append: "first",
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,3 @@
|
||||||
* {
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
box-sizing: border-box;
|
|
||||||
}
|
|
||||||
|
|
||||||
:host {
|
:host {
|
||||||
all: initial;
|
all: initial;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "spot",
|
"name": "spot",
|
||||||
"description": "manifest.json description",
|
"description": "manifest.json description",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.21",
|
"version": "1.0.22",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "wxt",
|
"dev": "wxt",
|
||||||
|
|
@ -18,19 +18,21 @@
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@neodrag/solid": "^2.3.0",
|
"@neodrag/solid": "^2.3.0",
|
||||||
"@openreplay/network-proxy": "^1.1.0",
|
"@openreplay/network-proxy": "^1.1.0",
|
||||||
|
"@tailwindcss/postcss": "^4.1.7",
|
||||||
|
"@tailwindcss/vite": "^4.1.7",
|
||||||
"@thedutchcoder/postcss-rem-to-px": "^0.0.2",
|
"@thedutchcoder/postcss-rem-to-px": "^0.0.2",
|
||||||
"autoprefixer": "^10.4.21",
|
"autoprefixer": "^10.4.21",
|
||||||
"postcss": "^8.5.3",
|
"postcss": "^8.5.3",
|
||||||
"prettier": "^3.5.3",
|
"prettier": "^3.5.3",
|
||||||
"solid-js": "^1.9.5",
|
"solid-js": "^1.9.7",
|
||||||
"tailwindcss": "^3.4.4",
|
"tailwindcss": "4.1.7",
|
||||||
"web-vitals": "^4.2.4"
|
"web-vitals": "^4.2.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@wxt-dev/module-solid": "^1.1.3",
|
"@wxt-dev/module-solid": "^1.1.3",
|
||||||
"daisyui": "^4.12.10",
|
"daisyui": "5.0.37",
|
||||||
"typescript": "^5.8.2",
|
"typescript": "^5.8.2",
|
||||||
"wxt": "0.19.29"
|
"wxt": "0.20.6"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.5.3"
|
"packageManager": "yarn@4.5.3"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
export default {
|
export default {
|
||||||
plugins: {
|
plugins: {
|
||||||
|
"@tailwindcss/postcss": {},
|
||||||
"@thedutchcoder/postcss-rem-to-px": {},
|
"@thedutchcoder/postcss-rem-to-px": {},
|
||||||
tailwindcss: {},
|
|
||||||
autoprefixer: {},
|
autoprefixer: {},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
import { defineConfig } from "wxt";
|
import { defineConfig } from "wxt";
|
||||||
|
import tailwindcss from "@tailwindcss/vite";
|
||||||
|
|
||||||
// See https://wxt.dev/api/config.html
|
// See https://wxt.dev/api/config.html
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
|
@ -30,7 +31,12 @@ export default defineConfig({
|
||||||
"debugger",
|
"debugger",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
runner: {
|
webExt: {
|
||||||
chromiumArgs: ['--user-data-dir=./.wxt/chrome-data'],
|
chromiumArgs: ['--user-data-dir=./.wxt/chrome-data'],
|
||||||
}
|
},
|
||||||
|
vite: (env) => ({
|
||||||
|
plugins: [tailwindcss()],
|
||||||
|
resolve: {
|
||||||
|
conditions: ['development', 'browser', 'module', 'default'],
|
||||||
|
}}),
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue