copy_tuner_client 0.14.1 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rspec.yml +3 -1
- data/CHANGELOG.md +4 -0
- data/app/assets/javascripts/copytuner.js +186 -322
- data/copy_tuner_client.gemspec +1 -1
- data/lib/copy_tuner_client/copyray.rb +4 -6
- data/lib/copy_tuner_client/version.rb +1 -1
- data/package.json +3 -3
- data/src/main.ts +2 -0
- data/yarn.lock +978 -689
- metadata +3 -3
data/package.json
CHANGED
@@ -14,12 +14,12 @@
|
|
14
14
|
},
|
15
15
|
"dependencies": {},
|
16
16
|
"devDependencies": {
|
17
|
-
"@sonicgarden/eslint-plugin": "^0.
|
17
|
+
"@sonicgarden/eslint-plugin": "^0.5.2",
|
18
18
|
"@sonicgarden/prettier-config": "^0.0.1",
|
19
19
|
"eslint": "^8.16.0",
|
20
20
|
"lodash.debounce": "^4.0.8",
|
21
|
-
"typescript": "^
|
22
|
-
"vite": "^2.
|
21
|
+
"typescript": "^5.0.2",
|
22
|
+
"vite": "^4.2.1"
|
23
23
|
},
|
24
24
|
"prettier": "@sonicgarden/prettier-config",
|
25
25
|
"volta": {
|
data/src/main.ts
CHANGED
@@ -6,6 +6,7 @@ declare global {
|
|
6
6
|
interface Window {
|
7
7
|
CopyTuner: {
|
8
8
|
url: string
|
9
|
+
toggle?: () => void
|
9
10
|
// TODO: type
|
10
11
|
data: object
|
11
12
|
}
|
@@ -33,6 +34,7 @@ const start = () => {
|
|
33
34
|
|
34
35
|
appendCopyTunerBar(url)
|
35
36
|
const copyray = new Copyray(url, data)
|
37
|
+
window.CopyTuner.toggle = () => copyray.toggle()
|
36
38
|
|
37
39
|
document.addEventListener('keydown', (event) => {
|
38
40
|
// @ts-expect-error TS2339
|