2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 23:00:56 +00:00

updates for frappejs

This commit is contained in:
Rushabh Mehta 2018-01-16 12:46:50 +05:30
parent 87aec366b8
commit 5c15ed23f0
8 changed files with 780 additions and 356 deletions

View File

@ -1,6 +1,6 @@
# Sample app for frappe-core
# Sample app for frappe
Sample To Do app for frappe-core
Sample To Do app for frappe
### Install

View File

@ -6,8 +6,6 @@
<title>Document</title>
</head>
<body>
<div class='desk'>
</div>
<script src="js/bundle.js"></script>
</body>
</html>

View File

@ -1,13 +1,13 @@
require('./scss/main.scss');
const client = require('frappe-core/client');
const client = require('frappejs/client');
// start server
client.start({
server: 'localhost:8000',
container: document.querySelector('.wrapper'),
}).then(() => {
const todo = require('frappe-core/models/doctype/todo/todo.js');
const todo = require('frappejs/models/doctype/todo/todo.js');
frappe.init_controller('todo', todo);
frappe.desk.add_sidebar_item('Home', '#');

File diff suppressed because one or more lines are too long

View File

@ -1,78 +1 @@
$gray-000: #fafbfc !default;
$gray-100: #f6f8fa !default;
$gray-200: #e1e4e8 !default;
$gray-300: #d1d5da !default;
$gray-400: #959da5 !default;
$gray-500: #6a737d !default;
$gray-600: #586069 !default;
$gray-700: #444d56 !default;
$gray-800: #2f363d !default;
$gray-900: #24292e !default; // body font color
$blue: #0366d6 !default;
$secondary: $gray-300 !default;
$border-color: $gray-300 !default;
$input-border-color: $border-color !default;
@import "node_modules/bootstrap/scss/bootstrap";
$nav-height: 4.5rem;
html {
font-size: 14px;
}
.desk {
padding: 0px;
}
.nav {
display: none;
border-bottom: 1px solid $border-color;
align-items: center;
justify-content: center;
}
.two-column {
display: grid;
grid-template-columns: 1fr 4fr;
grid-auto-rows: minmax(100%, auto);
}
.main, .sidebar {
padding: 2rem;
min-height: 100vh;
}
.sidebar {
border-right: 1px solid $border-color;
}
.hide {
display: none !important;
}
.page-error {
text-align: center;
padding: 200px 0px;
}
.form-body {
.form-toolbar {
height: 2rem;
margin-bottom: 1rem;
}
.alert {
margin-top: 1rem;
}
}
textarea.form-control {
line-height: 1.5;
}
.list-search {
max-width: 400px;
margin-bottom: 1rem;
}
@import "node_modules/frappejs/client/style/index";

View File

@ -1,4 +1,4 @@
const server = require('frappe-core/server');
const server = require('frappejs/server');
server.start({
backend: 'sqlite',

View File

@ -2,11 +2,6 @@ const path = require('path');
module.exports = {
entry: './index.js',
devServer: {
contentBase: path.join(__dirname),
compress: true,
port: 9000,
},
devtool: 'inline-source-map',
output: {
filename: './js/bundle.js',

649
yarn.lock

File diff suppressed because it is too large Load Diff