From cad20248de005923b002986b2d90c5c1b782eb66 Mon Sep 17 00:00:00 2001
From: May Kittens Devour Your Soul
Date: Thu, 20 Jul 2017 13:57:28 +0200
Subject: [PATCH 01/35] updates 4 vue and uikit
---
src/library-list.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/library-list.js b/src/library-list.js
index 177433c..f04fe82 100644
--- a/src/library-list.js
+++ b/src/library-list.js
@@ -37,7 +37,7 @@ window.jsLibs = [
type: 'js'
},
{
- url: 'https://unpkg.com/vue@2.4.0/dist/vue.min.js',
+ url: 'https://unpkg.com/vue@2.4.1/dist/vue.min.js',
label: 'Vue.js',
type: 'js'
},
@@ -69,7 +69,7 @@ window.jsLibs = [
},
{
url:
- 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.25/js/uikit.min.js',
+ 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.26/js/uikit.min.js',
label: 'UIkit 3',
type: 'js'
}
@@ -111,7 +111,7 @@ window.cssLibs = [
},
{
url:
- 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.25/css/uikit.min.css',
+ 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.26/css/uikit.min.css',
label: 'UIkit 3',
type: 'css'
},
From 0bc2f1b55c20d5504362026d187d3c4fcecb6562 Mon Sep 17 00:00:00 2001
From: May Kittens Devour Your Soul
Date: Thu, 20 Jul 2017 16:30:05 +0200
Subject: [PATCH 02/35] Update library-list.js
---
src/library-list.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/library-list.js b/src/library-list.js
index f04fe82..58058a8 100644
--- a/src/library-list.js
+++ b/src/library-list.js
@@ -69,7 +69,7 @@ window.jsLibs = [
},
{
url:
- 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.26/js/uikit.min.js',
+ 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.27/js/uikit.min.js',
label: 'UIkit 3',
type: 'js'
}
@@ -111,7 +111,7 @@ window.cssLibs = [
},
{
url:
- 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.26/css/uikit.min.css',
+ 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.27/css/uikit.min.css',
label: 'UIkit 3',
type: 'css'
},
From 977f71e16937c14c6117dd00fd0c390987c0c0c5 Mon Sep 17 00:00:00 2001
From: Basit Ali
Date: Sat, 12 Aug 2017 00:46:58 +0500
Subject: [PATCH 03/35] Ability to configure whether to preserve console logs
on preview refresh or not.
---
src/index.html | 3 +++
src/script.js | 9 ++++++++-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/index.html b/src/index.html
index f507c84..b5ecd6e 100644
--- a/src/index.html
+++ b/src/index.html
@@ -455,6 +455,9 @@
+
diff --git a/src/script.js b/src/script.js
index 60ca0af..f9eaede 100644
--- a/src/script.js
+++ b/src/script.js
@@ -1042,6 +1042,10 @@ customEditorFontInput
}
scope.setPreviewContent = function(isForced) {
+ if( !prefs.preserveConsoleLogs ) {
+ scope.clearConsole();
+ }
+
var currentCode = {
html: scope.cm.html.getValue(),
css: scope.cm.css.getValue(),
@@ -1588,6 +1592,7 @@ customEditorFontInput
$('[data-setting=editorCustomFont]').value = prefs.editorCustomFont;
$('[data-setting=autoSave]').checked = prefs.autoSave;
$('[data-setting=autoComplete]').checked = prefs.autoComplete;
+ $('[data-setting=preserveConsoleLogs]').checked = prefs.preserveConsoleLogs;
}
/**
@@ -2154,7 +2159,8 @@ customEditorFontInput
editorFont: 'FiraCode',
editorCustomFont: '',
autoSave: true,
- autoComplete: true
+ autoComplete: true,
+ preserveConsoleLogs: true
},
function syncGetCallback(result) {
if (result.preserveLastCode && lastCode) {
@@ -2190,6 +2196,7 @@ customEditorFontInput
prefs.editorCustomFont = result.editorCustomFont;
prefs.autoSave = result.autoSave;
prefs.autoComplete = result.autoComplete;
+ prefs.preserveConsoleLogs = result.preserveConsoleLogs;
updateSettingsInUi();
scope.updateSetting();
From 013e5d40f685a66109573a69ea668f1c12831016 Mon Sep 17 00:00:00 2001
From: Kushagra Gour
Date: Sat, 19 Aug 2017 17:47:58 +0530
Subject: [PATCH 04/35] update uikit to beta 28
---
src/library-list.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/library-list.js b/src/library-list.js
index 58058a8..42a5b5c 100644
--- a/src/library-list.js
+++ b/src/library-list.js
@@ -69,7 +69,7 @@ window.jsLibs = [
},
{
url:
- 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.27/js/uikit.min.js',
+ 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.28/js/uikit.min.js',
label: 'UIkit 3',
type: 'js'
}
@@ -111,7 +111,7 @@ window.cssLibs = [
},
{
url:
- 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.27/css/uikit.min.css',
+ 'https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.28/css/uikit.min.css',
label: 'UIkit 3',
type: 'css'
},
From 230033cb10ea4dff980facd055fe3ec82fe04f55 Mon Sep 17 00:00:00 2001
From: Andrew Luca
Date: Thu, 27 Jul 2017 00:23:45 +0300
Subject: [PATCH 05/35] Add option to enable/disable blur overlay
---
src/index.html | 3 +++
src/script.js | 9 ++++++++-
src/style.css | 2 +-
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/index.html b/src/index.html
index f507c84..e8235b9 100644
--- a/src/index.html
+++ b/src/index.html
@@ -455,6 +455,9 @@
+
diff --git a/src/script.js b/src/script.js
index 60ca0af..1e614ee 100644
--- a/src/script.js
+++ b/src/script.js
@@ -1588,6 +1588,11 @@ customEditorFontInput
$('[data-setting=editorCustomFont]').value = prefs.editorCustomFont;
$('[data-setting=autoSave]').checked = prefs.autoSave;
$('[data-setting=autoComplete]').checked = prefs.autoComplete;
+ $('[data-setting=useBlur]').checked = prefs.useBlur;
+
+ if (prefs.useBlur) {
+ document.body.classList.add('blur');
+ }
}
/**
@@ -2154,7 +2159,8 @@ customEditorFontInput
editorFont: 'FiraCode',
editorCustomFont: '',
autoSave: true,
- autoComplete: true
+ autoComplete: true,
+ useBlur: true
},
function syncGetCallback(result) {
if (result.preserveLastCode && lastCode) {
@@ -2190,6 +2196,7 @@ customEditorFontInput
prefs.editorCustomFont = result.editorCustomFont;
prefs.autoSave = result.autoSave;
prefs.autoComplete = result.autoComplete;
+ prefs.useBlur = result.useBlur;
updateSettingsInUi();
scope.updateSetting();
diff --git a/src/style.css b/src/style.css
index 3dcd712..98a10d5 100644
--- a/src/style.css
+++ b/src/style.css
@@ -117,7 +117,7 @@ select, input[type="text"], input[type="number"], textarea {
will-change: -webkit-filter;
transition: 0.10s ease 0.2s;
}
-.overlay-visible .main-container {
+.blur.overlay-visible .main-container {
transition-duration: 0.5s;
transition-delay: 0.4s;
-webkit-filter: blur(3px);
From ebdfd2e4bef83f32633e20187fb3e2c58fc7c7a1 Mon Sep 17 00:00:00 2001
From: Andrew Luca
Date: Sat, 19 Aug 2017 23:11:15 +0300
Subject: [PATCH 06/35] =?UTF-8?q?=E2=9A=A1=20Change=20useBlur=20setting=20?=
=?UTF-8?q?to=20lightVersion?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/index.html | 2 +-
src/script.js | 8 ++++----
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/index.html b/src/index.html
index e8235b9..dc87533 100644
--- a/src/index.html
+++ b/src/index.html
@@ -456,7 +456,7 @@
Replace new tab page
diff --git a/src/script.js b/src/script.js
index 1e614ee..81c9636 100644
--- a/src/script.js
+++ b/src/script.js
@@ -1588,9 +1588,9 @@ customEditorFontInput
$('[data-setting=editorCustomFont]').value = prefs.editorCustomFont;
$('[data-setting=autoSave]').checked = prefs.autoSave;
$('[data-setting=autoComplete]').checked = prefs.autoComplete;
- $('[data-setting=useBlur]').checked = prefs.useBlur;
+ $('[data-setting=lightVersion]').checked = prefs.lightVersion;
- if (prefs.useBlur) {
+ if (!prefs.lightVersion) {
document.body.classList.add('blur');
}
}
@@ -2160,7 +2160,7 @@ customEditorFontInput
editorCustomFont: '',
autoSave: true,
autoComplete: true,
- useBlur: true
+ lightVersion: true
},
function syncGetCallback(result) {
if (result.preserveLastCode && lastCode) {
@@ -2196,7 +2196,7 @@ customEditorFontInput
prefs.editorCustomFont = result.editorCustomFont;
prefs.autoSave = result.autoSave;
prefs.autoComplete = result.autoComplete;
- prefs.useBlur = result.useBlur;
+ prefs.lightVersion = result.lightVersion;
updateSettingsInUi();
scope.updateSetting();
From 935cab53147405769a204850ec6a1df84a16e1f8 Mon Sep 17 00:00:00 2001
From: Kushagra Gour
Date: Fri, 1 Sep 2017 09:42:00 +0530
Subject: [PATCH 07/35] set onboardmodal event as soon as the modal is seen
---
src/script.js | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/src/script.js b/src/script.js
index 60ca0af..fdaf18c 100644
--- a/src/script.js
+++ b/src/script.js
@@ -2206,15 +2206,14 @@ customEditorFontInput
if (!result.lastSeenVersion) {
onboardModal.classList.add('is-modal-visible');
trackEvent('ui', 'onboardModalSeen');
- // set the current version as seen on closing the onboard modal
+ chrome.storage.sync.set(
+ {
+ lastSeenVersion: version
+ },
+ function() {}
+ );
+ // set some initial preferences on closing the onboard modal
utils.once(document, 'overlaysClosed', function() {
- chrome.storage.sync.set(
- {
- lastSeenVersion: version
- },
- function() {}
- );
-
chrome.storage.sync.set(
{
replaceNewTab: onboardShowInTabOptionBtn.classList.contains(
From aa1108919e1facaf9ab0e3361bc3190e36571115 Mon Sep 17 00:00:00 2001
From: Kushagra Gour
Date: Fri, 1 Sep 2017 09:48:26 +0530
Subject: [PATCH 08/35] add charset utf8 in preview html. fixes #173
---
src/script.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/script.js b/src/script.js
index fdaf18c..058a6a3 100644
--- a/src/script.js
+++ b/src/script.js
@@ -924,6 +924,7 @@ customEditorFontInput
}, '');
var contents =
'\n\n' +
+ '\n' +
externalCss +
'\n' +
'