2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00
This commit is contained in:
Faris Ansari 2018-03-30 22:28:34 +05:30
parent 3bfda11884
commit 8508747937
4 changed files with 16 additions and 7 deletions

View File

@ -8,8 +8,8 @@ const Observable = require('frappejs/utils/observable');
module.exports = {
async start({dbPath, columns = 3, models}) {
window.frappe = frappe;
frappe.isServer = true;
frappe.init();
frappe.registerLibs(common);
frappe.registerModels(require('frappejs/models'));
@ -29,8 +29,6 @@ module.exports = {
frappe.desk = new Desk(columns);
await frappe.login();
return frappe;
}
};

View File

@ -11,7 +11,6 @@ module.exports = {
frappe.init();
frappe.registerLibs(common);
frappe.registerModels(require('frappejs/models'), 'client');
frappe.registerModels(require('../models'), 'client');
frappe.fetch = window.fetch.bind();

View File

@ -395,11 +395,11 @@ ul.tree-children {
text-align: center;
}
.form-body {
.form-section {
display: none;
}
.form-body.active {
.form-section.active {
display: block;
}
@ -407,3 +407,14 @@ ul.tree-children {
margin: $spacer-1 $spacer-4;
}
}
// File Input
input[type=file] {
width: 0.1px;
height: 0.1px;
opacity: 0;
overflow: hidden;
position: absolute;
z-index: -1;
}

View File

@ -20,8 +20,9 @@
"express": "^4.16.2",
"flatpickr": "^4.3.2",
"frappejs": "../frappejs",
"frappe-datatable": "^0.0.3",
"frappe-datatable": "frappe/datatable",
"jquery": "^3.3.1",
"mkdirp": "^0.5.1",
"mocha": "^4.1.0",
"moment": "^2.20.1",
"mysql": "^2.15.0",