Skip to content

Commit

Permalink
Preparing Abe to Electron
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Jul 9, 2017
1 parent 08072c8 commit d19f1ba
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/server/views/list-hooks.html
Expand Up @@ -5,6 +5,8 @@
<link rel="stylesheet" href="/abecms/css/bootstrap.min.css">
<link rel="stylesheet" href="/abecms/css/styles.css">
<link rel="stylesheet" href="/abecms/css/wysiwyg-editor.min.css">
<!-- This line below is specific to Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script type="text/javascript" src="/abecms/libs/jquery-2.1.0.min.js"></script>
</head>
<body>
Expand Down Expand Up @@ -39,6 +41,7 @@
</form>
</div>
</div>

<!-- This line below is specific to Electron -->
<script>if (window.module) module = window.module;</script>
</body>
</html>
4 changes: 4 additions & 0 deletions src/server/views/list-references.html
Expand Up @@ -6,6 +6,8 @@
<head>
<title>Abe</title>
{{abeImport 'common-styles' manager.config this}}
<!-- This line below is specific to Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
</head>
<body class="with-menu engine-open">
{{abeImport 'header-menu' manager.config this}}
Expand Down Expand Up @@ -62,5 +64,7 @@
{{abeImport 'common-scripts' manager.config this}}
<script type="text/javascript" src="/abecms/scripts/admin-compiled.js"></script>
<script type="text/javascript" src="/abecms/scripts/template-engine-compiled.js"></script>
<!-- This line below is specific to Electron -->
<script>if (window.module) module = window.module;</script>
</body>
</html>
4 changes: 4 additions & 0 deletions src/server/views/list-structure.html
Expand Up @@ -6,6 +6,8 @@
<head>
<title>Abe</title>
{{abeImport 'common-styles' manager.config this}}
<!-- This line below is specific to Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
</head>
<body class="with-menu engine-open">
{{abeImport 'header-menu' manager.config this}}
Expand Down Expand Up @@ -43,5 +45,7 @@
{{abeImport 'common-scripts' manager.config this}}
<script type="text/javascript" src="/abecms/scripts/admin-compiled.js"></script>
<script type="text/javascript" src="/abecms/scripts/template-engine-compiled.js"></script>
<!-- This line below is specific to Electron -->
<script>if (window.module) module = window.module;</script>
</body>
</html>
4 changes: 4 additions & 0 deletions src/server/views/list-url.html
Expand Up @@ -3,6 +3,8 @@
<head>
<title></title>
{{abeImport 'common-styles' manager.config this}}
<!-- This line below is specific to Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
</head>
<body class="with-menu engine-open">
{{abeImport 'header-menu' manager.config this}}
Expand Down Expand Up @@ -69,5 +71,7 @@
</div>
</div>
{{abeImport 'common-scripts' manager.config this}}
<!-- This line below is specific to Electron -->
<script>if (window.module) module = window.module;</script>
</body>
</html>
4 changes: 4 additions & 0 deletions src/server/views/list-workflow.html
Expand Up @@ -3,6 +3,8 @@
<head>
<title></title>
{{abeImport 'common-styles' manager.config this}}
<!-- This line below is specific to Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
</head>
<body class="with-menu engine-open">
{{abeImport 'header-menu' manager.config this}}
Expand Down Expand Up @@ -95,5 +97,7 @@
</div>
</div>
{{abeImport 'common-scripts' manager.config this}}
<!-- This line below is specific to Electron -->
<script>if (window.module) module = window.module;</script>
</body>
</html>
5 changes: 5 additions & 0 deletions src/server/views/template-engine.html
Expand Up @@ -8,6 +8,9 @@
<link rel="stylesheet" href="/abecms/css/bootstrap.min.css">
<link rel="stylesheet" href="/abecms/css/styles.css">
<link rel="stylesheet" href="/abecms/css/wysiwyg-editor.min.css">
<!-- This line below is specific to Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>

<script type="text/javascript" src="/abecms/libs/jquery-2.1.0.min.js"></script>
<script src="https://use.fontawesome.com/6e9b081f7f.js"></script>
{{abeImport 'head' manager.config this}}
Expand Down Expand Up @@ -36,5 +39,7 @@
<!-- [pageHTML]
{{pageHtml}}
[pageHTML] -->
<!-- This line below is specific to Electron -->
<script>if (window.module) module = window.module;</script>
</body>
</html>
4 changes: 4 additions & 0 deletions src/server/views/template-home.html
Expand Up @@ -8,6 +8,8 @@
{{abeImport 'common-styles' manager.config this}}
<link rel="stylesheet" href="/abecms/css/wysiwyg-editor.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/3.4.2/css/swiper.min.css">
<!-- This line below is specific to Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
</head>
<body class="engine-open abe-body homepage with-menu">
{{abeImport 'header-menu' manager.config this}}
Expand All @@ -27,5 +29,7 @@
<script type="text/javascript" src="/abecms/libs/stream-home.js"></script>
<script type="text/javascript" src="/abecms/scripts/template-engine-compiled.js"></script>
<script type="text/javascript" src="/abecms/scripts/admin-compiled.js"></script>
<!-- This line below is specific to Electron -->
<script>if (window.module) module = window.module;</script>
</body>
</html>
4 changes: 4 additions & 0 deletions src/server/views/template-manager.html
Expand Up @@ -8,6 +8,8 @@
<link rel="stylesheet" href="/abecms/css/bootstrap.min.css">
<link rel="stylesheet" href="/abecms/css/styles.css">
<link rel="stylesheet" href="/abecms/css/wysiwyg-editor.min.css">
<!-- This line below is specific to Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script type="text/javascript" src="/abecms/libs/jquery-2.1.0.min.js"></script>
<script src="https://use.fontawesome.com/6e9b081f7f.js"></script>
</head>
Expand All @@ -33,5 +35,7 @@
<!-- [pageHTML]
{{pageHtml}}
[pageHTML] -->
<!-- This line below is specific to Electron -->
<script>if (window.module) module = window.module;</script>
</body>
</html>
4 changes: 4 additions & 0 deletions src/server/views/themes-manager.html
Expand Up @@ -6,6 +6,8 @@
<head>
<title>Abe</title>
{{abeImport 'common-styles' manager.config this}}
<!-- This line below is specific to Electron -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
</head>
<body class="with-menu engine-open">
{{abeImport 'header-menu' manager.config this}}
Expand Down Expand Up @@ -141,5 +143,7 @@ <h3 class="">
})

</script>
<!-- This line below is specific to Electron -->
<script>if (window.module) module = window.module;</script>
</body>
</html>

0 comments on commit d19f1ba

Please sign in to comment.