moved vendor libs
This commit is contained in:
parent
bd8f6e8a69
commit
0cb0d18367
File diff suppressed because one or more lines are too long
|
@ -4,7 +4,7 @@
|
|||
font-family: 'Material Icons';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
src: url('/fonts/Material-Icons.woff2') format('woff2');
|
||||
src: url('/vendor/fonts/Material-Icons.woff2') format('woff2');
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
|
|
|
@ -10,10 +10,10 @@
|
|||
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/materialize.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/vendor/css/materialize.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/styles.css" />
|
||||
<link rel="stylesheet" type="text/css" href="/css/layout.css" />
|
||||
<script src="/js/materialize.js"></script>
|
||||
<script src="/vendor/js/materialize.js"></script>
|
||||
<title>Fast Calorie</title>
|
||||
</head>
|
||||
<body>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Dexie from 'dexie';
|
||||
import Dexie from '/vendor/js/dexie.js';
|
||||
|
||||
const db = new Dexie('fast');
|
||||
|
||||
|
@ -7,8 +7,8 @@ db.version(1).stores({
|
|||
entries: '++id, day, type'
|
||||
});
|
||||
|
||||
// db.open().catch(function (err) {
|
||||
// console.error('Failed to open db: ' + (err.stack || err));
|
||||
// });
|
||||
db.open().catch(function (err) {
|
||||
console.error('Failed to open db: ' + (err.stack || err));
|
||||
});
|
||||
|
||||
export default db;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import Litedom from '/js/litedom.es.js';
|
||||
import Litedom from '/vendor/js/litedom.es.js';
|
||||
import db from '/js/db.js';
|
||||
|
||||
Litedom({
|
||||
|
@ -167,5 +167,42 @@ Litedom({
|
|||
let modal = document.querySelector('#detailsModal');
|
||||
M.Modal.init(modal, {});
|
||||
},
|
||||
removed() {}
|
||||
removed() {},
|
||||
populate() {
|
||||
|
||||
db.catalog.bulkAdd([
|
||||
{
|
||||
name: 'Water',
|
||||
description: 'Tap, Bottled, Filtered, Spring',
|
||||
type: 'DRINK',
|
||||
target: 'calorie',
|
||||
value: 0,
|
||||
brand: '',
|
||||
created: Date.now(),
|
||||
modified: Date.now(),
|
||||
},
|
||||
{
|
||||
name: 'Dr Zevia',
|
||||
description: 'Zero Calorie Soda',
|
||||
type: 'DRINK',
|
||||
target: 'calorie',
|
||||
value: 0,
|
||||
brand: 'Zevia',
|
||||
created: Date.now(),
|
||||
modified: Date.now(),
|
||||
},
|
||||
{
|
||||
name: 'Popcorn',
|
||||
description: 'Air Popped Popcorn',
|
||||
type: 'FOOD',
|
||||
target: 'calorie',
|
||||
value: 20,
|
||||
brand: '',
|
||||
created: Date.now(),
|
||||
modified: Date.now(),
|
||||
},
|
||||
]).then((r) => {
|
||||
console.log('results', r);
|
||||
})
|
||||
}
|
||||
});
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue