From 74bf1505dacb2728a98464e63418c98e71bf46e9 Mon Sep 17 00:00:00 2001 From: Gabriel Henrique Date: Mon, 30 Nov 2020 22:43:30 -0300 Subject: [PATCH] organizing html in static folder --- build/manifest.json | 4 ++-- build/src/background.js | 16 ++++++++-------- build/{ => static}/install.html | 13 +++++++------ {src => build/static}/options.html | 2 +- {src => build/static}/receiver.html | 2 +- manifest.json | 4 ++-- release.sh | 7 ++++--- release.zip | Bin 3036 -> 927 bytes src/background.js | 16 ++++++++-------- {src => static}/install.html | 13 +++++++------ {build => static}/options.html | 2 +- {build => static}/receiver.html | 2 +- 12 files changed, 42 insertions(+), 39 deletions(-) rename build/{ => static}/install.html (79%) mode change 100755 => 100644 rename {src => build/static}/options.html (93%) rename {src => build/static}/receiver.html (97%) rename {src => static}/install.html (79%) rename {build => static}/options.html (93%) rename {build => static}/receiver.html (97%) mode change 100755 => 100644 diff --git a/build/manifest.json b/build/manifest.json index f4ce271..ce506f2 100755 --- a/build/manifest.json +++ b/build/manifest.json @@ -12,10 +12,10 @@ }, "browser_action": { "default_icon": "assets/icon.png", - "default_popup": "src/receiver.html" + "default_popup": "static/receiver.html" }, "options_ui": { - "page": "src/options.html", + "page": "static/options.html", "chrome_style": true }, "permissions": [ diff --git a/build/src/background.js b/build/src/background.js index 561c60b..d0f7f9e 100644 --- a/build/src/background.js +++ b/build/src/background.js @@ -17,7 +17,7 @@ console.log('in src/background.js'); chrome.runtime.onInstalled.addListener(function (details) { if (details.reason == 'install') { chrome.tabs.create({ - url: chrome.extension.getURL('src/install.html'), + url: chrome.extension.getURL('../static/install.html'), active: true, }); } @@ -64,7 +64,7 @@ chrome.tabs.onActivated.addListener(function (e) { OkToResume = false; chrome.notifications.create('extfy1', { type: 'basic', - iconUrl: 'assets/alert.png', + iconUrl: '../assets/alert.png', title: 'ExtensionForYou', message: 'You left the tab being recorded. Recording is paused.', requireInteraction: true, @@ -74,7 +74,7 @@ chrome.tabs.onActivated.addListener(function (e) { OkToResume = false; chrome.notifications.create('extfy1', { type: 'basic', - iconUrl: 'assets/alert.png', + iconUrl: '../assets/alert.png', title: 'ExtensionForYou', message: 'You left the tab being recorded. Recording is paused.', requireInteraction: true, @@ -84,7 +84,7 @@ chrome.tabs.onActivated.addListener(function (e) { OkToResume = true; chrome.notifications.create('extfy1', { type: 'basic', - iconUrl: 'assets/ok.png', + iconUrl: '../assets/ok.png', title: 'ExtensionForYou', message: 'You are now ready to resume recording.', requireInteraction: true, @@ -148,7 +148,7 @@ function StartRecording(stream) { }) .catch(getUserMediaError); - chrome.browserAction.setIcon({ path: 'assets/icon_red.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon_red.png' }); } function getUserMediaError(error) { alert('src/background.js: getUserMedia() error: ', error); @@ -156,12 +156,12 @@ function getUserMediaError(error) { function PauseRecording() { rec.pause(); clearInterval(runner); - chrome.browserAction.setIcon({ path: 'assets/icon.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon.png' }); } function ResumeRecording() { rec.resume(); runner = setInterval(mainTimer, 1000); - chrome.browserAction.setIcon({ path: 'assets/icon_red.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon_red.png' }); chrome.notifications.clear('extfy1'); } function StopRecording() { @@ -169,7 +169,7 @@ function StopRecording() { clearInterval(runner); x = 1; rec.stop(); - chrome.browserAction.setIcon({ path: 'assets/icon.png' }); + chrome.browserAction.setIcon({ path: '../assets/icon.png' }); chrome.notifications.clear('extfy1'); } function mainTimer() { diff --git a/build/install.html b/build/static/install.html old mode 100755 new mode 100644 similarity index 79% rename from build/install.html rename to build/static/install.html index 91bdb94..d42785e --- a/build/install.html +++ b/build/static/install.html @@ -62,16 +62,17 @@
- +
Allow Screen Recorder to use your microphone.
- +

Welcome to Screen Recorder

- Tap the ’Screen icon at the top right of your browser to start and stop recording. + Tap the ’Screen icon at the top right of your browser to start and stop + recording.
- - + + diff --git a/src/options.html b/build/static/options.html similarity index 93% rename from src/options.html rename to build/static/options.html index 83be5c7..ba235f1 100644 --- a/src/options.html +++ b/build/static/options.html @@ -28,6 +28,6 @@
- + diff --git a/src/receiver.html b/build/static/receiver.html similarity index 97% rename from src/receiver.html rename to build/static/receiver.html index 650946a..c155678 100644 --- a/src/receiver.html +++ b/build/static/receiver.html @@ -81,6 +81,6 @@

- + diff --git a/manifest.json b/manifest.json index f4ce271..ce506f2 100755 --- a/manifest.json +++ b/manifest.json @@ -12,10 +12,10 @@ }, "browser_action": { "default_icon": "assets/icon.png", - "default_popup": "src/receiver.html" + "default_popup": "static/receiver.html" }, "options_ui": { - "page": "src/options.html", + "page": "static/options.html", "chrome_style": true }, "permissions": [ diff --git a/release.sh b/release.sh index 16fe3e8..fff33a5 100755 --- a/release.sh +++ b/release.sh @@ -4,6 +4,7 @@ rm -rf build mkdir build mkdir build/src mkdir build/assets +mkdir build/static cp src/background.js build/src/. cp src/install.js build/src/. cp manifest.json build/. @@ -14,8 +15,8 @@ cp assets/arrow.png build/assets/. cp assets/arrow_black.png build/assets/. cp assets/icon.png build/assets/. cp assets/icon_red.png build/assets/. -cp src/install.html build/. -cp src/receiver.html build/. -cp src/options.html build/. +cp static/install.html build/static/. +cp static/receiver.html build/static/. +cp static/options.html build/static/. cd build zip ../release.zip * diff --git a/release.zip b/release.zip index 5c384e1c9b3747019b3d5fcf9bd6f3076ff0399b..d00486e0b687b47afed4a63d0de278e47a5d2d6d 100644 GIT binary patch literal 927 zcmWIWW@h1H0D+HN>H@(GD8bGk!;n~9oLW+>9~#2Rz9*0WO>2NzyKx! zfCh*FwQw+e02;9H!L}vdj0_BinHU&&fd=Fz=4Ga(7MJK{73b%Hjky9e0))|wsSP@v z$7IN}NBJZF#d#NlRLp!N4$f}9-r`Y;Q097_Zy>j$k!J$Ki-)4#Av=| zs71!ciqNBB#*2dAuju40+V~=(dC|>Z2`5tn&v!9BZIEP=D&4~78MyYGNMvSKEzb!r ztKA2mcIY%84&Hfd%6aB{O`A=DlM!$` ziD`2_SIcI0pL3(?$u+OKM!lYe>IdHO)^zlk&$f9b=p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EkwG@0{;R!rsk9 zXzw+cF*&J-+e#(azvJ!L@n?3v>J*U+?Q$C%=$ta*mC0<|U~?&5-<14&3yYq^Wlqfp zb-Ji=;*u%zR5mX-nOuo8o|GW5Rf-@rBwTi+5r+iR`aL3Of?xf$66YLjhI|@SUE0vyBIgO58O284j zE3=&Jnpue+f%p;fY#P6yrwyfv-Zektol9wUZgOHb#tPgH|ETJ!?lV-#2RVH~?7G^_ zOZpUvon&>jrXdjG8=Qet-1z2*pzEx+!FKA;Qvu}oLk((qi*Nd!B>Z_@?ethPdDJ=c zeW&!}Vy`W)?k7^)4uYSCi+eU{(fjb<){UCO*_*NJx%H6?;`)NRV4Phf%uFbWzBR>V zdwLB9J*%vyBe<_s0g`yH_-a>Ng$7KtF@@)rM$BltOm^~^BhnUi#(WX+~bE&iOM#N9CFiS(9-(;LbAl8Oxb?Iq;|3%Ay{d3OBs^_s@b2{c?7 z<{vs57f2fX_49my_#cH&2-r5;+5WHe@%&!;{;%-u!2YW8{SM=VEwCNGL)%>d{~dAn z-25{U$!VQmOwoUb+&u#Rj2z
- +
Allow Screen Recorder to use your microphone.
- +

Welcome to Screen Recorder

- Tap the ’Screen icon at the top right of your browser to start and stop recording. + Tap the ’Screen icon at the top right of your browser to start and stop + recording.
- - + + diff --git a/build/options.html b/static/options.html similarity index 93% rename from build/options.html rename to static/options.html index 83be5c7..ba235f1 100644 --- a/build/options.html +++ b/static/options.html @@ -28,6 +28,6 @@
- + diff --git a/build/receiver.html b/static/receiver.html old mode 100755 new mode 100644 similarity index 97% rename from build/receiver.html rename to static/receiver.html index 650946a..c155678 --- a/build/receiver.html +++ b/static/receiver.html @@ -81,6 +81,6 @@

- +