Skip to content

Commit

Permalink
js modules (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
nxmatic committed Feb 20, 2024
1 parent 88dfd30 commit 7c5e315
Show file tree
Hide file tree
Showing 45 changed files with 1,611 additions and 1,209 deletions.
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<!--
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/es-reindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<!--
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/json.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<!--
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<!--
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html>
<head>
<!--
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/about.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/bkg/common.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/bkg/designer-live-preview.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/bkg/execute.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
12 changes: 5 additions & 7 deletions app/scripts.babel/bkg/hotreload.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand All @@ -14,10 +14,10 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

let persistedVars = {};
const persistedVars = {};
persistedVars.dependencyMismatch = false;

function persistVar(key, value){
function persistVar(key, value) {
persistedVars[key] = value;
}

Expand All @@ -36,8 +36,7 @@ window.bkgHotReload = (startLoading, stopLoading, validate, showDependencyError)
.then((res) => {
try {
stopLoading();
}
catch(e) {
} catch (e) {
// Popup is closed
}
if (res.length > 0 && res[0].status && res[0].status === 'success') {
Expand All @@ -58,8 +57,7 @@ window.bkgHotReload = (startLoading, stopLoading, validate, showDependencyError)
persistedVars.dependencyMismatch = true;
try {
showDependencyError(persistedVars.uninstalledDeps);
}
catch(e) {
} catch (e) {
// Popup is closed
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/bkg/reindex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/bkg/restart.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/chromereload.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/json.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/scripts.babel/popup.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/vendor.babel/chrome/browser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/vendor.babel/chrome/chrome-bkg.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/vendor.babel/firefox/browser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion app/vendor.babel/firefox/ff-bkg.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2016-2022 Nuxeo
Copyright 2016-2024 Nuxeo
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 7c5e315

Please sign in to comment.