Compare commits

..

No commits in common. "master" and "v1.0.1" have entirely different histories.

9 changed files with 18 additions and 54 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@ijl/ltemplates", "name": "@ijl/ltemplates",
"version": "1.7.1", "version": "1.0.1",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@ijl/templates", "name": "@ijl/templates",
"version": "1.7.1", "version": "1.0.1",
"description": "Templates library for @ijl projects", "description": "Templates library for @ijl projects",
"main": "src/index.js", "main": "src/index.js",
"scripts": { "scripts": {

View File

@ -1,11 +1,11 @@
const path = require('path'); const path = require('path');
const hbs = require('hbs'); const hbs = require(path.resolve('node_modules', 'hbs'));
const registerPartialsWithExtensions = require('./utils/registerPartialsWithExtensions'); const registerPartialsWithExtensions = require('./utils/registerPartialsWithExtensions');
function toJSON (obj) { function toJSON (obj) {
if (typeof obj === 'object') { if (typeof obj === 'object') {
return JSON.stringify(obj, null, 4) return JSON.stringify(obj)
} }
return obj return obj
} }

View File

@ -1,15 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{>"partials/header.hbs"}}
<title>{{ pageTitle }}</title>
</head>
<body>
<div id="app"></div>
<script src="{{baseUrl}}/fire.app/{{fireappVersion}}/dist/index.js"></script>
{{>"partials/scripts.hbs"}}
</body>
</html>

View File

@ -2,14 +2,24 @@
<html lang="en"> <html lang="en">
<head> <head>
{{>"partials/header.hbs"}} <meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,600,700,900&amp;subset=cyrillic,cyrillic-ext"
rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>{{ pageTitle }}</title> <title>{{ pageTitle }}</title>
</head> </head>
<body> <body>
<script src="{{resourceUrl}}/inno-bootstrap/{{versionBootstrap}}/dist/index.js"></script>
<script>
bootstrap({
apps: {{{ toJSON apps }}},
navigations: {{{ toJSON navigations }}},
config: {{{ toJSON config }}}
})
</script>
<div id="app"></div> <div id="app"></div>
<script src="{{baseUrl}}/fire.app/{{fireappVersion}}/index.js"></script>
{{>"partials/scripts.hbs"}}
</body> </body>
</html> </html>

View File

@ -1,8 +0,0 @@
<meta charset="UTF-8">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<style>body {margin: 0; padding: 0;}</style>

View File

@ -1,8 +0,0 @@
<script>
fireapp({
apps: {{{ toJSON apps }}},
navigations: {{{ toJSON navigations }}},
config: {{{ toJSON config }}},
features: {{{ toJSON features }}}
})
</script>

View File

@ -1,15 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,600,700,900&amp;subset=cyrillic,cyrillic-ext" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<style>body {margin: 0; padding: 0;}</style>
<title>{{title}}</title>
</head>
<body>
<div id="{{appRootId}}"></div>
<script src="{{scriptUrl}}"></script>
</body>
</html>

View File

@ -1,7 +1,7 @@
const fs = require('fs'); const fs = require('fs');
const path = require('path'); const path = require('path');
const glob = require('glob'); const glob = require(path.resolve('node_modules', 'glob'));
module.exports = (hbs, rootDir) => { module.exports = (hbs, rootDir) => {
glob glob